Glacier / Client / remove_tags_from_vault

remove_tags_from_vault#

Glacier.Client.remove_tags_from_vault(**kwargs)#

This operation removes one or more tags from the set of tags attached to a vault. For more information about tags, see Tagging Amazon S3 Glacier Resources. This operation is idempotent. The operation will be successful, even if there are no tags attached to the vault.

See also: AWS API Documentation

Request Syntax

response = client.remove_tags_from_vault(
    vaultName='string',
    TagKeys=[
        'string',
    ]
)
Parameters:
  • accountId (string) –

    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.

    Note: this parameter is set to “-” bydefault if no value is not specified.

  • vaultName (string) –

    [REQUIRED]

    The name of the vault.

  • TagKeys (list) –

    A list of tag keys. Each corresponding tag is removed from the vault.

    • (string) –

Returns:

None

Exceptions

Examples

The example removes two tags from the vault named examplevault.

response = client.remove_tags_from_vault(
    TagKeys=[
        'examplekey1',
        'examplekey2',
    ],
    accountId='-',
    vaultName='examplevault',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}