CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

3 in the AWS CLI reference
--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.