pub struct AuthorizeSecurityGroupEgress { /* private fields */ }
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 source security groups. When specifying an outbound rule for your security group in a VPC, the IpPermissions
must include a destination for the traffic.
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§
source§impl AuthorizeSecurityGroupEgress
impl AuthorizeSecurityGroupEgress
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AuthorizeSecurityGroupEgress, AwsResponseRetryClassifier>, SdkError<AuthorizeSecurityGroupEgressError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AuthorizeSecurityGroupEgress, AwsResponseRetryClassifier>, SdkError<AuthorizeSecurityGroupEgressError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<AuthorizeSecurityGroupEgressOutput, SdkError<AuthorizeSecurityGroupEgressError>>
pub async fn send(
self
) -> Result<AuthorizeSecurityGroupEgressOutput, SdkError<AuthorizeSecurityGroupEgressError>>
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.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The ID of the security group.
sourcepub fn ip_permissions(self, input: IpPermission) -> Self
pub fn ip_permissions(self, input: IpPermission) -> Self
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.
sourcepub fn set_ip_permissions(self, input: Option<Vec<IpPermission>>) -> Self
pub fn set_ip_permissions(self, input: Option<Vec<IpPermission>>) -> Self
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.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags applied to the security group rule.
sourcepub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
pub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
The tags applied to the security group rule.
sourcepub fn cidr_ip(self, input: impl Into<String>) -> Self
pub fn cidr_ip(self, input: impl Into<String>) -> Self
Not supported. Use a set of IP permissions to specify the CIDR.
sourcepub fn set_cidr_ip(self, input: Option<String>) -> Self
pub fn set_cidr_ip(self, input: Option<String>) -> Self
Not supported. Use a set of IP permissions to specify the CIDR.
sourcepub fn from_port(self, input: i32) -> Self
pub fn from_port(self, input: i32) -> Self
Not supported. Use a set of IP permissions to specify the port.
sourcepub fn set_from_port(self, input: Option<i32>) -> Self
pub fn set_from_port(self, input: Option<i32>) -> Self
Not supported. Use a set of IP permissions to specify the port.
sourcepub fn ip_protocol(self, input: impl Into<String>) -> Self
pub fn ip_protocol(self, input: impl Into<String>) -> Self
Not supported. Use a set of IP permissions to specify the protocol name or number.
sourcepub fn set_ip_protocol(self, input: Option<String>) -> Self
pub fn set_ip_protocol(self, input: Option<String>) -> Self
Not supported. Use a set of IP permissions to specify the protocol name or number.
sourcepub fn to_port(self, input: i32) -> Self
pub fn to_port(self, input: i32) -> Self
Not supported. Use a set of IP permissions to specify the port.
sourcepub fn set_to_port(self, input: Option<i32>) -> Self
pub fn set_to_port(self, input: Option<i32>) -> Self
Not supported. Use a set of IP permissions to specify the port.
sourcepub fn source_security_group_name(self, input: impl Into<String>) -> Self
pub fn source_security_group_name(self, input: impl Into<String>) -> Self
Not supported. Use a set of IP permissions to specify a destination security group.
sourcepub fn set_source_security_group_name(self, input: Option<String>) -> Self
pub fn set_source_security_group_name(self, input: Option<String>) -> Self
Not supported. Use a set of IP permissions to specify a destination security group.
sourcepub fn source_security_group_owner_id(self, input: impl Into<String>) -> Self
pub fn source_security_group_owner_id(self, input: impl Into<String>) -> Self
Not supported. Use a set of IP permissions to specify a destination security group.
sourcepub fn set_source_security_group_owner_id(self, input: Option<String>) -> Self
pub fn set_source_security_group_owner_id(self, input: Option<String>) -> Self
Not supported. Use a set of IP permissions to specify a destination security group.
Trait Implementations§
source§impl Clone for AuthorizeSecurityGroupEgress
impl Clone for AuthorizeSecurityGroupEgress
source§fn clone(&self) -> AuthorizeSecurityGroupEgress
fn clone(&self) -> AuthorizeSecurityGroupEgress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more