Module Values.CreatePresignedUrlInputSource

Creates a presigned URL for an S3 POST operation to upload a file. You can use this URL to set a default file for a FileUploadCard in a Q App definition or to provide a file for a single Q App run. The scope parameter determines how the file will be used, either at the app definition level or the app session level. The IAM permissions are derived from the qapps:ImportDocument action. For more information on the IAM policy for Amazon Q Apps, see IAM permissions for using Amazon Q Apps.

Sourcetype nonrec t = {
  1. instanceId : InstanceId.t;
    (*

    The unique identifier of the Amazon Q Business application environment instance.

    *)
  2. cardId : UUID.t;
    (*

    The unique identifier of the card the file is associated with.

    *)
  3. appId : UUID.t;
    (*

    The unique identifier of the Q App the file is associated with.

    *)
  4. fileContentsSha256 : CreatePresignedUrlInputFileContentsSha256String.t;
    (*

    The Base64-encoded SHA-256 digest of the contents of the file to be uploaded.

    *)
  5. fileName : Filename.t;
    (*

    The name of the file to be uploaded.

    *)
  6. scope : DocumentScope.t;
    (*

    Whether the file is associated with a Q App definition or a specific Q App session.

    *)
  7. sessionId : UUID.t option;
    (*

    The unique identifier of the Q App session the file is associated with, if applicable.

    *)
}
Sourceval context_ : string
Sourceval make : ?sessionId:??? -> instanceId:InstanceId.t -> cardId:UUID.t -> appId:UUID.t -> fileContentsSha256:CreatePresignedUrlInputFileContentsSha256String.t -> fileName:Filename.t -> scope:DocumentScope.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of InstanceId.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