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 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 Glacier completes the job. For more information about initiating a job, see InitiateJob
.
A job ID will not expire for at least 24 hours after Amazon 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 .
- describeJob :: Text -> Text -> Text -> DescribeJob
- data DescribeJob
- djAccountId :: Lens' DescribeJob Text
- djVaultName :: Lens' DescribeJob Text
- djJobId :: Lens' DescribeJob Text
- glacierJobDescription :: GlacierJobDescription
- data GlacierJobDescription
- gjdSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)
- gjdArchiveId :: Lens' GlacierJobDescription (Maybe Text)
- gjdSelectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters)
- gjdJobId :: Lens' GlacierJobDescription (Maybe Text)
- gjdJobOutputPath :: Lens' GlacierJobDescription (Maybe Text)
- gjdRetrievalByteRange :: Lens' GlacierJobDescription (Maybe Text)
- gjdInventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription)
- gjdAction :: Lens' GlacierJobDescription (Maybe ActionCode)
- gjdJobDescription :: Lens' GlacierJobDescription (Maybe Text)
- gjdSNSTopic :: Lens' GlacierJobDescription (Maybe Text)
- gjdStatusMessage :: Lens' GlacierJobDescription (Maybe Text)
- gjdVaultARN :: Lens' GlacierJobDescription (Maybe Text)
- gjdOutputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation)
- gjdTier :: Lens' GlacierJobDescription (Maybe Text)
- gjdArchiveSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)
- gjdCreationDate :: Lens' GlacierJobDescription (Maybe Text)
- gjdCompleted :: Lens' GlacierJobDescription (Maybe Bool)
- gjdCompletionDate :: Lens' GlacierJobDescription (Maybe Text)
- gjdInventorySizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)
- gjdArchiveSizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)
- gjdStatusCode :: Lens' GlacierJobDescription (Maybe StatusCode)
Creating a Request
Creates a value of DescribeJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
djAccountId
- 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.djVaultName
- The name of the vault.djJobId
- The ID of the job to describe.
data DescribeJob Source #
Provides options for retrieving a job description.
See: describeJob
smart constructor.
Request Lenses
djAccountId :: 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 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.
djVaultName :: Lens' DescribeJob Text Source #
The name of the vault.
Destructuring the Response
glacierJobDescription :: GlacierJobDescription Source #
Creates a value of GlacierJobDescription
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gjdSHA256TreeHash
- 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 isInProgress
* Inventory jobs * Select jobsgjdArchiveId
- The archive ID requested for a select job or archive retrieval. Otherwise, this field is null.gjdSelectParameters
- Contains the parameters used for a select.gjdJobId
- An opaque string that identifies an Amazon Glacier job.gjdJobOutputPath
- Contains the job output location.gjdRetrievalByteRange
- 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.gjdInventoryRetrievalParameters
- Parameters used for range inventory retrieval.gjdAction
- The job type. This value is eitherArchiveRetrieval
,InventoryRetrieval
, orSelect
.gjdJobDescription
- The job description provided when initiating the job.gjdSNSTopic
- An Amazon SNS topic that receives notification.gjdStatusMessage
- A friendly message that describes the job status.gjdVaultARN
- The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.gjdOutputLocation
- Contains the location where the data from the select job is stored.gjdTier
- The tier to use for a select or an archive retrieval. Valid values areExpedited
,Standard
, orBulk
.Standard
is the default.gjdArchiveSHA256TreeHash
- The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null.gjdCreationDate
- 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"
.gjdCompleted
- The job status. When a job is completed, you get the job's output using Get Job Output (GET output).gjdCompletionDate
- The UTC time that the job request completed. While the job is in progress, the value is null.gjdInventorySizeInBytes
- 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.gjdArchiveSizeInBytes
- 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.gjdStatusCode
- The status code can beInProgress
,Succeeded
, orFailed
, and indicates the status of the job.
data GlacierJobDescription Source #
Contains the description of an Amazon Glacier job.
See: glacierJobDescription
smart constructor.
Response Lenses
gjdSHA256TreeHash :: 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
gjdArchiveId :: Lens' GlacierJobDescription (Maybe Text) Source #
The archive ID requested for a select job or archive retrieval. Otherwise, this field is null.
gjdSelectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters) Source #
Contains the parameters used for a select.
gjdJobId :: Lens' GlacierJobDescription (Maybe Text) Source #
An opaque string that identifies an Amazon Glacier job.
gjdJobOutputPath :: Lens' GlacierJobDescription (Maybe Text) Source #
Contains the job output location.
gjdRetrievalByteRange :: 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.
gjdInventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription) Source #
Parameters used for range inventory retrieval.
gjdAction :: Lens' GlacierJobDescription (Maybe ActionCode) Source #
The job type. This value is either ArchiveRetrieval
, InventoryRetrieval
, or Select
.
gjdJobDescription :: Lens' GlacierJobDescription (Maybe Text) Source #
The job description provided when initiating the job.
gjdSNSTopic :: Lens' GlacierJobDescription (Maybe Text) Source #
An Amazon SNS topic that receives notification.
gjdStatusMessage :: Lens' GlacierJobDescription (Maybe Text) Source #
A friendly message that describes the job status.
gjdVaultARN :: Lens' GlacierJobDescription (Maybe Text) Source #
The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.
gjdOutputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation) Source #
Contains the location where the data from the select job is stored.
gjdTier :: 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.
gjdArchiveSHA256TreeHash :: 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.
gjdCreationDate :: 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"
.
gjdCompleted :: 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).
gjdCompletionDate :: Lens' GlacierJobDescription (Maybe Text) Source #
The UTC time that the job request completed. While the job is in progress, the value is null.
gjdInventorySizeInBytes :: 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.
gjdArchiveSizeInBytes :: 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.
gjdStatusCode :: Lens' GlacierJobDescription (Maybe StatusCode) Source #
The status code can be InProgress
, Succeeded
, or Failed
, and indicates the status of the job.