{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-get-import-response-schema.json",
  "title": "GetImportResponse",
  "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/GetImportResponse",
  "type": "object",
  "properties": {
    "ImportId": {
      "type": "string",
      "description": "The ID of the import."
    },
    "Destinations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ARN of the destination event data store."
    },
    "ImportSource": {
      "$ref": "#/$defs/ImportSource"
    },
    "StartEventTime": {
      "type": "string",
      "format": "date-time",
      "description": "Used with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period."
    },
    "EndEventTime": {
      "type": "string",
      "format": "date-time",
      "description": "Used with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period."
    },
    "ImportStatus": {
      "type": "string",
      "enum": [
        "INITIALIZING",
        "IN_PROGRESS",
        "FAILED",
        "STOPPED",
        "COMPLETED"
      ],
      "description": "The status of the import."
    },
    "CreatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the import's creation."
    },
    "UpdatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the import was updated."
    },
    "ImportStatistics": {
      "$ref": "#/$defs/ImportStatistics"
    }
  },
  "$defs": {
    "ImportSource": {
      "type": "object",
      "properties": {
        "S3": {
          "$ref": "#/$defs/S3ImportSource"
        }
      },
      "required": [
        "S3"
      ]
    },
    "ImportStatistics": {
      "type": "object",
      "properties": {
        "PrefixesFound": {
          "type": "integer",
          "description": "The number of S3 prefixes found for the import."
        },
        "PrefixesCompleted": {
          "type": "integer",
          "description": "The number of S3 prefixes that completed import."
        },
        "FilesCompleted": {
          "type": "integer",
          "description": "The number of log files that completed import."
        },
        "EventsCompleted": {
          "type": "integer",
          "description": "The number of trail events imported into the event data store."
        },
        "FailedEntries": {
          "type": "integer",
          "description": "The number of failed entries."
        }
      }
    },
    "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"
      ]
    }
  }
}