{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-data-integration-request-schema.json",
  "title": "CreateDataIntegrationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-dataintegrations-api-openapi.yml#/components/schemas/CreateDataIntegrationRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the DataIntegration."
    },
    "Description": {
      "type": "string",
      "description": "A description of the DataIntegration."
    },
    "KmsKey": {
      "type": "string",
      "description": "The KMS key ARN for the DataIntegration."
    },
    "SourceURI": {
      "type": "string",
      "description": "The URI of the data source."
    },
    "ScheduleConfig": {
      "$ref": "#/$defs/AppIntegrationsScheduleConfiguration"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."
    },
    "FileConfiguration": {
      "$ref": "#/$defs/FileConfiguration"
    },
    "ObjectConfiguration": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "The configuration for what data should be pulled from the source."
    }
  },
  "required": [
    "Name",
    "KmsKey"
  ],
  "$defs": {
    "AppIntegrationsScheduleConfiguration": {
      "type": "object",
      "properties": {
        "FirstExecutionFrom": {
          "type": "string",
          "description": "The start date for objects to import in the first flow run as an Unix/epoch timestamp in milliseconds or in ISO-8601 format."
        },
        "Object": {
          "type": "string",
          "description": "The name of the object to pull from the data source."
        },
        "ScheduleExpression": {
          "type": "string",
          "description": "How often the data should be pulled from data source."
        }
      },
      "required": [
        "ScheduleExpression"
      ]
    },
    "FileConfiguration": {
      "type": "object",
      "properties": {
        "Folders": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Identifiers for the source folders to pull all files from recursively."
        },
        "Filters": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "Restrictions for what files should be pulled from the source."
        }
      },
      "required": [
        "Folders"
      ]
    }
  }
}