Module Values.RenderMessageTemplateRequestSource

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. knowledgeBaseId : UuidOrArn.t;
    (*

    The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

    *)
  2. messageTemplateId : UuidOrArnOrEitherWithQualifier.t;
    (*

    The identifier of the message template. Can be either the ID or the ARN.

    *)
  3. attributes : MessageTemplateAttributes.t;
    (*

    An object that specifies the values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the value for that variable.

    *)
}
Sourceval context_ : string
Sourceval make : knowledgeBaseId:UuidOrArn.t -> messageTemplateId:UuidOrArnOrEitherWithQualifier.t -> attributes:MessageTemplateAttributes.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of UuidOrArn.t | `Structure of (string * [> `Map of ([> `String of MessageTemplateAttributeKey.t ] * [> `String of MessageTemplateAttributeValue.t ]) list | `Structure of (string * [> `Map of ([> `String of MessageTemplateAttributeKey.t ] * [> `String of MessageTemplateAttributeValue.t ]) list | `String of MessageTemplateAttributeValue.t | `Structure of (string * [> `String of MessageTemplateAttributeValue.t ]) 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