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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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 InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

Synopsis

Creating a Request

deleteSecurityGroup :: DeleteSecurityGroup #

Creates a value of DeleteSecurityGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dsgGroupId - The ID of the security group. Required for a nondefault VPC.
  • dsgGroupName - [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
  • dsgDryRun - 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 .

data DeleteSecurityGroup #

Contains the parameters for DeleteSecurityGroup.

See: deleteSecurityGroup smart constructor.

Instances

Eq DeleteSecurityGroup # 
Data DeleteSecurityGroup # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteSecurityGroup -> c DeleteSecurityGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteSecurityGroup #

toConstr :: DeleteSecurityGroup -> Constr #

dataTypeOf :: DeleteSecurityGroup -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteSecurityGroup) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteSecurityGroup) #

gmapT :: (forall b. Data b => b -> b) -> DeleteSecurityGroup -> DeleteSecurityGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSecurityGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSecurityGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteSecurityGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteSecurityGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteSecurityGroup -> m DeleteSecurityGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSecurityGroup -> m DeleteSecurityGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSecurityGroup -> m DeleteSecurityGroup #

Read DeleteSecurityGroup # 
Show DeleteSecurityGroup # 
Generic DeleteSecurityGroup # 
Hashable DeleteSecurityGroup # 
NFData DeleteSecurityGroup # 

Methods

rnf :: DeleteSecurityGroup -> () #

AWSRequest DeleteSecurityGroup # 
ToQuery DeleteSecurityGroup # 
ToPath DeleteSecurityGroup # 
ToHeaders DeleteSecurityGroup # 
type Rep DeleteSecurityGroup # 
type Rep DeleteSecurityGroup = D1 (MetaData "DeleteSecurityGroup" "Network.AWS.EC2.DeleteSecurityGroup" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteSecurityGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsgGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dsgGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dsgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Rs DeleteSecurityGroup # 

Request Lenses

dsgGroupId :: Lens' DeleteSecurityGroup (Maybe Text) #

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

dsgGroupName :: Lens' DeleteSecurityGroup (Maybe Text) #

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

dsgDryRun :: Lens' DeleteSecurityGroup (Maybe Bool) #

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 .

Destructuring the Response

deleteSecurityGroupResponse :: DeleteSecurityGroupResponse #

Creates a value of DeleteSecurityGroupResponse with the minimum fields required to make a request.

data DeleteSecurityGroupResponse #

See: deleteSecurityGroupResponse smart constructor.

Instances

Eq DeleteSecurityGroupResponse # 
Data DeleteSecurityGroupResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteSecurityGroupResponse -> c DeleteSecurityGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteSecurityGroupResponse #

toConstr :: DeleteSecurityGroupResponse -> Constr #

dataTypeOf :: DeleteSecurityGroupResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteSecurityGroupResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteSecurityGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteSecurityGroupResponse -> DeleteSecurityGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSecurityGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSecurityGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteSecurityGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteSecurityGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteSecurityGroupResponse -> m DeleteSecurityGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSecurityGroupResponse -> m DeleteSecurityGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSecurityGroupResponse -> m DeleteSecurityGroupResponse #

Read DeleteSecurityGroupResponse # 
Show DeleteSecurityGroupResponse # 
Generic DeleteSecurityGroupResponse # 
NFData DeleteSecurityGroupResponse # 
type Rep DeleteSecurityGroupResponse # 
type Rep DeleteSecurityGroupResponse = D1 (MetaData "DeleteSecurityGroupResponse" "Network.AWS.EC2.DeleteSecurityGroup" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteSecurityGroupResponse'" PrefixI False) U1)