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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 Source #

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 Source #

Contains the parameters for DeleteSecurityGroup.

See: deleteSecurityGroup smart constructor.

Instances

Eq DeleteSecurityGroup Source # 
Data DeleteSecurityGroup Source # 

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 Source # 
Show DeleteSecurityGroup Source # 
Generic DeleteSecurityGroup Source # 
Hashable DeleteSecurityGroup Source # 
NFData DeleteSecurityGroup Source # 

Methods

rnf :: DeleteSecurityGroup -> () #

AWSRequest DeleteSecurityGroup Source # 
ToQuery DeleteSecurityGroup Source # 
ToPath DeleteSecurityGroup Source # 
ToHeaders DeleteSecurityGroup Source # 
type Rep DeleteSecurityGroup Source # 
type Rep DeleteSecurityGroup = D1 (MetaData "DeleteSecurityGroup" "Network.AWS.EC2.DeleteSecurityGroup" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" 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 Source # 

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.

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 .

Destructuring the Response

deleteSecurityGroupResponse :: DeleteSecurityGroupResponse Source #

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

data DeleteSecurityGroupResponse Source #

See: deleteSecurityGroupResponse smart constructor.

Instances

Eq DeleteSecurityGroupResponse Source # 
Data DeleteSecurityGroupResponse Source # 

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 Source # 
Show DeleteSecurityGroupResponse Source # 
Generic DeleteSecurityGroupResponse Source # 
NFData DeleteSecurityGroupResponse Source # 
type Rep DeleteSecurityGroupResponse Source # 
type Rep DeleteSecurityGroupResponse = D1 (MetaData "DeleteSecurityGroupResponse" "Network.AWS.EC2.DeleteSecurityGroup" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DeleteSecurityGroupResponse'" PrefixI False) U1)