Generates a presigned URL pointing to the object given
Requires Extension: S3 Resource Extension
s3generatePresignedUrl( bucketNameOrPath=string, objectName=string, expireDate=datetime, accessKeyId=string, secretAccessKey=string, timeout=number );
Argument |
Description |
Default |
bucketNameOrPath
string,
required
|
This can be the bucketname or simple the virtual filesystem point for the file (if object name is no defined)
Alias:
bucket, bucketName, path
|
|
objectName
string,
optional
|
Name of the object (path) within the bucket of your object to read
Alias:
object, path
|
|
expireDate
datetime,
optional
|
Date time when the URL should expire.
Alias:
expire
|
|
accessKeyId
string,
optional
|
S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid].
Alias:
accessKey
|
|
secretAccessKey
string,
optional
|
S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey].
Alias:
secretkey
|
|
timeout
number,
optional
|
timeout for this execution
|
10000
|
Examples
There are currently no examples for this function
23,952ms WARN No examples for function s3generatepresignedurl
See also