VPCLattice / Client / list_listeners

list_listeners#

VPCLattice.Client.list_listeners(**kwargs)#

Lists the listeners for the specified service.

See also: AWS API Documentation

Request Syntax

response = client.list_listeners(
    maxResults=123,
    nextToken='string',
    serviceIdentifier='string'
)
Parameters:
  • maxResults (integer) – The maximum number of results to return.

  • nextToken (string) – A pagination token for the next page of results.

  • serviceIdentifier (string) –

    [REQUIRED]

    The ID or Amazon Resource Name (ARN) of the service.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'id': 'string',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'name': 'string',
            'port': 123,
            'protocol': 'HTTP'|'HTTPS'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • items (list) –

      Information about the listeners.

      • (dict) –

        Summary information about a listener.

        • arn (string) –

          The Amazon Resource Name (ARN) of the listener.

        • createdAt (datetime) –

          The date and time that the listener was created, specified in ISO-8601 format.

        • id (string) –

          The ID of the listener.

        • lastUpdatedAt (datetime) –

          The date and time that the listener was last updated, specified in ISO-8601 format.

        • name (string) –

          The name of the listener.

        • port (integer) –

          The listener port.

        • protocol (string) –

          The listener protocol.

    • nextToken (string) –

      If there are additional results, a pagination token for the next page of results.

Exceptions

  • VPCLattice.Client.exceptions.ValidationException

  • VPCLattice.Client.exceptions.AccessDeniedException

  • VPCLattice.Client.exceptions.ThrottlingException

  • VPCLattice.Client.exceptions.ResourceNotFoundException

  • VPCLattice.Client.exceptions.InternalServerException