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 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
- initiateJob :: Text -> Text -> InitiateJob
- data InitiateJob
- ijJobParameters :: Lens' InitiateJob (Maybe JobParameters)
- ijAccountId :: Lens' InitiateJob Text
- ijVaultName :: Lens' InitiateJob Text
- initiateJobResponse :: Int -> InitiateJobResponse
- data InitiateJobResponse
- ijrsJobId :: Lens' InitiateJobResponse (Maybe Text)
- ijrsJobOutputPath :: Lens' InitiateJobResponse (Maybe Text)
- ijrsLocation :: Lens' InitiateJobResponse (Maybe Text)
- ijrsResponseStatus :: Lens' InitiateJobResponse Int
Creating a Request
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
- TheAccountId
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
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
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:
ijrsJobId
- The ID of the job.ijrsJobOutputPath
- The path to the location of where the select results are stored.ijrsLocation
- The relative URI path of the job.ijrsResponseStatus
- -- | The response status code.
data InitiateJobResponse Source #
Contains the Amazon Glacier response to your request.
See: initiateJobResponse
smart constructor.
Instances
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.