1 amazon.s3.downloadObject

Gets the object stored in Amazon S3 under the specified bucket and key. Returns null if the specified constraints weren't met.To get an object from Amazon S3, the caller must have Permission.Read access to the object.

<aamazon.s3.downloadObject
    bucketName='bucketName'
    fileName='fileName'
    access-key='access-key'
    secret-key='secret-key'
    region='region'
>
    <file /> +
</aamazon.s3.downloadObject>
Example
Copy
<xsql-script>
    <body>
        <set name='f1'>
            <amazon.s3.downloadObject bucketName='//informixs3test' fileName='blob1.txt'>
                <file name='test' />
            </amazon.s3.downloadObject>
        </set>        
        <println><f1  /></println>
    </body>
</xsql-script>

Which prints in standard output:

Copy