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

Description

This operation retrieves the access-policy subresource set on the vault; for more information on setting this subresource, see Set Vault Access Policy (PUT access-policy). If there is no access policy set on the vault, the operation returns a 404 Not found error. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies.

Synopsis

Creating a Request

data GetVaultAccessPolicy Source #

Input for GetVaultAccessPolicy.

See: newGetVaultAccessPolicy smart constructor.

Constructors

GetVaultAccessPolicy' 

Fields

  • 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 GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Read GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Show GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Generic GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Associated Types

type Rep GetVaultAccessPolicy :: Type -> Type #

NFData GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Methods

rnf :: GetVaultAccessPolicy -> () #

Hashable GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

AWSRequest GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Associated Types

type AWSResponse GetVaultAccessPolicy #

ToHeaders GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

ToPath GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

ToQuery GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

type Rep GetVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

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

Defined in Amazonka.Glacier.GetVaultAccessPolicy

newGetVaultAccessPolicy Source #

Create a value of GetVaultAccessPolicy 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:accountId:GetVaultAccessPolicy', getVaultAccessPolicy_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:GetVaultAccessPolicy', getVaultAccessPolicy_vaultName - The name of the vault.

Request Lenses

getVaultAccessPolicy_accountId :: Lens' GetVaultAccessPolicy 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 GetVaultAccessPolicyResponse Source #

Output for GetVaultAccessPolicy.

See: newGetVaultAccessPolicyResponse smart constructor.

Constructors

GetVaultAccessPolicyResponse' 

Fields

Instances

Instances details
Eq GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Read GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Show GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Generic GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

Associated Types

type Rep GetVaultAccessPolicyResponse :: Type -> Type #

NFData GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

type Rep GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultAccessPolicy

type Rep GetVaultAccessPolicyResponse = D1 ('MetaData "GetVaultAccessPolicyResponse" "Amazonka.Glacier.GetVaultAccessPolicy" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "GetVaultAccessPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VaultAccessPolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetVaultAccessPolicyResponse Source #

Create a value of GetVaultAccessPolicyResponse 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:GetVaultAccessPolicyResponse', getVaultAccessPolicyResponse_policy - Contains the returned vault access policy as a JSON string.

$sel:httpStatus:GetVaultAccessPolicyResponse', getVaultAccessPolicyResponse_httpStatus - The response's http status code.

Response Lenses

getVaultAccessPolicyResponse_policy :: Lens' GetVaultAccessPolicyResponse (Maybe VaultAccessPolicy) Source #

Contains the returned vault access policy as a JSON string.