Skip to content

CreatePresignedUrl

Source: src/AWS/QApps/CreatePresignedUrl.ts

Runtime binding for qapps:CreatePresignedUrl.

Creates a presigned upload URL for a file-upload card of the bound Q App. Provide the implementation with Effect.provide(AWS.QApps.CreatePresignedUrlHttp).

// init — bind the operation to the Q App
const createPresignedUrl = yield* AWS.QApps.CreatePresignedUrl(app);
// runtime
const upload = yield* createPresignedUrl({
cardId,
fileContentsSha256,
fileName: "report.pdf",
scope: "SESSION",
sessionId,
});
console.log(upload.presignedUrl);