Class Attachments

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

Constructors

Properties

IUID_ATTACHMENTS_PREFIX: string = ...

The prefix for attachment IDs. Fallback to IDEA's default one.

S3_ATTACHMENTS_BUCKET: string = ...

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

s3: S3

Methods

  • Get a signedURL to retrieve an attachment.

    Parameters

    • attachmentId: string

    Returns Promise<SignedURL>

  • Get a signedURL to put an attachment.

    Parameters

    • project: string
    • teamId: string

    Returns Promise<SignedURL>