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>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
AbucketName | String | Name of the bucket | |||
AfileName | String | The name of the field to download | |||
Aaccess-key | String | The AWS access key | |||
Asecret-key | String | The AWS secret access key | |||
Aregion | String | Sets the region to be used by the client. This will be used to determine both the service endpoint (eg: https://sns.us-west-1.amazonaws.com) and signing region (eg: us-west-1) for requests. If region is not explicitly provided as an attribute the DEFAULT_REGION_PROVIDER is consulted. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Efile | File | The destination file of the requested object data |
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