VPCLattice / Client / list_service_networks

list_service_networks#

VPCLattice.Client.list_service_networks(**kwargs)#

Lists the service networks owned by the caller account or shared with the caller account. Also includes the account ID in the ARN to show which account owns the service network.

See also: AWS API Documentation

Request Syntax

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

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

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'id': 'string',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'name': 'string',
            'numberOfAssociatedServices': 123,
            'numberOfAssociatedVPCs': 123
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • items (list) –

      Information about the service networks.

      • (dict) –

        Summary information about a service network.

        • arn (string) –

          The Amazon Resource Name (ARN) of the service network.

        • createdAt (datetime) –

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

        • id (string) –

          The ID of the service network.

        • lastUpdatedAt (datetime) –

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

        • name (string) –

          The name of the service network.

        • numberOfAssociatedServices (integer) –

          The number of services associated with the service network.

        • numberOfAssociatedVPCs (integer) –

          The number of VPCs associated with the service network.

    • 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.InternalServerException