Module Values.StartContentUploadRequestSource

Get a URL to upload content to a knowledge base. To upload content, first make a PUT request to the returned URL with your file, making sure to include the required headers. Then use CreateContent to finalize the content creation process or UpdateContent to modify an existing resource. You can only upload content to a knowledge base of type CUSTOM.

Sourcetype nonrec t = {
  1. knowledgeBaseId : UuidOrArn.t;
    (*

    The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

    *)
  2. contentType : ContentType.t;
    (*

    The type of content to upload.

    *)
  3. presignedUrlTimeToLive : TimeToLive.t option;
    (*

    The expected expiration time of the generated presigned URL, specified in minutes.

    *)
}
Sourceval context_ : string
Sourceval make : ?presignedUrlTimeToLive:??? -> knowledgeBaseId:UuidOrArn.t -> contentType:ContentType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of TimeToLive.t | `String of UuidOrArn.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