aws_sdk_ec2/client/
create_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 [`CreateTransitGatewayRoute`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`destination_cidr_block(impl Into<String>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::destination_cidr_block) / [`set_destination_cidr_block(Option<String>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::set_destination_cidr_block):<br>required: **true**<br><p>The CIDR range used for destination matches. Routing decisions are based on the most specific match.</p><br>
7    ///   - [`transit_gateway_route_table_id(impl Into<String>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::transit_gateway_route_table_id) / [`set_transit_gateway_route_table_id(Option<String>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::set_transit_gateway_route_table_id):<br>required: **true**<br><p>The ID of the transit gateway route table.</p><br>
8    ///   - [`transit_gateway_attachment_id(impl Into<String>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::transit_gateway_attachment_id) / [`set_transit_gateway_attachment_id(Option<String>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::set_transit_gateway_attachment_id):<br>required: **false**<br><p>The ID of the attachment.</p><br>
9    ///   - [`blackhole(bool)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::blackhole) / [`set_blackhole(Option<bool>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::set_blackhole):<br>required: **false**<br><p>Indicates whether to drop traffic that matches this route.</p><br>
10    ///   - [`dry_run(bool)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::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 [`CreateTransitGatewayRouteOutput`](crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteOutput) with field(s):
12    ///   - [`route(Option<TransitGatewayRoute>)`](crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteOutput::route): <p>Information about the route.</p>
13    /// - On failure, responds with [`SdkError<CreateTransitGatewayRouteError>`](crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError)
14    pub fn create_transit_gateway_route(&self) -> crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder {
15        crate::operation::create_transit_gateway_route::builders::CreateTransitGatewayRouteFluentBuilder::new(self.handle.clone())
16    }
17}