amazonka-elasticache-1.4.1: Amazon ElastiCache 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.ElastiCache.AddTagsToResource

Contents

Description

The AddTagsToResource action adds up to 10 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key and value are case-sensitive. Cost allocation tags can be used to categorize and track your AWS costs.

When you apply tags to your ElastiCache resources, AWS generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags in Amazon ElastiCache.

Synopsis

Creating a Request

addTagsToResource Source #

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

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

data AddTagsToResource Source #

Represents the input of an AddTagsToResource action.

See: addTagsToResource smart constructor.

Instances

Eq AddTagsToResource Source # 
Data AddTagsToResource Source # 

Methods

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

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

toConstr :: AddTagsToResource -> Constr #

dataTypeOf :: AddTagsToResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddTagsToResource Source # 
Show AddTagsToResource Source # 
Generic AddTagsToResource Source # 
Hashable AddTagsToResource Source # 
NFData AddTagsToResource Source # 

Methods

rnf :: AddTagsToResource -> () #

AWSRequest AddTagsToResource Source # 
ToQuery AddTagsToResource Source # 
ToPath AddTagsToResource Source # 
ToHeaders AddTagsToResource Source # 
type Rep AddTagsToResource Source # 
type Rep AddTagsToResource = D1 (MetaData "AddTagsToResource" "Network.AWS.ElastiCache.AddTagsToResource" "amazonka-elasticache-1.4.1-6dn1eG7a4T7LgNVR21qK1h" False) (C1 (MetaCons "AddTagsToResource'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_attrResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_attrTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Tag]))))
type Rs AddTagsToResource Source # 

Request Lenses

attrResourceName :: Lens' AddTagsToResource Text Source #

The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example 'arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster' or 'arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot'.

For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces.

attrTags :: Lens' AddTagsToResource [Tag] Source #

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.

Destructuring the Response

tagListMessage :: TagListMessage Source #

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

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

data TagListMessage Source #

Represents the output from the AddTagsToResource, ListTagsOnResource, and RemoveTagsFromResource actions.

See: tagListMessage smart constructor.

Instances

Eq TagListMessage Source # 
Data TagListMessage Source # 

Methods

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

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

toConstr :: TagListMessage -> Constr #

dataTypeOf :: TagListMessage -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagListMessage Source # 
Show TagListMessage Source # 
Generic TagListMessage Source # 

Associated Types

type Rep TagListMessage :: * -> * #

Hashable TagListMessage Source # 
NFData TagListMessage Source # 

Methods

rnf :: TagListMessage -> () #

FromXML TagListMessage Source # 
type Rep TagListMessage Source # 
type Rep TagListMessage = D1 (MetaData "TagListMessage" "Network.AWS.ElastiCache.Types.Product" "amazonka-elasticache-1.4.1-6dn1eG7a4T7LgNVR21qK1h" True) (C1 (MetaCons "TagListMessage'" PrefixI True) (S1 (MetaSel (Just Symbol "_tlmTagList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Tag]))))

Response Lenses

tlmTagList :: Lens' TagListMessage [Tag] Source #

A list of cost allocation tags as key-value pairs.