1 amazon.s3.listBuckets
Returns a list of all Amazon S3 buckets that the authenticated sender of the request owns. Users must authenticate with a valid AWS Access Key ID that is registered with Amazon S3. Anonymous requests cannot list buckets, and users cannot list buckets that they did not create.
<amazon.s3.listBuckets
access-key='access-key'
secret-key='secret-key'
region='region'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
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. |
Example
Copy
<xsql-script> <body> <println><amazon.s3.listBuckets /></println> </body> </xsql-script>
Which prints in standard output:
Copy
+-------------+-------+------------+ |name |owner |creationDate| |char |object |object | |visible |visible|visible | +-------------+-------+------------+ |testjabbucket| | | +-------------+-------+------------+