Values.GetWhatsAppMessageMediaInputSourceGet a media file from the WhatsApp service. On successful completion the media file is retrieved from Meta and stored in the specified Amazon S3 bucket. Use either destinationS3File or destinationS3PresignedUrl for the destination. If both are used then an InvalidParameterException is returned.
type nonrec t = {mediaId : WhatsAppMediaId.t;The unique identifier for the media file.
*)originationPhoneNumberId : WhatsAppPhoneNumberId.t;The unique identifier of the originating phone number for the WhatsApp message media. The phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.
*)metadataOnly : Boolean.t option;Set to True to get only the metadata for the file.
*)destinationS3PresignedUrl : S3PresignedUrl.t option;The presign url of the media file.
*)destinationS3File : S3File.t option;The bucketName and key of the S3 media file.
*)}val make :
?metadataOnly:??? ->
?destinationS3PresignedUrl:??? ->
?destinationS3File:??? ->
mediaId:WhatsAppMediaId.t ->
originationPhoneNumberId:WhatsAppPhoneNumberId.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `String of WhatsAppMediaId.t
| `Structure of
(string
* [> `Map of
([> `String of String_.t ] * [> `String of String_.t ])
list
| `String of S3PresignedUrlUrlString.t ])
list ])
list ]