aws_sdk_ec2/client/export_transit_gateway_routes.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 [`ExportTransitGatewayRoutes`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`transit_gateway_route_table_id(impl Into<String>)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::transit_gateway_route_table_id) / [`set_transit_gateway_route_table_id(Option<String>)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::set_transit_gateway_route_table_id):<br>required: **true**<br><p>The ID of the route table.</p><br>
7 /// - [`filters(Filter)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters. The possible values are:</p> <ul> <li> <p><code>attachment.transit-gateway-attachment-id</code> - The id of the transit gateway attachment.</p></li> <li> <p><code>attachment.resource-id</code> - The resource id of the transit gateway attachment.</p></li> <li> <p><code>route-search.exact-match</code> - The exact match of the specified filter.</p></li> <li> <p><code>route-search.longest-prefix-match</code> - The longest prefix that matches the route.</p></li> <li> <p><code>route-search.subnet-of-match</code> - The routes with a subnet that match the specified CIDR filter.</p></li> <li> <p><code>route-search.supernet-of-match</code> - The routes with a CIDR that encompass the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your route table and you specify supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29.</p></li> <li> <p><code>state</code> - The state of the route (<code>active</code> | <code>blackhole</code>).</p></li> <li> <p><code>transit-gateway-route-destination-cidr-block</code> - The CIDR range.</p></li> <li> <p><code>type</code> - The type of route (<code>propagated</code> | <code>static</code>).</p></li> </ul><br>
8 /// - [`s3_bucket(impl Into<String>)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::s3_bucket) / [`set_s3_bucket(Option<String>)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::set_s3_bucket):<br>required: **true**<br><p>The name of the S3 bucket.</p><br>
9 /// - [`dry_run(bool)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::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>
10 /// - On success, responds with [`ExportTransitGatewayRoutesOutput`](crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesOutput) with field(s):
11 /// - [`s3_location(Option<String>)`](crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesOutput::s3_location): <p>The URL of the exported file in Amazon S3. For example, s3://<i>bucket_name</i>/VPCTransitGateway/TransitGatewayRouteTables/<i>file_name</i>.</p>
12 /// - On failure, responds with [`SdkError<ExportTransitGatewayRoutesError>`](crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError)
13 pub fn export_transit_gateway_routes(
14 &self,
15 ) -> crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder {
16 crate::operation::export_transit_gateway_routes::builders::ExportTransitGatewayRoutesFluentBuilder::new(self.handle.clone())
17 }
18}