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

Description

This operation returns the current data retrieval policy for the account and region specified in the GET request. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.

Synopsis

Creating a Request

data GetDataRetrievalPolicy Source #

Input for GetDataRetrievalPolicy.

See: newGetDataRetrievalPolicy smart constructor.

Constructors

GetDataRetrievalPolicy' 

Fields

  • accountId :: Text

    The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

Instances

Instances details
Eq GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Read GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Show GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Generic GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Associated Types

type Rep GetDataRetrievalPolicy :: Type -> Type #

NFData GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Methods

rnf :: GetDataRetrievalPolicy -> () #

Hashable GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

AWSRequest GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Associated Types

type AWSResponse GetDataRetrievalPolicy #

ToHeaders GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

ToPath GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

ToQuery GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

type Rep GetDataRetrievalPolicy Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

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

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

newGetDataRetrievalPolicy Source #

Create a value of GetDataRetrievalPolicy 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:GetDataRetrievalPolicy', getDataRetrievalPolicy_accountId - The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

Request Lenses

getDataRetrievalPolicy_accountId :: Lens' GetDataRetrievalPolicy Text Source #

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

Destructuring the Response

data GetDataRetrievalPolicyResponse Source #

Contains the Amazon S3 Glacier response to the GetDataRetrievalPolicy request.

See: newGetDataRetrievalPolicyResponse smart constructor.

Constructors

GetDataRetrievalPolicyResponse' 

Fields

Instances

Instances details
Eq GetDataRetrievalPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Read GetDataRetrievalPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Show GetDataRetrievalPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Generic GetDataRetrievalPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

Associated Types

type Rep GetDataRetrievalPolicyResponse :: Type -> Type #

NFData GetDataRetrievalPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

type Rep GetDataRetrievalPolicyResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetDataRetrievalPolicy

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

newGetDataRetrievalPolicyResponse Source #

Create a value of GetDataRetrievalPolicyResponse 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:GetDataRetrievalPolicyResponse', getDataRetrievalPolicyResponse_policy - Contains the returned data retrieval policy in JSON format.

$sel:httpStatus:GetDataRetrievalPolicyResponse', getDataRetrievalPolicyResponse_httpStatus - The response's http status code.

Response Lenses

getDataRetrievalPolicyResponse_policy :: Lens' GetDataRetrievalPolicyResponse (Maybe DataRetrievalPolicy) Source #

Contains the returned data retrieval policy in JSON format.