AmazonS3write()

Amazon S3: Copies the local file up to Amazon S3

Usage

BOOLEAN = AmazonS3write( datasource, bucket, key, file, storageclass, metadata, data )
Argument Summary
datasource Amazon datasource
bucket Amazon bucket
key Full key
file Path to local file to send. If not supplied the variable will be used
storageclass Storage class to store this object; STANDARD or REDUCED_REDUNDANCY [optional]
metadata Structure of data that will be stored with the object. Available via AmazonS3GetInfo() or any HTTP header call to the object [optional]
data variable with the object data. Cannot be used with file. If not a string or a binary, it will be encoded into JSON and stored application/json [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

AmazonS3write(
   datasource=?, 
   bucket=?, 
   key=?, 
   file=?, 
   storageclass=?, 
   metadata=?, 
   data=?
);

Supports passing parameters as a structure using ArgumentCollection:

AmazonS3write( ArgumentCollection={
   datasource : ?, 
   bucket : ?, 
   key : ?, 
   file : ?, 
   storageclass : ?, 
   metadata : ?, 
   data : ?
} );