Struct aws_sdk_ec2::input::AssociateVpcCidrBlockInput
source · #[non_exhaustive]pub struct AssociateVpcCidrBlockInput { /* private fields */ }
Implementations§
source§impl AssociateVpcCidrBlockInput
impl AssociateVpcCidrBlockInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateVpcCidrBlock, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateVpcCidrBlock, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateVpcCidrBlock
>
Examples found in repository?
11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateVpcCidrBlock,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateVpcCidrBlockError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AssociateVpcCidrBlockOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateVpcCidrBlockError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AssociateVpcCidrBlockInput
.
source§impl AssociateVpcCidrBlockInput
impl AssociateVpcCidrBlockInput
sourcepub fn amazon_provided_ipv6_cidr_block(&self) -> Option<bool>
pub fn amazon_provided_ipv6_cidr_block(&self) -> Option<bool>
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) -> Option<&str>
pub fn cidr_block(&self) -> Option<&str>
An IPv4 CIDR block to associate with the VPC.
sourcepub fn ipv6_cidr_block_network_border_group(&self) -> Option<&str>
pub fn ipv6_cidr_block_network_border_group(&self) -> Option<&str>
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) -> Option<&str>
pub fn ipv6_pool(&self) -> Option<&str>
The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
sourcepub fn ipv6_cidr_block(&self) -> Option<&str>
pub fn ipv6_cidr_block(&self) -> Option<&str>
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) -> Option<&str>
pub fn ipv4_ipam_pool_id(&self) -> Option<&str>
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) -> Option<i32>
pub fn ipv4_netmask_length(&self) -> Option<i32>
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) -> Option<&str>
pub fn ipv6_ipam_pool_id(&self) -> Option<&str>
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) -> Option<i32>
pub fn ipv6_netmask_length(&self) -> Option<i32>
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 AssociateVpcCidrBlockInput
impl Clone for AssociateVpcCidrBlockInput
source§fn clone(&self) -> AssociateVpcCidrBlockInput
fn clone(&self) -> AssociateVpcCidrBlockInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more