glacier_add_tags_to_vault: This operation adds the specified tags to a vault

Description Usage Arguments Value Request syntax Examples

View source: R/glacier_operations.R

Description

This operation adds the specified tags to a vault. Each tag is composed of a key and a value. Each vault can have up to 10 tags. If your request would cause the tag limit for the vault to be exceeded, the operation throws the LimitExceededException error. If a tag already exists on the vault under a specified key, the existing key value will be overwritten. For more information about tags, see Tagging Amazon S3 Glacier Resources.

Usage

1
glacier_add_tags_to_vault(accountId, vaultName, Tags)

Arguments

accountId

[required] The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

vaultName

[required] The name of the vault.

Tags

The tags to add to the vault. Each tag is composed of a key and a value. The value can be an empty string.

Value

An empty list.

Request syntax

1
2
3
4
5
6
7
svc$add_tags_to_vault(
  accountId = "string",
  vaultName = "string",
  Tags = list(
    "string"
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# The example adds two tags to a my-vault.
svc$add_tags_to_vault(
  Tags = list(
    examplekey1 = "examplevalue1",
    examplekey2 = "examplevalue2"
  ),
  accountId = "-",
  vaultName = "my-vault"
)

## End(Not run)

paws.storage documentation built on Aug. 23, 2021, 1:06 a.m.