amazonka-ec2-0.3.1: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteSecurityGroup

Contents

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 InUse in EC2-Classic or DependencyViolation in EC2-VPC.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteSecurityGroup.html

Synopsis

Request

Request constructor

deleteSecurityGroup :: DeleteSecurityGroup Source

DeleteSecurityGroup constructor.

The fields accessible through corresponding lenses are:

Request lenses

dsgGroupId :: Lens' DeleteSecurityGroup (Maybe Text) Source

The ID of the security group. Required for a nondefault VPC.

dsgGroupName :: Lens' DeleteSecurityGroup (Maybe Text) Source

EC2-Classic, default VPC
The name of the security group. You can specify either the security group name or the security group ID.

Response

Response constructor