{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iot-topicruledestination.json",
  "title": "AWSIoTTopicRuleDestinationProperties",
  "description": "Resource Type definition for AWS::IoT::TopicRuleDestination. 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-iot-topicruledestination.json",
    "sourceSha256": "0b22c10a7b87f9592945cfb082bf97c4c65afd57f48eaaf880549a72c7042d62"
  },
  "type": "object",
  "properties": {
    "Status": {
      "description": "The status of the TopicRuleDestination.",
      "$ref": "#/$defs/TopicRuleDestinationStatus"
    },
    "HttpUrlProperties": {
      "description": "HTTP URL destination properties.",
      "$ref": "#/$defs/HttpUrlDestinationSummary"
    },
    "VpcProperties": {
      "description": "VPC destination properties.",
      "$ref": "#/$defs/VpcDestinationProperties"
    }
  },
  "typeName": "AWS::IoT::TopicRuleDestination",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/HttpUrlProperties",
    "/properties/VpcProperties"
  ],
  "$defs": {
    "TopicRuleDestinationStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ENABLED",
            "IN_PROGRESS",
            "DISABLED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSIoTTopicRuleDestinationTopicRuleDestinationStatusDefinition"
    },
    "HttpUrlDestinationSummary": {
      "type": "object",
      "title": "AWSIoTTopicRuleDestinationHttpUrlDestinationSummaryDefinition",
      "properties": {
        "ConfirmationUrl": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "VpcDestinationProperties": {
      "type": "object",
      "title": "AWSIoTTopicRuleDestinationVpcDestinationPropertiesDefinition",
      "properties": {
        "SubnetIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "SecurityGroups": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "VpcId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/StatusReason"
  ]
}
