Struct aws_sdk_ec2::input::DeleteTransitGatewayInput
source · #[non_exhaustive]pub struct DeleteTransitGatewayInput { /* private fields */ }
Implementations§
source§impl DeleteTransitGatewayInput
impl DeleteTransitGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteTransitGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteTransitGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteTransitGateway
>
Examples found in repository?
src/client.rs (line 30151)
30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteTransitGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteTransitGatewayError>,
> {
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::DeleteTransitGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteTransitGatewayError>,
> {
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 DeleteTransitGatewayInput
.
source§impl DeleteTransitGatewayInput
impl DeleteTransitGatewayInput
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
Trait Implementations§
source§impl Clone for DeleteTransitGatewayInput
impl Clone for DeleteTransitGatewayInput
source§fn clone(&self) -> DeleteTransitGatewayInput
fn clone(&self) -> DeleteTransitGatewayInput
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