#[non_exhaustive]pub struct AssociateClientVpnTargetNetworkInput { /* private fields */ }
Implementations§
source§impl AssociateClientVpnTargetNetworkInput
impl AssociateClientVpnTargetNetworkInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AssociateClientVpnTargetNetwork, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AssociateClientVpnTargetNetwork, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateClientVpnTargetNetwork
>
Examples found in repository?
src/client.rs (line 10123)
10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateClientVpnTargetNetwork,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateClientVpnTargetNetworkError>,
> {
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::AssociateClientVpnTargetNetworkOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateClientVpnTargetNetworkError>,
> {
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 AssociateClientVpnTargetNetworkInput
.
source§impl AssociateClientVpnTargetNetworkInput
impl AssociateClientVpnTargetNetworkInput
sourcepub fn client_vpn_endpoint_id(&self) -> Option<&str>
pub fn client_vpn_endpoint_id(&self) -> Option<&str>
The ID of the Client VPN endpoint.
sourcepub fn subnet_id(&self) -> Option<&str>
pub fn subnet_id(&self) -> Option<&str>
The ID of the subnet to associate with the Client VPN endpoint.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
Trait Implementations§
source§impl Clone for AssociateClientVpnTargetNetworkInput
impl Clone for AssociateClientVpnTargetNetworkInput
source§fn clone(&self) -> AssociateClientVpnTargetNetworkInput
fn clone(&self) -> AssociateClientVpnTargetNetworkInput
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