| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.ElastiCache.ListTagsForResource
Description
Lists all cost allocation tags currently on the named resource. A cost allocation tag is a key-value pair where the key is case-sensitive and the value is optional. You can use cost allocation tags to categorize and track your AWS costs.
You can have a maximum of 50 cost allocation tags on an ElastiCache resource. For more information, see Using Cost Allocation Tags in Amazon ElastiCache .
Creating a Request
Arguments
| :: Text | |
| -> ListTagsForResource |
Creates a value of ListTagsForResource with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltfrResourceName- The Amazon Resource Name (ARN) of the resource for which you want the list of tags, for examplearn:aws:elasticache:us-west-2:0123456789:cluster:myClusterorarn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces .
data ListTagsForResource #
The input parameters for the ListTagsForResource operation.
See: listTagsForResource smart constructor.
Instances
Request Lenses
ltfrResourceName :: Lens' ListTagsForResource Text #
The Amazon Resource Name (ARN) of the resource for which you want the list of tags, 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 .
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
Response Lenses
tlmTagList :: Lens' TagListMessage [Tag] #
A list of cost allocation tags as key-value pairs.