Represents an s3 file, and provides some functions to operate over it

Methods

generateSignedUrl()

generateSignedUrl(options?): Promise<string>

Generates a signed URL for the file.

Examples

Parameters

options?

Optional. Options for generating the signed URL.

options.expiresIn?: number

The expiration time for the signed URL in seconds.

Returns

Promise<string>

A promise that resolves to the signed URL.


urlDescriptor()

urlDescriptor(): string

Gets S3 URL descriptor of the file.

Returns

string

The URL descriptor of the file.