paws.storage (version 0.1.0)

storagegateway_add_tags_to_resource: 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 AWS Storage Gateway resources:

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.

Request syntax

svc$add_tags_to_resource(
  ResourceARN = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Details

  • Storage gateways of all types

  • Storage volumes

  • Virtual tapes

  • NFS and SMB file shares

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.

Examples

Run this code
# NOT RUN {
# Adds one or more tags to the specified resource.
# }
# NOT RUN {
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"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab