If you attempt to delete a security group that is associated with an instance, or
is referenced by another security group, the operation fails with
in EC2-Classic or
DependencyViolation in EC2-VPC.
Version: (assembly version)
public abstract DeleteSecurityGroupResponse DeleteSecurityGroup( DeleteSecurityGroupRequest request )
Container for the necessary parameters to execute the DeleteSecurityGroup service method.
Supported in: 4.5, 4.0, 3.5