Add Tags To Resource
storagegateway_add_tags_to_resource | R Documentation |
Adds one or more tags to the specified resource¶
Description¶
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.
Usage¶
storagegateway_add_tags_to_resource(ResourceARN, Tags)
Arguments¶
ResourceARN |
[required] The Amazon Resource Name (ARN) of the resource you want to add tags to. |
Tags |
[required] 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. |
Value¶
A list with the following syntax:
list(
ResourceARN = "string"
)
Request syntax¶
svc$add_tags_to_resource(
ResourceARN = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
Examples¶
## Not run:
# Adds one or more tags to the specified resource.
svc$add_tags_to_resource(
ResourceARN = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B",
Tags = list(
list(
Key = "Dev Gatgeway Region",
Value = "East Coast"
)
)
)
## End(Not run)