Struct aws_sdk_ec2::input::CreateDefaultVpcInput
source · #[non_exhaustive]pub struct CreateDefaultVpcInput { /* private fields */ }
Implementations§
source§impl CreateDefaultVpcInput
impl CreateDefaultVpcInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDefaultVpc, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDefaultVpc, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateDefaultVpc
>
Examples found in repository?
src/client.rs (line 15640)
15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateDefaultVpc,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateDefaultVpcError>,
> {
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::CreateDefaultVpcOutput,
aws_smithy_http::result::SdkError<crate::error::CreateDefaultVpcError>,
> {
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 CreateDefaultVpcInput
.
Trait Implementations§
source§impl Clone for CreateDefaultVpcInput
impl Clone for CreateDefaultVpcInput
source§fn clone(&self) -> CreateDefaultVpcInput
fn clone(&self) -> CreateDefaultVpcInput
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