Lucee Function Reference
s3write()
Writes a value to S3.
Example
s3write(string bucketName,string objectName,object value,[string charset,[string mimeType,[object acl,[string location,[string accessKeyId,[string secretAccessKey,[number timeout]]]]]]]):binary
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
bucketName | string | Yes | Name of the bucket of your object to write | |
objectName | string | Yes | Name of the object (path) within the bucket of your object to write | |
value | object | Yes | value to store on S3. | |
charset | string | No | UTF-8 | charset to use to store the content. |
mimeType | string | No | UTF-8 | MimeType of the value you are storing. |
acl | object | No | an array of struct where each struct represents an ACL grant | |
location | string | No | location of the S3 storage. | |
accessKeyId | string | No | S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid]. | |
secretAccessKey | string | No | S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey]. | |
timeout | number | No | 10000 | timeout for this execution |