list_gateway_routes
async
¶
list_gateway_routes(
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
gateway: Optional[String] = None,
cluster: Optional[String] = None,
service: Optional[String] = None,
service_container_port_name: Optional[String] = None,
status: Optional[GatewayRouteStatusList] = None,
max_results: Optional[BoxedInteger] = None,
next_token: Optional[String] = None,
) -> ListGatewayRoutesResponse
Returns a list of gateway routes. A gateway route represents the association between a service and a gateway and the service-specific infrastructure the gateway manages for it. You can filter the results by gateway, cluster, service, container port name, and status. The results are paginated. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
gateway(Optional[String], default:None) –The name or Amazon Resource Name (ARN) of a gateway to filter the results by.
-
cluster(Optional[String], default:None) –The name or Amazon Resource Name (ARN) of a cluster to filter the results by.
-
service(Optional[String], default:None) –The name or Amazon Resource Name (ARN) of a service to filter the results by. Because services can span clusters, a service name isn't necessarily unique and can match multiple services.
-
service_container_port_name(Optional[String], default:None) –The name of a task definition container port to filter the results by.
-
status(Optional[GatewayRouteStatusList], default:None) –The gateway route status to filter the results by.
-
max_results(Optional[BoxedInteger], default:None) –The maximum number of results that the operation returns in a single page. The default is 100.
-
next_token(Optional[String], default:None) –The
nextTokenvalue returned from a previous paginated request.
Raises:
-
AccessDeniedException–You don't have authorization to perform the requested action.
-
ClientException–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.
-
GatewayNotFoundException–The specified gateway wasn't found. Check that the gateway name or ARN is correct and that the gateway exists in your account and Region.
-
InvalidParameterException–The specified parameter isn't valid. Review the available parameters for the API request.
For more information about service event errors, see Amazon ECS service event messages.
-
ServerException–These errors are usually caused by a server issue.
-
UnsupportedFeatureException–The specified task isn't supported in this Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list the gateway routes for a gateway This example lists the gateway routes for the gateway named my-gateway in the cluster named my-cluster.
Source code in docs_src/capo_ecs/_services/async_ecs.py
4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 | |