Struct aws_sdk_ec2::input::AssociateSubnetCidrBlockInput
source · #[non_exhaustive]pub struct AssociateSubnetCidrBlockInput { /* private fields */ }
Implementations§
source§impl AssociateSubnetCidrBlockInput
impl AssociateSubnetCidrBlockInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateSubnetCidrBlock, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateSubnetCidrBlock, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateSubnetCidrBlock
>
Examples found in repository?
src/client.rs (line 10728)
10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateSubnetCidrBlock,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateSubnetCidrBlockError>,
> {
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::AssociateSubnetCidrBlockOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateSubnetCidrBlockError>,
> {
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 AssociateSubnetCidrBlockInput
.
Trait Implementations§
source§impl Clone for AssociateSubnetCidrBlockInput
impl Clone for AssociateSubnetCidrBlockInput
source§fn clone(&self) -> AssociateSubnetCidrBlockInput
fn clone(&self) -> AssociateSubnetCidrBlockInput
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