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

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Data DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Show DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Generic DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Associated Types

type Rep DeleteSecurityGroup :: Type -> Type #

Hashable DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

AWSRequest DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Associated Types

type Rs DeleteSecurityGroup :: Type #

ToHeaders DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

ToPath DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

ToQuery DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

NFData DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Methods

rnf :: DeleteSecurityGroup -> () #

type Rep DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

type Rep DeleteSecurityGroup = D1 (MetaData "DeleteSecurityGroup" "Network.AWS.EC2.DeleteSecurityGroup" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteSecurityGroup'" PrefixI True) (S1 (MetaSel (Just "_dsgGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dsgGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Rs DeleteSecurityGroup Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Data DeleteSecurityGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Show DeleteSecurityGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Generic DeleteSecurityGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

Associated Types

type Rep DeleteSecurityGroupResponse :: Type -> Type #

NFData DeleteSecurityGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

type Rep DeleteSecurityGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteSecurityGroup

type Rep DeleteSecurityGroupResponse = D1 (MetaData "DeleteSecurityGroupResponse" "Network.AWS.EC2.DeleteSecurityGroup" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteSecurityGroupResponse'" PrefixI False) (U1 :: Type -> Type))