VPCLattice / Client / list_service_network_vpc_associations

list_service_network_vpc_associations#

VPCLattice.Client.list_service_network_vpc_associations(**kwargs)#

Lists the service network and VPC associations. You can filter the list either by VPC or service network. You must provide either the service network identifier or the VPC identifier.

See also: AWS API Documentation

Request Syntax

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

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

  • serviceNetworkIdentifier (string) – The ID or Amazon Resource Name (ARN) of the service network.

  • vpcIdentifier (string) – The ID or Amazon Resource Name (ARN) of the VPC.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'createdBy': 'string',
            'id': 'string',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'serviceNetworkArn': 'string',
            'serviceNetworkId': 'string',
            'serviceNetworkName': 'string',
            'status': 'CREATE_IN_PROGRESS'|'ACTIVE'|'UPDATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED'|'UPDATE_FAILED',
            'vpcId': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • items (list) –

      Information about the associations.

      • (dict) –

        Summary information about an association between a service network and a VPC.

        • arn (string) –

          The Amazon Resource Name (ARN) of the association.

        • createdAt (datetime) –

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

        • createdBy (string) –

          The account that created the association.

        • id (string) –

          The ID of the association.

        • lastUpdatedAt (datetime) –

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

        • serviceNetworkArn (string) –

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

        • serviceNetworkId (string) –

          The ID of the service network.

        • serviceNetworkName (string) –

          The name of the service network.

        • status (string) –

          The status.

        • vpcId (string) –

          The ID of the VPC.

    • 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