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

Contents

Description

Adds up to 50 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 . ElastiCache resources are cluster and snapshot . 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 # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

Data AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.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 # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

Show AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

Generic AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

Associated Types

type Rep AddTagsToResource :: Type -> Type #

Hashable AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

AWSRequest AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

Associated Types

type Rs AddTagsToResource :: Type #

ToHeaders AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

ToPath AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

ToQuery AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

NFData AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

Methods

rnf :: AddTagsToResource -> () #

type Rep AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.AddTagsToResource

type Rep AddTagsToResource = D1 (MetaData "AddTagsToResource" "Network.AWS.ElastiCache.AddTagsToResource" "amazonka-elasticache-1.6.1-HhHioXLo4Gu6dBQ6CbYXU2" False) (C1 (MetaCons "AddTagsToResource'" PrefixI True) (S1 (MetaSel (Just "_attrResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_attrTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Tag])))
type Rs AddTagsToResource # 
Instance details

Defined in Network.AWS.ElastiCache.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 . ElastiCache resources are cluster and snapshot . 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 , ListTagsForResource , and RemoveTagsFromResource operations.

See: tagListMessage smart constructor.

Instances
Eq TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

Data TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

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 # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

Show TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

Generic TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

Associated Types

type Rep TagListMessage :: Type -> Type #

Hashable TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

FromXML TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

NFData TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

Methods

rnf :: TagListMessage -> () #

type Rep TagListMessage # 
Instance details

Defined in Network.AWS.ElastiCache.Types.Product

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

Response Lenses

tlmTagList :: Lens' TagListMessage [Tag] #

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