s3GetVersionInfo

Returns version information for an S3 bucket or object, as a query.

s3GetVersionInfo(bucketName [, objectName, accessKeyId, secretAccessKey, host, timeout]) → returns query

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

bucketName string
Required

The bucket name.

objectName string

The object key. When omitted, information for the bucket is returned.

accessKeyId string

The S3 access key ID. Defaults to the lucee.s3.accesskeyid system property or environment variable.

secretAccessKey string

The S3 secret access key. Defaults to the lucee.s3.secretaccesskey system property or environment variable.

host string

The hostname of an S3-compatible provider, without https://. Defaults to Amazon AWS.

timeout numeric
Default: 10000

The timeout in milliseconds.

Compatibility

Lucee:

Requires the S3 extension.

Examples
Sample code invoking the s3GetVersionInfo function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub