{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-create-export-task-request-schema.json",
  "title": "CreateExportTaskRequest",
  "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/CreateExportTaskRequest",
  "type": "object",
  "properties": {
    "taskName": {
      "type": "string",
      "description": "The name of the export task."
    },
    "logGroupName": {
      "type": "string",
      "description": "The name of the log group."
    },
    "logStreamNamePrefix": {
      "type": "string",
      "description": "Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied."
    },
    "from": {
      "type": "integer",
      "description": "The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported."
    },
    "to": {
      "type": "integer",
      "description": "The end time of the range for the request, 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. You must specify a time that is not earlier than when this log group was created."
    },
    "destination": {
      "type": "string",
      "description": "The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region."
    },
    "destinationPrefix": {
      "type": "string",
      "description": "The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs. The length of this parameter must comply with the S3 object key name length limits. The object key name is a sequence of Unicode characters with UTF-8 encoding, and can be up to 1,024 bytes."
    }
  },
  "required": [
    "logGroupName",
    "from",
    "to",
    "destination"
  ]
}