Struct aws_sdk_ec2::input::CreateVpnConnectionRouteInput
source · #[non_exhaustive]pub struct CreateVpnConnectionRouteInput { /* private fields */ }
Expand description
Contains the parameters for CreateVpnConnectionRoute.
Implementations§
source§impl CreateVpnConnectionRouteInput
impl CreateVpnConnectionRouteInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateVpnConnectionRoute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateVpnConnectionRoute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateVpnConnectionRoute
>
Examples found in repository?
src/client.rs (line 25486)
25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateVpnConnectionRoute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateVpnConnectionRouteError>,
> {
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::CreateVpnConnectionRouteOutput,
aws_smithy_http::result::SdkError<crate::error::CreateVpnConnectionRouteError>,
> {
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 CreateVpnConnectionRouteInput
.
source§impl CreateVpnConnectionRouteInput
impl CreateVpnConnectionRouteInput
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
The CIDR block associated with the local subnet of the customer network.
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 CreateVpnConnectionRouteInput
impl Clone for CreateVpnConnectionRouteInput
source§fn clone(&self) -> CreateVpnConnectionRouteInput
fn clone(&self) -> CreateVpnConnectionRouteInput
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