Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This operation adds one or more tags to the specified resource. You use tags to add metadata to resources, which you can use to categorize these resources. For example, you can categorize resources by purpose, owner, environment, or team. Each tag consists of a key and a value, which you define. You can add tags to the following AWS Storage Gateway resources:
- Storage gateways of all types
- Storage Volumes
- Virtual Tapes
You can create a maximum of 10 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.
See: AWS API Reference for AddTagsToResource.
- addTagsToResource :: Text -> AddTagsToResource
- data AddTagsToResource
- attrResourceARN :: Lens' AddTagsToResource Text
- attrTags :: Lens' AddTagsToResource [Tag]
- addTagsToResourceResponse :: Int -> AddTagsToResourceResponse
- data AddTagsToResourceResponse
- attrrsResourceARN :: Lens' AddTagsToResourceResponse (Maybe Text)
- attrrsResponseStatus :: Lens' AddTagsToResourceResponse Int
Creating a Request
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
AddTagsToResourceInput
See: addTagsToResource
smart constructor.
Request Lenses
attrResourceARN :: Lens' AddTagsToResource Text Source
The Amazon Resource Name (ARN) of the resource you want to add tags to.
attrTags :: Lens' AddTagsToResource [Tag] Source
The key-value pair that represents the tag you want to add to the resource. The value can be an empty string.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / '.
Destructuring the Response
addTagsToResourceResponse Source
Creates a value of AddTagsToResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AddTagsToResourceResponse Source
AddTagsToResourceOutput
See: addTagsToResourceResponse
smart constructor.
Response Lenses
attrrsResourceARN :: Lens' AddTagsToResourceResponse (Maybe Text) Source
The Amazon Resource Name (ARN) of the resource you want to add tags to.
attrrsResponseStatus :: Lens' AddTagsToResourceResponse Int Source
The response status code.