Module Values.GetWhatsAppMessageMediaInputSource

Get 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.

Sourcetype nonrec t = {
  1. mediaId : WhatsAppMediaId.t;
    (*

    The unique identifier for the media file.

    *)
  2. 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.

    *)
  3. metadataOnly : Boolean.t option;
    (*

    Set to True to get only the metadata for the file.

    *)
  4. destinationS3PresignedUrl : S3PresignedUrl.t option;
    (*

    The presign url of the media file.

    *)
  5. destinationS3File : S3File.t option;
    (*

    The bucketName and key of the S3 media file.

    *)
}
Sourceval context_ : string
Sourceval make : ?metadataOnly:??? -> ?destinationS3PresignedUrl:??? -> ?destinationS3File:??? -> mediaId:WhatsAppMediaId.t -> originationPhoneNumberId:WhatsAppPhoneNumberId.t -> unit -> t
Sourceval 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 ]
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