UNPKG

@fgiova/aws-signature

Version:

[![NPM version](https://img.shields.io/npm/v/@fgiova/aws-signature.svg?style=flat)](https://www.npmjs.com/package/@fgiova/aws-signature) ![CI workflow](https://github.com/fgiova/aws-signature/actions/workflows/node.js.yml/badge.svg) [![TypeScript](https:/

25 lines (24 loc) 786 B
import { HttpRequest } from "./aws/utils"; import { ResourceLimits } from "worker_threads"; export type { HttpRequest } from "./aws/utils"; export type SignerOptions = { minThreads?: number; maxThreads?: number; idleTimeout?: number; maxQueue?: number | "auto"; concurrentTasksPerWorker?: number; resourceLimits?: ResourceLimits; }; export declare class Signer { private readonly worker; cpuCount: number; constructor(options?: SignerOptions); private millsToNextDay; request(request: HttpRequest, service: string, region?: string, date?: Date): Promise<HttpRequest>; destroy(): Promise<void>; } export declare class SignerSingleton { private static signer; constructor(); static getSigner(options?: SignerOptions): Signer; }