amazonka-glacier-2.0: Amazon Glacier SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Glacier.AddTagsToVault

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.

Synopsis

Creating a Request

data AddTagsToVault Source #

The input values for AddTagsToVault.

See: newAddTagsToVault smart constructor.

Constructors

AddTagsToVault' 

Fields

  • tags :: Maybe (HashMap Text Text)

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

  • accountId :: Text

    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 :: Text

    The name of the vault.

Instances

Instances details
ToJSON AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

ToHeaders AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

ToPath AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

ToQuery AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

AWSRequest AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Associated Types

type AWSResponse AddTagsToVault #

Generic AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Associated Types

type Rep AddTagsToVault :: Type -> Type #

Read AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Show AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

NFData AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Methods

rnf :: AddTagsToVault -> () #

Eq AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Hashable AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type AWSResponse AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type Rep AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type Rep AddTagsToVault = D1 ('MetaData "AddTagsToVault" "Amazonka.Glacier.AddTagsToVault" "amazonka-glacier-2.0-17Kmjv8nUJeKOtbrjLyy76" 'False) (C1 ('MetaCons "AddTagsToVault'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAddTagsToVault Source #

Create a value of AddTagsToVault with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tags:AddTagsToVault', addTagsToVault_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.

$sel:accountId:AddTagsToVault', addTagsToVault_accountId - 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.

AddTagsToVault, addTagsToVault_vaultName - The name of the vault.

Request Lenses

addTagsToVault_tags :: Lens' AddTagsToVault (Maybe (HashMap Text Text)) Source #

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

addTagsToVault_accountId :: Lens' AddTagsToVault Text Source #

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.

Destructuring the Response

data AddTagsToVaultResponse Source #

See: newAddTagsToVaultResponse smart constructor.

Instances

Instances details
Generic AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Associated Types

type Rep AddTagsToVaultResponse :: Type -> Type #

Read AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Show AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

NFData AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Methods

rnf :: AddTagsToVaultResponse -> () #

Eq AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type Rep AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type Rep AddTagsToVaultResponse = D1 ('MetaData "AddTagsToVaultResponse" "Amazonka.Glacier.AddTagsToVault" "amazonka-glacier-2.0-17Kmjv8nUJeKOtbrjLyy76" 'False) (C1 ('MetaCons "AddTagsToVaultResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAddTagsToVaultResponse :: AddTagsToVaultResponse Source #

Create a value of AddTagsToVaultResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.