update_security_group_rule_descriptions_egress
¶
update_security_group_rule_descriptions_egress(
*,
config_overrides: Optional[EC2ClientConfig] = 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,
) -> UpdateSecurityGroupRuleDescriptionsEgressResult
Updates the description of an egress (outbound) 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.
-
ip_permissions(Optional[IpPermissionList], default:None) –The IP permissions for the security group rule. You must specify either the IP permissions or the description.
-
security_group_rule_descriptions(Optional[SecurityGroupRuleDescriptionList], default:None) –The description for the egress security group rules. You must specify either the description or the IP permissions.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update an outbound security group rule description This example updates the description for the specified security group rule.
>>> client.update_security_group_rule_descriptions_egress(group_id='sg-123abc12', ip_permissions=[{'IpProtocol': 'tcp', 'FromPort': 80, 'ToPort': 80, 'IpRanges': [{'CidrIp': '203.0.113.0/24', 'Description': 'Outbound HTTP access to server 2'}]}])
Source code in docs_src/capo_ec2/_services/ec2.py
60302 60303 60304 60305 60306 60307 60308 60309 60310 60311 60312 60313 60314 60315 60316 60317 60318 60319 60320 60321 60322 60323 60324 60325 60326 60327 60328 60329 60330 60331 60332 60333 60334 60335 60336 60337 60338 60339 60340 60341 60342 60343 60344 60345 60346 60347 60348 60349 60350 60351 60352 60353 60354 60355 60356 60357 60358 60359 60360 60361 60362 60363 60364 60365 60366 60367 60368 60369 60370 60371 60372 60373 60374 60375 | |