Module Values.TemplateSource

An object that defines the email template to use for an email message, and the values to use for any message variables in that template. An email template is a type of message template that contains content that you want to reuse in email messages that you send. You can specifiy the email template by providing the name or ARN of an email template previously saved in your Amazon SES account or by providing the full template content.

Sourcetype nonrec t = {
  1. templateName : EmailTemplateName.t option;
    (*

    The name of the template. You will refer to this name when you send email using the SendEmail or SendBulkEmail operations.

    *)
  2. templateArn : AmazonResourceName.t option;
    (*

    The Amazon Resource Name (ARN) of the template.

    *)
  3. templateContent : EmailTemplateContent.t option;
    (*

    The content of the template. Amazon SES supports only simple substitions when you send email using the SendEmail or SendBulkEmail operations and you provide the full template content in the request.

    *)
  4. templateData : EmailTemplateData.t option;
    (*

    An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.

    *)
  5. headers : MessageHeaderList.t option;
    (*

    The list of message headers that will be added to the email message.

    *)
  6. attachments : AttachmentList.t option;
    (*

    The List of attachments to include in your email. All recipients will receive the same attachments.

    *)
}
Sourceval make : ?templateName:??? -> ?templateArn:??? -> ?templateContent:??? -> ?templateData:??? -> ?headers:??? -> ?attachments:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Blob of RawAttachmentData.t | `Enum of string | `String of MessageHeaderName.t ]) list ] list | `String of EmailTemplateName.t | `Structure of (string * [> `String of EmailTemplateSubject.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t