{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-devopsguru-notificationchannel.json",
  "title": "AWSDevOpsGuruNotificationChannelProperties",
  "description": "This resource schema represents the NotificationChannel resource in the Amazon DevOps Guru.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-devops-guru>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-devopsguru-notificationchannel.json",
    "sourceSha256": "66a02d4767df38f0f6d643fd01c25d0e191dcedd3f29dc05985e7fc7a51ea71d"
  },
  "type": "object",
  "properties": {
    "Config": {
      "$ref": "#/$defs/NotificationChannelConfig"
    }
  },
  "typeName": "AWS::DevOpsGuru::NotificationChannel",
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-devops-guru",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "NotificationChannelConfig": {
      "description": "Information about notification channels you have configured with DevOps Guru.",
      "type": "object",
      "properties": {
        "Sns": {
          "$ref": "#/$defs/SnsChannelConfig"
        },
        "Filters": {
          "$ref": "#/$defs/NotificationFilterConfig"
        }
      },
      "title": "AWSDevOpsGuruNotificationChannelNotificationChannelConfigDefinition",
      "additionalProperties": false
    },
    "SnsChannelConfig": {
      "description": "Information about a notification channel configured in DevOps Guru to send notifications when insights are created.",
      "type": "object",
      "properties": {
        "TopicArn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 36,
              "maxLength": 1024,
              "pattern": "^arn:aws[a-z0-9-]*:sns:[a-z0-9-]+:\\d{12}:[^:]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSDevOpsGuruNotificationChannelSnsChannelConfigDefinition",
      "additionalProperties": false
    },
    "NotificationFilterConfig": {
      "description": "Information about filters of a notification channel configured in DevOpsGuru to filter for insights.",
      "type": "object",
      "properties": {
        "Severities": {
          "$ref": "#/$defs/InsightSeveritiesFilterList"
        },
        "MessageTypes": {
          "$ref": "#/$defs/NotificationMessageTypesFilterList"
        }
      },
      "title": "AWSDevOpsGuruNotificationChannelNotificationFilterConfigDefinition",
      "additionalProperties": false
    },
    "InsightSeverity": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "LOW",
            "MEDIUM",
            "HIGH"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "DevOps Guru Insight Severity Enum",
      "title": "AWSDevOpsGuruNotificationChannelInsightSeverityDefinition"
    },
    "NotificationMessageType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "NEW_INSIGHT",
            "CLOSED_INSIGHT",
            "NEW_ASSOCIATION",
            "SEVERITY_UPGRADED",
            "NEW_RECOMMENDATION"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "DevOps Guru NotificationMessageType Enum",
      "title": "AWSDevOpsGuruNotificationChannelNotificationMessageTypeDefinition"
    },
    "InsightSeveritiesFilterList": {
      "description": "DevOps Guru insight severities to filter for",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/InsightSeverity"
      },
      "maxItems": 3,
      "minItems": 1,
      "title": "AWSDevOpsGuruNotificationChannelInsightSeveritiesFilterListDefinition"
    },
    "NotificationMessageTypesFilterList": {
      "description": "DevOps Guru message types to filter for",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/NotificationMessageType"
      },
      "maxItems": 5,
      "minItems": 1,
      "title": "AWSDevOpsGuruNotificationChannelNotificationMessageTypesFilterListDefinition"
    }
  },
  "required": [
    "Config"
  ],
  "createOnlyProperties": [
    "/properties/Config"
  ]
}
