Menu
Lumberyard
Developer Guide (Version 1.11)

S3 (Storage) Nodes

You can use these flow graph nodes to download and upload files from the Amazon Simple Storage Service (Amazon S3), and to generate a public URL that points to a specific location in Amazon S3.

DownloadFile node

Downloads a file from Amazon S3.


                    DownloadFile

Inputs

Port Type Description
DownloadFile Any Reads file data from an Amazon S3 bucket
BucketName String The name of the Amazon S3 bucket to use
KeyName String The name of the file to download from Amazon S3
FileName String The filename to use for the downloaded object

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message

UploadFile node

Uploads a file to Amazon S3.


                    UploadFile

Inputs

Port Type Description
UploadFile Any Uploads a file to an Amazon S3 bucket
BucketName String The name of the Amazon S3 bucket to use
KeyName String What to name the uploaded object on Amazon S3. If this value is not updated on subsequent uses, the existing Amazon S3 object is overwritten.
ContentType String The mime-content type to use for the uploaded object (for example, text/html, video/mpeg, video/avi, or application/zip). The type is stored in the Amazon S3 record. You can use this type to help identify or retrieve a specific type of data later. The default is application/octet-stream.
FileName String The name of the file to upload

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message

GeneratePublicUrl node

Generates a presigned URL that points to an Amazon S3 location that you specify.


                    GeneratePublicUrl

Inputs

Port Type Description
PresignUrl Any Generates a presigned URL for the Amazon S3 location specified
BucketName String The name of the Amazon S3 bucket to use
KeyName String What to name the uploaded object on Amazon S3. If this value is not updated on subsequent uses, the existing Amazon S3 object is overwritten.
Http Request Method String The HTTP method against which to presign (DELETE, GET, POST, or PUT)

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message
Url String The signed URL