{
  "typeName" : "AWS::SES::ConfigurationSet",
  "description" : "Resource schema for AWS::SES::ConfigurationSet.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ses.git",
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "TrackingOptions" : {
      "description" : "An object that defines the open and click tracking options for emails that you send using the configuration set.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "CustomRedirectDomain" : {
          "type" : "string",
          "description" : "The domain to use for tracking open and click events."
        },
        "HttpsPolicy" : {
          "type" : "string",
          "description" : "The https policy to use for tracking open and click events.",
          "pattern" : "REQUIRE|REQUIRE_OPEN_ONLY|OPTIONAL"
        }
      }
    },
    "DeliveryOptions" : {
      "description" : "An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "TlsPolicy" : {
          "type" : "string",
          "description" : "Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require , messages are only delivered if a TLS connection can be established. If the value is Optional , messages can be delivered in plain text if a TLS connection can't be established.",
          "pattern" : "REQUIRE|OPTIONAL"
        },
        "SendingPoolName" : {
          "type" : "string",
          "description" : "The name of the dedicated IP pool to associate with the configuration set."
        },
        "MaxDeliverySeconds" : {
          "type" : "number",
          "description" : "Specifies the maximum time until which SES will retry sending emails",
          "minimum" : 300,
          "maximum" : 50400
        }
      }
    },
    "ArchivingOptions" : {
      "description" : "An object that defines a MailManager archive that is used to preserve emails that you send using the configuration set.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ArchiveArn" : {
          "type" : "string",
          "description" : "The ARN of the MailManager archive to associate with the configuration set."
        }
      }
    },
    "ReputationOptions" : {
      "description" : "An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ReputationMetricsEnabled" : {
          "type" : "boolean",
          "description" : "If true , tracking of reputation metrics is enabled for the configuration set. If false , tracking of reputation metrics is disabled for the configuration set.",
          "pattern" : "true|false"
        }
      }
    },
    "SendingOptions" : {
      "description" : "An object that defines whether or not Amazon SES can send email that you send using the configuration set.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SendingEnabled" : {
          "type" : "boolean",
          "pattern" : "true|false"
        }
      }
    },
    "SuppressionOptions" : {
      "description" : "An object that contains information about the suppression list preferences for your account.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SuppressedReasons" : {
          "type" : "array",
          "uniqueItems" : false,
          "insertionOrder" : false,
          "description" : "A list that contains the reasons that email addresses are automatically added to the suppression list for your account.",
          "items" : {
            "type" : "string",
            "description" : "The reason that the address was added to the suppression list for your account",
            "pattern" : "BOUNCE|COMPLAINT"
          }
        },
        "ValidationOptions" : {
          "type" : "object",
          "description" : "An object that contains information about the validation options for your account.",
          "additionalProperties" : false,
          "properties" : {
            "ConditionThreshold" : {
              "type" : "object",
              "description" : "The condition threshold settings for suppression validation.",
              "additionalProperties" : false,
              "properties" : {
                "ConditionThresholdEnabled" : {
                  "type" : "string",
                  "description" : "Whether the condition threshold is enabled or disabled.",
                  "pattern" : "ENABLED|DISABLED"
                },
                "OverallConfidenceThreshold" : {
                  "type" : "object",
                  "description" : "The overall confidence threshold settings.",
                  "additionalProperties" : false,
                  "properties" : {
                    "ConfidenceVerdictThreshold" : {
                      "type" : "string",
                      "description" : "The confidence verdict threshold level.",
                      "pattern" : "MEDIUM|HIGH|MANAGED"
                    }
                  },
                  "required" : [ "ConfidenceVerdictThreshold" ]
                }
              },
              "required" : [ "ConditionThresholdEnabled" ]
            }
          },
          "required" : [ "ConditionThreshold" ]
        }
      }
    },
    "DashboardOptions" : {
      "type" : "object",
      "description" : "Preferences regarding the Dashboard feature.",
      "additionalProperties" : false,
      "properties" : {
        "EngagementMetrics" : {
          "type" : "string",
          "description" : "Whether emails sent with this configuration set have engagement tracking enabled.",
          "pattern" : "ENABLED|DISABLED"
        }
      },
      "required" : [ "EngagementMetrics" ]
    },
    "GuardianOptions" : {
      "type" : "object",
      "description" : "Preferences regarding the Guardian feature.",
      "additionalProperties" : false,
      "properties" : {
        "OptimizedSharedDelivery" : {
          "type" : "string",
          "description" : "Whether emails sent with this configuration set have optimized delivery algorithm enabled.",
          "pattern" : "ENABLED|DISABLED"
        }
      },
      "required" : [ "OptimizedSharedDelivery" ]
    },
    "VdmOptions" : {
      "description" : "An object that contains Virtual Deliverability Manager (VDM) settings for this configuration set.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DashboardOptions" : {
          "$ref" : "#/definitions/DashboardOptions"
        },
        "GuardianOptions" : {
          "$ref" : "#/definitions/GuardianOptions"
        }
      }
    }
  },
  "properties" : {
    "Name" : {
      "description" : "The name of the configuration set.",
      "type" : "string",
      "pattern" : "^[a-zA-Z0-9_-]{1,64}$"
    },
    "TrackingOptions" : {
      "$ref" : "#/definitions/TrackingOptions"
    },
    "DeliveryOptions" : {
      "$ref" : "#/definitions/DeliveryOptions"
    },
    "ReputationOptions" : {
      "$ref" : "#/definitions/ReputationOptions"
    },
    "SendingOptions" : {
      "$ref" : "#/definitions/SendingOptions"
    },
    "SuppressionOptions" : {
      "$ref" : "#/definitions/SuppressionOptions"
    },
    "VdmOptions" : {
      "$ref" : "#/definitions/VdmOptions"
    },
    "ArchivingOptions" : {
      "$ref" : "#/definitions/ArchivingOptions"
    },
    "Tags" : {
      "description" : "The tags (keys and values) associated with the contact list.",
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      },
      "minItems" : 0,
      "maxItems" : 50
    }
  },
  "createOnlyProperties" : [ "/properties/Name" ],
  "primaryIdentifier" : [ "/properties/Name" ],
  "additionalProperties" : false,
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "ses:TagResource", "ses:UntagResource", "ses:ListTagsForResource" ]
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "ses:CreateConfigurationSet", "ses:UntagResource", "ses:TagResource", "ses:DescribeConfigurationSet", "ses:GetConfigurationSet" ]
    },
    "read" : {
      "permissions" : [ "ses:GetConfigurationSet", "ses:DescribeConfigurationSet" ]
    },
    "update" : {
      "permissions" : [ "ses:PutConfigurationSetTrackingOptions", "ses:PutConfigurationSetDeliveryOptions", "ses:PutConfigurationSetReputationOptions", "ses:PutConfigurationSetSendingOptions", "ses:PutConfigurationSetSuppressionOptions", "ses:PutConfigurationSetVdmOptions", "ses:PutConfigurationSetArchivingOptions", "ses:DescribeConfigurationSet", "ses:UntagResource", "ses:TagResource" ]
    },
    "delete" : {
      "permissions" : [ "ses:DeleteConfigurationSet" ]
    },
    "list" : {
      "permissions" : [ "ses:ListConfigurationSets" ]
    }
  }
}