{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-describe-export-tasks-response-schema.json",
  "title": "DescribeExportTasksResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-export-task-api-openapi.yml#/components/schemas/DescribeExportTasksResponse",
  "type": "object",
  "properties": {
    "exportTasks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExportTask"
      },
      "description": "The export tasks."
    },
    "nextToken": {
      "type": "string"
    }
  },
  "$defs": {
    "ExportTask": {
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string",
          "description": "The ID of the export task."
        },
        "taskName": {
          "type": "string",
          "description": "The name of the export task."
        },
        "logGroupName": {
          "type": "string",
          "description": "The name of the log group from which logs data was exported."
        },
        "from": {
          "type": "integer",
          "description": "The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not exported."
        },
        "to": {
          "type": "integer",
          "description": "The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported."
        },
        "destination": {
          "type": "string",
          "description": "The name of the S3 bucket to which the log data was exported."
        },
        "destinationPrefix": {
          "type": "string",
          "description": "The prefix that was used as the start of Amazon S3 key for every object exported."
        },
        "status": {
          "$ref": "#/$defs/ExportTaskStatus"
        },
        "executionInfo": {
          "$ref": "#/$defs/ExportTaskExecutionInfo"
        }
      }
    },
    "ExportTaskExecutionInfo": {
      "type": "object",
      "properties": {
        "creationTime": {
          "type": "integer",
          "description": "The creation time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC."
        },
        "completionTime": {
          "type": "integer",
          "description": "The completion time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC."
        }
      }
    },
    "ExportTaskStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "CANCELLED",
            "COMPLETED",
            "FAILED",
            "PENDING",
            "PENDING_CANCEL",
            "RUNNING"
          ],
          "description": "The status code of the export task."
        },
        "message": {
          "type": "string",
          "description": "The status message related to the status code."
        }
      }
    }
  }
}