CmdID / aws / aws vpc-lattice
aws vpc-lattice list-listeners
Lists the listeners for the specified service. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list service listeners
The following list-listeners example lists the listeners for the specified service.
aws vpc-lattice list-listeners --service-identifier svc-0285b53b2eEXAMPLEIdentify--service-identifierThe ID or ARN of the service.Its output
{
"items": [
{
"arn": "arn:aws:vpc-lattice:us-west-2:123456789012:service/svc-0285b53b2eEXAMPLE/listener/listener-0ccf55918cEXAMPLE",
"createdAt": "2023-05-07T05:08:45.192Z",
"id": "listener-0ccf55918cEXAMPLE",
"lastUpdatedAt": "2023-05-07T05:08:45.192Z",
"name": "http-80",
"port": 80,
"protocol": "HTTP"
}
]
}For more information, see Define routing in the Amazon VPC Lattice User Guide.
Options
--max-resultsThe maximum number of results to return.--next-tokenA pagination token for the next page of results.--service-identifierThe ID or ARN of the service.