get_sse_connect_routes
async
¶
get_sse_connect_routes(
sse_connect_id: SseConnectId,
region_name: ExternalRegionCode,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
destination_filters: Optional[SseConnectRouteDestinationFilterMap] = None,
exact_cidr_matches: Optional[SseConnectRouteCidrMatchList] = None,
) -> GetSseConnectRoutesResponse
Lists the routes of an SSE connect in a Region. You can filter the routes by destination CIDR block or by route destination. Results are paginated. Use the NextToken parameter to retrieve additional results.
Parameters:
-
sse_connect_id(SseConnectId) –The ID of the SSE connect.
-
region_name(ExternalRegionCode) –The Region to return routes for. The Region must be one of the Regions of the SSE connect or a Region where the SSE connect has an attachment.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return.
-
next_token(Optional[NextToken], default:None) –The token for the next page of results.
-
destination_filters(Optional[SseConnectRouteDestinationFilterMap], default:None) –Filters the routes by route destination. A route matches a filter if any of its destinations has one of the filter values. If you specify more than one filter, a route must match all of them. The following filters are supported:
-
sse-connect-transit-gateway-attachment-id– The ID of an SSE connect transit gateway attachment. -
sse-connect-core-network-attachment-id– The ID of an SSE connect core network attachment. -
sse-region– The Region of the SSE provider destination. -
sse-vendor– The SSE provider of the destination. -
sse-route-type– The type of SSE provider route,DEFAULTorSNAT.
-
-
exact_cidr_matches(Optional[SseConnectRouteCidrMatchList], default:None) –Returns only the routes whose destination CIDR block exactly matches one of these CIDR blocks.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To get the routes of an SSE connect The following example returns the routes of an SSE connect in aa-example-1. Traffic from the attached network uses the default route to reach the SSE provider. Traffic from the SSE provider uses the 10.0.0.0/16 route to reach the attached transit gateway.
>>> await client.get_sse_connect_routes(sse_connect_id='sse-connect-1234567890abcdef0', region_name='aa-example-1')
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 | |