Skip to main content

presigned_urls

Creates, updates, deletes, gets or lists a presigned_urls resource.

Overview

Namepresigned_urls
TypeResource
Idaws.qapps.presigned_urls

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_presigned_urlinsertinstance-id, region, cardId, appId, fileContentsSha256, fileName, scopeCreates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instance-idstringThe unique identifier of the Amazon Q Business application environment instance.
regionstringAWS region (default: us-east-1)

INSERT examples

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.

INSERT INTO aws.qapps.presigned_urls (
cardId,
appId,
fileContentsSha256,
fileName,
scope,
sessionId,
`instance-id`,
region
)
SELECT
'{{ cardId }}' /* required */,
'{{ appId }}' /* required */,
'{{ fileContentsSha256 }}' /* required */,
'{{ fileName }}' /* required */,
'{{ scope }}' /* required */,
'{{ sessionId }}',
'{{ instance-id }}',
'{{ region }}'
RETURNING
file_id,
presigned_url,
presigned_url_expiration,
presigned_url_fields
;