
262
DEVELOPING
COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Las
t
upda
te
d 8/5/2010
ACLObject
ACLObject
is an array of struct where each struct represents an ACL grant. The grantee details are as follows:
group
Must have the keys
Group
(with value
all
,
authenticated
, or
log_delivery
) and
permission
.
Must have the keys
and
permission
.
canonical
Must have the keys
Id
and
permission
.
displayName
is optional.
Sample ACLObject
all_read = {group="all", permission="read"};
owner_full = {email="[email protected]", permission="full_control"};
aclObj = [owner_full, all_read];
Access control functions
storeSetACL
Description
Sets the ACL for object or bucket.
Returns
Nothing
Syntax
StoreSetACL(url, ACLObject)
Parameters
History
ColdFusion 9 Update 1: Added this function
Usage
Use this function to set full permission. The function overwrites all existing permissions. Only the ones you set in the
current context exist.
Parameter
Description
url
Amazon S3 URLs (content or object)
ACLObject
An array of struct where each struct represents a permission or grant as discussed in “
ACLObject
” on page
262.