aws_sdk_ec2/client/
replace_transit_gateway_route.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ReplaceTransitGatewayRoute`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`destination_cidr_block(impl Into<String>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::destination_cidr_block) / [`set_destination_cidr_block(Option<String>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::set_destination_cidr_block):<br>required: **true**<br><p>The CIDR range used for the destination match. Routing decisions are based on the most specific match.</p><br>
7    ///   - [`transit_gateway_route_table_id(impl Into<String>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::transit_gateway_route_table_id) / [`set_transit_gateway_route_table_id(Option<String>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::set_transit_gateway_route_table_id):<br>required: **true**<br><p>The ID of the route table.</p><br>
8    ///   - [`transit_gateway_attachment_id(impl Into<String>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::transit_gateway_attachment_id) / [`set_transit_gateway_attachment_id(Option<String>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::set_transit_gateway_attachment_id):<br>required: **false**<br><p>The ID of the attachment.</p><br>
9    ///   - [`blackhole(bool)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::blackhole) / [`set_blackhole(Option<bool>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::set_blackhole):<br>required: **false**<br><p>Indicates whether traffic matching this route is to be dropped.</p><br>
10    ///   - [`dry_run(bool)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
11    /// - On success, responds with [`ReplaceTransitGatewayRouteOutput`](crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteOutput) with field(s):
12    ///   - [`route(Option<TransitGatewayRoute>)`](crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteOutput::route): <p>Information about the modified route.</p>
13    /// - On failure, responds with [`SdkError<ReplaceTransitGatewayRouteError>`](crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError)
14    pub fn replace_transit_gateway_route(
15        &self,
16    ) -> crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder {
17        crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::new(self.handle.clone())
18    }
19}