{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-start-import-request-schema.json",
  "title": "StartImportRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-import-api-openapi.yml#/components/schemas/StartImportRequest",
  "type": "object",
  "properties": {
    "Destinations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ARN of the destination event data store. Use this parameter for a new import."
    },
    "ImportSource": {
      "$ref": "#/$defs/ImportSource"
    },
    "StartEventTime": {
      "type": "string",
      "format": "date-time",
      "description": "Use with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specified StartEventTime and EndEventTime before attempting to import events."
    },
    "EndEventTime": {
      "type": "string",
      "format": "date-time",
      "description": "Use with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specified StartEventTime and EndEventTime before attempting to import events."
    },
    "ImportId": {
      "type": "string",
      "description": "The ID of the import. Use this parameter when you are retrying an import."
    }
  },
  "$defs": {
    "ImportSource": {
      "type": "object",
      "properties": {
        "S3": {
          "$ref": "#/$defs/S3ImportSource"
        }
      },
      "required": [
        "S3"
      ]
    },
    "S3ImportSource": {
      "type": "object",
      "properties": {
        "S3LocationUri": {
          "type": "string",
          "description": "The URI for the source S3 bucket."
        },
        "S3BucketRegion": {
          "type": "string",
          "description": "The Region associated with the source S3 bucket."
        },
        "S3BucketAccessRoleArn": {
          "type": "string",
          "description": "The IAM ARN role used to access the source S3 bucket."
        }
      },
      "required": [
        "S3LocationUri",
        "S3BucketRegion",
        "S3BucketAccessRoleArn"
      ]
    }
  }
}