Module Values.GetWhatsAppMessageMediaOutputSource

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. mimeType : String_.t option;
    (*

    The MIME type of the media.

    *)
  2. fileSize : Long.t option;
    (*

    The size of the media file, in KB.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedByMetaException of AccessDeniedByMetaException.t
  2. | `AccessDeniedException of AccessDeniedException.t
  3. | `DependencyException of DependencyException.t
  4. | `InternalServiceException of InternalServiceException.t
  5. | `InvalidParametersException of InvalidParametersException.t
  6. | `ResourceNotFoundException of ResourceNotFoundException.t
  7. | `ThrottledRequestException of ThrottledRequestException.t
  8. | `ValidationException of ValidationException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?mimeType:??? -> ?fileSize:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedByMetaException of AccessDeniedByMetaException.t | `AccessDeniedException of AccessDeniedException.t | `DependencyException of DependencyException.t | `InternalServiceException of InternalServiceException.t | `InvalidParametersException of InvalidParametersException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottledRequestException of ThrottledRequestException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedByMetaException of AccessDeniedByMetaException.t | `AccessDeniedException of AccessDeniedException.t | `DependencyException of DependencyException.t | `InternalServiceException of InternalServiceException.t | `InvalidParametersException of InvalidParametersException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottledRequestException of ThrottledRequestException.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 * [> `Long of Long.t | `String of String_.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