{
  "typeName" : "AWS::PinpointEmail::ConfigurationSetEventDestination",
  "description" : "Resource Type definition for AWS::PinpointEmail::ConfigurationSetEventDestination",
  "additionalProperties" : false,
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "EventDestinationName" : {
      "type" : "string"
    },
    "ConfigurationSetName" : {
      "type" : "string"
    },
    "EventDestination" : {
      "$ref" : "#/definitions/EventDestination"
    }
  },
  "definitions" : {
    "EventDestination" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SnsDestination" : {
          "$ref" : "#/definitions/SnsDestination"
        },
        "CloudWatchDestination" : {
          "$ref" : "#/definitions/CloudWatchDestination"
        },
        "Enabled" : {
          "type" : "boolean"
        },
        "MatchingEventTypes" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "PinpointDestination" : {
          "$ref" : "#/definitions/PinpointDestination"
        },
        "KinesisFirehoseDestination" : {
          "$ref" : "#/definitions/KinesisFirehoseDestination"
        }
      },
      "required" : [ "MatchingEventTypes" ]
    },
    "SnsDestination" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "TopicArn" : {
          "type" : "string"
        }
      },
      "required" : [ "TopicArn" ]
    },
    "PinpointDestination" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ApplicationArn" : {
          "type" : "string"
        }
      }
    },
    "KinesisFirehoseDestination" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DeliveryStreamArn" : {
          "type" : "string"
        },
        "IamRoleArn" : {
          "type" : "string"
        }
      },
      "required" : [ "DeliveryStreamArn", "IamRoleArn" ]
    },
    "CloudWatchDestination" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DimensionConfigurations" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/DimensionConfiguration"
          }
        }
      }
    },
    "DimensionConfiguration" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DimensionValueSource" : {
          "type" : "string"
        },
        "DefaultDimensionValue" : {
          "type" : "string"
        },
        "DimensionName" : {
          "type" : "string"
        }
      },
      "required" : [ "DimensionValueSource", "DefaultDimensionValue", "DimensionName" ]
    }
  },
  "required" : [ "ConfigurationSetName", "EventDestinationName" ],
  "createOnlyProperties" : [ "/properties/ConfigurationSetName", "/properties/EventDestinationName" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}