Struct aws_sdk_ec2::input::CreateTransitGatewayRouteInput
source · #[non_exhaustive]pub struct CreateTransitGatewayRouteInput { /* private fields */ }
Implementations§
source§impl CreateTransitGatewayRouteInput
impl CreateTransitGatewayRouteInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTransitGatewayRoute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTransitGatewayRoute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateTransitGatewayRoute
>
Examples found in repository?
src/client.rs (line 23610)
23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTransitGatewayRoute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateTransitGatewayRouteError>,
> {
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::CreateTransitGatewayRouteOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTransitGatewayRouteError>,
> {
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 CreateTransitGatewayRouteInput
.
source§impl CreateTransitGatewayRouteInput
impl CreateTransitGatewayRouteInput
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
The CIDR range used for destination matches. Routing decisions are based on the most specific match.
sourcepub fn transit_gateway_route_table_id(&self) -> Option<&str>
pub fn transit_gateway_route_table_id(&self) -> Option<&str>
The ID of the transit gateway route table.
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the attachment.
Trait Implementations§
source§impl Clone for CreateTransitGatewayRouteInput
impl Clone for CreateTransitGatewayRouteInput
source§fn clone(&self) -> CreateTransitGatewayRouteInput
fn clone(&self) -> CreateTransitGatewayRouteInput
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