#[non_exhaustive]pub struct ReplaceTransitGatewayRouteInput { /* private fields */ }
Implementations§
source§impl ReplaceTransitGatewayRouteInput
impl ReplaceTransitGatewayRouteInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReplaceTransitGatewayRoute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReplaceTransitGatewayRoute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ReplaceTransitGatewayRoute
>
Examples found in repository?
src/client.rs (line 74154)
74140 74141 74142 74143 74144 74145 74146 74147 74148 74149 74150 74151 74152 74153 74154 74155 74156 74157 74158 74159 74160 74161 74162 74163 74164 74165 74166 74167 74168 74169 74170 74171 74172 74173 74174 74175 74176 74177 74178 74179 74180 74181 74182
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ReplaceTransitGatewayRoute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ReplaceTransitGatewayRouteError>,
> {
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::ReplaceTransitGatewayRouteOutput,
aws_smithy_http::result::SdkError<crate::error::ReplaceTransitGatewayRouteError>,
> {
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 ReplaceTransitGatewayRouteInput
.
source§impl ReplaceTransitGatewayRouteInput
impl ReplaceTransitGatewayRouteInput
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
The CIDR range used for the destination match. 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 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 ReplaceTransitGatewayRouteInput
impl Clone for ReplaceTransitGatewayRouteInput
source§fn clone(&self) -> ReplaceTransitGatewayRouteInput
fn clone(&self) -> ReplaceTransitGatewayRouteInput
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