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.DeleteTags

Contents

Description

Deletes the specified set of tags from the specified set of resources. This call is designed to follow a DescribeTags request.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

deleteTags :: DeleteTags #

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

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

  • dtsDryRun - 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 .
  • dtsTags - One or more tags to delete. If you omit the value parameter, we delete the tag regardless of its value. If you specify this parameter with an empty string as the value, we delete the key only if its value is an empty string.
  • dtsResources - The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

data DeleteTags #

Contains the parameters for DeleteTags.

See: deleteTags smart constructor.

Instances

Eq DeleteTags # 
Data DeleteTags # 

Methods

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

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

toConstr :: DeleteTags -> Constr #

dataTypeOf :: DeleteTags -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteTags # 
Show DeleteTags # 
Generic DeleteTags # 

Associated Types

type Rep DeleteTags :: * -> * #

Hashable DeleteTags # 
NFData DeleteTags # 

Methods

rnf :: DeleteTags -> () #

AWSRequest DeleteTags # 
ToQuery DeleteTags # 
ToPath DeleteTags # 
ToHeaders DeleteTags # 

Methods

toHeaders :: DeleteTags -> [Header] #

type Rep DeleteTags # 
type Rep DeleteTags = D1 (MetaData "DeleteTags" "Network.AWS.EC2.DeleteTags" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteTags'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dtsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dtsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag]))) (S1 (MetaSel (Just Symbol "_dtsResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))))
type Rs DeleteTags # 

Request Lenses

dtsDryRun :: Lens' DeleteTags (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 .

dtsTags :: Lens' DeleteTags [Tag] #

One or more tags to delete. If you omit the value parameter, we delete the tag regardless of its value. If you specify this parameter with an empty string as the value, we delete the key only if its value is an empty string.

dtsResources :: Lens' DeleteTags [Text] #

The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

Destructuring the Response

deleteTagsResponse :: DeleteTagsResponse #

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

data DeleteTagsResponse #

See: deleteTagsResponse smart constructor.

Instances

Eq DeleteTagsResponse # 
Data DeleteTagsResponse # 

Methods

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

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

toConstr :: DeleteTagsResponse -> Constr #

dataTypeOf :: DeleteTagsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteTagsResponse # 
Show DeleteTagsResponse # 
Generic DeleteTagsResponse # 
NFData DeleteTagsResponse # 

Methods

rnf :: DeleteTagsResponse -> () #

type Rep DeleteTagsResponse # 
type Rep DeleteTagsResponse = D1 (MetaData "DeleteTagsResponse" "Network.AWS.EC2.DeleteTags" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteTagsResponse'" PrefixI False) U1)