Skip to content

get_connection_group_by_routing_endpoint async

get_connection_group_by_routing_endpoint(
    routing_endpoint: string,
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
) -> GetConnectionGroupByRoutingEndpointResult

Gets information about a connection group by using the endpoint that you specify.

Parameters:

  • routing_endpoint (string) –

    The routing endpoint for the target connection group, such as d111111abcdef8.cloudfront.net.

Raises:

Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
async def get_connection_group_by_routing_endpoint(
    self,
    routing_endpoint: "capo_cloudfront.types.string.string",
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
) -> "capo_cloudfront.types.get_connection_group_by_routing_endpoint_result.GetConnectionGroupByRoutingEndpointResult":
    """<p>Gets information about a connection group by using the endpoint that you specify.</p>

    Args:
        routing_endpoint: <p>The routing endpoint for the target connection group, such as d111111abcdef8.cloudfront.net.</p>

    Raises:
        capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
        capo_cloudfront.errors.entity_not_found.EntityNotFound: <p>The entity was not found.</p>
        capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudfront.types.get_connection_group_by_routing_endpoint_request.GetConnectionGroupByRoutingEndpointRequest]",
    ) -> AsyncOperationResponse[
        "capo_cloudfront.types.get_connection_group_by_routing_endpoint_result.GetConnectionGroupByRoutingEndpointResult"
    ]:
        import capo_cloudfront._operations.cloudfront2020_05_31.get_connection_group_by_routing_endpoint

        (
            output,
            http_response,
        ) = await capo_cloudfront._operations.cloudfront2020_05_31.get_connection_group_by_routing_endpoint.async_get_connection_group_by_routing_endpoint(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConnectionGroupByRoutingEndpoint")
    )
    input_: capo_cloudfront.types.get_connection_group_by_routing_endpoint_request.GetConnectionGroupByRoutingEndpointRequest = {
        "routing_endpoint": routing_endpoint
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output