EC2 / Paginator / SearchLocalGatewayRoutes
SearchLocalGatewayRoutes#
- class EC2.Paginator.SearchLocalGatewayRoutes#
paginator = client.get_paginator('search_local_gateway_routes')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
EC2.Client.search_local_gateway_routes()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( LocalGatewayRouteTableId='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], DryRun=True|False, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
LocalGatewayRouteTableId (string) –
[REQUIRED]
The ID of the local gateway route table.
Filters (list) –
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-match
as 10.0.1.0/30, then the result returns 10.0.1.0/29.state
- The state of the route.type
- The route type.
(dict) –
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
If you specify multiple filters, the filters are joined with an
AND
, and the request returns only results that match all of the specified filters.Name (string) –
The name of the filter. Filter names are case-sensitive.
Values (list) –
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an
OR
, and the request returns all results that match any of the specified values.(string) –
DryRun (boolean) – 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
.PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Routes': [ { 'DestinationCidrBlock': 'string', 'LocalGatewayVirtualInterfaceGroupId': 'string', 'Type': 'static'|'propagated', 'State': 'pending'|'active'|'blackhole'|'deleting'|'deleted', 'LocalGatewayRouteTableId': 'string', 'LocalGatewayRouteTableArn': 'string', 'OwnerId': 'string', 'SubnetId': 'string', 'CoipPoolId': 'string', 'NetworkInterfaceId': 'string', 'DestinationPrefixListId': 'string' }, ], }
Response Structure
(dict) –
Routes (list) –
Information about the routes.
(dict) –
Describes a route for a local gateway route table.
DestinationCidrBlock (string) –
The CIDR block used for destination matches.
LocalGatewayVirtualInterfaceGroupId (string) –
The ID of the virtual interface group.
Type (string) –
The route type.
State (string) –
The state of the route.
LocalGatewayRouteTableId (string) –
The ID of the local gateway route table.
LocalGatewayRouteTableArn (string) –
The Amazon Resource Name (ARN) of the local gateway route table.
OwnerId (string) –
The ID of the Amazon Web Services account that owns the local gateway route.
SubnetId (string) –
The ID of the subnet.
CoipPoolId (string) –
The ID of the customer-owned address pool.
NetworkInterfaceId (string) –
The ID of the network interface.
DestinationPrefixListId (string) –
The ID of the prefix list.