EC2 / Client / disassociate_security_group_vpc
disassociate_security_group_vpc#
- EC2.Client.disassociate_security_group_vpc(**kwargs)#
Disassociates a security group from a VPC. You cannot disassociate the security group if any Elastic network interfaces in the associated VPC are still associated with the security group. Note that the disassociation is asynchronous and you can check the status of the request with DescribeSecurityGroupVpcAssociations.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_security_group_vpc( GroupId='string', VpcId='string', DryRun=True|False )
- Parameters:
GroupId (string) –
[REQUIRED]
A security group ID.
VpcId (string) –
[REQUIRED]
A VPC ID.
DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.
- Return type:
dict
- Returns:
Response Syntax
{ 'State': 'associating'|'associated'|'association-failed'|'disassociating'|'disassociated'|'disassociation-failed' }
Response Structure
(dict) –
State (string) –
The state of the disassociation.