Struct aws_sdk_ec2::input::DetachVpnGatewayInput
source · #[non_exhaustive]pub struct DetachVpnGatewayInput { /* private fields */ }
Expand description
Contains the parameters for DetachVpnGateway.
Implementations§
source§impl DetachVpnGatewayInput
impl DetachVpnGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetachVpnGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetachVpnGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DetachVpnGateway
>
Examples found in repository?
src/client.rs (line 53437)
53423 53424 53425 53426 53427 53428 53429 53430 53431 53432 53433 53434 53435 53436 53437 53438 53439 53440 53441 53442 53443 53444 53445 53446 53447 53448 53449 53450 53451 53452 53453 53454 53455 53456 53457 53458 53459 53460 53461 53462 53463 53464 53465
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DetachVpnGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DetachVpnGatewayError>,
> {
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::DetachVpnGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::DetachVpnGatewayError>,
> {
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 DetachVpnGatewayInput
.
source§impl DetachVpnGatewayInput
impl DetachVpnGatewayInput
sourcepub fn vpn_gateway_id(&self) -> Option<&str>
pub fn vpn_gateway_id(&self) -> Option<&str>
The ID of the virtual private gateway.
Trait Implementations§
source§impl Clone for DetachVpnGatewayInput
impl Clone for DetachVpnGatewayInput
source§fn clone(&self) -> DetachVpnGatewayInput
fn clone(&self) -> DetachVpnGatewayInput
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