Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/aws_api/client/signing.ts>AWSSignerV4#presign

From-scratch Typescript client for accessing AWS APIs
Extremely Popular
Latest
method AWSSignerV4.prototype.presign
import { AWSSignerV4 } from "https://deno.land/x/aws_api@v0.8.1/client/signing.ts";

Generate a "pre-signed" URL. Generally used to create short-lived links to private S3 objects.

const url = await signer.presign('s3', {
  method: 'GET',
  url: 'https://my-bucket.s3.amazonaws.com/my-key',
});

Parameters

service: string
props: { method?: "GET" | "PUT"; url: string; expiresIn?: number; signTime?: Date; }