Struct aws_sdk_ec2::input::CreateDefaultSubnetInput
source · #[non_exhaustive]pub struct CreateDefaultSubnetInput { /* private fields */ }
Implementations§
source§impl CreateDefaultSubnetInput
impl CreateDefaultSubnetInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDefaultSubnet, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDefaultSubnet, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateDefaultSubnet
>
Examples found in repository?
src/client.rs (line 15540)
15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateDefaultSubnet,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateDefaultSubnetError>,
> {
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::CreateDefaultSubnetOutput,
aws_smithy_http::result::SdkError<crate::error::CreateDefaultSubnetError>,
> {
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 CreateDefaultSubnetInput
.
source§impl CreateDefaultSubnetInput
impl CreateDefaultSubnetInput
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone in which to create the default subnet.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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 ipv6_native(&self) -> Option<bool>
pub fn ipv6_native(&self) -> Option<bool>
Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.
Trait Implementations§
source§impl Clone for CreateDefaultSubnetInput
impl Clone for CreateDefaultSubnetInput
source§fn clone(&self) -> CreateDefaultSubnetInput
fn clone(&self) -> CreateDefaultSubnetInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more