amazonka-elasticache-1.4.5: 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

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. You can use cost allocation tags 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 in the ElastiCache User Guide .

Synopsis

Creating a Request

addTagsToResource #

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:

  • attrResourceName - 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 about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces .
  • attrTags - 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.

data AddTagsToResource #

Represents the input of an AddTagsToResource operation.

See: addTagsToResource smart constructor.

Instances

Eq AddTagsToResource # 
Data AddTagsToResource # 

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 # 
Show AddTagsToResource # 
Generic AddTagsToResource # 
Hashable AddTagsToResource # 
NFData AddTagsToResource # 

Methods

rnf :: AddTagsToResource -> () #

AWSRequest AddTagsToResource # 
ToQuery AddTagsToResource # 
ToPath AddTagsToResource # 
ToHeaders AddTagsToResource # 
type Rep AddTagsToResource # 
type Rep AddTagsToResource = D1 (MetaData "AddTagsToResource" "Network.AWS.ElastiCache.AddTagsToResource" "amazonka-elasticache-1.4.5-Ai9oTU2RTbj2M0sGqfSNp8" 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 # 

Request Lenses

attrResourceName :: Lens' AddTagsToResource Text #

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 about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces .

attrTags :: Lens' AddTagsToResource [Tag] #

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 #

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:

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

data TagListMessage #

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

See: tagListMessage smart constructor.

Instances

Eq TagListMessage # 
Data TagListMessage # 

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 # 
Show TagListMessage # 
Generic TagListMessage # 

Associated Types

type Rep TagListMessage :: * -> * #

Hashable TagListMessage # 
NFData TagListMessage # 

Methods

rnf :: TagListMessage -> () #

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

Response Lenses

tlmTagList :: Lens' TagListMessage [Tag] #

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