Adds ACL to existing ACL for object or bucket.

storeAddACL(url, ACLObject);

Argument Reference for the storeAddACL function


Required: Yes
Amazon S3 URLs (content or object).


Required: Yes
An array of struct where each struct represents a permission or grant as discussed in ACLObject.

Examples sample code invoking the storeAddACL function

Tag Syntax

Use this function to add permissions to the existing ones.

 <cfset dir = 's3://bucket_name/'> 
     <cfset perm = structNew()> 
     <cfset = 'authenticated'> 
     <cfset perm.permission = 'READ'> 
     <cfset perm1 = structNew()> 
     <cfset = 'email_ID'> 
     <cfset perm1.permission = 'READ_ACP'> 
     <cfset myarrray = [perm,perm1]> 
     <cfif NOT directoryExists(dir)> 
         <cfset directoryCreate(dir)> 
     <cfset fileWrite('#dir#/Sample.txt','This is to test storeAddACL')> 
     <cfset storeAddACL('#dir#','#myarrray#')> 
     <cfset test = storeGetACL(dirkey)> 
         <cfdump var='#test#'> 
         <cfdump var='#cfcatch#'> 

Fork me on GitHub