VPCLattice / Client / update_service_network_vpc_association

update_service_network_vpc_association#

VPCLattice.Client.update_service_network_vpc_association(**kwargs)#

Updates the service network and VPC association. If you add a security group to the service network and VPC association, the association must continue to always have at least one security group. You can add or edit security groups at any time. However, to remove all security groups, you must first delete the association and recreate it without security groups.

See also: AWS API Documentation

Request Syntax

response = client.update_service_network_vpc_association(
    securityGroupIds=[
        'string',
    ],
    serviceNetworkVpcAssociationIdentifier='string'
)
Parameters:
  • securityGroupIds (list) –

    [REQUIRED]

    The IDs of the security groups.

    • (string) –

  • serviceNetworkVpcAssociationIdentifier (string) –

    [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'arn': 'string',
    'createdBy': 'string',
    'id': 'string',
    'securityGroupIds': [
        'string',
    ],
    'status': 'CREATE_IN_PROGRESS'|'ACTIVE'|'UPDATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED'|'UPDATE_FAILED'
}

Response Structure

  • (dict) –

    • arn (string) –

      The Amazon Resource Name (ARN) of the association.

    • createdBy (string) –

      The account that created the association.

    • id (string) –

      The ID of the association.

    • securityGroupIds (list) –

      The IDs of the security groups.

      • (string) –

    • status (string) –

      The status. You can retry the operation if the status is DELETE_FAILED. However, if you retry it while the status is DELETE_IN_PROGRESS, there is no change in the status.

Exceptions

  • VPCLattice.Client.exceptions.ValidationException

  • VPCLattice.Client.exceptions.AccessDeniedException

  • VPCLattice.Client.exceptions.ThrottlingException

  • VPCLattice.Client.exceptions.ResourceNotFoundException

  • VPCLattice.Client.exceptions.ConflictException

  • VPCLattice.Client.exceptions.InternalServerException