search_local_gateway_routes
async
¶
search_local_gateway_routes(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
local_gateway_route_table_id: Optional[LocalGatewayRoutetableId] = None,
filters: Optional[FilterList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> SearchLocalGatewayRoutesResult
Searches for routes in the specified local gateway route table.
Parameters:
-
local_gateway_route_table_id(Optional[LocalGatewayRoutetableId], default:None) –The ID of the local gateway route table.
-
filters(Optional[FilterList], default:None) –One or more filters.
-
prefix-list-id- The ID of the prefix list. -
route-search.exact-match- The exact match of the specified filter. -
route-search.longest-prefix-match- The longest prefix that matches the route. -
route-search.subnet-of-match- The routes with a subnet that match the specified CIDR filter. -
route-search.supernet-of-match- 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 specifysupernet-of-matchas 10.0.1.0/30, then the result returns 10.0.1.0/29. -
state- The state of the route. -
type- The route type.
-
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue. -
next_token(Optional[String], default:None) –The token for the next page of results.
-
dry_run(Optional[Boolean], default:None) –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
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
59845 59846 59847 59848 59849 59850 59851 59852 59853 59854 59855 59856 59857 59858 59859 59860 59861 59862 59863 59864 59865 59866 59867 59868 59869 59870 59871 59872 59873 59874 59875 59876 59877 59878 59879 59880 59881 59882 59883 59884 59885 59886 59887 59888 59889 59890 59891 59892 59893 59894 59895 59896 59897 59898 59899 59900 59901 59902 59903 59904 59905 59906 | |