Class Attachments

A custom class that takes advantage of DynamoDB and S3 to easily manage attachments.

Constructors

Properties

Methods

Constructors

Properties

bucket: string = process.env.S3_BUCKET_MEDIA

The bucket where from to retrieve the attachments. Fallback to IDEA's default one (CDK).

folder: string = process.env.S3_ATTACHMENTS_FOLDER

The folder where from to retrieve the attachments. Fallback to IDEA's default one (CDK).

prefix: string = ...

The default prefix for attachment IDs.

s3: S3

Methods

  • Get a SignedURL to download an attachment.

    Parameters

    Returns Promise<SignedURL>