@aws-sdk/rds-signer 3.421.0 → 3.422.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor } from "@smithy/types";
|
|
2
|
+
export interface SignerConfig {
|
|
3
|
+
/**
|
|
4
|
+
* The AWS credentials to sign requests with. Uses the default credential provider chain if not specified.
|
|
5
|
+
*/
|
|
6
|
+
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
7
|
+
/**
|
|
8
|
+
* The hostname of the database to connect to.
|
|
9
|
+
*/
|
|
10
|
+
hostname: string;
|
|
11
|
+
/**
|
|
12
|
+
* The port number the database is listening on.
|
|
13
|
+
*/
|
|
14
|
+
port: number;
|
|
15
|
+
/**
|
|
16
|
+
* The region the database is located in. Uses the region inferred from the runtime if omitted.
|
|
17
|
+
*/
|
|
18
|
+
region?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The SHA256 hasher constructor to sign the request.
|
|
21
|
+
*/
|
|
22
|
+
sha256?: ChecksumConstructor | HashConstructor;
|
|
23
|
+
/**
|
|
24
|
+
* The username to login as.
|
|
25
|
+
*/
|
|
26
|
+
username: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The signer class that generates an auth token to a database.
|
|
30
|
+
*/
|
|
31
|
+
export declare class Signer {
|
|
32
|
+
private readonly credentials;
|
|
33
|
+
private readonly hostname;
|
|
34
|
+
private readonly port;
|
|
35
|
+
private readonly protocol;
|
|
36
|
+
private readonly region;
|
|
37
|
+
private readonly service;
|
|
38
|
+
private readonly sha256;
|
|
39
|
+
private readonly username;
|
|
40
|
+
constructor(configuration: SignerConfig);
|
|
41
|
+
getAuthToken(): Promise<string>;
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Signer";
|
|
1
|
+
export * from "./Signer";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SignerConfig } from "./Signer";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
| import("@smithy/types").Provider<any>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
1
|
+
import { SignerConfig } from "./Signer";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
6
|
+
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@smithy/types").Provider<any>;
|
|
7
|
+
hostname: string;
|
|
8
|
+
port: number;
|
|
9
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
10
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
11
|
+
username: string;
|
|
12
|
+
runtime: string;
|
|
13
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { SignerConfig } from "./Signer";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { SignerConfig } from "./Signer";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
6
|
+
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
7
|
+
hostname: string;
|
|
8
|
+
port: number;
|
|
9
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
10
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
11
|
+
username: string;
|
|
12
|
+
runtime: string;
|
|
13
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SignerConfig } from "./Signer";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
| import("@smithy/types").Provider<any>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
1
|
+
import { SignerConfig } from "./Signer";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
6
|
+
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@smithy/types").Provider<any>;
|
|
7
|
+
hostname: string;
|
|
8
|
+
port: number;
|
|
9
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
10
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
11
|
+
username: string;
|
|
12
|
+
runtime: string;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/rds-signer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.422.1",
|
|
4
4
|
"description": "RDS utility for generating a password that can be used for IAM authentication to an RDS DB.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
30
|
-
"@aws-sdk/credential-providers": "3.
|
|
30
|
+
"@aws-sdk/credential-providers": "3.422.0",
|
|
31
31
|
"@aws-sdk/util-format-url": "3.418.0",
|
|
32
32
|
"@smithy/config-resolver": "^2.0.10",
|
|
33
33
|
"@smithy/hash-node": "^2.0.9",
|