{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-appintegrations-eventintegration.json",
  "title": "AWSAppIntegrationsEventIntegrationProperties",
  "description": "Resource Type definition for AWS::AppIntegrations::EventIntegration. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-appintegrations-eventintegration.json",
    "sourceSha256": "5bd9fac69d3f6cb50cd3172780f8f47e4c3143c50d1a325bd8a030e06d7986c1"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The event integration description."
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9/\\._\\-]+$",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the event integration."
    },
    "EventBridgeBus": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9/\\._\\-]+$",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Eventbridge bus for the event integration."
    },
    "EventFilter": {
      "description": "The EventFilter (source) associated with the event integration.",
      "$ref": "#/$defs/EventFilter"
    },
    "Tags": {
      "description": "The tags (keys and values) associated with the event integration.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "minItems": 0,
      "maxItems": 200
    }
  },
  "typeName": "AWS::AppIntegrations::EventIntegration",
  "primaryIdentifier": [
    "/properties/Name"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/EventBridgeBus",
    "/properties/EventFilter"
  ],
  "$defs": {
    "EventFilter": {
      "type": "object",
      "properties": {
        "Source": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^aws\\.partner\\/.*$",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The source of the events."
        }
      },
      "title": "AWSAppIntegrationsEventIntegrationEventFilterDefinition",
      "required": [
        "Source"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A key to identify the tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Corresponding tag value for the key."
        }
      },
      "title": "AWSAppIntegrationsEventIntegrationTagDefinition",
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    },
    "Metadata": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": ".*\\S.*",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A key to identify the metadata."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": ".*\\S.*",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Corresponding metadata value for the key."
        }
      },
      "title": "AWSAppIntegrationsEventIntegrationMetadataDefinition",
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "EventBridgeBus",
    "EventFilter"
  ],
  "readOnlyProperties": [
    "/properties/EventIntegrationArn"
  ]
}
