amazonka-glacier-1.6.1: 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.InitiateJob

Contents

Description

This operation initiates a job of the specified type, which can be a select, an archival retrieval, or a vault retrieval. For more information about using this operation, see the documentation for the underlying REST API Initiate a Job .

Synopsis

Creating a Request

initiateJob Source #

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

Use one of the following lenses to modify other fields as desired:

  • ijJobParameters - Provides options for specifying job information.
  • ijAccountId - The AccountId value is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (-) in the ID.
  • ijVaultName - The name of the vault.

data InitiateJob Source #

Provides options for initiating an Amazon Glacier job.

See: initiateJob smart constructor.

Instances
Eq InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Data InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Methods

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

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

toConstr :: InitiateJob -> Constr #

dataTypeOf :: InitiateJob -> DataType #

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

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

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

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

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

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

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

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

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

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

Read InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Show InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Generic InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Associated Types

type Rep InitiateJob :: Type -> Type #

Hashable InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

ToJSON InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

AWSRequest InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Associated Types

type Rs InitiateJob :: Type #

ToHeaders InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Methods

toHeaders :: InitiateJob -> [Header] #

ToPath InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

ToQuery InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

NFData InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Methods

rnf :: InitiateJob -> () #

type Rep InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

type Rep InitiateJob = D1 (MetaData "InitiateJob" "Network.AWS.Glacier.InitiateJob" "amazonka-glacier-1.6.1-1jk94OYE8nZKrGhzWrcb8m" False) (C1 (MetaCons "InitiateJob'" PrefixI True) (S1 (MetaSel (Just "_ijJobParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe JobParameters)) :*: (S1 (MetaSel (Just "_ijAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ijVaultName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs InitiateJob Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Request Lenses

ijJobParameters :: Lens' InitiateJob (Maybe JobParameters) Source #

Provides options for specifying job information.

ijAccountId :: Lens' InitiateJob Text Source #

The AccountId value is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (-) in the ID.

ijVaultName :: Lens' InitiateJob Text Source #

The name of the vault.

Destructuring the Response

initiateJobResponse Source #

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

Use one of the following lenses to modify other fields as desired:

data InitiateJobResponse Source #

Contains the Amazon Glacier response to your request.

See: initiateJobResponse smart constructor.

Instances
Eq InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Data InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Methods

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

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

toConstr :: InitiateJobResponse -> Constr #

dataTypeOf :: InitiateJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Show InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Generic InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Associated Types

type Rep InitiateJobResponse :: Type -> Type #

NFData InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

Methods

rnf :: InitiateJobResponse -> () #

type Rep InitiateJobResponse Source # 
Instance details

Defined in Network.AWS.Glacier.InitiateJob

type Rep InitiateJobResponse = D1 (MetaData "InitiateJobResponse" "Network.AWS.Glacier.InitiateJob" "amazonka-glacier-1.6.1-1jk94OYE8nZKrGhzWrcb8m" False) (C1 (MetaCons "InitiateJobResponse'" PrefixI True) ((S1 (MetaSel (Just "_ijrsJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ijrsJobOutputPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ijrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ijrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ijrsJobOutputPath :: Lens' InitiateJobResponse (Maybe Text) Source #

The path to the location of where the select results are stored.

ijrsLocation :: Lens' InitiateJobResponse (Maybe Text) Source #

The relative URI path of the job.

ijrsResponseStatus :: Lens' InitiateJobResponse Int Source #

  • - | The response status code.