Struct aws_sdk_ec2::input::ModifyVpnTunnelOptionsInput
source · #[non_exhaustive]pub struct ModifyVpnTunnelOptionsInput { /* private fields */ }
Implementations§
source§impl ModifyVpnTunnelOptionsInput
impl ModifyVpnTunnelOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVpnTunnelOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVpnTunnelOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyVpnTunnelOptions
>
Examples found in repository?
src/client.rs (line 70713)
70699 70700 70701 70702 70703 70704 70705 70706 70707 70708 70709 70710 70711 70712 70713 70714 70715 70716 70717 70718 70719 70720 70721 70722 70723 70724 70725 70726 70727 70728 70729 70730 70731 70732 70733 70734 70735 70736 70737 70738 70739 70740 70741
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyVpnTunnelOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyVpnTunnelOptionsError>,
> {
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::ModifyVpnTunnelOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyVpnTunnelOptionsError>,
> {
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 ModifyVpnTunnelOptionsInput
.
source§impl ModifyVpnTunnelOptionsInput
impl ModifyVpnTunnelOptionsInput
sourcepub fn vpn_connection_id(&self) -> Option<&str>
pub fn vpn_connection_id(&self) -> Option<&str>
The ID of the Amazon Web Services Site-to-Site VPN connection.
sourcepub fn vpn_tunnel_outside_ip_address(&self) -> Option<&str>
pub fn vpn_tunnel_outside_ip_address(&self) -> Option<&str>
The external IP address of the VPN tunnel.
sourcepub fn tunnel_options(&self) -> Option<&ModifyVpnTunnelOptionsSpecification>
pub fn tunnel_options(&self) -> Option<&ModifyVpnTunnelOptionsSpecification>
The tunnel options to modify.
Trait Implementations§
source§impl Clone for ModifyVpnTunnelOptionsInput
impl Clone for ModifyVpnTunnelOptionsInput
source§fn clone(&self) -> ModifyVpnTunnelOptionsInput
fn clone(&self) -> ModifyVpnTunnelOptionsInput
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