Struct aws_sdk_ec2::input::DeleteCarrierGatewayInput
source · #[non_exhaustive]pub struct DeleteCarrierGatewayInput { /* private fields */ }
Implementations§
source§impl DeleteCarrierGatewayInput
impl DeleteCarrierGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteCarrierGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteCarrierGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteCarrierGateway
>
Examples found in repository?
src/client.rs (line 25703)
25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteCarrierGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteCarrierGatewayError>,
> {
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::DeleteCarrierGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteCarrierGatewayError>,
> {
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 DeleteCarrierGatewayInput
.
source§impl DeleteCarrierGatewayInput
impl DeleteCarrierGatewayInput
sourcepub fn carrier_gateway_id(&self) -> Option<&str>
pub fn carrier_gateway_id(&self) -> Option<&str>
The ID of the carrier gateway.
Trait Implementations§
source§impl Clone for DeleteCarrierGatewayInput
impl Clone for DeleteCarrierGatewayInput
source§fn clone(&self) -> DeleteCarrierGatewayInput
fn clone(&self) -> DeleteCarrierGatewayInput
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