s3generateuri()
Generates a URI endpoint pointing to the object given
Requires Extension: S3 Resource Extension
s3generateuri( bucketNameOrPath=string, objectName=string, type=string, secure=boolean, accessKeyId=string, secretAccessKey=string, host=string, timeout=number );
Returns: String
| Argument | Description | Default |
|---|---|---|
|
bucketNameOrPath
string,
required
|
edit
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
|
edit
Name of the object (path) within the bucket of your object to read Alias: object, path |
|
|
type
string,
optional
|
edit
Defines the style/type created, possible values are:
For more details, please see: Methods for accessing a bucket Amazon Resource Names (ARNs) Alias: style |
virtualhost |
|
secure
boolean,
optional
|
edit
Should a secure URL (https) be created or not. Only applies to type virtualhost and path. Alias: secured |
true |
|
accessKeyId
string,
optional
|
edit
S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid]. Alias: accessKey, awsAccessKeyId, awsAccessKey |
|
|
secretAccessKey
string,
optional
|
edit
S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey]. Alias: secretkey, awsSecretkey, awsSecretAccessKey |
|
|
host
string,
optional
|
edit
the provider to connect, if not set Amazon AWS is used. Alias: provider, server |
|
|
timeout
number,
optional
|
edit
timeout for this execution |
10000 |
Examples
There are currently no examples for this function 39,880ms WARN No examples for function S3GenerateURISee also
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)