-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent methods for UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder and AuthorizeSecurityGroupIngressRequest.Builder #5217
Comments
@xsimo to avoid getting the error message
you need to add a validation in your code to not send both attributes 'ipPermissions' and 'securityGroupRuleDescriptions' in the same request. We cannot remove attributes from the request at this point, it's a breaking change. As for
'securityGroupRuleId' can be found under SecurityGroupRuleDescription.Builder, and then you can provide the SecurityGroupRuleDescription to the UpdateSecurityGroupRuleDescriptionsIngressRequest::securityGroupRuleDescriptions request attribute. Let us know if you have any follow-up question. |
Ok, thank you very much for this explanation. |
I don't think it's possible, you need to call separate APIs: 'ModifyInstanceAttribute' to assign a security group to an instance, and 'ModifySecurityGroupRules' to change the description. Please refer to the EC2 User Guide for more info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-security-groups.html |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Version 2.25.50
Can not programmatically annotate Security group rules with a description
Expected Behavior
Current Behavior
Reproduction Steps
Issue an ec2Client.updateSecurityGroupRuleDescriptionsIngress(updateSecurityGroupRuleDescriptionsIngressRequest)
with the updateSecurityGroupRuleDescriptionsIngressRequest containing an ipPermission, the server answers 400 with message
The parameter 'ipPermissions' may not be used in combination with 'securityGroupRuleDescriptions'. (Service: Ec2, Status Code: 400,
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.25.50
JDK version used
1.8.0_351-b10
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: