glacier_describe_job: This operation returns information about a job you previously...

Description Usage Arguments Value Request syntax Examples

View source: R/glacier_operations.R

Description

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 initiate_job.

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.

Usage

1
glacier_describe_job(accountId, vaultName, jobId)

Arguments

accountId

[required] 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.

vaultName

[required] The name of the vault.

jobId

[required] The ID of the job to describe.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
list(
  JobId = "string",
  JobDescription = "string",
  Action = "ArchiveRetrieval"|"InventoryRetrieval"|"Select",
  ArchiveId = "string",
  VaultARN = "string",
  CreationDate = "string",
  Completed = TRUE|FALSE,
  StatusCode = "InProgress"|"Succeeded"|"Failed",
  StatusMessage = "string",
  ArchiveSizeInBytes = 123,
  InventorySizeInBytes = 123,
  SNSTopic = "string",
  CompletionDate = "string",
  SHA256TreeHash = "string",
  ArchiveSHA256TreeHash = "string",
  RetrievalByteRange = "string",
  Tier = "string",
  InventoryRetrievalParameters = list(
    Format = "string",
    StartDate = "string",
    EndDate = "string",
    Limit = "string",
    Marker = "string"
  ),
  JobOutputPath = "string",
  SelectParameters = list(
    InputSerialization = list(
      csv = list(
        FileHeaderInfo = "USE"|"IGNORE"|"NONE",
        Comments = "string",
        QuoteEscapeCharacter = "string",
        RecordDelimiter = "string",
        FieldDelimiter = "string",
        QuoteCharacter = "string"
      )
    ),
    ExpressionType = "SQL",
    Expression = "string",
    OutputSerialization = list(
      csv = list(
        QuoteFields = "ALWAYS"|"ASNEEDED",
        QuoteEscapeCharacter = "string",
        RecordDelimiter = "string",
        FieldDelimiter = "string",
        QuoteCharacter = "string"
      )
    )
  ),
  OutputLocation = list(
    S3 = list(
      BucketName = "string",
      Prefix = "string",
      Encryption = list(
        EncryptionType = "aws:kms"|"AES256",
        KMSKeyId = "string",
        KMSContext = "string"
      ),
      CannedACL = "private"|"public-read"|"public-read-write"|"aws-exec-read"|"authenticated-read"|"bucket-owner-read"|"bucket-owner-full-control",
      AccessControlList = list(
        list(
          Grantee = list(
            Type = "AmazonCustomerByEmail"|"CanonicalUser"|"Group",
            DisplayName = "string",
            URI = "string",
            ID = "string",
            EmailAddress = "string"
          ),
          Permission = "FULL_CONTROL"|"WRITE"|"WRITE_ACP"|"READ"|"READ_ACP"
        )
      ),
      Tagging = list(
        "string"
      ),
      UserMetadata = list(
        "string"
      ),
      StorageClass = "STANDARD"|"REDUCED_REDUNDANCY"|"STANDARD_IA"
    )
  )
)

Request syntax

1
2
3
4
5
svc$describe_job(
  accountId = "string",
  vaultName = "string",
  jobId = "string"
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# The example returns information about the previously initiated job
# specified by the job ID.
svc$describe_job(
  accountId = "-",
  jobId = "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ej...",
  vaultName = "my-vault"
)

## End(Not run)

paws.storage documentation built on Aug. 23, 2021, 1:06 a.m.