Skip to main content
Module

x/s3_lite_client/mod.ts>S3Client#getPresignedUrl

A lightweight but powerful S3 client for Deno
Go to Latest
method S3Client.prototype.getPresignedUrl
import { S3Client } from "https://deno.land/x/s3_lite_client@0.6.1/mod.ts";

Low-level method to generate a pre-signed URL.

Parameters

method:
| "GET"
| "PUT"
| "HEAD"
| "DELETE"

The HTTP method to use for the request

objectName: string

The object name, e.g. "path/to/file.txt"

optional
options: { bucketName?: string; parameters?: Record<string, string>; expirySeconds?: number; requestDate?: Date; } = [UNSUPPORTED]

Detailed options, such as expiry time for the pre-signed URL. Use expirySeconds to specify the expiry time; default is seven days.

Returns

Promise<string>