disassociate_security_group_vpc
¶
disassociate_security_group_vpc(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
40387 40388 40389 40390 40391 40392 40393 40394 40395 40396 40397 40398 40399 40400 40401 40402 40403 40404 40405 40406 40407 40408 40409 40410 40411 40412 40413 40414 40415 40416 40417 40418 40419 40420 40421 40422 40423 40424 40425 40426 40427 40428 40429 40430 40431 40432 40433 40434 40435 40436 40437 40438 40439 | |