Describes a gateway route, including its status, the service it routes traffic to, and the service-specific infrastructure, such as target groups and listener rules, that the gateway manages for it.
Parameters:
-
gateway_route_arn
(String)
–
The Amazon Resource Name (ARN) of the gateway route to describe.
Raises:
Examples:
To describe a gateway route
This example describes the specified gateway route, including the service URL and the load balancer resources that the gateway manages for the route.
>>> await client.describe_gateway_route(gateway_route_arn='arn:aws:ecs:us-east-1:123456789012:gateway-route/my-gateway/a1b2c3d4e5f6478890abcdef12345678/f0e1d2c3b4a5968778695a4b3c2d1e0f')
Source code in docs_src/capo_ecs/_services/async_ecs.py
| async def describe_gateway_route(
self,
gateway_route_arn: "capo_ecs.types.string.String",
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
) -> "capo_ecs.types.describe_gateway_route_response.DescribeGatewayRouteResponse":
"""<p>Describes a gateway route, including its status, the service it routes traffic to, and the service-specific infrastructure, such as target groups and listener rules, that the gateway manages for it.</p>
Args:
gateway_route_arn: <p>The Amazon Resource Name (ARN) of the gateway route to describe.</p>
Raises:
capo_ecs.errors.access_denied_exception.AccessDeniedException: <p>You don't have authorization to perform the requested action.</p>
capo_ecs.errors.client_exception.ClientException: <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
capo_ecs.errors.invalid_parameter_exception.InvalidParameterException: <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
capo_ecs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource wasn't found.</p>
capo_ecs.errors.server_exception.ServerException: <p>These errors are usually caused by a server issue.</p>
capo_ecs.errors.unsupported_feature_exception.UnsupportedFeatureException: <p>The specified task isn't supported in this Region.</p>
capo_ecs.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe a gateway route
This example describes the specified gateway route, including the service URL and the load balancer resources that the gateway manages for the route.
>>> await client.describe_gateway_route(gateway_route_arn='arn:aws:ecs:us-east-1:123456789012:gateway-route/my-gateway/a1b2c3d4e5f6478890abcdef12345678/f0e1d2c3b4a5968778695a4b3c2d1e0f')
"""
async def _handler(
req: "AsyncOperationRequest[capo_ecs.types.describe_gateway_route_request.DescribeGatewayRouteRequest]",
) -> AsyncOperationResponse[
"capo_ecs.types.describe_gateway_route_response.DescribeGatewayRouteResponse"
]:
import capo_ecs._operations.amazon_ec2_container_service_v20141113.describe_gateway_route
(
output,
http_response,
) = await capo_ecs._operations.amazon_ec2_container_service_v20141113.describe_gateway_route.async_describe_gateway_route(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeGatewayRoute")
)
input_: capo_ecs.types.describe_gateway_route_request.DescribeGatewayRouteRequest = {
"gateway_route_arn": gateway_route_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|