Copyright | (c) 2013-2018 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 |
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 .
- 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:
gdrpAccountId
- TheAccountId
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.
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 '-
' (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
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:
gdrprsPolicy
- Contains the returned data retrieval policy in JSON format.gdrprsResponseStatus
- -- | The response status code.
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.