{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-redshift-eventsubscription.json",
  "title": "AWSRedshiftEventSubscriptionProperties",
  "description": "The `AWS::Redshift::EventSubscription` resource creates an Amazon Redshift Event Subscription.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-redshift-eventsubscription.json",
    "sourceSha256": "3fed0076028c8b384ff0eb0dea8af7b740c5232235c649912689f8aabe065e1e"
  },
  "type": "object",
  "properties": {
    "SubscriptionName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(?=^[a-z][a-z0-9]*(-[a-z0-9]+)*$).{1,255}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the Amazon Redshift event notification subscription"
    },
    "SnsTopicArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications."
    },
    "SourceType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "cluster",
            "cluster-parameter-group",
            "cluster-security-group",
            "cluster-snapshot",
            "scheduled-action"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of source that will be generating the events."
    },
    "SourceIds": {
      "description": "A list of one or more identifiers of Amazon Redshift source objects.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "EventCategories": {
      "description": "Specifies the Amazon Redshift event categories to be published by the event notification subscription.",
      "type": "array",
      "insertionOrder": false,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "configuration",
          "management",
          "monitoring",
          "security",
          "pending"
        ]
      }
    },
    "Severity": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ERROR",
            "INFO"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Specifies the Amazon Redshift event severity to be published by the event notification subscription."
    },
    "Enabled": {
      "description": "A boolean value; set to true to activate the subscription, and set to false to create the subscription but not activate it.",
      "type": "boolean"
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Redshift::EventSubscription",
  "writeOnlyProperties": [
    "/properties/Tags",
    "/properties/Tags/*/Key",
    "/properties/Tags/*/Value"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/CustomerAwsId",
    "/properties/CustSubscriptionId",
    "/properties/Status",
    "/properties/SubscriptionCreationTime",
    "/properties/SourceIdsList",
    "/properties/EventCategoriesList"
  ],
  "tagging": {
    "taggable": true
  },
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "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": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSRedshiftEventSubscriptionTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "SubscriptionName"
  ],
  "primaryIdentifier": [
    "/properties/SubscriptionName"
  ],
  "createOnlyProperties": [
    "/properties/SubscriptionName"
  ]
}
