Struct aws_sdk_ec2::client::fluent_builders::RevokeSecurityGroupEgress [−][src]
pub struct RevokeSecurityGroupEgress<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to RevokeSecurityGroupEgress
.
[VPC only] Removes the specified outbound (egress) rules from a security group for EC2-VPC. This action does not apply to security groups for use in EC2-Classic.
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.
[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.
Implementations
impl<C, M, R> RevokeSecurityGroupEgress<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> RevokeSecurityGroupEgress<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<RevokeSecurityGroupEgressOutput, SdkError<RevokeSecurityGroupEgressError>> where
R::Policy: SmithyRetryPolicy<RevokeSecurityGroupEgressInputOperationOutputAlias, RevokeSecurityGroupEgressOutput, RevokeSecurityGroupEgressError, RevokeSecurityGroupEgressInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<RevokeSecurityGroupEgressOutput, SdkError<RevokeSecurityGroupEgressError>> where
R::Policy: SmithyRetryPolicy<RevokeSecurityGroupEgressInputOperationOutputAlias, RevokeSecurityGroupEgressOutput, RevokeSecurityGroupEgressError, RevokeSecurityGroupEgressInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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
.
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
.
The ID of the security group.
Appends an item to IpPermissions
.
To override the contents of this collection use set_ip_permissions
.
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.
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.
Appends an item to SecurityGroupRuleIds
.
To override the contents of this collection use set_security_group_rule_ids
.
The IDs of the security group rules.
The IDs of the security group rules.
Not supported. Use a set of IP permissions to specify the CIDR.
Not supported. Use a set of IP permissions to specify the CIDR.
Not supported. Use a set of IP permissions to specify the port.
Not supported. Use a set of IP permissions to specify the port.
Not supported. Use a set of IP permissions to specify the protocol name or number.
Not supported. Use a set of IP permissions to specify the protocol name or number.
Not supported. Use a set of IP permissions to specify the port.
Not supported. Use a set of IP permissions to specify the port.
Not supported. Use a set of IP permissions to specify a destination security group.
Not supported. Use a set of IP permissions to specify a destination security group.
Not supported. Use a set of IP permissions to specify a destination security group.
Not supported. Use a set of IP permissions to specify a destination security group.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for RevokeSecurityGroupEgress<C, M, R>
impl<C, M, R> Send for RevokeSecurityGroupEgress<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for RevokeSecurityGroupEgress<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for RevokeSecurityGroupEgress<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for RevokeSecurityGroupEgress<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more