idea-aws
    Preparing search index...

    Class S3

    A wrapper for AWS Simple Storage Service.

    Index

    Constructors

    Properties

    client: S3Client
    DEFAULT_DOWNLOAD_BUCKET: string = 'idea-downloads'
    DEFAULT_DOWNLOAD_BUCKET_PREFIX: string = 'common'
    DEFAULT_DOWNLOAD_BUCKET_SEC_TO_EXP: number = 180
    DEFAULT_UPLOAD_BUCKET_SEC_TO_EXP: number = 300
    logger: LambdaLogger = ...

    Methods

    • Create a download link of a piece of data (through S3). Practically, it uploads the file on an S3 bucket, generating and returning a url to it.

      Parameters

      Returns Promise<SignedURL>

    • Get a signed URL to get a file on a S3 bucket.

      Parameters

      Returns Promise<SignedURL>

    • Get a signed URL to put a file on a S3 bucket.

      Parameters

      Returns Promise<SignedURL>