Skip to content

datasource.S3Bucket ​

Initializes a S3Bucket object to interact with AWS S3 using the provided credentials and bucket details.

Usage ​

js
datasource.S3Bucket(access_key, secret_key, bucket, region)

Parameters ​

  • access_key (string): The access key for AWS S3.
  • secret_key (string): The secret key for AWS S3.
  • bucket (string): The name of the S3 bucket you want to interact with.
  • region (string): The region where your S3 bucket resides.

Returns ​

  • S3Bucket: An object to interact with the specified AWS S3 bucket. This S3Bucket object provides various methods to manage and manipulate data within the S3 bucket.

Examples ​

js
var s3Bucket = datasource.S3Bucket("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "YOUR_BUCKET_NAME", "us-west-1");