You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

BellaDati can import data and files from Amazon S3.


Files metadata are saved to the data set and files can be saved to the BellaDati Media gallery.

Connecting to S3

From Data Source Connectors page select S3.


Connection parameters


Provide your unique Account key

Provide your unique Account secret

Choose AWS region what has your bucket is assigned to

Provide with your Bucket name

You can select time interval Modified from-to. If data were modified in this time interval, they will be used in import

You can also use relative timing with Max file age in minutes old.

Row prefix regex defines according to what format, should rows be downloaded. For example "\.json$" will search for all files that ends with .json

Column file patterns defines according to what format, should columns be downloaded. Each column regex should be on new line. For example ^A.*\.json$ and ^B.*\.json$. This will download jsons starting with A on first column, and starting with B on second column.

S3 Functions

  • String getS3Text() - Gets file
  • String getS3Text(int columnIndex) - Gets file from selected column
  • JSONElement getS3JSON() - Gets json file
  • JSONElement getS3JSON(int columnIndex) - Gets json file from selected column
  • String saveS3MediaFile() - Gets picture and stores it to dataset, returns mediaId
  • String saveS3MediaFile(boolean skipIfExists) - Gets picture and stores it to media gallery, returns mediaId. With true parameter can skip already downloaded file
  • String saveS3MediaFile(int columnIndex, boolean skipIfExists) - Gets picture from selected column and stores it to media gallery, returns mediaId. With true parameter can skip already downloaded file
  • connectS3(String accountKey, String accountSecret, String region, String bucketName, Closure closure) - connects to S3 and sets the "client" as property to the closure
  • iterateS3Objects(S3Client client, String bucketName, Closure closure) - iterates objects in S3 and sets "client" and "object" as properties to the closure
  • deleteS3Object(S3Client client, String bucketName, String key)
  • deleteS3Object(S3Client client, String bucketName, S3Object object)
  • No labels