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.SetVaultAccessPolicy

Description

This operation configures an access policy for a vault and will overwrite an existing policy. To configure a vault access policy, send a PUT request to the access-policy subresource of the vault. An access policy is specific to a vault and is also called a vault subresource. You can set one access policy per vault and the policy can be up to 20 KB in size. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies.

Synopsis

Creating a Request

data SetVaultAccessPolicy Source #

SetVaultAccessPolicy input.

See: newSetVaultAccessPolicy smart constructor.

Constructors

SetVaultAccessPolicy' 

Fields

  • policy :: Maybe VaultAccessPolicy

    The vault access policy as a JSON 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 SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Read SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Show SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Generic SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Associated Types

type Rep SetVaultAccessPolicy :: Type -> Type #

NFData SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Methods

rnf :: SetVaultAccessPolicy -> () #

Hashable SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

ToJSON SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

AWSRequest SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Associated Types

type AWSResponse SetVaultAccessPolicy #

ToHeaders SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

ToPath SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

ToQuery SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

type Rep SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

type Rep SetVaultAccessPolicy = D1 ('MetaData "SetVaultAccessPolicy" "Amazonka.Glacier.SetVaultAccessPolicy" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "SetVaultAccessPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VaultAccessPolicy)) :*: (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

newSetVaultAccessPolicy Source #

Create a value of SetVaultAccessPolicy 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:policy:SetVaultAccessPolicy', setVaultAccessPolicy_policy - The vault access policy as a JSON string.

$sel:accountId:SetVaultAccessPolicy', setVaultAccessPolicy_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:SetVaultAccessPolicy', setVaultAccessPolicy_vaultName - The name of the vault.

Request Lenses

setVaultAccessPolicy_accountId :: Lens' SetVaultAccessPolicy 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 SetVaultAccessPolicyResponse Source #

See: newSetVaultAccessPolicyResponse smart constructor.

Instances

Instances details
Eq SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Read SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Show SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Generic SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Associated Types

type Rep SetVaultAccessPolicyResponse :: Type -> Type #

NFData SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

type Rep SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

type Rep SetVaultAccessPolicyResponse = D1 ('MetaData "SetVaultAccessPolicyResponse" "Amazonka.Glacier.SetVaultAccessPolicy" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "SetVaultAccessPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetVaultAccessPolicyResponse :: SetVaultAccessPolicyResponse Source #

Create a value of SetVaultAccessPolicyResponse with all optional fields omitted.

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