Skip to main content

S3 Client

Service Suite can use Amazon S3 as a file repository. Create an S3 client with:

s3client = createS3Client(filename)

The properties file contains the access key and secret key values:

AWS_ACCESS_KEY_ID=xxxxxxx
AWS_SECRET_ACCESS_KEY=yyyyyyyyyyyyyyyyyyyyyyy

These are standard AWS access keys. See AWS security credential types.

S3 Client methods

  • download(bucket:String, remoteName:String) → byte[]
  • downloadFile(bucket:String, remoteName:String, localpath:String)
  • list(bucket:String, prefix:String) → Set<String>
  • listFolders(bucket:String, prefix:String) → Set<String>
  • listFolderNames(bucket:String, prefix:String) → Set<String>
  • upload(bucket:String, data:byte[], remoteName:String)
  • uploadPublic(bucket:String, data:byte[], remoteName:String)
var client = createS3Client("{ds}/s3.creds");
var bucketName = "myBucket"; // this must exist in S3
var data = "user,pass\njohn,doe";
// client.delete(bucketName, "test.csv"); // delete previous file
client.upload(bucketName, toByteArray(data), "test.csv");

Last updated: October 15, 2026

If you have feedback on this topic, contact documentation@appvance.ai.