list_gateway_routes
¶
list_gateway_routes(
*,
config_overrides: Optional[ECSClientConfig] = 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/ecs.py
4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 | |