lucee.Componentmodels.AmazonS3
Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldboxframework.com | www.luismajano.com | www.ortussolutions.com Amazon S3 REST Wrapper Written by Joe Danziger (joe@ajaxcf.com) with much help from dorioo on the Amazon S3 Forums. See the readme for more details on usage and methods. Thanks to Steve Hicks for the bucket ACL updates. Thanks to Carlos Gallupa for the EU storage location updates. Thanks to Joel Greutman for the fix on the getObject link. Thanks to Jerad Sloan for the Cache Control headers. Version 1.7 - Released: December 15, 2008 Version 2.0 - Luis Majano updated for ColdBox and extra features. You will have to create some settings in your ColdBox configuration file: s3_accessKey : The Amazon access key s3_secretKey : The Amazon secret key s3_encryption_charset : encryptyion charset (Optional, defaults to utf-8) s3_ssl : Whether to use ssl on all cals or not (Optional, defaults to false)
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
URLEndpoint
|
true
|
false
|
|
any
|
URLEndpointHostname
|
true
|
false
|
|
any
|
accessKey
|
true
|
false
|
|
any
|
asyncManager
|
true
|
false
|
|
any
|
autoContentType
|
true
|
false
|
|
any
|
autoMD5
|
true
|
false
|
|
any
|
awsDomain
|
true
|
false
|
|
any
|
awsRegion
|
true
|
false
|
|
any
|
defaultACL
|
true
|
false
|
|
any
|
defaultBucketName
|
true
|
false
|
|
any
|
defaultCacheControl
|
true
|
false
|
|
any
|
defaultDelimiter
|
true
|
false
|
|
any
|
defaultEncryptionAlgorithm
|
true
|
false
|
|
any
|
defaultEncryptionKey
|
true
|
false
|
|
any
|
defaultStorageClass
|
true
|
false
|
|
any
|
defaultTimeOut
|
true
|
false
|
|
any
|
encryptionCharset
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
mimeTypes
|
true
|
false
|
|
any
|
multiPartByteThreshold
|
true
|
false
|
|
any
|
retriesOnError
|
true
|
false
|
|
any
|
secretKey
|
true
|
false
|
|
any
|
serviceName
|
true
|
false
|
|
any
|
ssl
|
true
|
false
|
|
any
|
throwOnRequestError
|
true
|
false
|
Constructor Summary | |
---|---|
init(string accessKey, string secretKey, [string awsDomain='amazonaws.com'], [string awsRegion=''], [string encryptionCharset='UTF-8'], [string signatureType='V4'], [boolean ssl='true'], [string defaultTimeOut='300'], [string defaultDelimiter='/'], [string defaultBucketName=''], [string defaultCacheControl='no-store, no-cache, must-revalidate'], [string defaultStorageClass='[runtime expression]'], [string defaultACL='[runtime expression]'], [string throwOnRequestError='true'], [numeric retriesOnError='3'], [boolean autoContentType='false'], [boolean autoMD5='false'], [string serviceName='s3'], [boolean debug='false'], [string defaultEncryptionAlgorithm=''], [string defaultEncryptionKey=''], [numeric multiPartByteThreshold='5242880'])
Create a new S3SDK Instance. |
Method Summary | |
---|---|
private binary
|
HMAC_SHA1(string signKey, string signMessage)
NSA SHA-1 Algorithm: RFC 2104HMAC-SHA1. |
string
|
MD5inBase64(any content)
|
private any
|
applyACLHeaders([struct headers='[runtime expression]'], any acl)
Helper function to apply grant headers. |
any
|
applyEncryptionHeaders([any headers], [any args])
|
AmazonS3
|
buildUrlEndpoint()
This function builds variables. |
boolean
|
copyObject(string fromBucket='[runtime expression]', string fromURI, string toBucket='[runtime expression]', string toURI, [any acl='[runtime expression]'], [struct metaHeaders='[runtime expression]'], [string storageClass='[runtime expression]'], [string contentType], [boolean throwOnError='[runtime expression]'], [string encryptionAlgorithm='[runtime expression]'], [string encryptionKey='[runtime expression]'], [string encryptionAlgorithmSource='[runtime expression]'], [string encryptionKeySource='[runtime expression]'])
Copies an object. |
struct
|
createMetaHeaders([struct metaHeaders='[runtime expression]'])
Create a structure of Amazon-enabled metadata headers. |
struct
|
createMultiPartUpload(string bucketName, string uri, [string contentType=''], [string contentEncoding=''], [string contentDisposition=''], [numeric HTTPTimeout='[runtime expression]'], [string cacheControl='[runtime expression]'], [string expires='120'], [any acl='[runtime expression]'], [struct metaHeaders='[runtime expression]'], [string md5='[runtime expression]'], [string storageClass='[runtime expression]'], [string encryptionAlgorithm='[runtime expression]'], [string encryptionKey='[runtime expression]'])
|
any
|
createSignatureUtil(string type)
|
boolean
|
deleteBucket(string bucketName='[runtime expression]', [boolean force='false'])
Deletes a bucket. |
boolean
|
deleteObject(string bucketName='[runtime expression]', string uri)
Deletes an object. |
struct
|
downloadObject(string bucketName='[runtime expression]', string uri, string filepath, [numeric HTTPTimeout='[runtime expression]'], [boolean getAsBinary='no'], [string encryptionAlgorithm='[runtime expression]'], [string encryptionKey='[runtime expression]'])
Gets an object from a bucket. |
array
|
getAccessControlPolicy(string bucketName='[runtime expression]', [string uri=''])
Gets a bucket's or object's ACL policy. |
string
|
getAccessKey()
|
string
|
getAsyncManager()
|
string
|
getAuthenticatedURL(string bucketName='[runtime expression]', string uri, [string minutesValid='60'], [boolean useSSL='[runtime expression]'], [string method='GET'], [any acl=''], [struct metaHeaders='[runtime expression]'], [string contentType], [string encryptionKey='[runtime expression]'], [struct responseHeaders='[runtime expression]'])
Returns a query string authenticated URL to an object in S3. |
string
|
getAutoContentType()
|
string
|
getAutoMD5()
|
string
|
getAwsDomain()
|
string
|
getAwsRegion()
|
array
|
getBucket(string bucketName='[runtime expression]', [string prefix=''], [string marker=''], [string maxKeys=''], [string delimiter='[runtime expression]'])
Lists information about the objects of a bucket. |
string
|
getBucketLocation(string bucketName='[runtime expression]')
Get the S3 region for the bucket provided. |
string
|
getBucketVersionStatus(string bucketName='[runtime expression]')
Get the versioning status of a bucket. |
string
|
getDefaultACL()
|
string
|
getDefaultBucketName()
|
string
|
getDefaultCacheControl()
|
string
|
getDefaultDelimiter()
|
string
|
getDefaultEncryptionAlgorithm()
|
string
|
getDefaultEncryptionKey()
|
string
|
getDefaultStorageClass()
|
string
|
getDefaultTimeOut()
|
string
|
getEncryptionCharset()
|
string
|
getFileMimeType(string filePath)
Determines mime type from the file extension. |
string
|
getLog()
|
string
|
getMimeTypes()
|
string
|
getMultiPartByteThreshold()
|
struct
|
getObject(string bucketName='[runtime expression]', string uri, [string encryptionKey='[runtime expression]'])
Get an object's metadata information. |
struct
|
getObjectACL(string bucketName='[runtime expression]', string uri, [any throwOnError='false'])
Get an object's ACL information. |
struct
|
getObjectInfo(string bucketName='[runtime expression]', string uri, [string encryptionKey='[runtime expression]'])
Get an object's metadata information. |
string
|
getRetriesOnError()
|
string
|
getSecretKey()
|
string
|
getServiceName()
|
string
|
getSsl()
|
string
|
getThrowOnRequestError()
|
string
|
getURLEndpoint()
|
string
|
getURLEndpointHostname()
|
boolean
|
hasBucket(string bucketName='[runtime expression]')
Checks for the existance of a bucket. |
array
|
listBuckets()
List all the buckets associated with the Amazon credentials. |
boolean
|
objectExists(string bucketName='[runtime expression]', string uri)
Check if an object exists in the bucket. |
boolean
|
putBucket(string bucketName='[runtime expression]', [string acl='[runtime expression]'], [string location='USA'])
Create a new bucket. |
string
|
putObject(string bucketName='[runtime expression]', string uri, [any data=''], [string contentDisposition=''], [string contentType='[runtime expression]'], [string contentEncoding=''], [numeric HTTPTimeout='[runtime expression]'], [string cacheControl='[runtime expression]'], [string expires=''], [any acl='[runtime expression]'], [struct metaHeaders='[runtime expression]'], [string md5='[runtime expression]'], [string storageClass='[runtime expression]'], [string encryptionAlgorithm='[runtime expression]'], [string encryptionKey='[runtime expression]'])
Puts an object into a bucket. |
string
|
putObjectFile(string bucketName='[runtime expression]', string filepath, [string uri=''], [string contentType=''], [string contentEncoding=''], [numeric HTTPTimeout='[runtime expression]'], [string cacheControl='[runtime expression]'], [string expires=''], [any acl='[runtime expression]'], [struct metaHeaders='[runtime expression]'], [string md5='[runtime expression]'], [string storageClass='[runtime expression]'], [string encryptionAlgorithm='[runtime expression]'], [string encryptionKey='[runtime expression]'])
Puts an object from a local file in to a bucket. |
string
|
putObjectFolder(string bucketName='[runtime expression]', [string uri=''], [string contentType='binary/octet-stream'], [numeric HTTPTimeout='[runtime expression]'], [string cacheControl='[runtime expression]'], [string expires=''], [any acl='[runtime expression]'], [struct metaHeaders='[runtime expression]'])
Puts an folder in to a bucket. |
boolean
|
renameObject([string oldBucketName='[runtime expression]'], string oldFileKey, [string newBucketName='[runtime expression]'], string newFileKey, [any acl], [string encryptionAlgorithm='[runtime expression]'], [string encryptionKey='[runtime expression]'])
Renames an object by copying then deleting original. |
private any
|
requireBucketName([any bucketName])
Helper function to catch missing bucket name. |
private struct
|
s3Request([string method='GET'], [string resource=''], [any body=''], [struct headers='[runtime expression]'], [struct parameters='[runtime expression]'], [string filename=''], [numeric timeout='[runtime expression]'], [boolean parseResponse='true'], [boolean getAsBinary='no'], [boolean throwOnError='[runtime expression]'], [numeric tryCount='1'])
Make a request to Amazon S3. |
AmazonS3
|
setAWSDomain(string domain)
|
AmazonS3
|
setAWSRegion(string region)
|
void
|
setAccessControlPolicy(string bucketName='[runtime expression]', [string uri=''], [any acl])
Sets a bucket's or object's ACL policy. |
any
|
setAccessKey(any accessKey)
|
any
|
setAsyncManager(any asyncManager)
|
AmazonS3
|
setAuth(string accessKey, string secretKey)
Set the Amazon Credentials. |
any
|
setAutoContentType(any autoContentType)
|
any
|
setAutoMD5(any autoMD5)
|
boolean
|
setBucketVersionStatus(string bucketName='[runtime expression]', [boolean version='true'])
Set versioning status for a bucket. |
any
|
setDefaultACL(any defaultACL)
|
any
|
setDefaultBucketName(any defaultBucketName)
|
any
|
setDefaultCacheControl(any defaultCacheControl)
|
any
|
setDefaultDelimiter(any defaultDelimiter)
|
any
|
setDefaultEncryptionAlgorithm(any defaultEncryptionAlgorithm)
|
any
|
setDefaultEncryptionKey(any defaultEncryptionKey)
|
any
|
setDefaultStorageClass(any defaultStorageClass)
|
any
|
setDefaultTimeOut(any defaultTimeOut)
|
any
|
setEncryptionCharset(any encryptionCharset)
|
any
|
setLog(any log)
|
any
|
setMimeTypes(any mimeTypes)
|
any
|
setMultiPartByteThreshold(any multiPartByteThreshold)
|
any
|
setRetriesOnError(any retriesOnError)
|
AmazonS3
|
setSSL([boolean useSSL='true'])
Set the ssl flag. |
any
|
setSecretKey(any secretKey)
|
any
|
setServiceName(any serviceName)
|
any
|
setThrowOnRequestError(any throwOnRequestError)
|
any
|
setURLEndpoint(any URLEndpoint)
|
any
|
setURLEndpointHostname(any URLEndpointHostname)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Create a new S3SDK Instance
accessKey
- The Amazon access key.secretKey
- The Amazon secret key.awsDomain
- The Domain used S3 Service (amazonws.com, digitalocean.com, storage.googleapis.com). Defaults to amazonws.comawsRegion
- The Amazon region. Defaults to us-east-1 for amazonaws.comencryptionCharset
- The charset for the encryption. Defaults to UTF-8.signatureType
ssl
- True if the request should use SSL. Defaults to true.defaultTimeOut
- Default HTTP timeout for all requests. Defaults to 300.defaultDelimiter
- Delimter to use for getBucket calls. "/" is standard to treat keys as file pathsdefaultBucketName
- Bucket name to use by defaultdefaultCacheControl
- Default caching policy for objects. Defaults to: no-store, no-cache, must-revalidatedefaultStorageClass
- Default storage class for objects that affects cost, access speed and durability. Defaults to STANDARD.defaultACL
- Default access control policy for objects and buckets. Defaults to public-read.throwOnRequestError
- If an exception should be thrown for request errors. Defaults to true.retriesOnError
autoContentType
- Tries to determine content type of file by file extension. Defaults to false.autoMD5
- Calculates MD5 hash of content automatically. Defaults to false.serviceName
debug
- Used to turn debugging on or off outside of logbox. Defaults to false.defaultEncryptionAlgorithm
- The default server side encryption algorithm to use. Usually "AES256". Not needed if using custom defaultEncryptionKeydefaultEncryptionKey
- The default base64 encoded AES 356 bit key for server side encryption.multiPartByteThreshold
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- box:AsyncManagerserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
NSA SHA-1 Algorithm: RFC 2104HMAC-SHA1
signKey
signMessage
content
Helper function to apply grant headers
headers
acl
headers
args
This function builds variables.UrlEndpoint and variables.URLEndpointHostname according to credentials and ssl configuration, usually called after init() for you automatically.
Copies an object. Defaults to STANDARD. Defaults to STANDARD.
fromBucket
- The source bucketfromURI
- The source URItoBucket
- The destination buckettoURI
- The destination URIacl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()metaHeaders
- Additonal metadata headers to add.storageClass
- Sets the S3 storage class which affects cost, access speed and durability.contentType
- The file content type. Defaults to binary/octet-stream.throwOnError
- Flag to throw exceptions on any error or not, default is trueencryptionAlgorithm
- The server side encryption algorithm to use. Usually "AES256". Not needed if using custom encryptionKeyencryptionKey
- The base64 encoded AES 356 bit key for server side encryption.encryptionAlgorithmSource
- The server side encryption algorithm to use for the source file. Usually "AES256". Not needed if using custom encryptionKeySourceencryptionKeySource
- The base64 encoded AES 356 bit key used to encrypt the source fileCreate a structure of Amazon-enabled metadata headers.
metaHeaders
- Headers to convert to the Amazon meta headers.bucketName
uri
contentType
contentEncoding
contentDisposition
HTTPTimeout
cacheControl
expires
acl
metaHeaders
md5
storageClass
encryptionAlgorithm
encryptionKey
type
Deletes a bucket.
bucketName
- The name of the bucket to delete.force
- If true, delete the contents of the bucket before deleting the bucket.Deletes an object.
bucketName
- The bucket name the object resides in.uri
- The file object uri to delete.Gets an object from a bucket.
bucketName
- The bucket in which to store the object.uri
- The destination uri key to use when saving the object.filepath
- The file path write the object to, if no filename given filename from uri is used.HTTPTimeout
- The HTTP timeout to use.getAsBinary
- Treat the response body as binary instead of text.encryptionAlgorithm
- The server side encryption algorithm to use. Usually "AES256". Not needed if using custom encryptionKeyencryptionKey
- The base64 encoded AES 356 bit key for server side encryption.Gets a bucket's or object's ACL policy.
bucketName
- The bucket to get the ACL.uri
- An optional resource uri to get the ACL.Returns a query string authenticated URL to an object in S3.
bucketName
- The bucket the object resides in.uri
- The uri to the object to create a link for.minutesValid
- The minutes the link is valid for. Defaults to 60 minutes.useSSL
- Use SSL for the returned url.method
- HTTP method that will be usedacl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL(). If omitted, any ACL will be allowed when PUTting the file.metaHeaders
- Additonal metadata headers to add.contentType
- The object content type for PUT. If omitted, any content-type will be allowed when PUTting the file.encryptionKey
- The base64 encoded AES 356 bit key for server side encryption.responseHeaders
- A struct of headers to be forced for the HTTP response of GET requests. Valid options are content-type, content-language, expires, cache-control, content-disposition, content-encodingLists information about the objects of a bucket.
bucketName
- The bucket name to list.prefix
- Limits the response to keys which begin with the indicated prefix, if any.marker
- Indicates where in the bucket to begin listing, if any.maxKeys
- The maximum number of keys you'd like to see in the response body, if any.delimiter
- The delimiter to use in the keys, if any.Get the S3 region for the bucket provided.
bucketName
- The bucket for which to fetch the region.Get the versioning status of a bucket.
bucketName
- The bucket for which to fetch the versioning status.Determines mime type from the file extension
filePath
- The path to the file stored in S3.Get an object's metadata information.
bucketName
- The bucket the object resides in.uri
- The object URI to retrieve the info.encryptionKey
- The base64 encoded AES 356 bit key for server side encryption.Get an object's ACL information. Also a top level "grants" key which is a struct containing keys FULL_CONTROL, WRITE, WRITE_ACP, READ, and READ_ACP. Each of which is an array containing zero or more structs representing a grantee which is represented as a struct with an ID, emailAddress, or URI key based on type.
bucketName
- The bucket the object resides in.uri
- The object URI to retrieve the info.throwOnError
- Flag to throw exceptions on any error or not, default is trueGet an object's metadata information.
bucketName
- The bucket the object resides in.uri
- The object URI to retrieve the info.encryptionKey
- The base64 encoded AES 356 bit key for server side encryption.Checks for the existance of a bucket
bucketName
- The bucket to check for its existance.List all the buckets associated with the Amazon credentials.
Check if an object exists in the bucket
bucketName
- The bucket the object resides in.uri
- The object URI to check on.Create a new bucket.
bucketName
- The name for the new bucket.acl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()location
- The bucket location.Puts an object into a bucket. This can be binary, string, or anything you'd like. Example: public,max-age=864000 ( 10 days ). For more info look here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html##sec14.9 Defaults to public-read. was sent correctly. Set to "auto" to calculate the md5 in the client. Defaults to STANDARD.
bucketName
- The bucket in which to store the object.uri
- The destination uri key to use when saving the object.data
- The content to save as data.contentDisposition
- The content-disposition header to use when downloading the file.contentType
- The file/data content type. Defaults to text/plain.contentEncoding
- The file content encoding, useful to gzip data.HTTPTimeout
- The HTTP timeout to use.cacheControl
- The caching header to send. Defaults to no caching.expires
- Sets the expiration header of the object in days.acl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()metaHeaders
- Additonal metadata headers to add.md5
- Set the MD5 hash which allows aws to checksum the objectstorageClass
- Sets the S3 storage class which affects cost, access speed and durability.encryptionAlgorithm
- The server side encryption algorithm to use. Usually "AES256". Not needed if using custom encryptionKeyencryptionKey
- The base64 encoded AES 356 bit key for server side encryption.Puts an object from a local file in to a bucket. If not provided, the name of the file will be used. Example: public,max-age=864000 ( 10 days ). For more info look here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html##sec14.9 Defaults to public-read. was sent correctly. Set to "auto" to calculate the md5 in the client. Defaults to STANDARD.
bucketName
- The bucket in which to store the object.filepath
- The absolute file path to read in the binary.uri
- The destination uri key to use when saving the object.contentType
- The file content type. Defaults to binary/octet-stream.contentEncoding
- The file content encoding, useful to gzip data.HTTPTimeout
- The HTTP timeout to usecacheControl
- The caching header to send. Defaults to no caching.expires
- Sets the expiration header of the object in days.acl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()metaHeaders
- Additonal metadata headers to add.md5
- Set the MD5 hash which allows aws to checksum the objectstorageClass
- Sets the S3 storage class which affects cost, access speed and durability.encryptionAlgorithm
- The server side encryption algorithm to use. Usually "AES256". Not needed if using custom encryptionKeyencryptionKey
- The base64 encoded AES 356 bit key for server side encryption.Puts an folder in to a bucket. If not provided, the name of the folder will be used. Example: public,max-age=864000 ( 10 days ). For more info look here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html##sec14.9 Defaults to public-read.
bucketName
- The bucket in which to store the object.uri
- The destination uri key to use when saving the object.contentType
- The folder content type. Defaults to binary/octet-stream.HTTPTimeout
- The HTTP timeout to usecacheControl
- The caching header to send. Defaults to no caching.expires
- Sets the expiration header of the object in days.acl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()metaHeaders
- Additonal metadata headers to add.Renames an object by copying then deleting original.
oldBucketName
- The source bucket.oldFileKey
- The source URI.newBucketName
- The destination bucket.newFileKey
- The destination URI.acl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()encryptionAlgorithm
- The server side encryption algorithm to use. Usually "AES256". Not needed if using custom encryptionKeyencryptionKey
- The base64 encoded AES 356 bit key for server side encryption.Helper function to catch missing bucket name
bucketName
Make a request to Amazon S3.
method
- The HTTP method for the request.resource
- The resource to hit in the Amazon S3 service.body
- The body content of the request, if passed.headers
- A struct of HTTP headers to send.parameters
- A struct of HTTP URL parameters to send.filename
timeout
- The default CFHTTP timeout.parseResponse
getAsBinary
throwOnError
- Flag to throw exceptions on any error or not, default is truetryCount
domain
region
Sets a bucket's or object's ACL policy.
bucketName
- The bucket to set the ACL.uri
- An optional resource uri to set the ACL.acl
- The security policy to use. Specify a canned ACL like "public-read" as a string, or provide a struct in the format of the "grants" key returned by getObjectACL()accessKey
asyncManager
Set the Amazon Credentials.
accessKey
- The Amazon access key.secretKey
- The Amazon secret key.autoContentType
autoMD5
Set versioning status for a bucket.
bucketName
- The bucket to set the versioning status.version
- The status for the versioning property.defaultACL
defaultBucketName
defaultCacheControl
defaultDelimiter
defaultEncryptionAlgorithm
defaultEncryptionKey
defaultStorageClass
defaultTimeOut
encryptionCharset
log
mimeTypes
multiPartByteThreshold
retriesOnError
Set the ssl flag. Alters the internal URL endpoint accordingly.
useSSL
- True if SSL should be used for the requests.secretKey
serviceName
throwOnRequestError
URLEndpoint
URLEndpointHostname