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

import { File } from "@intuned/sdk/files";

const signedUrl = await file.generateSignedUrl({ expiresIn: 1000 });
console.log(signedUrl);

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.