amazonka-glacier-1.6.0: Amazon Glacier SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Glacier.SetDataRetrievalPolicy

Contents

Description

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 .

Synopsis

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:

  • sdrpPolicy - The data retrieval policy in JSON format.
  • sdrpAccountId - 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.

data SetDataRetrievalPolicy Source #

SetDataRetrievalPolicy input.

See: setDataRetrievalPolicy smart constructor.

Instances

Eq SetDataRetrievalPolicy Source # 
Data SetDataRetrievalPolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetDataRetrievalPolicy -> c SetDataRetrievalPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetDataRetrievalPolicy #

toConstr :: SetDataRetrievalPolicy -> Constr #

dataTypeOf :: SetDataRetrievalPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetDataRetrievalPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetDataRetrievalPolicy) #

gmapT :: (forall b. Data b => b -> b) -> SetDataRetrievalPolicy -> SetDataRetrievalPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetDataRetrievalPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetDataRetrievalPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetDataRetrievalPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetDataRetrievalPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetDataRetrievalPolicy -> m SetDataRetrievalPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDataRetrievalPolicy -> m SetDataRetrievalPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDataRetrievalPolicy -> m SetDataRetrievalPolicy #

Read SetDataRetrievalPolicy Source # 
Show SetDataRetrievalPolicy Source # 
Generic SetDataRetrievalPolicy Source # 
Hashable SetDataRetrievalPolicy Source # 
ToJSON SetDataRetrievalPolicy Source # 
NFData SetDataRetrievalPolicy Source # 

Methods

rnf :: SetDataRetrievalPolicy -> () #

AWSRequest SetDataRetrievalPolicy Source # 
ToHeaders SetDataRetrievalPolicy Source # 
ToPath SetDataRetrievalPolicy Source # 
ToQuery SetDataRetrievalPolicy Source # 
type Rep SetDataRetrievalPolicy Source # 
type Rep SetDataRetrievalPolicy = D1 * (MetaData "SetDataRetrievalPolicy" "Network.AWS.Glacier.SetDataRetrievalPolicy" "amazonka-glacier-1.6.0-KFcSJp5ylrGJYtfh8aD2JF" False) (C1 * (MetaCons "SetDataRetrievalPolicy'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_sdrpPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DataRetrievalPolicy))) (S1 * (MetaSel (Just Symbol "_sdrpAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs SetDataRetrievalPolicy Source # 

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 '- ' (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

setDataRetrievalPolicyResponse :: SetDataRetrievalPolicyResponse Source #

Creates a value of SetDataRetrievalPolicyResponse with the minimum fields required to make a request.

data SetDataRetrievalPolicyResponse Source #

See: setDataRetrievalPolicyResponse smart constructor.

Instances

Eq SetDataRetrievalPolicyResponse Source # 
Data SetDataRetrievalPolicyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetDataRetrievalPolicyResponse -> c SetDataRetrievalPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetDataRetrievalPolicyResponse #

toConstr :: SetDataRetrievalPolicyResponse -> Constr #

dataTypeOf :: SetDataRetrievalPolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetDataRetrievalPolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetDataRetrievalPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetDataRetrievalPolicyResponse -> SetDataRetrievalPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetDataRetrievalPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetDataRetrievalPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetDataRetrievalPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetDataRetrievalPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetDataRetrievalPolicyResponse -> m SetDataRetrievalPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDataRetrievalPolicyResponse -> m SetDataRetrievalPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDataRetrievalPolicyResponse -> m SetDataRetrievalPolicyResponse #

Read SetDataRetrievalPolicyResponse Source # 
Show SetDataRetrievalPolicyResponse Source # 
Generic SetDataRetrievalPolicyResponse Source # 
NFData SetDataRetrievalPolicyResponse Source # 
type Rep SetDataRetrievalPolicyResponse Source # 
type Rep SetDataRetrievalPolicyResponse = D1 * (MetaData "SetDataRetrievalPolicyResponse" "Network.AWS.Glacier.SetDataRetrievalPolicy" "amazonka-glacier-1.6.0-KFcSJp5ylrGJYtfh8aD2JF" False) (C1 * (MetaCons "SetDataRetrievalPolicyResponse'" PrefixI False) (U1 *))