VPCLattice / Client / list_service_networks

list_service_networks#

VPCLattice.Client.list_service_networks(**kwargs)#

Lists the service networks owned by or shared with this account. The account ID in the ARN shows 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',
            'numberOfAssociatedResourceConfigurations': 123,
            '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, 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, in ISO-8601 format.

        • name (string) –

          The name of the service network.

        • numberOfAssociatedResourceConfigurations (integer) –

          The number of resource configurations associated with a 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