1 amazon.s3.doesBucketExists
Return whether the specified bucket exists
<amazon.s3.doesBucketExists
bucketName='bucketName'
access-key='access-key'
secret-key='secret-key'
region='region'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
AbucketName | String | Name of the bucket | |||
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.doesBucketExists bucketName='testjabbucket' /></println> </body> </xsql-script>
Which prints in standard output:
Copy
true