amazonka-elasticache-1.1.0: Amazon ElastiCache SDK.

Copyright(c) 2013-2015 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.

See: AWS API Reference for AddTagsToResource.

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:

Request Lenses

attrResourceName :: Lens' AddTagsToResource Text Source

The name of the resource to which the tags are to be added, for example 'arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster'.

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.

Response Lenses

tlmTagList :: Lens' TagListMessage [Tag] Source

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