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.GetDataRetrievalPolicy

Contents

Description

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

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 - 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 GetDataRetrievalPolicy Source #

Input for GetDataRetrievalPolicy.

See: getDataRetrievalPolicy smart constructor.

Instances

Eq GetDataRetrievalPolicy Source # 
Data GetDataRetrievalPolicy Source # 

Methods

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

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

toConstr :: GetDataRetrievalPolicy -> Constr #

dataTypeOf :: GetDataRetrievalPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDataRetrievalPolicy Source # 
Show GetDataRetrievalPolicy Source # 
Generic GetDataRetrievalPolicy Source # 
Hashable GetDataRetrievalPolicy Source # 
NFData GetDataRetrievalPolicy Source # 

Methods

rnf :: GetDataRetrievalPolicy -> () #

AWSRequest GetDataRetrievalPolicy Source # 
ToHeaders GetDataRetrievalPolicy Source # 
ToPath GetDataRetrievalPolicy Source # 
ToQuery GetDataRetrievalPolicy Source # 
type Rep GetDataRetrievalPolicy Source # 
type Rep GetDataRetrievalPolicy = D1 * (MetaData "GetDataRetrievalPolicy" "Network.AWS.Glacier.GetDataRetrievalPolicy" "amazonka-glacier-1.6.0-KFcSJp5ylrGJYtfh8aD2JF" True) (C1 * (MetaCons "GetDataRetrievalPolicy'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gdrpAccountId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetDataRetrievalPolicy Source # 

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:

data GetDataRetrievalPolicyResponse Source #

Contains the Amazon Glacier response to the GetDataRetrievalPolicy request.

See: getDataRetrievalPolicyResponse smart constructor.

Instances

Eq GetDataRetrievalPolicyResponse Source # 
Data GetDataRetrievalPolicyResponse Source # 

Methods

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

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

toConstr :: GetDataRetrievalPolicyResponse -> Constr #

dataTypeOf :: GetDataRetrievalPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDataRetrievalPolicyResponse Source # 
Show GetDataRetrievalPolicyResponse Source # 
Generic GetDataRetrievalPolicyResponse Source # 
NFData GetDataRetrievalPolicyResponse Source # 
type Rep GetDataRetrievalPolicyResponse Source # 
type Rep GetDataRetrievalPolicyResponse = D1 * (MetaData "GetDataRetrievalPolicyResponse" "Network.AWS.Glacier.GetDataRetrievalPolicy" "amazonka-glacier-1.6.0-KFcSJp5ylrGJYtfh8aD2JF" False) (C1 * (MetaCons "GetDataRetrievalPolicyResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdrprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DataRetrievalPolicy))) (S1 * (MetaSel (Just Symbol "_gdrprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

gdrprsPolicy :: Lens' GetDataRetrievalPolicyResponse (Maybe DataRetrievalPolicy) Source #

Contains the returned data retrieval policy in JSON format.