Module Values.GetMediaRequestSource

Returns the image bytes corresponding to a media object. If you have implemented your own application with the Chat and ChatSync APIs, and have enabled content extraction from visual data in Amazon Q Business, you use the GetMedia API operation to download the images so you can show them in your UI with responses. For more information, see Extracting semantic meaning from images and visuals.

Sourcetype nonrec t = {
  1. applicationId : ApplicationId.t;
    (*

    The identifier of the Amazon Q Business which contains the media object.

    *)
  2. conversationId : ConversationId.t;
    (*

    The identifier of the Amazon Q Business conversation.

    *)
  3. messageId : MessageId.t;
    (*

    The identifier of the Amazon Q Business message.

    *)
  4. mediaId : MediaId.t;
    (*

    The identifier of the media object. You can find this in the sourceAttributions returned by the Chat, ChatSync, and ListMessages API responses.

    *)
}
Sourceval context_ : string
Sourceval make : applicationId:ApplicationId.t -> conversationId:ConversationId.t -> messageId:MessageId.t -> mediaId:MediaId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ApplicationId.t ]) 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