{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ses-configurationseteventdestination.json",
  "title": "AWSSESConfigurationSetEventDestinationProperties",
  "description": "Resource Type definition for AWS::SES::ConfigurationSetEventDestination. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ses.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ses-configurationseteventdestination.json",
    "sourceSha256": "59bcd4b1a374bf1d234b468fc1e648d6dbcdfdc1b49297317025b6f8e205fb40"
  },
  "type": "object",
  "properties": {
    "ConfigurationSetName": {
      "oneOf": [
        {
          "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 configuration set that contains the event destination."
    },
    "EventDestination": {
      "description": "The event destination object.",
      "$ref": "#/$defs/EventDestination"
    }
  },
  "typeName": "AWS::SES::ConfigurationSetEventDestination",
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ses.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "EventDestination": {
      "type": "object",
      "title": "AWSSESConfigurationSetEventDestinationEventDestinationDefinition",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{0,64}$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the event destination set."
        },
        "Enabled": {
          "description": "Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.   ",
          "type": "boolean"
        },
        "MatchingEventTypes": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "description": "The type of email sending events, send, reject, bounce, complaint, delivery, open, click, renderingFailure, deliveryDelay, and subscription.",
          "items": {
            "type": "string"
          }
        },
        "CloudWatchDestination": {
          "description": "An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.",
          "$ref": "#/$defs/CloudWatchDestination"
        },
        "KinesisFirehoseDestination": {
          "description": "An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.",
          "$ref": "#/$defs/KinesisFirehoseDestination"
        },
        "SnsDestination": {
          "description": "An object that contains SNS topic ARN associated event destination.",
          "$ref": "#/$defs/SnsDestination"
        }
      },
      "required": [
        "MatchingEventTypes"
      ],
      "additionalProperties": false
    },
    "SnsDestination": {
      "type": "object",
      "title": "AWSSESConfigurationSetEventDestinationSnsDestinationDefinition",
      "description": "An object that contains SNS topic ARN associated event destination.",
      "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"
            }
          ]
        }
      },
      "required": [
        "TopicARN"
      ],
      "additionalProperties": false
    },
    "KinesisFirehoseDestination": {
      "type": "object",
      "title": "AWSSESConfigurationSetEventDestinationKinesisFirehoseDestinationDefinition",
      "description": "An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.",
      "properties": {
        "IAMRoleARN": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose stream."
        },
        "DeliveryStreamARN": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to."
        }
      },
      "required": [
        "IAMRoleARN",
        "DeliveryStreamARN"
      ],
      "additionalProperties": false
    },
    "CloudWatchDestination": {
      "type": "object",
      "title": "AWSSESConfigurationSetEventDestinationCloudWatchDestinationDefinition",
      "description": "An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.",
      "properties": {
        "DimensionConfigurations": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "description": "A list of dimensions upon which to categorize your emails when you publish email sending events to Amazon CloudWatch.",
          "items": {
            "$ref": "#/$defs/DimensionConfiguration"
          }
        }
      },
      "additionalProperties": false
    },
    "DimensionConfiguration": {
      "type": "object",
      "title": "AWSSESConfigurationSetEventDestinationDimensionConfigurationDefinition",
      "description": "A list of dimensions upon which to categorize your emails when you publish email sending events to Amazon CloudWatch.",
      "properties": {
        "DimensionValueSource": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, specify messageTag. To use your own email headers, specify emailHeader. To put a custom tag on any link included in your email, specify linkTag."
        },
        "DefaultDimensionValue": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,256}$",
              "maxLength": 256,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email."
        },
        "DimensionName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_:-]{1,256}$",
              "maxLength": 256,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of an Amazon CloudWatch dimension associated with an email sending metric."
        }
      },
      "required": [
        "DimensionValueSource",
        "DefaultDimensionValue",
        "DimensionName"
      ],
      "additionalProperties": false
    }
  },
  "taggable": false,
  "required": [
    "ConfigurationSetName",
    "EventDestination"
  ],
  "createOnlyProperties": [
    "/properties/ConfigurationSetName"
  ]
}
