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 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 then 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 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 isDELETE_IN_PROGRESS
, there is no change in the status.
Exceptions