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