Skip to main content

S3

Library of functions for accessing data on S3.

Functions

Build

Builds a S3 location from an url.

Syntax:
S3.Build(url: string, region: optional string, accessKey: optional string, secretKey: optional string)
Parameters
  • url: The url to the s3 location.

  • region: The region of the bucket, e.g. 'eu-west-1'.

  • accessKey: The AWS access key.

  • secretKey: The AWS secret key.

Returns
  • location: The S3 location.
Example:
S3.Location("S3://my-bucket/folder/sub-folder/file")
note

If the S3 bucket is not registered in the credentials storage, then the region, accessKey and secretKey must be provided as arguments.