{
  "typeName" : "AWS::SES::Template",
  "description" : "Resource Type definition for AWS::SES::Template",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ses.git",
  "definitions" : {
    "Template" : {
      "type" : "object",
      "additionalProperties" : false,
      "description" : "The content of the email, composed of a subject line, an HTML part, and a text-only part",
      "properties" : {
        "TemplateName" : {
          "description" : "The name of the template.",
          "type" : "string",
          "pattern" : "^[a-zA-Z0-9_-]{1,64}$",
          "maxLength" : 64,
          "minLength" : 1
        },
        "SubjectPart" : {
          "description" : "The subject line of the email.",
          "type" : "string"
        },
        "TextPart" : {
          "description" : "The email body that is visible to recipients whose email clients do not display HTML content.",
          "type" : "string"
        },
        "HtmlPart" : {
          "description" : "The HTML body of the email.",
          "type" : "string"
        }
      },
      "required" : [ "SubjectPart" ]
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "Template" : {
      "$ref" : "#/definitions/Template"
    },
    "Tags" : {
      "description" : "The tags (keys and values) associated with the email template.",
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      },
      "minItems" : 0,
      "maxItems" : 50
    }
  },
  "additionalProperties" : false,
  "readOnlyProperties" : [ "/properties/Id" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "createOnlyProperties" : [ "/properties/Template/TemplateName" ],
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "ses:TagResource", "ses:UntagResource", "ses:ListTagsForResource" ]
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "ses:CreateEmailTemplate", "ses:GetEmailTemplate", "ses:CreateTemplate", "ses:GetTemplate", "ses:TagResource" ]
    },
    "read" : {
      "permissions" : [ "ses:GetEmailTemplate", "ses:GetTemplate", "ses:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "ses:DeleteEmailTemplate", "ses:DeleteTemplate" ]
    },
    "update" : {
      "permissions" : [ "ses:GetEmailTemplate", "ses:UpdateEmailTemplate", "ses:GetTemplate", "ses:UpdateTemplate", "ses:TagResource", "ses:UntagResource" ]
    },
    "list" : {
      "permissions" : [ "ses:ListEmailTemplates", "ses:ListTemplates" ]
    }
  }
}