AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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 Glacier Resources.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to AddTagsToVaultAsync.

Namespace: Amazon.Glacier
Assembly: AWSSDK.Glacier.dll
Version: 3.x.y.z


public virtual AddTagsToVaultResponse AddTagsToVault(
         AddTagsToVaultRequest request
Type: Amazon.Glacier.Model.AddTagsToVaultRequest

Container for the necessary parameters to execute the AddTagsToVault service method.

Return Value
The response from the AddTagsToVault service method, as returned by Glacier.


InvalidParameterValueException Returned if a parameter of the request is incorrectly specified.
LimitExceededException Returned if the request results in a vault or account limit being exceeded.
MissingParameterValueException Returned if a required header or parameter is missing from the request.
ResourceNotFoundException Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist.
ServiceUnavailableException Returned if the service cannot complete the request.


The example adds two tags to a my-vault.

To add tags to a vault

var response = client.AddTagsToVault(new AddTagsToVaultRequest 
    Tags = new Dictionary {
        { "examplekey1", "examplevalue1" },
        { "examplekey2", "examplevalue2" }
    AccountId = "-",
    VaultName = "my-vault"


Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms