get_sse_connect_routes
¶
get_sse_connect_routes(
sse_connect_id: SseConnectId,
region_name: ExternalRegionCode,
*,
config_overrides: Optional[NetworkManagerClientConfig] = 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.
>>> client.get_sse_connect_routes(sse_connect_id='sse-connect-1234567890abcdef0', region_name='aa-example-1')
Source code in docs_src/capo_networkmanager/_services/network_manager.py
5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 | |