UNPKG

1.52 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/aws4`
3
4# Summary
5This package contains type definitions for aws4 (https://github.com/mhart/aws4).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws4.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws4/index.d.ts)
10````ts
11// Type definitions for aws4 1.5.0
12// Project: https://github.com/mhart/aws4
13// Definitions by: Andrew Crites <https://github.com/ajcrites>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
16export class RequestSigner {
17 constructor(request?: any, credentials?: any);
18 request: any;
19 credentials: any;
20 service: any;
21 region: any;
22 isCodeCommitGit: any;
23
24 matchHost(host?: string): string[];
25 isSingleRegion(): boolean;
26 createHost(): string;
27 prepareRequest(): void;
28 sign(): any;
29 getDateTime(): string;
30 getDate(): string;
31 authHeader(): string;
32 signature(): string;
33 stringToSign(): string;
34 canonicalString(): string;
35 canonicalHeaders(): string;
36 signedHeaders(): string;
37 credentialString(): string;
38 defaultCredentials(): any;
39 parsePath(): any;
40 formatPath(): string;
41}
42
43export function sign(options?: any, credentials?: any): any;
44
45````
46
47### Additional Details
48 * Last updated: Wed, 09 Jun 2021 22:01:25 GMT
49 * Dependencies: none
50 * Global values: none
51
52# Credits
53These definitions were written by [Andrew Crites](https://github.com/ajcrites).
54
\No newline at end of file