Struct aws_sdk_ec2::client::fluent_builders::AuthorizeSecurityGroupEgress [−][src]
pub struct AuthorizeSecurityGroupEgress<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to AuthorizeSecurityGroupEgress
.
[VPC only] Adds the specified outbound (egress) rules to a security group for use with a VPC.
An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified destination security groups.
You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.
Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.
For information about VPC security group quotas, see Amazon VPC quotas.
Implementations
impl<C, M, R> AuthorizeSecurityGroupEgress<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AuthorizeSecurityGroupEgress<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AuthorizeSecurityGroupEgressOutput, SdkError<AuthorizeSecurityGroupEgressError>> where
R::Policy: SmithyRetryPolicy<AuthorizeSecurityGroupEgressInputOperationOutputAlias, AuthorizeSecurityGroupEgressOutput, AuthorizeSecurityGroupEgressError, AuthorizeSecurityGroupEgressInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AuthorizeSecurityGroupEgressOutput, SdkError<AuthorizeSecurityGroupEgressError>> where
R::Policy: SmithyRetryPolicy<AuthorizeSecurityGroupEgressInputOperationOutputAlias, AuthorizeSecurityGroupEgressOutput, AuthorizeSecurityGroupEgressError, AuthorizeSecurityGroupEgressInputOperationRetryAlias>,
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 TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags applied to the security group rule.
The tags applied to the security group rule.
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 AuthorizeSecurityGroupEgress<C, M, R>
impl<C, M, R> Send for AuthorizeSecurityGroupEgress<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AuthorizeSecurityGroupEgress<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AuthorizeSecurityGroupEgress<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for AuthorizeSecurityGroupEgress<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