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 sets and then enacts a data retrieval policy in the region specified in the PUT request. You can set one policy per region for an AWS account. The policy is enacted within a few minutes of a successful PUT operation.
The set policy operation does not affect retrieval jobs that were in progress before the policy was enacted. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.
See: AWS API Reference for SetDataRetrievalPolicy.
- setDataRetrievalPolicy :: Text -> SetDataRetrievalPolicy
- data SetDataRetrievalPolicy
- sdrpPolicy :: Lens' SetDataRetrievalPolicy (Maybe DataRetrievalPolicy)
- sdrpAccountId :: Lens' SetDataRetrievalPolicy Text
- setDataRetrievalPolicyResponse :: SetDataRetrievalPolicyResponse
- data SetDataRetrievalPolicyResponse
Creating a Request
setDataRetrievalPolicy Source #
Creates a value of SetDataRetrievalPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetDataRetrievalPolicy Source #
SetDataRetrievalPolicy input.
See: setDataRetrievalPolicy
smart constructor.
Request Lenses
sdrpPolicy :: Lens' SetDataRetrievalPolicy (Maybe DataRetrievalPolicy) Source #
The data retrieval policy in JSON format.
sdrpAccountId :: Lens' SetDataRetrievalPolicy 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
setDataRetrievalPolicyResponse :: SetDataRetrievalPolicyResponse Source #
Creates a value of SetDataRetrievalPolicyResponse
with the minimum fields required to make a request.
data SetDataRetrievalPolicyResponse Source #
See: setDataRetrievalPolicyResponse
smart constructor.