@aws-sdk/client-sts 3.21.0 → 3.25.0
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.
- package/CHANGELOG.md +46 -0
- package/STSClient.ts +4 -6
- package/dist/cjs/STSClient.js +1 -4
- package/dist/cjs/STSClient.js.map +1 -1
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +33 -33
- package/dist/cjs/protocols/Aws_query.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +23 -20
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +25 -20
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +11 -5
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/runtimeConfig.shared.js +12 -8
- package/dist/cjs/runtimeConfig.shared.js.map +1 -1
- package/dist/es/STSClient.js +3 -3
- package/dist/es/STSClient.js.map +1 -1
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +33 -33
- package/dist/es/protocols/Aws_query.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +7 -5
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +9 -5
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +7 -2
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +11 -7
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/STSClient.d.ts +1 -1
- package/dist/types/models/models_0.d.ts +1 -2
- package/dist/types/runtimeConfig.browser.d.ts +34 -2
- package/dist/types/runtimeConfig.d.ts +34 -2
- package/dist/types/runtimeConfig.native.d.ts +33 -2
- package/dist/types/runtimeConfig.shared.d.ts +2 -1
- package/dist/types/ts3.4/STSClient.d.ts +1 -1
- package/dist/types/ts3.4/models/models_0.d.ts +1 -2
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +34 -2
- package/dist/types/ts3.4/runtimeConfig.d.ts +34 -2
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +33 -2
- package/dist/types/ts3.4/runtimeConfig.shared.d.ts +2 -1
- package/models/models_0.ts +1 -2
- package/package.json +33 -33
- package/protocols/Aws_query.ts +1 -1
- package/runtimeConfig.browser.ts +25 -21
- package/runtimeConfig.native.ts +10 -6
- package/runtimeConfig.shared.ts +8 -7
- package/runtimeConfig.ts +27 -21
- package/tsconfig.json +0 -1
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
|
|
16
|
+
retryModeProvider: import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
logger: import("@aws-sdk/types").Logger;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
retryMode?: string | undefined;
|
|
31
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
32
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
33
|
+
signingEscapePath?: boolean | undefined;
|
|
34
|
+
systemClockOffset?: number | undefined;
|
|
35
|
+
signingRegion?: string | undefined;
|
|
36
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
37
|
+
};
|
|
@@ -1,5 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
12
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
15
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
16
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
17
|
+
disableHostPrefix: boolean;
|
|
18
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
19
|
+
retryModeProvider: import("@aws-sdk/types").Provider<string>;
|
|
20
|
+
logger: import("@aws-sdk/types").Logger;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
23
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
|
+
tls?: boolean | undefined;
|
|
28
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
29
|
+
retryMode?: string | undefined;
|
|
30
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
+
signingEscapePath?: boolean | undefined;
|
|
33
|
+
systemClockOffset?: number | undefined;
|
|
34
|
+
signingRegion?: string | undefined;
|
|
35
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
36
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
6
7
|
apiVersion: string;
|
|
7
8
|
disableHostPrefix: boolean;
|
|
8
9
|
logger: __Logger;
|
|
@@ -22,7 +22,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
22
22
|
*/
|
|
23
23
|
requestHandler?: __HttpHandler;
|
|
24
24
|
/**
|
|
25
|
-
* A constructor for a class implementing the @
|
|
25
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
26
26
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
27
27
|
* @internal
|
|
28
28
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SmithyException as __SmithyException } from "@aws-sdk/
|
|
2
|
-
import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types";
|
|
1
|
+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
2
|
/**
|
|
4
3
|
* <p>The identifiers for the temporary security credentials that the operation
|
|
5
4
|
* returns.</p>
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
|
|
16
|
+
retryModeProvider: import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
logger: import("@aws-sdk/types").Logger;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
retryMode?: string | undefined;
|
|
31
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
32
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
33
|
+
signingEscapePath?: boolean | undefined;
|
|
34
|
+
systemClockOffset?: number | undefined;
|
|
35
|
+
signingRegion?: string | undefined;
|
|
36
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
37
|
+
};
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
|
|
16
|
+
retryModeProvider: import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
logger: import("@aws-sdk/types").Logger;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
retryMode?: string | undefined;
|
|
31
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
32
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
33
|
+
signingEscapePath?: boolean | undefined;
|
|
34
|
+
systemClockOffset?: number | undefined;
|
|
35
|
+
signingRegion?: string | undefined;
|
|
36
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
37
|
+
};
|
|
@@ -1,5 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
12
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
15
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
16
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
17
|
+
disableHostPrefix: boolean;
|
|
18
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
19
|
+
retryModeProvider: import("@aws-sdk/types").Provider<string>;
|
|
20
|
+
logger: import("@aws-sdk/types").Logger;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
23
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
|
+
tls?: boolean | undefined;
|
|
28
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
29
|
+
retryMode?: string | undefined;
|
|
30
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
+
signingEscapePath?: boolean | undefined;
|
|
33
|
+
systemClockOffset?: number | undefined;
|
|
34
|
+
signingRegion?: string | undefined;
|
|
35
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
36
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const getRuntimeConfig: (config?: STSClientConfig) => {
|
|
6
7
|
apiVersion: string;
|
|
7
8
|
disableHostPrefix: boolean;
|
|
8
9
|
logger: __Logger;
|
package/models/models_0.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SmithyException as __SmithyException } from "@aws-sdk/
|
|
2
|
-
import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types";
|
|
1
|
+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* <p>The identifiers for the temporary security credentials that the operation
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.25.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,40 +27,40 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/config-resolver": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
32
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
33
|
-
"@aws-sdk/hash-node": "3.
|
|
34
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
35
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
36
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
37
|
-
"@aws-sdk/middleware-logger": "3.
|
|
38
|
-
"@aws-sdk/middleware-retry": "3.
|
|
39
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/config-resolver": "3.25.0",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "3.25.0",
|
|
32
|
+
"@aws-sdk/fetch-http-handler": "3.25.0",
|
|
33
|
+
"@aws-sdk/hash-node": "3.25.0",
|
|
34
|
+
"@aws-sdk/invalid-dependency": "3.25.0",
|
|
35
|
+
"@aws-sdk/middleware-content-length": "3.25.0",
|
|
36
|
+
"@aws-sdk/middleware-host-header": "3.25.0",
|
|
37
|
+
"@aws-sdk/middleware-logger": "3.25.0",
|
|
38
|
+
"@aws-sdk/middleware-retry": "3.25.0",
|
|
39
|
+
"@aws-sdk/middleware-sdk-sts": "3.25.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.25.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.25.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.25.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.25.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.25.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.25.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.25.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.25.0",
|
|
48
|
+
"@aws-sdk/types": "3.25.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.25.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.23.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.23.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.23.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.23.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.25.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.25.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.23.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.23.0",
|
|
58
58
|
"entities": "2.2.0",
|
|
59
59
|
"fast-xml-parser": "3.19.0",
|
|
60
|
-
"tslib": "^2.
|
|
60
|
+
"tslib": "^2.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
63
|
+
"@aws-sdk/client-documentation-generator": "3.23.0",
|
|
64
64
|
"@types/node": "^12.7.5",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
66
66
|
"jest": "^26.1.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
},
|
|
75
75
|
"typesVersions": {
|
|
76
76
|
"<4.0": {
|
|
77
|
-
"types/*": [
|
|
78
|
-
"types/ts3.4/*"
|
|
77
|
+
"dist/types/*": [
|
|
78
|
+
"dist/types/ts3.4/*"
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
},
|
package/protocols/Aws_query.ts
CHANGED
|
@@ -45,7 +45,6 @@ import {
|
|
|
45
45
|
} from "../models/models_0";
|
|
46
46
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
47
47
|
import {
|
|
48
|
-
SmithyException as __SmithyException,
|
|
49
48
|
expectString as __expectString,
|
|
50
49
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
51
50
|
getValueFromTextNode as __getValueFromTextNode,
|
|
@@ -56,6 +55,7 @@ import {
|
|
|
56
55
|
MetadataBearer as __MetadataBearer,
|
|
57
56
|
ResponseMetadata as __ResponseMetadata,
|
|
58
57
|
SerdeContext as __SerdeContext,
|
|
58
|
+
SmithyException as __SmithyException,
|
|
59
59
|
} from "@aws-sdk/types";
|
|
60
60
|
import { decodeHTML } from "entities";
|
|
61
61
|
import { parse as xmlParse } from "fast-xml-parser";
|
package/runtimeConfig.browser.ts
CHANGED
|
@@ -8,29 +8,33 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
|
8
8
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { STSClientConfig } from "./STSClient";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
export const getRuntimeConfig = (config: STSClientConfig = {}) => {
|
|
18
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
19
|
+
return {
|
|
20
|
+
...clientSharedValues,
|
|
21
|
+
...config,
|
|
22
|
+
runtime: "browser",
|
|
23
|
+
base64Decoder: config.base64Decoder ?? fromBase64,
|
|
24
|
+
base64Encoder: config.base64Encoder ?? toBase64,
|
|
25
|
+
bodyLengthChecker: config.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider:
|
|
27
|
+
config.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
+
defaultUserAgentProvider:
|
|
29
|
+
config.defaultUserAgentProvider ??
|
|
30
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
maxAttempts: config.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
32
|
+
region: config.region ?? invalidProvider("Region is missing"),
|
|
33
|
+
requestHandler: config.requestHandler ?? new FetchHttpHandler(),
|
|
34
|
+
retryModeProvider: config.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
|
|
35
|
+
sha256: config.sha256 ?? Sha256,
|
|
36
|
+
streamCollector: config.streamCollector ?? streamCollector,
|
|
37
|
+
utf8Decoder: config.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
36
40
|
};
|
package/runtimeConfig.native.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
3
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export const getRuntimeConfig = (config: STSClientConfig = {}) => {
|
|
9
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
10
|
+
return {
|
|
11
|
+
...browserDefaults,
|
|
12
|
+
...config,
|
|
13
|
+
runtime: "react-native",
|
|
14
|
+
sha256: config.sha256 ?? Sha256,
|
|
15
|
+
};
|
|
12
16
|
};
|
package/runtimeConfig.shared.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
2
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
3
3
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
4
|
+
import { STSClientConfig } from "./STSClient";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
7
8
|
*/
|
|
8
|
-
export const
|
|
9
|
+
export const getRuntimeConfig = (config: STSClientConfig = {}) => ({
|
|
9
10
|
apiVersion: "2011-06-15",
|
|
10
|
-
disableHostPrefix: false,
|
|
11
|
-
logger: {} as __Logger,
|
|
12
|
-
regionInfoProvider: defaultRegionInfoProvider,
|
|
13
|
-
serviceId: "STS",
|
|
14
|
-
urlParser: parseUrl,
|
|
15
|
-
};
|
|
11
|
+
disableHostPrefix: config.disableHostPrefix ?? false,
|
|
12
|
+
logger: config.logger ?? ({} as __Logger),
|
|
13
|
+
regionInfoProvider: config.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
14
|
+
serviceId: config.serviceId ?? "STS",
|
|
15
|
+
urlParser: config.urlParser ?? parseUrl,
|
|
16
|
+
});
|
package/runtimeConfig.ts
CHANGED
|
@@ -11,29 +11,35 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { STSClientConfig } from "./STSClient";
|
|
15
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* @internal
|
|
19
20
|
*/
|
|
20
|
-
export const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
export const getRuntimeConfig = (config: STSClientConfig = {}) => {
|
|
22
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
23
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
24
|
+
return {
|
|
25
|
+
...clientSharedValues,
|
|
26
|
+
...config,
|
|
27
|
+
runtime: "node",
|
|
28
|
+
base64Decoder: config.base64Decoder ?? fromBase64,
|
|
29
|
+
base64Encoder: config.base64Encoder ?? toBase64,
|
|
30
|
+
bodyLengthChecker: config.bodyLengthChecker ?? calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider:
|
|
32
|
+
config.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
33
|
+
defaultUserAgentProvider:
|
|
34
|
+
config.defaultUserAgentProvider ??
|
|
35
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
+
maxAttempts: config.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
37
|
+
region: config.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
38
|
+
requestHandler: config.requestHandler ?? new NodeHttpHandler(),
|
|
39
|
+
retryModeProvider: config.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
40
|
+
sha256: config.sha256 ?? Hash.bind(null, "sha256"),
|
|
41
|
+
streamCollector: config.streamCollector ?? streamCollector,
|
|
42
|
+
utf8Decoder: config.utf8Decoder ?? fromUtf8,
|
|
43
|
+
utf8Encoder: config.utf8Encoder ?? toUtf8,
|
|
44
|
+
};
|
|
39
45
|
};
|