Module Values.PostWhatsAppMessageMediaOutputSource

Upload a media file to the WhatsApp service. Only the specified originationPhoneNumberId has the permissions to send the media file when using SendWhatsAppMessage. You must use either sourceS3File or sourceS3PresignedUrl for the source. If both or neither are specified then an InvalidParameterException is returned.

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

    The unique identifier of the posted WhatsApp message.

    *)
}
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 : ?mediaId:??? -> 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 * [> `String of WhatsAppMediaId.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