View definition

(*EC2).DeleteSecurityGroup

Defined in github.com/aws/aws-sdk-go/service/ec2/api.go

Description

Deletes a security group.

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.