addTagsToVault
inline suspend fun GlacierClient.addTagsToVault(crossinline block: AddTagsToVaultRequest.Builder.() -> Unit): AddTagsToVaultResponse
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.
Samples
fun main() {
//sampleStart
// The example adds two tags to a my vault.
glacierClient.addTagsToVault {
accountId = "-"
vaultName = "my-vault"
tags = mapOf<String, String>(
"examplekey1" to "examplevalue1",
"examplekey2" to "examplevalue2"
)
}
//sampleEnd
}