@aws-sdk/client-sts 3.1044.0 → 3.1046.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/dist-cjs/auth/httpAuthSchemeProvider.js +11 -17
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +155 -57
- package/dist-cjs/models/STSServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +19 -23
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/STS.js +1 -1
- package/dist-es/STSClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +5 -10
- package/dist-es/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/commands/AssumeRootCommand.js +2 -2
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-es/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-es/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-es/commands/GetDelegatedAccessTokenCommand.js +2 -2
- package/dist-es/commands/GetFederationTokenCommand.js +2 -2
- package/dist-es/commands/GetSessionTokenCommand.js +2 -2
- package/dist-es/commands/GetWebIdentityTokenCommand.js +2 -2
- package/dist-es/defaultStsRoleAssumers.js +0 -5
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/STSServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/STSClient.d.ts +5 -5
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +3 -13
- package/dist-types/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +6 -4
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/commands/AssumeRootCommand.d.ts +6 -4
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +6 -4
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +6 -4
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +6 -4
- package/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetFederationTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetSessionTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +6 -4
- package/dist-types/defaultStsRoleAssumers.d.ts +0 -9
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/STSServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +3 -3
- package/dist-types/runtimeConfig.d.ts +3 -3
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/ts3.4/STSClient.d.ts +8 -14
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +2 -12
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDelegatedAccessTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetWebIdentityTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +0 -3
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/STSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/package.json +15 -36
- package/dist-cjs/STSClient.js +0 -55
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/endpoint/EndpointParameters.js +0 -19
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -6,7 +6,7 @@ import { STSClientConfig } from "./STSClient";
|
|
|
6
6
|
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<
|
|
9
|
-
import("@smithy/
|
|
9
|
+
import("@smithy/core/client").ResolvedDefaultsMode
|
|
10
10
|
>;
|
|
11
11
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
12
12
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
@@ -48,7 +48,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
48
48
|
region: string | import("@smithy/types").Provider<string>;
|
|
49
49
|
requestHandler:
|
|
50
50
|
| RequestHandler
|
|
51
|
-
| import("@smithy/
|
|
51
|
+
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
52
52
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
53
53
|
sha256: import("@smithy/types").HashConstructor;
|
|
54
54
|
sigv4aSigningRegionSet:
|
|
@@ -120,11 +120,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
120
120
|
systemClockOffset?: number;
|
|
121
121
|
signingRegion?: string;
|
|
122
122
|
signerConstructor:
|
|
123
|
+
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion
|
|
123
124
|
| (new (
|
|
124
125
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
125
126
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
126
|
-
) => import("@smithy/types").RequestSigner)
|
|
127
|
-
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
127
|
+
) => import("@smithy/types").RequestSigner);
|
|
128
128
|
useGlobalEndpoint?:
|
|
129
129
|
| boolean
|
|
130
130
|
| undefined
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
6
6
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
7
7
|
| import("@smithy/types").FetchHttpHandlerOptions
|
|
8
8
|
| Record<string, unknown>
|
|
9
|
-
| import("@smithy/
|
|
9
|
+
| import("@smithy/core/protocols").HttpHandler<any>
|
|
10
10
|
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
11
|
cacheMiddleware?: boolean;
|
|
12
12
|
protocol:
|
|
@@ -46,9 +46,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
46
46
|
logger: import("@smithy/types").Logger;
|
|
47
47
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
48
48
|
defaultsMode:
|
|
49
|
-
| import("@smithy/
|
|
49
|
+
| import("@smithy/core/client").DefaultsMode
|
|
50
50
|
| import("@smithy/types").Provider<
|
|
51
|
-
import("@smithy/
|
|
51
|
+
import("@smithy/core/client").DefaultsMode
|
|
52
52
|
>;
|
|
53
53
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
54
54
|
userAgentAppId?:
|
|
@@ -123,11 +123,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
123
123
|
systemClockOffset?: number;
|
|
124
124
|
signingRegion?: string;
|
|
125
125
|
signerConstructor:
|
|
126
|
+
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion
|
|
126
127
|
| (new (
|
|
127
128
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
128
129
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
129
|
-
) => import("@smithy/types").RequestSigner)
|
|
130
|
-
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
130
|
+
) => import("@smithy/types").RequestSigner);
|
|
131
131
|
sigv4aSigningRegionSet?:
|
|
132
132
|
| string[]
|
|
133
133
|
| undefined
|
|
@@ -54,11 +54,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
54
54
|
};
|
|
55
55
|
serviceId: string;
|
|
56
56
|
signerConstructor:
|
|
57
|
+
| typeof SignatureV4MultiRegion
|
|
57
58
|
| (new (
|
|
58
59
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
59
60
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
60
|
-
) => import("@smithy/types").RequestSigner)
|
|
61
|
-
| typeof SignatureV4MultiRegion;
|
|
61
|
+
) => import("@smithy/types").RequestSigner);
|
|
62
62
|
urlParser: import("@smithy/types").UrlParser;
|
|
63
63
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
64
64
|
utf8Encoder: (input: Uint8Array | string) => string;
|
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.1046.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -27,47 +27,26 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "^3.974.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
30
|
+
"@aws-sdk/core": "^3.974.9",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.40",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "^3.972.11",
|
|
33
33
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
36
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
37
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.12",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "^3.972.39",
|
|
36
|
+
"@aws-sdk/region-config-resolver": "^3.972.14",
|
|
37
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.26",
|
|
38
38
|
"@aws-sdk/types": "^3.973.8",
|
|
39
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
40
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
42
|
-
"@smithy/
|
|
43
|
-
"@smithy/
|
|
44
|
-
"@smithy/
|
|
45
|
-
"@smithy/hash-node": "^4.2.14",
|
|
46
|
-
"@smithy/invalid-dependency": "^4.2.14",
|
|
47
|
-
"@smithy/middleware-content-length": "^4.2.14",
|
|
48
|
-
"@smithy/middleware-endpoint": "^4.4.32",
|
|
49
|
-
"@smithy/middleware-retry": "^4.5.7",
|
|
50
|
-
"@smithy/middleware-serde": "^4.2.20",
|
|
51
|
-
"@smithy/middleware-stack": "^4.2.14",
|
|
52
|
-
"@smithy/node-config-provider": "^4.3.14",
|
|
53
|
-
"@smithy/node-http-handler": "^4.6.1",
|
|
54
|
-
"@smithy/protocol-http": "^5.3.14",
|
|
55
|
-
"@smithy/smithy-client": "^4.12.13",
|
|
39
|
+
"@aws-sdk/util-endpoints": "^3.996.9",
|
|
40
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.11",
|
|
41
|
+
"@aws-sdk/util-user-agent-node": "^3.973.25",
|
|
42
|
+
"@smithy/core": "^3.24.1",
|
|
43
|
+
"@smithy/fetch-http-handler": "^5.4.1",
|
|
44
|
+
"@smithy/node-http-handler": "^4.7.1",
|
|
56
45
|
"@smithy/types": "^4.14.1",
|
|
57
|
-
"@smithy/url-parser": "^4.2.14",
|
|
58
|
-
"@smithy/util-base64": "^4.3.2",
|
|
59
|
-
"@smithy/util-body-length-browser": "^4.2.2",
|
|
60
|
-
"@smithy/util-body-length-node": "^4.2.3",
|
|
61
|
-
"@smithy/util-defaults-mode-browser": "^4.3.49",
|
|
62
|
-
"@smithy/util-defaults-mode-node": "^4.2.54",
|
|
63
|
-
"@smithy/util-endpoints": "^3.4.2",
|
|
64
|
-
"@smithy/util-middleware": "^4.2.14",
|
|
65
|
-
"@smithy/util-retry": "^4.3.6",
|
|
66
|
-
"@smithy/util-utf8": "^4.2.2",
|
|
67
46
|
"tslib": "^2.6.2"
|
|
68
47
|
},
|
|
69
48
|
"devDependencies": {
|
|
70
|
-
"@smithy/snapshot-testing": "^2.
|
|
49
|
+
"@smithy/snapshot-testing": "^2.1.1",
|
|
71
50
|
"@tsconfig/node20": "20.1.8",
|
|
72
51
|
"@types/node": "^20.14.8",
|
|
73
52
|
"concurrently": "7.0.0",
|
package/dist-cjs/STSClient.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STSClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
-
const core_1 = require("@smithy/core");
|
|
10
|
-
const schema_1 = require("@smithy/core/schema");
|
|
11
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
12
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
13
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
16
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
17
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
18
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
19
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
20
|
-
class STSClient extends smithy_client_1.Client {
|
|
21
|
-
config;
|
|
22
|
-
constructor(...[configuration]) {
|
|
23
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
24
|
-
super(_config_0);
|
|
25
|
-
this.initConfig = _config_0;
|
|
26
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
27
|
-
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
|
28
|
-
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
29
|
-
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
|
30
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
31
|
-
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
|
32
|
-
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
33
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
34
|
-
this.config = _config_8;
|
|
35
|
-
this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
38
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
39
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
40
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
41
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
42
|
-
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
43
|
-
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
|
44
|
-
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
45
|
-
"aws.auth#sigv4": config.credentials,
|
|
46
|
-
"aws.auth#sigv4a": config.credentials,
|
|
47
|
-
}),
|
|
48
|
-
}));
|
|
49
|
-
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
50
|
-
}
|
|
51
|
-
destroy() {
|
|
52
|
-
super.destroy();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.STSClient = STSClient;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
-
let _credentials = runtimeConfig.credentials;
|
|
8
|
-
return {
|
|
9
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
-
if (index === -1) {
|
|
12
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
httpAuthSchemes() {
|
|
19
|
-
return _httpAuthSchemes;
|
|
20
|
-
},
|
|
21
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
-
},
|
|
24
|
-
httpAuthSchemeProvider() {
|
|
25
|
-
return _httpAuthSchemeProvider;
|
|
26
|
-
},
|
|
27
|
-
setCredentials(credentials) {
|
|
28
|
-
_credentials = credentials;
|
|
29
|
-
},
|
|
30
|
-
credentials() {
|
|
31
|
-
return _credentials;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
-
return {
|
|
38
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
-
credentials: config.credentials(),
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return Object.assign(options, {
|
|
6
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
7
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
8
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "sts",
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
-
Region: { type: "builtInParams", name: "region" },
|
|
18
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|