amazonka-resourcegroups-1.6.0: Amazon Resource Groups 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.ResourceGroups.Tag

Contents

Description

Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters.

Synopsis

Creating a Request

tag Source #

Arguments

:: Text

tagARN

-> Tag 

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

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

  • tagARN - The ARN of the resource to which to add tags.
  • tagTags - The tags to add to the specified resource. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.

data Tag Source #

See: tag smart constructor.

Instances

Eq Tag Source # 

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Data Tag Source # 

Methods

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

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

toConstr :: Tag -> Constr #

dataTypeOf :: Tag -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Tag Source # 
Show Tag Source # 

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Generic Tag Source # 

Associated Types

type Rep Tag :: * -> * #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Hashable Tag Source # 

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

ToJSON Tag Source # 
NFData Tag Source # 

Methods

rnf :: Tag -> () #

AWSRequest Tag Source # 

Associated Types

type Rs Tag :: * #

ToHeaders Tag Source # 

Methods

toHeaders :: Tag -> [Header] #

ToPath Tag Source # 

Methods

toPath :: Tag -> ByteString #

ToQuery Tag Source # 

Methods

toQuery :: Tag -> QueryString #

type Rep Tag Source # 
type Rep Tag = D1 * (MetaData "Tag" "Network.AWS.ResourceGroups.Tag" "amazonka-resourcegroups-1.6.0-BcTE97yO3xiNkTKZdYgRR" False) (C1 * (MetaCons "Tag'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_tagARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_tagTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Map Text Text)))))
type Rs Tag Source # 

Request Lenses

tagARN :: Lens' Tag Text Source #

The ARN of the resource to which to add tags.

tagTags :: Lens' Tag (HashMap Text Text) Source #

The tags to add to the specified resource. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.

Destructuring the Response

tagResponse Source #

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

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

data TagResponse Source #

See: tagResponse smart constructor.

Instances

Eq TagResponse Source # 
Data TagResponse Source # 

Methods

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

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

toConstr :: TagResponse -> Constr #

dataTypeOf :: TagResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResponse Source # 
Show TagResponse Source # 
Generic TagResponse Source # 

Associated Types

type Rep TagResponse :: * -> * #

NFData TagResponse Source # 

Methods

rnf :: TagResponse -> () #

type Rep TagResponse Source # 
type Rep TagResponse = D1 * (MetaData "TagResponse" "Network.AWS.ResourceGroups.Tag" "amazonka-resourcegroups-1.6.0-BcTE97yO3xiNkTKZdYgRR" False) (C1 * (MetaCons "TagResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_tagrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tagrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text)))) (S1 * (MetaSel (Just Symbol "_tagrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

tagrsARN :: Lens' TagResponse (Maybe Text) Source #

The ARN of the tagged resource.

tagrsTags :: Lens' TagResponse (HashMap Text Text) Source #

The tags that have been added to the specified resource.

tagrsResponseStatus :: Lens' TagResponse Int Source #

  • - | The response status code.