Copyright | (c) 2013-2021 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 |
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 Storage Gateway resources:
- Storage gateways of all types
- Storage volumes
- Virtual tapes
- NFS and SMB file shares
- File System associations
You can create a maximum of 50 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.
Synopsis
- data AddTagsToResource = AddTagsToResource' {
- resourceARN :: Text
- tags :: [Tag]
- newAddTagsToResource :: Text -> AddTagsToResource
- addTagsToResource_resourceARN :: Lens' AddTagsToResource Text
- addTagsToResource_tags :: Lens' AddTagsToResource [Tag]
- data AddTagsToResourceResponse = AddTagsToResourceResponse' {
- resourceARN :: Maybe Text
- httpStatus :: Int
- newAddTagsToResourceResponse :: Int -> AddTagsToResourceResponse
- addTagsToResourceResponse_resourceARN :: Lens' AddTagsToResourceResponse (Maybe Text)
- addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int
Creating a Request
data AddTagsToResource Source #
AddTagsToResourceInput
See: newAddTagsToResource
smart constructor.
AddTagsToResource' | |
|
Instances
Create a value of AddTagsToResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceARN:AddTagsToResource'
, addTagsToResource_resourceARN
- The Amazon Resource Name (ARN) of the resource you want to add tags to.
$sel:tags:AddTagsToResource'
, addTagsToResource_tags
- 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: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
Request Lenses
addTagsToResource_resourceARN :: Lens' AddTagsToResource Text Source #
The Amazon Resource Name (ARN) of the resource you want to add tags to.
addTagsToResource_tags :: 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: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
Destructuring the Response
data AddTagsToResourceResponse Source #
AddTagsToResourceOutput
See: newAddTagsToResourceResponse
smart constructor.
AddTagsToResourceResponse' | |
|
Instances
newAddTagsToResourceResponse Source #
Create a value of AddTagsToResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceARN:AddTagsToResource'
, addTagsToResourceResponse_resourceARN
- The Amazon Resource Name (ARN) of the resource you want to add tags to.
$sel:httpStatus:AddTagsToResourceResponse'
, addTagsToResourceResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsToResourceResponse_resourceARN :: Lens' AddTagsToResourceResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource you want to add tags to.
addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int Source #
The response's http status code.