AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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 InvalidGroup.InUse
in EC2-Classic or DependencyViolation
in EC2-VPC.
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: (assembly version)
public abstract DeleteSecurityGroupResponse DeleteSecurityGroup( DeleteSecurityGroupRequest request )
Container for the necessary parameters to execute the DeleteSecurityGroup service method.
.NET Framework:
Supported in: 4.5, 4.0, 3.5