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

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

Contains the parameters for DeleteTags.

See: deleteTags smart constructor.

Instances

Eq DeleteTags Source # 
Data DeleteTags Source # 

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 Source # 
Show DeleteTags Source # 
Generic DeleteTags Source # 

Associated Types

type Rep DeleteTags :: * -> * #

Hashable DeleteTags Source # 
NFData DeleteTags Source # 

Methods

rnf :: DeleteTags -> () #

AWSRequest DeleteTags Source # 
ToPath DeleteTags Source # 
ToHeaders DeleteTags Source # 

Methods

toHeaders :: DeleteTags -> [Header] #

ToQuery DeleteTags Source # 
type Rep DeleteTags Source # 
type Rep DeleteTags = D1 (MetaData "DeleteTags" "Network.AWS.EC2.DeleteTags" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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 Source # 

Request Lenses

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

dtsTags :: Lens' DeleteTags [Tag] Source #

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

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

Destructuring the Response

deleteTagsResponse :: DeleteTagsResponse Source #

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

data DeleteTagsResponse Source #

See: deleteTagsResponse smart constructor.

Instances

Eq DeleteTagsResponse Source # 
Data DeleteTagsResponse Source # 

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

Methods

rnf :: DeleteTagsResponse -> () #

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