update_security_group_rule_descriptions_egress
async
¶
update_security_group_rule_descriptions_egress(
*,
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,
) -> 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.
>>> await 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/async_ec2.py
61146 61147 61148 61149 61150 61151 61152 61153 61154 61155 61156 61157 61158 61159 61160 61161 61162 61163 61164 61165 61166 61167 61168 61169 61170 61171 61172 61173 61174 61175 61176 61177 61178 61179 61180 61181 61182 61183 61184 61185 61186 61187 61188 61189 61190 61191 61192 61193 61194 61195 61196 61197 61198 61199 61200 61201 61202 61203 61204 61205 61206 61207 61208 61209 61210 61211 61212 61213 61214 61215 61216 61217 61218 61219 61220 | |