{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-codestarnotifications-notificationrule.json",
  "title": "AWSCodeStarNotificationsNotificationRuleProperties",
  "description": "Resource Type definition for AWS::CodeStarNotifications::NotificationRule. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-codestarnotifications-notificationrule.json",
    "sourceSha256": "7f7f404682c6111178c715d3ca0e41e93f01d8dfd25780b69df371016fc9e1fc"
  },
  "type": "object",
  "properties": {
    "EventTypeId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CreatedBy": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "TargetAddress": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EventTypeIds": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    },
    "Status": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DetailType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "BASIC",
            "FULL"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Resource": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[^:\\s]*:[^:\\s]*:[^:\\s]*:[0-9]{12}:[^\\s]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Targets": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Target"
      },
      "maxItems": 10
    },
    "Tags": {
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        ".*": {
          "type": "string"
        }
      }
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[A-Za-z0-9\\-_ ]+$",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::CodeStarNotifications::NotificationRule",
  "writeOnlyProperties": [
    "/properties/EventTypeId",
    "/properties/TargetAddress"
  ],
  "$defs": {
    "Target": {
      "type": "object",
      "title": "AWSCodeStarNotificationsNotificationRuleTargetDefinition",
      "properties": {
        "TargetType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TargetAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "TargetType",
        "TargetAddress"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "additionalProperties": false,
  "required": [
    "EventTypeIds",
    "Resource",
    "DetailType",
    "Targets",
    "Name"
  ],
  "createOnlyProperties": [
    "/properties/Resource"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ]
}
