Returns the metadata of an S3 bucket or object.
s3GetMetaData(bucketNameOrPath [, objectName, accessKeyId, secretAccessKey, host, timeout])
→ returns struct
s3:// path to a bucket or object, such as s3://mybucket/file.txt.
bucketNameOrPath is a bucket name.
lucee.s3.accesskeyid system property or environment variable.
lucee.s3.secretaccesskey system property or environment variable.
https://. Defaults to Amazon AWS.
10000bucket and object, and the secret key argument secretKey. Returns content_type, content_length, etag, last_modified, storage_class and any x-amz-meta-* headers. Doesn't list timeout.
Returns a struct with the object's metadata.
meta = s3GetMetaData("my-bucket", "logs/today.txt");
Passing an s3:// URL as the first argument addresses the object directly.
meta = s3GetMetaData("s3://my-bucket/logs/today.txt");
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.