Creates a bucket on S3.
Requires Extension: S3 Resource Extension
s3createbucket( bucketName=string, acl=object, location=string, accessKeyId=string, secretAccessKey=string, host=string, timeout=number );
Argument |
Description |
Default |
bucketName
string,
required
|
Name of the bucket to create
Alias:
bucket
|
|
acl
object,
optional
|
an array of struct where each struct represents an ACL grant
Alias:
aclObject
|
|
location
string,
optional
|
location of the S3 storage.
Alias:
region
|
|
accessKeyId
string,
optional
|
S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid].
Alias:
accessKey, awsAccessKeyId, awsAccessKey
|
|
secretAccessKey
string,
optional
|
S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey].
Alias:
secretkey, awsSecretkey, awsSecretAccessKey
|
|
host
string,
optional
|
the provider to connect, if not set Amazon AWS is used.
Alias:
provider, server
|
|
timeout
number,
optional
|
timeout for this execution
|
10000
|
Examples
There are currently no examples for this function
18,064ms WARN No examples for function s3createbucket
See also