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.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
ToJSON SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.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

AWSRequest SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Associated Types

type AWSResponse SetVaultAccessPolicy #

Generic SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Associated Types

type Rep SetVaultAccessPolicy :: Type -> Type #

Read SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Show SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

NFData SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Methods

rnf :: SetVaultAccessPolicy -> () #

Eq SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Hashable SetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

type AWSResponse 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" "amazonka-glacier-2.0-17Kmjv8nUJeKOtbrjLyy76" '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))))

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:

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.

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
Generic SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Associated Types

type Rep SetVaultAccessPolicyResponse :: Type -> Type #

Read SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Show SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

NFData SetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.SetVaultAccessPolicy

Eq 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" "amazonka-glacier-2.0-17Kmjv8nUJeKOtbrjLyy76" '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.