Skip to content

describe_custom_routing_endpoint_group async

describe_custom_routing_endpoint_group(
    endpoint_group_arn: GenericString,
    *,
    config_overrides: Optional[AsyncGlobalAcceleratorClientConfig] = None,
) -> DescribeCustomRoutingEndpointGroupResponse

Describe an endpoint group for a custom routing accelerator.

Parameters:

  • endpoint_group_arn (GenericString) –

    The Amazon Resource Name (ARN) of the endpoint group to describe.

Raises:

Source code in docs_src/capo_global_accelerator/_services/async_global_accelerator.py
async def describe_custom_routing_endpoint_group(
    self,
    endpoint_group_arn: "capo_global_accelerator.types.generic_string.GenericString",
    *,
    config_overrides: Optional[AsyncGlobalAcceleratorClientConfig] = None,
) -> "capo_global_accelerator.types.describe_custom_routing_endpoint_group_response.DescribeCustomRoutingEndpointGroupResponse":
    """<p>Describe an endpoint group for a custom routing accelerator. </p>

    Args:
        endpoint_group_arn: <p>The Amazon Resource Name (ARN) of the endpoint group to describe.</p>

    Raises:
        capo_global_accelerator.errors.endpoint_group_not_found_exception.EndpointGroupNotFoundException: <p>The endpoint group that you specified doesn't exist.</p>
        capo_global_accelerator.errors.internal_service_error_exception.InternalServiceErrorException: <p>There was an internal error for Global Accelerator.</p>
        capo_global_accelerator.errors.invalid_argument_exception.InvalidArgumentException: <p>An argument that you specified is invalid.</p>
        capo_global_accelerator.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_global_accelerator.types.describe_custom_routing_endpoint_group_request.DescribeCustomRoutingEndpointGroupRequest]",
    ) -> AsyncOperationResponse[
        "capo_global_accelerator.types.describe_custom_routing_endpoint_group_response.DescribeCustomRoutingEndpointGroupResponse"
    ]:
        import capo_global_accelerator._operations.global_accelerator_v20180706.describe_custom_routing_endpoint_group

        (
            output,
            http_response,
        ) = await capo_global_accelerator._operations.global_accelerator_v20180706.describe_custom_routing_endpoint_group.async_describe_custom_routing_endpoint_group(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeCustomRoutingEndpointGroup")
    )
    input_: capo_global_accelerator.types.describe_custom_routing_endpoint_group_request.DescribeCustomRoutingEndpointGroupRequest = {
        "endpoint_group_arn": endpoint_group_arn
    }

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