disassociate_security_group_vpc
async
¶
disassociate_security_group_vpc(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
group_id: Optional[DisassociateSecurityGroupVpcSecurityGroupId] = None,
vpc_id: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DisassociateSecurityGroupVpcResult
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.
Parameters:
-
group_id(Optional[DisassociateSecurityGroupVpcSecurityGroupId], default:None) –A security group ID.
-
vpc_id(Optional[String], default:None) –A VPC ID.
-
dry_run(Optional[Boolean], default:None) –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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
40931 40932 40933 40934 40935 40936 40937 40938 40939 40940 40941 40942 40943 40944 40945 40946 40947 40948 40949 40950 40951 40952 40953 40954 40955 40956 40957 40958 40959 40960 40961 40962 40963 40964 40965 40966 40967 40968 40969 40970 40971 40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 | |