Skip to content

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, DEFAULT or SNAT.

  • exact_cidr_matches (Optional[SseConnectRouteCidrMatchList], default: None ) –

    Returns only the routes whose destination CIDR block exactly matches one of these CIDR blocks.

Raises:

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
def get_sse_connect_routes(
    self,
    sse_connect_id: "capo_networkmanager.types.sse_connect_id.SseConnectId",
    region_name: "capo_networkmanager.types.external_region_code.ExternalRegionCode",
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    max_results: Optional[
        "capo_networkmanager.types.max_results.MaxResults"
    ] = None,
    next_token: Optional["capo_networkmanager.types.next_token.NextToken"] = None,
    destination_filters: Optional[
        "capo_networkmanager.types.sse_connect_route_destination_filter_map.SseConnectRouteDestinationFilterMap"
    ] = None,
    exact_cidr_matches: Optional[
        "capo_networkmanager.types.sse_connect_route_cidr_match_list.SseConnectRouteCidrMatchList"
    ] = None,
) -> "capo_networkmanager.types.get_sse_connect_routes_response.GetSseConnectRoutesResponse":
    """<p>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 <code>NextToken</code> parameter to retrieve additional results.</p>

    Args:
        sse_connect_id: <p>The ID of the SSE connect.</p>
        region_name: <p>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.</p>
        max_results: <p>The maximum number of results to return.</p>
        next_token: <p>The token for the next page of results.</p>
        destination_filters: <p>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:</p> <ul> <li> <p> <code>sse-connect-transit-gateway-attachment-id</code> – The ID of an SSE connect transit gateway attachment.</p> </li> <li> <p> <code>sse-connect-core-network-attachment-id</code> – The ID of an SSE connect core network attachment.</p> </li> <li> <p> <code>sse-region</code> – The Region of the SSE provider destination.</p> </li> <li> <p> <code>sse-vendor</code> – The SSE provider of the destination.</p> </li> <li> <p> <code>sse-route-type</code> – The type of SSE provider route, <code>DEFAULT</code> or <code>SNAT</code>.</p> </li> </ul>
        exact_cidr_matches: <p>Returns only the routes whose destination CIDR block exactly matches one of these CIDR blocks.</p>

    Raises:
        capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_networkmanager.errors.internal_server_exception.InternalServerException: <p>The request has failed due to an internal error.</p>
        capo_networkmanager.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
        capo_networkmanager.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_networkmanager.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints.</p>
        capo_networkmanager.errors.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')
    """

    def _handler(
        req: "OperationRequest[capo_networkmanager.types.get_sse_connect_routes_request.GetSseConnectRoutesRequest]",
    ) -> OperationResponse[
        "capo_networkmanager.types.get_sse_connect_routes_response.GetSseConnectRoutesResponse"
    ]:
        import capo_networkmanager._operations.network_manager.get_sse_connect_routes

        output, http_response = (
            capo_networkmanager._operations.network_manager.get_sse_connect_routes.get_sse_connect_routes(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetSseConnectRoutes")
    )
    input_: capo_networkmanager.types.get_sse_connect_routes_request.GetSseConnectRoutesRequest = {
        "sse_connect_id": sse_connect_id,
        "region_name": region_name,
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if destination_filters is not None:
        input_["destination_filters"] = destination_filters
    if exact_cidr_matches is not None:
        input_["exact_cidr_matches"] = exact_cidr_matches

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output