{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-export-task-schema.json",
  "title": "ExportTask",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rds-export-task-api-openapi.yml#/components/schemas/ExportTask",
  "type": "object",
  "properties": {
    "ExportTaskIdentifier": {
      "type": "string",
      "description": "A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported."
    },
    "SourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3."
    },
    "ExportOnly": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The data exported from the snapshot or cluster. Valid Values: database - Export all the data from a specified database. database.table table-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. database.schema schema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. database.schema.table table-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL."
    },
    "SnapshotTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the snapshot was created."
    },
    "TaskStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the snapshot or cluster export task started."
    },
    "TaskEndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the snapshot or cluster export task ended."
    },
    "S3Bucket": {
      "type": "string",
      "description": "The Amazon S3 bucket where the snapshot or cluster is exported to."
    },
    "S3Prefix": {
      "type": "string",
      "description": "The Amazon S3 bucket prefix that is the file name and path of the exported data."
    },
    "IamRoleArn": {
      "type": "string",
      "description": "The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster."
    },
    "KmsKeyId": {
      "type": "string",
      "description": "The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key."
    },
    "Status": {
      "type": "string",
      "description": "The progress status of the export task. The status can be one of the following: CANCELED CANCELING COMPLETE FAILED IN_PROGRESS STARTING"
    },
    "PercentProgress": {
      "type": "integer",
      "description": "The progress of the snapshot or cluster export task as a percentage."
    },
    "TotalExtractedDataInGB": {
      "type": "integer",
      "description": "The total amount of data exported, in gigabytes."
    },
    "FailureCause": {
      "type": "string",
      "description": "The reason the export failed, if it failed."
    },
    "WarningMessage": {
      "type": "string",
      "description": "A warning about the snapshot or cluster export task."
    },
    "SourceType": {
      "type": "string",
      "enum": [
        "SNAPSHOT",
        "CLUSTER"
      ],
      "description": "The type of source for the export."
    }
  }
}