{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotevents-input.json",
  "title": "AWSIoTEventsInputProperties",
  "description": "The AWS::IoTEvents::Input resource creates an input. To monitor your devices and processes, they must have a way to get telemetry data into AWS IoT Events. This is done by sending messages as *inputs* to AWS IoT Events. For more information, see [How to Use AWS IoT Events](https://docs.aws.amazon.com/iotevents/latest/developerguide/how-to-use-iotevents.html) in the *AWS IoT Events Developer Guide*.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iotevents.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iotevents-input.json",
    "sourceSha256": "660aaefa6d9976586c9997233f1e2112428219925e6ee0090f92b48d34f8bd71"
  },
  "type": "object",
  "properties": {
    "InputDefinition": {
      "$ref": "#/$defs/InputDefinition"
    },
    "InputDescription": {
      "oneOf": [
        {
          "minLength": 1,
          "maxLength": 128,
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A brief description of the input."
    },
    "InputName": {
      "oneOf": [
        {
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$",
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the input."
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "description": "An array of key-value pairs to apply to this resource.\n\nFor more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IoTEvents::Input",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iotevents.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/InputName"
  ],
  "$defs": {
    "InputDefinition": {
      "type": "object",
      "title": "AWSIoTEventsInputInputDefinition",
      "description": "The definition of the input.",
      "properties": {
        "Attributes": {
          "type": "array",
          "uniqueItems": true,
          "insertionOrder": false,
          "description": "The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using `BatchPutMessage`. Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in the `condition` expressions used by detectors that monitor this input.",
          "minItems": 1,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Attribute"
          }
        }
      },
      "required": [
        "Attributes"
      ],
      "additionalProperties": false
    },
    "Attribute": {
      "type": "object",
      "title": "AWSIoTEventsInputAttributeDefinition",
      "description": "The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using `BatchPutMessage`. Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in the `condition` expressions used by detectors that monitor this input.",
      "properties": {
        "JsonPath": {
          "oneOf": [
            {
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^((`[a-zA-Z0-9_\\- ]+`)|([a-zA-Z0-9_\\-]+))(\\.((`[a-zA-Z0-9_\\- ]+`)|([a-zA-Z0-9_\\-]+)))*$",
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to AWS IoT Events (`BatchPutMessage`). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the `condition` expressions used by detectors.\n\n_Syntax_: `<field-name>.<field-name>...`"
        }
      },
      "required": [
        "JsonPath"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSIoTEventsInputTagDefinition",
      "description": "Tags to be applied to Input.",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Key of the Tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Value of the Tag."
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "InputDefinition"
  ],
  "primaryIdentifier": [
    "/properties/InputName"
  ]
}
