Struct aws_sdk_ec2::input::DeleteVpnConnectionInput
source · #[non_exhaustive]pub struct DeleteVpnConnectionInput { /* private fields */ }
Expand description
Contains the parameters for DeleteVpnConnection.
Implementations§
source§impl DeleteVpnConnectionInput
impl DeleteVpnConnectionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteVpnConnection, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteVpnConnection, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteVpnConnection
>
Examples found in repository?
src/client.rs (line 31721)
31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteVpnConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteVpnConnectionError>,
> {
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::DeleteVpnConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteVpnConnectionError>,
> {
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 DeleteVpnConnectionInput
.
source§impl DeleteVpnConnectionInput
impl DeleteVpnConnectionInput
sourcepub fn vpn_connection_id(&self) -> Option<&str>
pub fn vpn_connection_id(&self) -> Option<&str>
The ID of the VPN connection.
Trait Implementations§
source§impl Clone for DeleteVpnConnectionInput
impl Clone for DeleteVpnConnectionInput
source§fn clone(&self) -> DeleteVpnConnectionInput
fn clone(&self) -> DeleteVpnConnectionInput
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