Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: AWS API Reference for GetDataRetrievalPolicy.
- getDataRetrievalPolicy :: Text -> GetDataRetrievalPolicy
- data GetDataRetrievalPolicy
- gdrpAccountId :: Lens' GetDataRetrievalPolicy Text
- getDataRetrievalPolicyResponse :: Int -> GetDataRetrievalPolicyResponse
- data GetDataRetrievalPolicyResponse
- gdrprsPolicy :: Lens' GetDataRetrievalPolicyResponse (Maybe DataRetrievalPolicy)
- gdrprsResponseStatus :: Lens' GetDataRetrievalPolicyResponse Int
Creating a Request
getDataRetrievalPolicy Source #
Creates a value of GetDataRetrievalPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetDataRetrievalPolicy Source #
Input for GetDataRetrievalPolicy.
See: getDataRetrievalPolicy
smart constructor.
Request Lenses
gdrpAccountId :: 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
apos-
apos (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 (apos-apos) in the
ID.
Destructuring the Response
getDataRetrievalPolicyResponse Source #
Creates a value of GetDataRetrievalPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetDataRetrievalPolicyResponse Source #
Contains the Amazon Glacier response to the GetDataRetrievalPolicy
request.
See: getDataRetrievalPolicyResponse
smart constructor.
Response Lenses
gdrprsPolicy :: Lens' GetDataRetrievalPolicyResponse (Maybe DataRetrievalPolicy) Source #
Contains the returned data retrieval policy in JSON format.
gdrprsResponseStatus :: Lens' GetDataRetrievalPolicyResponse Int Source #
The response status code.