Copyright | (c) 2013-2021 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 |
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
- data InitiateJob = InitiateJob' {}
- newInitiateJob :: Text -> Text -> InitiateJob
- initiateJob_jobParameters :: Lens' InitiateJob (Maybe JobParameters)
- initiateJob_accountId :: Lens' InitiateJob Text
- initiateJob_vaultName :: Lens' InitiateJob Text
- data InitiateJobResponse = InitiateJobResponse' {}
- newInitiateJobResponse :: Int -> InitiateJobResponse
- initiateJobResponse_jobId :: Lens' InitiateJobResponse (Maybe Text)
- initiateJobResponse_jobOutputPath :: Lens' InitiateJobResponse (Maybe Text)
- initiateJobResponse_location :: Lens' InitiateJobResponse (Maybe Text)
- initiateJobResponse_httpStatus :: Lens' InitiateJobResponse Int
Creating a Request
data InitiateJob Source #
Provides options for initiating an Amazon S3 Glacier job.
See: newInitiateJob
smart constructor.
InitiateJob' | |
|
Instances
Create a value of InitiateJob
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobParameters:InitiateJob'
, initiateJob_jobParameters
- Provides options for specifying job information.
$sel:accountId:InitiateJob'
, initiateJob_accountId
- 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 S3 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.
$sel:vaultName:InitiateJob'
, initiateJob_vaultName
- The name of the vault.
Request Lenses
initiateJob_jobParameters :: Lens' InitiateJob (Maybe JobParameters) Source #
Provides options for specifying job information.
initiateJob_accountId :: 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 S3 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.
initiateJob_vaultName :: Lens' InitiateJob Text Source #
The name of the vault.
Destructuring the Response
data InitiateJobResponse Source #
Contains the Amazon S3 Glacier response to your request.
See: newInitiateJobResponse
smart constructor.
Instances
newInitiateJobResponse Source #
Create a value of InitiateJobResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:InitiateJobResponse'
, initiateJobResponse_jobId
- The ID of the job.
$sel:jobOutputPath:InitiateJobResponse'
, initiateJobResponse_jobOutputPath
- The path to the location of where the select results are stored.
$sel:location:InitiateJobResponse'
, initiateJobResponse_location
- The relative URI path of the job.
$sel:httpStatus:InitiateJobResponse'
, initiateJobResponse_httpStatus
- The response's http status code.
Response Lenses
initiateJobResponse_jobId :: Lens' InitiateJobResponse (Maybe Text) Source #
The ID of the job.
initiateJobResponse_jobOutputPath :: Lens' InitiateJobResponse (Maybe Text) Source #
The path to the location of where the select results are stored.
initiateJobResponse_location :: Lens' InitiateJobResponse (Maybe Text) Source #
The relative URI path of the job.
initiateJobResponse_httpStatus :: Lens' InitiateJobResponse Int Source #
The response's http status code.