Skip to main content

bucket

Overview of the bucket module in the @serverless-stack/node package.

import { ... } from "@serverless-stack/node/bucket"

The bucket module has the following exports.


Properties

The properties let you access the resources that are bound to the function.


Bucket

This module helps with accessing Bucket constructs.

import { Bucket } from "@serverless-stack/node/bucket";

bucketName

Type : string

The name of the S3 bucket.

console.log(Bucket.myBucket.bucketName);