{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-list-insights-data-request-schema.json",
  "title": "ListInsightsDataRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-operations-api-openapi.yml#/components/schemas/ListInsightsDataRequest",
  "type": "object",
  "properties": {
    "InsightSource": {
      "type": "string",
      "description": "The Amazon Resource Name(ARN) of the trail for which you want to retrieve Insights events."
    },
    "DataType": {
      "type": "string",
      "enum": [
        "InsightsEvents"
      ],
      "description": "Specifies the category of events returned. To fetch Insights events, specify InsightsEvents as the value of DataType"
    },
    "Dimensions": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Contains a map of dimensions. Currently the map can contain only one item."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The number of events to return. Possible values are 1 through 50. The default is 50."
    },
    "NextToken": {
      "type": "string",
      "description": "The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified a EventName as a dimension with PutObject as a value, the call with NextToken should include those same parameters."
    }
  },
  "required": [
    "InsightSource",
    "DataType"
  ]
}