amazonka-ec2-0.3.6.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

dsgDryRun :: Lens' DeleteSecurityGroup (Maybe Bool) Source

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 is UnauthorizedOperation.

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