update_security_group_rule_descriptions_ingress
async
¶
update_security_group_rule_descriptions_ingress(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
group_id: Optional[SecurityGroupId] = None,
group_name: Optional[SecurityGroupName] = None,
ip_permissions: Optional[IpPermissionList] = None,
security_group_rule_descriptions: Optional[SecurityGroupRuleDescriptionList] = None,
) -> UpdateSecurityGroupRuleDescriptionsIngressResult
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
group_id(Optional[SecurityGroupId], default:None) –The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
-
group_name(Optional[SecurityGroupName], default:None) –[Default VPC] The name of the security group. You must specify either the security group ID or the security group name. For security groups in a nondefault VPC, you must specify the security group ID.
-
ip_permissions(Optional[IpPermissionList], default:None) –The IP permissions for the security group rule. You must specify either IP permissions or a description.
-
security_group_rule_descriptions(Optional[SecurityGroupRuleDescriptionList], default:None) –The description for the ingress security group rules. You must specify either a description or IP permissions.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update an inbound security group rule description This example updates the description for the specified security group rule.
>>> await client.update_security_group_rule_descriptions_ingress(group_id='sg-123abc12', ip_permissions=[{'IpProtocol': 'tcp', 'FromPort': 22, 'ToPort': 22, 'IpRanges': [{'CidrIp': '203.0.113.0/16', 'Description': 'SSH access from the LA office'}]}])
Source code in docs_src/capo_ec2/_services/async_ec2.py
61222 61223 61224 61225 61226 61227 61228 61229 61230 61231 61232 61233 61234 61235 61236 61237 61238 61239 61240 61241 61242 61243 61244 61245 61246 61247 61248 61249 61250 61251 61252 61253 61254 61255 61256 61257 61258 61259 61260 61261 61262 61263 61264 61265 61266 61267 61268 61269 61270 61271 61272 61273 61274 61275 61276 61277 61278 61279 61280 61281 61282 61283 61284 61285 61286 61287 61288 61289 61290 61291 61292 61293 61294 61295 61296 | |