Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetDataRetrievalPolicy = GetDataRetrievalPolicy' {}
- newGetDataRetrievalPolicy :: Text -> GetDataRetrievalPolicy
- getDataRetrievalPolicy_accountId :: Lens' GetDataRetrievalPolicy Text
- data GetDataRetrievalPolicyResponse = GetDataRetrievalPolicyResponse' {}
- newGetDataRetrievalPolicyResponse :: Int -> GetDataRetrievalPolicyResponse
- getDataRetrievalPolicyResponse_policy :: Lens' GetDataRetrievalPolicyResponse (Maybe DataRetrievalPolicy)
- getDataRetrievalPolicyResponse_httpStatus :: Lens' GetDataRetrievalPolicyResponse Int
Creating a Request
data GetDataRetrievalPolicy Source #
Input for GetDataRetrievalPolicy.
See: newGetDataRetrievalPolicy
smart constructor.
GetDataRetrievalPolicy' | |
|
Instances
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.
GetDataRetrievalPolicyResponse' | |
|
Instances
Eq GetDataRetrievalPolicyResponse Source # | |
Read GetDataRetrievalPolicyResponse Source # | |
Show GetDataRetrievalPolicyResponse Source # | |
Defined in Amazonka.Glacier.GetDataRetrievalPolicy | |
Generic GetDataRetrievalPolicyResponse Source # | |
NFData GetDataRetrievalPolicyResponse Source # | |
Defined in Amazonka.Glacier.GetDataRetrievalPolicy rnf :: GetDataRetrievalPolicyResponse -> () # | |
type Rep GetDataRetrievalPolicyResponse Source # | |
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.
getDataRetrievalPolicyResponse_httpStatus :: Lens' GetDataRetrievalPolicyResponse Int Source #
The response's http status code.