Module Values.RenderMessageTemplateResponseSource

Renders the Amazon Q in Connect message template based on the attribute values provided and generates the message content. For any variable present in the message template, if the attribute value is neither provided in the attribute request parameter nor the default attribute of the message template, the rendered message content will keep the variable placeholder as it is and return the attribute keys that are missing.

Sourcetype nonrec t = {
  1. content : MessageTemplateContentProvider.t option;
    (*

    The content of the message template.

    *)
  2. sourceConfigurationSummary : MessageTemplateSourceConfigurationSummary.t option;
    (*

    The source configuration of the message template.

    *)
  3. attributesNotInterpolated : MessageTemplateAttributeKeyList.t option;
    (*

    The attribute keys that are not resolved.

    *)
  4. attachments : MessageTemplateAttachmentList.t option;
    (*

    The message template attachments.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `ResourceNotFoundException of ResourceNotFoundException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?content:??? -> ?sourceConfigurationSummary:??? -> ?attributesNotInterpolated:??? -> ?attachments:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of MessageTemplateAttributeKey.t | `Structure of (string * [> `Enum of string | `String of AttachmentFileName.t | `Timestamp of SyntheticTimestamp_date_time.t ]) list ] list | `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `String of WhatsAppMessageTemplateComponent.t | `Structure of (string * [> `String of EmailHeaderKey.t ]) list ] list | `String of NonEmptyUnlimitedString.t | `Structure of (string * [> `Enum of string | `String of NonEmptyUnlimitedString.t | `Structure of (string * [> `String of NonEmptyUnlimitedString.t ]) list ]) list ]) list ]) 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