libZSservicesZSamazonka-glacierZSamazonka-glacier
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Read AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Show AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Generic AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Associated Types

type Rep AddTagsToVault :: Type -> Type #

NFData AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Methods

rnf :: AddTagsToVault -> () #

Hashable AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

ToJSON AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

AWSRequest AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Associated Types

type AWSResponse 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

type Rep AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type Rep AddTagsToVault = D1 ('MetaData "AddTagsToVault" "Amazonka.Glacier.AddTagsToVault" "libZSservicesZSamazonka-glacierZSamazonka-glacier" '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))))
type AWSResponse AddTagsToVault Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

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.

$sel:vaultName: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
Eq AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Read AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Show AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Generic AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Associated Types

type Rep AddTagsToVaultResponse :: Type -> Type #

NFData AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

Methods

rnf :: AddTagsToVaultResponse -> () #

type Rep AddTagsToVaultResponse Source # 
Instance details

Defined in Amazonka.Glacier.AddTagsToVault

type Rep AddTagsToVaultResponse = D1 ('MetaData "AddTagsToVaultResponse" "Amazonka.Glacier.AddTagsToVault" "libZSservicesZSamazonka-glacierZSamazonka-glacier" '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.