aws_sdk_ec2/client/
search_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 [`SearchTransitGatewayRoutes`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`transit_gateway_route_table_id(impl Into<String>)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::transit_gateway_route_table_id) / [`set_transit_gateway_route_table_id(Option<String>)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::set_transit_gateway_route_table_id):<br>required: **true**<br><p>The ID of the transit gateway route table.</p><br>
7    ///   - [`filters(Filter)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::set_filters):<br>required: **true**<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>attachment.resource-type</code> - The attachment resource type. Valid values are <code>vpc</code> | <code>vpn</code> | <code>direct-connect-gateway</code> | <code>peering</code> | <code>connect</code>.</p></li>  <li>   <p><code>prefix-list-id</code> - The ID of the prefix list.</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>type</code> - The type of route (<code>propagated</code> | <code>static</code>).</p></li> </ul><br>
8    ///   - [`max_results(i32)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of routes to return. If a value is not provided, the default is 1000.</p><br>
9    ///   - [`dry_run(bool)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::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 [`SearchTransitGatewayRoutesOutput`](crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesOutput) with field(s):
11    ///   - [`routes(Option<Vec::<TransitGatewayRoute>>)`](crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesOutput::routes): <p>Information about the routes.</p>
12    ///   - [`additional_routes_available(Option<bool>)`](crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesOutput::additional_routes_available): <p>Indicates whether there are additional routes available.</p>
13    /// - On failure, responds with [`SdkError<SearchTransitGatewayRoutesError>`](crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError)
14    pub fn search_transit_gateway_routes(
15        &self,
16    ) -> crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder {
17        crate::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder::new(self.handle.clone())
18    }
19}