1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ReplaceTransitGatewayRoute`](crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`ReplaceTransitGatewayRouteOutput`](crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteOutput) with field(s):
    ///   - [`route(Option<TransitGatewayRoute>)`](crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteOutput::route): <p>Information about the modified route.</p>
    /// - On failure, responds with [`SdkError<ReplaceTransitGatewayRouteError>`](crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError)
    pub fn replace_transit_gateway_route(
        &self,
    ) -> crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder {
        crate::operation::replace_transit_gateway_route::builders::ReplaceTransitGatewayRouteFluentBuilder::new(self.handle.clone())
    }
}