Struct aws_sdk_ec2::client::fluent_builders::AssociateVpcCidrBlock
source · pub struct AssociateVpcCidrBlock { /* private fields */ }
Expand description
Fluent builder constructing a request to AssociateVpcCidrBlock
.
Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed at /56.
You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.
For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and subnet sizing in the Amazon Virtual Private Cloud User Guide.
Implementations§
source§impl AssociateVpcCidrBlock
impl AssociateVpcCidrBlock
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AssociateVpcCidrBlock, AwsResponseRetryClassifier>, SdkError<AssociateVpcCidrBlockError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AssociateVpcCidrBlock, AwsResponseRetryClassifier>, SdkError<AssociateVpcCidrBlockError>>
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<AssociateVpcCidrBlockOutput, SdkError<AssociateVpcCidrBlockError>>
pub async fn send(
self
) -> Result<AssociateVpcCidrBlockOutput, SdkError<AssociateVpcCidrBlockError>>
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 amazon_provided_ipv6_cidr_block(self, input: bool) -> Self
pub fn amazon_provided_ipv6_cidr_block(self, input: bool) -> Self
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
sourcepub fn set_amazon_provided_ipv6_cidr_block(self, input: Option<bool>) -> Self
pub fn set_amazon_provided_ipv6_cidr_block(self, input: Option<bool>) -> Self
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
sourcepub fn cidr_block(self, input: impl Into<String>) -> Self
pub fn cidr_block(self, input: impl Into<String>) -> Self
An IPv4 CIDR block to associate with the VPC.
sourcepub fn set_cidr_block(self, input: Option<String>) -> Self
pub fn set_cidr_block(self, input: Option<String>) -> Self
An IPv4 CIDR block to associate with the VPC.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn ipv6_cidr_block_network_border_group(
self,
input: impl Into<String>
) -> Self
pub fn ipv6_cidr_block_network_border_group(
self,
input: impl Into<String>
) -> Self
The name of the location from which we advertise the IPV6 CIDR block. Use this parameter to limit the CIDR block to this location.
You must set AmazonProvidedIpv6CidrBlock
to true
to use this parameter.
You can have one IPv6 CIDR block association per network border group.
sourcepub fn set_ipv6_cidr_block_network_border_group(
self,
input: Option<String>
) -> Self
pub fn set_ipv6_cidr_block_network_border_group(
self,
input: Option<String>
) -> Self
The name of the location from which we advertise the IPV6 CIDR block. Use this parameter to limit the CIDR block to this location.
You must set AmazonProvidedIpv6CidrBlock
to true
to use this parameter.
You can have one IPv6 CIDR block association per network border group.
sourcepub fn ipv6_pool(self, input: impl Into<String>) -> Self
pub fn ipv6_pool(self, input: impl Into<String>) -> Self
The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
sourcepub fn set_ipv6_pool(self, input: Option<String>) -> Self
pub fn set_ipv6_pool(self, input: Option<String>) -> Self
The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
sourcepub fn ipv6_cidr_block(self, input: impl Into<String>) -> Self
pub fn ipv6_cidr_block(self, input: impl Into<String>) -> Self
An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
in the request.
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
sourcepub fn set_ipv6_cidr_block(self, input: Option<String>) -> Self
pub fn set_ipv6_cidr_block(self, input: Option<String>) -> Self
An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
in the request.
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
sourcepub fn ipv4_ipam_pool_id(self, input: impl Into<String>) -> Self
pub fn ipv4_ipam_pool_id(self, input: impl Into<String>) -> Self
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn set_ipv4_ipam_pool_id(self, input: Option<String>) -> Self
pub fn set_ipv4_ipam_pool_id(self, input: Option<String>) -> Self
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn ipv4_netmask_length(self, input: i32) -> Self
pub fn ipv4_netmask_length(self, input: i32) -> Self
The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn set_ipv4_netmask_length(self, input: Option<i32>) -> Self
pub fn set_ipv4_netmask_length(self, input: Option<i32>) -> Self
The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn ipv6_ipam_pool_id(self, input: impl Into<String>) -> Self
pub fn ipv6_ipam_pool_id(self, input: impl Into<String>) -> Self
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn set_ipv6_ipam_pool_id(self, input: Option<String>) -> Self
pub fn set_ipv6_ipam_pool_id(self, input: Option<String>) -> Self
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn ipv6_netmask_length(self, input: i32) -> Self
pub fn ipv6_netmask_length(self, input: i32) -> Self
The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
sourcepub fn set_ipv6_netmask_length(self, input: Option<i32>) -> Self
pub fn set_ipv6_netmask_length(self, input: Option<i32>) -> Self
The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
Trait Implementations§
source§impl Clone for AssociateVpcCidrBlock
impl Clone for AssociateVpcCidrBlock
source§fn clone(&self) -> AssociateVpcCidrBlock
fn clone(&self) -> AssociateVpcCidrBlock
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more