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:/

31 lines (30 loc) 951 B
import type { ResourceLimits } from "node:worker_threads"; import type { HttpRequest } from "./aws/utils"; export type { HttpRequest } from "./aws/utils"; export type SignerOptions = { credentials?: { region?: string; accessKeyId?: string; secretAccessKey?: string; }; minThreads?: number; maxThreads?: number; idleTimeout?: number; maxQueue?: number | "auto"; concurrentTasksPerWorker?: number; resourceLimits?: ResourceLimits; }; export declare class Signer { private readonly worker; private readonly credentials; 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; }