s3write

Writes a value to S3.

s3write( bucketName=string, objectName=string, value=object, charset=string, mimeType=string, acl=object, location=string, accessKeyId=string, secretAccessKey=string, timeout=number );

Returns: binary

Argument Description Default
bucketName
string, required

Name of the bucket of your object to read

Alias: bucket

objectName
string, required

Name of the object (path) within the bucket of your object to read

Alias: object, path

value
object, required

value to store on S3.

Alias: content

charset
string, optional

charset to use to store the content.

UTF-8

mimeType
string, optional

MimeType of the value you are storing.

UTF-8

acl
object, optional

an array of struct where each struct represents an ACL grant

Alias: aclObject

location
string, optional

location of the S3 storage.

accessKeyId
string, optional

S3 accessKeyId, if not defined it checks the system property/enviroment variable for [lucee.s3.accesskeyid].

Alias: accessKey

secretAccessKey
string, optional

S3 secretAccessKey, if not defined it checks the system property/enviroment variable for [lucee.s3.secretaccesskey].

Alias: secretkey

timeout
number, optional

timeout for this execution

10000

Examples

There are currently no examples for this function

See also