Struct aws_sdk_ec2::input::AttachVpnGatewayInput
source · #[non_exhaustive]pub struct AttachVpnGatewayInput { /* private fields */ }
Expand description
Contains the parameters for AttachVpnGateway.
Implementations§
source§impl AttachVpnGatewayInput
impl AttachVpnGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AttachVpnGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AttachVpnGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AttachVpnGateway
>
Examples found in repository?
src/client.rs (line 11920)
11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AttachVpnGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AttachVpnGatewayError>,
> {
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::AttachVpnGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::AttachVpnGatewayError>,
> {
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 AttachVpnGatewayInput
.
source§impl AttachVpnGatewayInput
impl AttachVpnGatewayInput
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 AttachVpnGatewayInput
impl Clone for AttachVpnGatewayInput
source§fn clone(&self) -> AttachVpnGatewayInput
fn clone(&self) -> AttachVpnGatewayInput
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