revoke_security_group_egress¶
Operation¶
revoke_security_group_egress
async
¶
revoke_security_group_egress(request: RevokeSecurityGroupEgressInput | RevokeSecurityGroupEgressInputDict, /, *, plugins: list[Plugin] | None = None) -> RevokeSecurityGroupEgressOutput
revoke_security_group_egress(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[RevokeSecurityGroupEgressInputDict]) -> RevokeSecurityGroupEgressOutput
Removes the specified outbound (egress) rules from the specified security group.
You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule's values exactly. Each rule has a protocol, from and to ports, and destination (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.
For a default VPC, if the values you specify do not match the existing rule's values, no error is returned, and the output describes the security group rules that were not revoked.
Amazon Web Services recommends that you describe the security group to verify that the rules were removed.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
RevokeSecurityGroupEgressOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
RevokeSecurityGroupEgressInput
dataclass
¶
Bases: _SerdeShape
Dataclass for RevokeSecurityGroupEgressInput structure.
Attributes¶
cidr_ip
class-attribute
instance-attribute
¶
cidr_ip: str | None = ...
Not supported. Use a set of IP permissions to specify the CIDR.
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | 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 is UnauthorizedOperation.
from_port
class-attribute
instance-attribute
¶
from_port: int | None = ...
Not supported. Use a set of IP permissions to specify the port.
group_id
class-attribute
instance-attribute
¶
group_id: str | None = ...
The ID of the security group.
ip_permissions
class-attribute
instance-attribute
¶
ip_permissions: list[IpPermission] | None = ...
The sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.
ip_protocol
class-attribute
instance-attribute
¶
ip_protocol: str | None = ...
Not supported. Use a set of IP permissions to specify the protocol name or number.
security_group_rule_ids
class-attribute
instance-attribute
¶
The IDs of the security group rules.
source_security_group_name
class-attribute
instance-attribute
¶
source_security_group_name: str | None = ...
Not supported. Use a set of IP permissions to specify a destination security group.
Dictionaries¶
RevokeSecurityGroupEgressInputDict
¶
Bases: TypedDict
Dictionary form of RevokeSecurityGroupEgressInput.
Attributes¶
cidr_ip
instance-attribute
¶
cidr_ip: str | None
Not supported. Use a set of IP permissions to specify the CIDR.
dry_run
instance-attribute
¶
dry_run: bool | 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 is UnauthorizedOperation.
from_port
instance-attribute
¶
from_port: int | None
Not supported. Use a set of IP permissions to specify the port.
ip_permissions
instance-attribute
¶
ip_permissions: Sequence[IpPermission | IpPermissionDict] | None
The sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.
ip_protocol
instance-attribute
¶
ip_protocol: str | None
Not supported. Use a set of IP permissions to specify the protocol name or number.
security_group_rule_ids
instance-attribute
¶
The IDs of the security group rules.
source_security_group_name
instance-attribute
¶
source_security_group_name: str | None
Not supported. Use a set of IP permissions to specify a destination security group.
Output¶
RevokeSecurityGroupEgressOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for RevokeSecurityGroupEgressOutput structure.
Attributes¶
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.
return_
class-attribute
instance-attribute
¶
return_: bool | None = ...
Returns true if the request succeeds; otherwise, returns an error.
revoked_security_group_rules
class-attribute
instance-attribute
¶
revoked_security_group_rules: list[RevokedSecurityGroupRule] | None = ...
Details about the revoked security group rules.
unknown_ip_permissions
class-attribute
instance-attribute
¶
unknown_ip_permissions: list[IpPermission] | None = ...
The outbound rules that were unknown to the service. In some cases,
unknownIpPermissionSet might be in a different format from the request
parameter.