Values.CreatePresignedUrlInputSourceCreates 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.
type nonrec t = {instanceId : InstanceId.t;The unique identifier of the Amazon Q Business application environment instance.
*)cardId : UUID.t;The unique identifier of the card the file is associated with.
*)appId : UUID.t;The unique identifier of the Q App the file is associated with.
*)fileContentsSha256 : CreatePresignedUrlInputFileContentsSha256String.t;The Base64-encoded SHA-256 digest of the contents of the file to be uploaded.
*)fileName : Filename.t;The name of the file to be uploaded.
*)scope : DocumentScope.t;Whether the file is associated with a Q App definition or a specific Q App session.
*)sessionId : UUID.t option;The unique identifier of the Q App session the file is associated with, if applicable.
*)}val make :
?sessionId:??? ->
instanceId:InstanceId.t ->
cardId:UUID.t ->
appId:UUID.t ->
fileContentsSha256:CreatePresignedUrlInputFileContentsSha256String.t ->
fileName:Filename.t ->
scope:DocumentScope.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string * [> `Enum of string | `String of InstanceId.t ]) list ]