Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This operation returns information about a job you previously initiated, including the job initiation date, the user who initiated the job, the job status code/message and the Amazon SNS topic to notify after Amazon S3 Glacier (Glacier) completes the job. For more information about initiating a job, see InitiateJob.
This operation enables you to check the status of your job. However, it is strongly recommended that you set up an Amazon SNS topic and specify it in your initiate job request so that Glacier can notify the topic after it completes the job.
A job ID will not expire for at least 24 hours after Glacier completes the job.
An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).
For more information about using this operation, see the documentation for the underlying REST API Describe Job in the Amazon Glacier Developer Guide.
Synopsis
- data DescribeJob = DescribeJob' {}
- newDescribeJob :: Text -> Text -> Text -> DescribeJob
- describeJob_accountId :: Lens' DescribeJob Text
- describeJob_vaultName :: Lens' DescribeJob Text
- describeJob_jobId :: Lens' DescribeJob Text
- data GlacierJobDescription = GlacierJobDescription' {
- action :: Maybe ActionCode
- archiveId :: Maybe Text
- archiveSHA256TreeHash :: Maybe Text
- archiveSizeInBytes :: Maybe Integer
- completed :: Maybe Bool
- completionDate :: Maybe Text
- creationDate :: Maybe Text
- inventoryRetrievalParameters :: Maybe InventoryRetrievalJobDescription
- inventorySizeInBytes :: Maybe Integer
- jobDescription :: Maybe Text
- jobId :: Maybe Text
- jobOutputPath :: Maybe Text
- outputLocation :: Maybe OutputLocation
- retrievalByteRange :: Maybe Text
- sHA256TreeHash :: Maybe Text
- sNSTopic :: Maybe Text
- selectParameters :: Maybe SelectParameters
- statusCode :: Maybe StatusCode
- statusMessage :: Maybe Text
- tier :: Maybe Text
- vaultARN :: Maybe Text
- newGlacierJobDescription :: GlacierJobDescription
- glacierJobDescription_action :: Lens' GlacierJobDescription (Maybe ActionCode)
- glacierJobDescription_archiveId :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_archiveSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_archiveSizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)
- glacierJobDescription_completed :: Lens' GlacierJobDescription (Maybe Bool)
- glacierJobDescription_completionDate :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_creationDate :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_inventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription)
- glacierJobDescription_inventorySizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)
- glacierJobDescription_jobDescription :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_jobId :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_jobOutputPath :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_outputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation)
- glacierJobDescription_retrievalByteRange :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_sHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_sNSTopic :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_selectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters)
- glacierJobDescription_statusCode :: Lens' GlacierJobDescription (Maybe StatusCode)
- glacierJobDescription_statusMessage :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_tier :: Lens' GlacierJobDescription (Maybe Text)
- glacierJobDescription_vaultARN :: Lens' GlacierJobDescription (Maybe Text)
Creating a Request
data DescribeJob Source #
Provides options for retrieving a job description.
See: newDescribeJob
smart constructor.
DescribeJob' | |
|
Instances
Create a value of DescribeJob
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:accountId:DescribeJob'
, describeJob_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.
DescribeJob
, describeJob_vaultName
- The name of the vault.
DescribeJob
, describeJob_jobId
- The ID of the job to describe.
Request Lenses
describeJob_accountId :: Lens' DescribeJob 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.
describeJob_vaultName :: Lens' DescribeJob Text Source #
The name of the vault.
describeJob_jobId :: Lens' DescribeJob Text Source #
The ID of the job to describe.
Destructuring the Response
data GlacierJobDescription Source #
Contains the description of an Amazon S3 Glacier job.
See: newGlacierJobDescription
smart constructor.
GlacierJobDescription' | |
|
Instances
newGlacierJobDescription :: GlacierJobDescription Source #
Create a value of GlacierJobDescription
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:action:GlacierJobDescription'
, glacierJobDescription_action
- The job type. This value is either ArchiveRetrieval
,
InventoryRetrieval
, or Select
.
$sel:archiveId:GlacierJobDescription'
, glacierJobDescription_archiveId
- The archive ID requested for a select job or archive retrieval.
Otherwise, this field is null.
$sel:archiveSHA256TreeHash:GlacierJobDescription'
, glacierJobDescription_archiveSHA256TreeHash
- The SHA256 tree hash of the entire archive for an archive retrieval. For
inventory retrieval or select jobs, this field is null.
$sel:archiveSizeInBytes:GlacierJobDescription'
, glacierJobDescription_archiveSizeInBytes
- For an archive retrieval job, this value is the size in bytes of the
archive being requested for download. For an inventory retrieval or
select job, this value is null.
$sel:completed:GlacierJobDescription'
, glacierJobDescription_completed
- The job status. When a job is completed, you get the job's output using
Get Job Output (GET output).
$sel:completionDate:GlacierJobDescription'
, glacierJobDescription_completionDate
- The UTC time that the job request completed. While the job is in
progress, the value is null.
$sel:creationDate:GlacierJobDescription'
, glacierJobDescription_creationDate
- The UTC date when the job was created. This value is a string
representation of ISO 8601 date format, for example
"2012-03-20T17:03:43.221Z"
.
$sel:inventoryRetrievalParameters:GlacierJobDescription'
, glacierJobDescription_inventoryRetrievalParameters
- Parameters used for range inventory retrieval.
$sel:inventorySizeInBytes:GlacierJobDescription'
, glacierJobDescription_inventorySizeInBytes
- For an inventory retrieval job, this value is the size in bytes of the
inventory requested for download. For an archive retrieval or select
job, this value is null.
$sel:jobDescription:GlacierJobDescription'
, glacierJobDescription_jobDescription
- The job description provided when initiating the job.
$sel:jobId:GlacierJobDescription'
, glacierJobDescription_jobId
- An opaque string that identifies an Amazon S3 Glacier job.
$sel:jobOutputPath:GlacierJobDescription'
, glacierJobDescription_jobOutputPath
- Contains the job output location.
$sel:outputLocation:GlacierJobDescription'
, glacierJobDescription_outputLocation
- Contains the location where the data from the select job is stored.
$sel:retrievalByteRange:GlacierJobDescription'
, glacierJobDescription_retrievalByteRange
- The retrieved byte range for archive retrieval jobs in the form
StartByteValue-EndByteValue. If no range was specified in the
archive retrieval, then the whole archive is retrieved. In this case,
StartByteValue equals 0 and EndByteValue equals the size of the
archive minus 1. For inventory retrieval or select jobs, this field is
null.
$sel:sHA256TreeHash:GlacierJobDescription'
, glacierJobDescription_sHA256TreeHash
- For an archive retrieval job, this value is the checksum of the archive.
Otherwise, this value is null.
The SHA256 tree hash value for the requested range of an archive. If the InitiateJob request for an archive specified a tree-hash aligned range, then this field returns a value.
If the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null for the following:
- Archive retrieval jobs that specify a range that is not tree-hash aligned
- Archival jobs that specify a range that is equal to the whole
archive, when the job status is
InProgress
- Inventory jobs
- Select jobs
$sel:sNSTopic:GlacierJobDescription'
, glacierJobDescription_sNSTopic
- An Amazon SNS topic that receives notification.
$sel:selectParameters:GlacierJobDescription'
, glacierJobDescription_selectParameters
- Contains the parameters used for a select.
$sel:statusCode:GlacierJobDescription'
, glacierJobDescription_statusCode
- The status code can be InProgress
, Succeeded
, or Failed
, and
indicates the status of the job.
$sel:statusMessage:GlacierJobDescription'
, glacierJobDescription_statusMessage
- A friendly message that describes the job status.
$sel:tier:GlacierJobDescription'
, glacierJobDescription_tier
- The tier to use for a select or an archive retrieval. Valid values are
Expedited
, Standard
, or Bulk
. Standard
is the default.
$sel:vaultARN:GlacierJobDescription'
, glacierJobDescription_vaultARN
- The Amazon Resource Name (ARN) of the vault from which an archive
retrieval was requested.
Response Lenses
glacierJobDescription_action :: Lens' GlacierJobDescription (Maybe ActionCode) Source #
The job type. This value is either ArchiveRetrieval
,
InventoryRetrieval
, or Select
.
glacierJobDescription_archiveId :: Lens' GlacierJobDescription (Maybe Text) Source #
The archive ID requested for a select job or archive retrieval. Otherwise, this field is null.
glacierJobDescription_archiveSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text) Source #
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null.
glacierJobDescription_archiveSizeInBytes :: Lens' GlacierJobDescription (Maybe Integer) Source #
For an archive retrieval job, this value is the size in bytes of the archive being requested for download. For an inventory retrieval or select job, this value is null.
glacierJobDescription_completed :: Lens' GlacierJobDescription (Maybe Bool) Source #
The job status. When a job is completed, you get the job's output using Get Job Output (GET output).
glacierJobDescription_completionDate :: Lens' GlacierJobDescription (Maybe Text) Source #
The UTC time that the job request completed. While the job is in progress, the value is null.
glacierJobDescription_creationDate :: Lens' GlacierJobDescription (Maybe Text) Source #
The UTC date when the job was created. This value is a string
representation of ISO 8601 date format, for example
"2012-03-20T17:03:43.221Z"
.
glacierJobDescription_inventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription) Source #
Parameters used for range inventory retrieval.
glacierJobDescription_inventorySizeInBytes :: Lens' GlacierJobDescription (Maybe Integer) Source #
For an inventory retrieval job, this value is the size in bytes of the inventory requested for download. For an archive retrieval or select job, this value is null.
glacierJobDescription_jobDescription :: Lens' GlacierJobDescription (Maybe Text) Source #
The job description provided when initiating the job.
glacierJobDescription_jobId :: Lens' GlacierJobDescription (Maybe Text) Source #
An opaque string that identifies an Amazon S3 Glacier job.
glacierJobDescription_jobOutputPath :: Lens' GlacierJobDescription (Maybe Text) Source #
Contains the job output location.
glacierJobDescription_outputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation) Source #
Contains the location where the data from the select job is stored.
glacierJobDescription_retrievalByteRange :: Lens' GlacierJobDescription (Maybe Text) Source #
The retrieved byte range for archive retrieval jobs in the form StartByteValue-EndByteValue. If no range was specified in the archive retrieval, then the whole archive is retrieved. In this case, StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval or select jobs, this field is null.
glacierJobDescription_sHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text) Source #
For an archive retrieval job, this value is the checksum of the archive. Otherwise, this value is null.
The SHA256 tree hash value for the requested range of an archive. If the InitiateJob request for an archive specified a tree-hash aligned range, then this field returns a value.
If the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null for the following:
- Archive retrieval jobs that specify a range that is not tree-hash aligned
- Archival jobs that specify a range that is equal to the whole
archive, when the job status is
InProgress
- Inventory jobs
- Select jobs
glacierJobDescription_sNSTopic :: Lens' GlacierJobDescription (Maybe Text) Source #
An Amazon SNS topic that receives notification.
glacierJobDescription_selectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters) Source #
Contains the parameters used for a select.
glacierJobDescription_statusCode :: Lens' GlacierJobDescription (Maybe StatusCode) Source #
The status code can be InProgress
, Succeeded
, or Failed
, and
indicates the status of the job.
glacierJobDescription_statusMessage :: Lens' GlacierJobDescription (Maybe Text) Source #
A friendly message that describes the job status.
glacierJobDescription_tier :: Lens' GlacierJobDescription (Maybe Text) Source #
The tier to use for a select or an archive retrieval. Valid values are
Expedited
, Standard
, or Bulk
. Standard
is the default.
glacierJobDescription_vaultARN :: Lens' GlacierJobDescription (Maybe Text) Source #
The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.