Skip to content

search_local_gateway_routes

Operation

search_local_gateway_routes

search_local_gateway_routes(request: SearchLocalGatewayRoutesInput | SearchLocalGatewayRoutesInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[SearchLocalGatewayRoutesInputDict]) -> SearchLocalGatewayRoutesOutput

Searches for routes in the specified local gateway route table.

Parameters:

Name Type Description Default
request SearchLocalGatewayRoutesInput | SearchLocalGatewayRoutesInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[SearchLocalGatewayRoutesInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
SearchLocalGatewayRoutesOutput

An instance of SearchLocalGatewayRoutesOutput.

search_local_gateway_routes async

search_local_gateway_routes(request: SearchLocalGatewayRoutesInput | SearchLocalGatewayRoutesInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[SearchLocalGatewayRoutesInputDict]) -> SearchLocalGatewayRoutesOutput

Searches for routes in the specified local gateway route table.

Parameters:

Name Type Description Default
request SearchLocalGatewayRoutesInput | SearchLocalGatewayRoutesInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[SearchLocalGatewayRoutesInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
SearchLocalGatewayRoutesOutput

An instance of SearchLocalGatewayRoutesOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

SearchLocalGatewayRoutesInputDict

Bases: TypedDict

Dictionary form of SearchLocalGatewayRoutesInput.

Attributes

dry_run instance-attribute
dry_run: bool | 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 is UnauthorizedOperation.

filters instance-attribute
filters: Sequence[Filter | FilterDict] | 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 specify supernet-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.

local_gateway_route_table_id instance-attribute
local_gateway_route_table_id: Required[str]

The ID of the local gateway route table.

max_results instance-attribute
max_results: int | None

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

next_token instance-attribute
next_token: str | None

The token for the next page of results.

SearchLocalGatewayRoutesInput dataclass

Bases: _SerdeShape

Dataclass for SearchLocalGatewayRoutesInput structure.

Attributes

dry_run class-attribute instance-attribute
dry_run: bool | 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 is UnauthorizedOperation.

filters class-attribute instance-attribute
filters: list[Filter] | 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 specify supernet-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.

local_gateway_route_table_id class-attribute instance-attribute
local_gateway_route_table_id: str | None = ...

The ID of the local gateway route table.

max_results class-attribute instance-attribute
max_results: int | None = ...

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

next_token class-attribute instance-attribute
next_token: str | None = ...

The token for the next page of results.

Output

SearchLocalGatewayRoutesOutput dataclass

Bases: _SerdeShape

Dataclass for SearchLocalGatewayRoutesOutput structure.

Attributes

next_token class-attribute instance-attribute
next_token: str | None = ...

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

routes class-attribute instance-attribute
routes: list[LocalGatewayRoute] | None = ...

Information about the routes.