{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3-glacier/json-schema/amazon-s3-glacier-glacier-job-description-schema.json",
  "title": "GlacierJobDescription",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-glacier-operations-api-openapi.yml#/components/schemas/GlacierJobDescription",
  "type": "object",
  "properties": {
    "JobId": {
      "type": "string",
      "description": "An opaque string that identifies an Amazon S3 Glacier job."
    },
    "JobDescription": {
      "type": "string",
      "description": "The job description provided when initiating the job."
    },
    "Action": {
      "type": "string",
      "enum": [
        "ArchiveRetrieval",
        "InventoryRetrieval",
        "Select"
      ],
      "description": "The job type. This value is either ArchiveRetrieval, InventoryRetrieval, or Select."
    },
    "ArchiveId": {
      "type": "string",
      "description": "The archive ID requested for a select job or archive retrieval. Otherwise, this field is null."
    },
    "VaultARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested."
    },
    "CreationDate": {
      "type": "string",
      "description": "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\"."
    },
    "Completed": {
      "type": "boolean",
      "description": "The job status. When a job is completed, you get the job's output using Get Job Output (GET output)."
    },
    "StatusCode": {
      "type": "string",
      "enum": [
        "InProgress",
        "Succeeded",
        "Failed"
      ],
      "description": "The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job."
    },
    "StatusMessage": {
      "type": "string",
      "description": "A friendly message that describes the job status."
    },
    "ArchiveSizeInBytes": {
      "type": "integer",
      "description": "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."
    },
    "InventorySizeInBytes": {
      "type": "integer",
      "description": "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."
    },
    "SNSTopic": {
      "type": "string",
      "description": "An Amazon SNS topic that receives notification."
    },
    "CompletionDate": {
      "type": "string",
      "description": "The UTC time that the job request completed. While the job is in progress, the value is null."
    },
    "SHA256TreeHash": {
      "type": "string",
      "description": "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 Invento"
    },
    "ArchiveSHA256TreeHash": {
      "type": "string",
      "description": "The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null."
    },
    "RetrievalByteRange": {
      "type": "string",
      "description": "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."
    },
    "Tier": {
      "type": "string",
      "description": "The tier to use for a select or an archive retrieval. Valid values are Expedited, Standard, or Bulk. Standard is the default."
    },
    "InventoryRetrievalParameters": {
      "$ref": "#/$defs/InventoryRetrievalJobDescription"
    },
    "JobOutputPath": {
      "type": "string",
      "description": "Contains the job output location."
    },
    "SelectParameters": {
      "$ref": "#/$defs/SelectParameters"
    },
    "OutputLocation": {
      "$ref": "#/$defs/OutputLocation"
    }
  },
  "$defs": {
    "CSVInput": {
      "type": "object",
      "properties": {
        "FileHeaderInfo": {
          "type": "string",
          "enum": [
            "USE",
            "IGNORE",
            "NONE"
          ],
          "description": "Describes the first line of input. Valid values are None, Ignore, and Use."
        },
        "Comments": {
          "type": "string",
          "description": "A single character used to indicate that a row should be ignored when the character is present at the start of that row."
        },
        "QuoteEscapeCharacter": {
          "type": "string",
          "description": "A single character used for escaping the quotation-mark character inside an already escaped value."
        },
        "RecordDelimiter": {
          "type": "string",
          "description": "A value used to separate individual records from each other."
        },
        "FieldDelimiter": {
          "type": "string",
          "description": "A value used to separate individual fields from each other within a record."
        },
        "QuoteCharacter": {
          "type": "string",
          "description": "A value used as an escape character where the field delimiter is part of the value."
        }
      }
    },
    "CSVOutput": {
      "type": "object",
      "properties": {
        "QuoteFields": {
          "type": "string",
          "enum": [
            "ALWAYS",
            "ASNEEDED"
          ],
          "description": "A value that indicates whether all output fields should be contained within quotation marks."
        },
        "QuoteEscapeCharacter": {
          "type": "string",
          "description": "A single character used for escaping the quotation-mark character inside an already escaped value."
        },
        "RecordDelimiter": {
          "type": "string",
          "description": "A value used to separate individual records from each other."
        },
        "FieldDelimiter": {
          "type": "string",
          "description": "A value used to separate individual fields from each other within a record."
        },
        "QuoteCharacter": {
          "type": "string",
          "description": "A value used as an escape character where the field delimiter is part of the value."
        }
      }
    },
    "Encryption": {
      "type": "object",
      "properties": {
        "EncryptionType": {
          "type": "string",
          "enum": [
            "aws:kms",
            "AES256"
          ],
          "description": "The server-side encryption algorithm used when storing job results in Amazon S3, for example AES256 or aws:kms."
        },
        "KMSKeyId": {
          "type": "string",
          "description": "The AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS fail if not made by using Secure Sockets Layer (SSL) or Signature Version 4."
        },
        "KMSContext": {
          "type": "string",
          "description": "Optional. If the encryption type is aws:kms, you can use this value to specify the encryption context for the job results."
        }
      }
    },
    "Grant": {
      "type": "object",
      "properties": {
        "Grantee": {
          "$ref": "#/$defs/Grantee"
        },
        "Permission": {
          "type": "string",
          "enum": [
            "FULL_CONTROL",
            "WRITE",
            "WRITE_ACP",
            "READ",
            "READ_ACP"
          ],
          "description": "Specifies the permission given to the grantee."
        }
      }
    },
    "Grantee": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "AmazonCustomerByEmail",
            "CanonicalUser",
            "Group"
          ],
          "description": "Type of grantee"
        },
        "DisplayName": {
          "type": "string",
          "description": "Screen name of the grantee."
        },
        "URI": {
          "type": "string",
          "description": "URI of the grantee group."
        },
        "ID": {
          "type": "string",
          "description": "The canonical user ID of the grantee."
        },
        "EmailAddress": {
          "type": "string",
          "description": "Email address of the grantee."
        }
      },
      "required": [
        "Type"
      ]
    },
    "InputSerialization": {
      "type": "object",
      "properties": {
        "csv": {
          "$ref": "#/$defs/CSVInput"
        }
      }
    },
    "InventoryRetrievalJobDescription": {
      "type": "object",
      "properties": {
        "Format": {
          "type": "string",
          "description": "The output format for the vault inventory list, which is set by the InitiateJob request when initiating a job to retrieve a vault inventory. Valid values are CSV and JSON."
        },
        "StartDate": {
          "type": "string",
          "description": "The start of the date range in Universal Coordinated Time (UTC) for vault inventory retrieval that includes archives created on or after this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z."
        },
        "EndDate": {
          "type": "string",
          "description": "The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z."
        },
        "Limit": {
          "type": "string",
          "description": "The maximum number of inventory items returned per vault inventory retrieval request. This limit is set when initiating the job with the a InitiateJob request."
        },
        "Marker": {
          "type": "string",
          "description": "An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null. For more information, see Range Inventory Retrieval."
        }
      }
    },
    "OutputLocation": {
      "type": "object",
      "properties": {
        "S3": {
          "$ref": "#/$defs/S3Location"
        }
      }
    },
    "OutputSerialization": {
      "type": "object",
      "properties": {
        "csv": {
          "$ref": "#/$defs/CSVOutput"
        }
      }
    },
    "S3Location": {
      "type": "object",
      "properties": {
        "BucketName": {
          "type": "string",
          "description": "The name of the Amazon S3 bucket where the job results are stored."
        },
        "Prefix": {
          "type": "string",
          "description": "The prefix that is prepended to the results for this request."
        },
        "Encryption": {
          "$ref": "#/$defs/Encryption"
        },
        "CannedACL": {
          "type": "string",
          "enum": [
            "private",
            "public-read",
            "public-read-write",
            "aws-exec-read",
            "authenticated-read",
            "bucket-owner-read",
            "bucket-owner-full-control"
          ],
          "description": "The canned access control list (ACL) to apply to the job results."
        },
        "AccessControlList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Grant"
          },
          "description": "A list of grants that control access to the staged results."
        },
        "Tagging": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tag-set that is applied to the job results."
        },
        "UserMetadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of metadata to store with the job results in Amazon S3."
        },
        "StorageClass": {
          "type": "string",
          "enum": [
            "STANDARD",
            "REDUCED_REDUNDANCY",
            "STANDARD_IA"
          ],
          "description": "The storage class used to store the job results."
        }
      }
    },
    "SelectParameters": {
      "type": "object",
      "properties": {
        "InputSerialization": {
          "$ref": "#/$defs/InputSerialization"
        },
        "ExpressionType": {
          "type": "string",
          "enum": [
            "SQL"
          ],
          "description": "The type of the provided expression, for example SQL."
        },
        "Expression": {
          "type": "string",
          "description": "The expression that is used to select the object."
        },
        "OutputSerialization": {
          "$ref": "#/$defs/OutputSerialization"
        }
      }
    }
  }
}