@cdk8s/awscdk-resolver 0.0.600 → 0.0.602
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +449 -469
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +59 -91
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +814 -533
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +21 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -51
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +21 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
- package/node_modules/@aws-sdk/core/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +9 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
- package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +23 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +25 -26
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +7 -6
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
- package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
- package/node_modules/@smithy/node-http-handler/package.json +7 -7
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
- package/node_modules/@smithy/signature-v4/package.json +6 -6
- package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
- package/node_modules/@smithy/types/package.json +4 -4
- package/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const { Retry, RETRY_MODES } = require("@smithy/core/retry");
|
|
2
|
+
const { HttpRequest, parseUrl } = require("@smithy/core/protocols");
|
|
3
|
+
const { normalizeProvider } = require("@smithy/core");
|
|
4
|
+
const { isValidHostLabel, isIpAddress, customEndpointFunctions } = require("@smithy/core/endpoints");
|
|
5
|
+
const { EndpointError, resolveEndpoint } = require("@smithy/core/endpoints");
|
|
6
|
+
exports.EndpointError = EndpointError;
|
|
7
|
+
exports.isIpAddress = isIpAddress;
|
|
8
|
+
exports.resolveEndpoint = resolveEndpoint;
|
|
9
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
10
|
+
exports.resolveRegionConfig = resolveRegionConfig;
|
|
8
11
|
|
|
9
12
|
const longPollMiddleware = () => (next, context) => async (args) => {
|
|
10
13
|
context.__retryLongPoll = true;
|
|
@@ -30,7 +33,7 @@ function setCredentialFeature(credentials, feature, value) {
|
|
|
30
33
|
return credentials;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
|
|
34
37
|
function setFeature(context, feature, value) {
|
|
35
38
|
if (!context.__aws_sdk_context) {
|
|
36
39
|
context.__aws_sdk_context = {
|
|
@@ -55,7 +58,7 @@ function resolveHostHeaderConfig(input) {
|
|
|
55
58
|
return input;
|
|
56
59
|
}
|
|
57
60
|
const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
58
|
-
if (!
|
|
61
|
+
if (!HttpRequest.isInstance(args.request))
|
|
59
62
|
return next(args);
|
|
60
63
|
const { request } = args;
|
|
61
64
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
@@ -149,7 +152,7 @@ function isValidUserAgentAppId(appId) {
|
|
|
149
152
|
return typeof appId === "string" && appId.length <= 50;
|
|
150
153
|
}
|
|
151
154
|
function resolveUserAgentConfig(input) {
|
|
152
|
-
const normalizedAppIdProvider =
|
|
155
|
+
const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
153
156
|
const { customUserAgent } = input;
|
|
154
157
|
return Object.assign(input, {
|
|
155
158
|
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
|
@@ -222,10 +225,10 @@ async function checkFeatures(context, config, args) {
|
|
|
222
225
|
const retryStrategy = await config.retryStrategy();
|
|
223
226
|
if (typeof retryStrategy.mode === "string") {
|
|
224
227
|
switch (retryStrategy.mode) {
|
|
225
|
-
case
|
|
228
|
+
case RETRY_MODES.ADAPTIVE:
|
|
226
229
|
setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
|
|
227
230
|
break;
|
|
228
|
-
case
|
|
231
|
+
case RETRY_MODES.STANDARD:
|
|
229
232
|
setFeature(context, "RETRY_MODE_STANDARD", "E");
|
|
230
233
|
break;
|
|
231
234
|
}
|
|
@@ -289,7 +292,7 @@ function encodeFeatures(features) {
|
|
|
289
292
|
|
|
290
293
|
const userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
291
294
|
const { request } = args;
|
|
292
|
-
if (!
|
|
295
|
+
if (!HttpRequest.isInstance(request)) {
|
|
293
296
|
return next(args);
|
|
294
297
|
}
|
|
295
298
|
const { headers } = request;
|
|
@@ -385,7 +388,7 @@ const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => async (
|
|
|
385
388
|
const defaultUserAgent = createDefaultUserAgentProvider;
|
|
386
389
|
|
|
387
390
|
const createUserAgentStringParsingProvider = ({ serviceId, clientVersion }) => async (config) => {
|
|
388
|
-
const module =
|
|
391
|
+
const module = require('bowser');
|
|
389
392
|
const parse = module.parse ?? module.default.parse ?? (() => "");
|
|
390
393
|
const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent ? parse(window.navigator.userAgent) : undefined;
|
|
391
394
|
const sections = [
|
|
@@ -441,7 +444,7 @@ const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
|
441
444
|
}
|
|
442
445
|
return true;
|
|
443
446
|
}
|
|
444
|
-
if (!
|
|
447
|
+
if (!isValidHostLabel(value)) {
|
|
445
448
|
return false;
|
|
446
449
|
}
|
|
447
450
|
if (value.length < 3 || value.length > 63) {
|
|
@@ -450,7 +453,7 @@ const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
|
450
453
|
if (value !== value.toLowerCase()) {
|
|
451
454
|
return false;
|
|
452
455
|
}
|
|
453
|
-
if (
|
|
456
|
+
if (isIpAddress(value)) {
|
|
454
457
|
return false;
|
|
455
458
|
}
|
|
456
459
|
return true;
|
|
@@ -480,7 +483,7 @@ const awsEndpointFunctions = {
|
|
|
480
483
|
parseArn: parseArn,
|
|
481
484
|
partition: partition,
|
|
482
485
|
};
|
|
483
|
-
|
|
486
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
484
487
|
|
|
485
488
|
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
486
489
|
if (typeof input.endpointProvider !== "function") {
|
|
@@ -501,7 +504,7 @@ const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
|
501
504
|
}
|
|
502
505
|
return input;
|
|
503
506
|
};
|
|
504
|
-
const toEndpointV1 = (endpoint) =>
|
|
507
|
+
const toEndpointV1 = (endpoint) => parseUrl(endpoint.url);
|
|
505
508
|
|
|
506
509
|
function stsRegionDefaultResolver() {
|
|
507
510
|
return async () => "us-east-1";
|
|
@@ -536,10 +539,6 @@ const NODE_REGION_CONFIG_OPTIONS = no;
|
|
|
536
539
|
const NODE_REGION_CONFIG_FILE_OPTIONS = no;
|
|
537
540
|
const stsRegionWarning = no;
|
|
538
541
|
|
|
539
|
-
exports.EndpointError = endpoints.EndpointError;
|
|
540
|
-
exports.isIpAddress = endpoints.isIpAddress;
|
|
541
|
-
exports.resolveEndpoint = endpoints.resolveEndpoint;
|
|
542
|
-
exports.resolveRegionConfig = config.resolveRegionConfig;
|
|
543
542
|
exports.DEFAULT_UA_APP_ID = DEFAULT_UA_APP_ID;
|
|
544
543
|
exports.NODE_APP_ID_CONFIG_OPTIONS = NODE_APP_ID_CONFIG_OPTIONS;
|
|
545
544
|
exports.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
|
|
2
|
+
const { normalizeProvider, memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh } = require("@smithy/core");
|
|
3
|
+
const { ProviderError } = require("@smithy/core/config");
|
|
4
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
5
|
+
const { SignatureV4 } = require("@smithy/signature-v4");
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
var core = require('@smithy/core');
|
|
5
|
-
var config = require('@smithy/core/config');
|
|
6
|
-
var client = require('@aws-sdk/core/client');
|
|
7
|
-
var signatureV4 = require('@smithy/signature-v4');
|
|
8
|
-
|
|
9
|
-
const getDateHeader = (response) => protocols.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
|
|
7
|
+
const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
|
|
10
8
|
|
|
11
9
|
const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
|
|
12
10
|
|
|
@@ -45,7 +43,7 @@ const validateSigningProperties = async (signingProperties) => {
|
|
|
45
43
|
};
|
|
46
44
|
class AwsSdkSigV4Signer {
|
|
47
45
|
async sign(httpRequest, identity, signingProperties) {
|
|
48
|
-
if (!
|
|
46
|
+
if (!HttpRequest.isInstance(httpRequest)) {
|
|
49
47
|
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
50
48
|
}
|
|
51
49
|
const validatedProps = await validateSigningProperties(signingProperties);
|
|
@@ -98,7 +96,7 @@ const AWSSDKSigV4Signer = AwsSdkSigV4Signer;
|
|
|
98
96
|
|
|
99
97
|
class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
100
98
|
async sign(httpRequest, identity, signingProperties) {
|
|
101
|
-
if (!
|
|
99
|
+
if (!HttpRequest.isInstance(httpRequest)) {
|
|
102
100
|
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
103
101
|
}
|
|
104
102
|
const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
|
|
@@ -141,7 +139,7 @@ const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
|
141
139
|
};
|
|
142
140
|
|
|
143
141
|
const resolveAwsSdkSigV4AConfig = (config) => {
|
|
144
|
-
config.sigv4aSigningRegionSet =
|
|
142
|
+
config.sigv4aSigningRegionSet = normalizeProvider(config.sigv4aSigningRegionSet);
|
|
145
143
|
return config;
|
|
146
144
|
};
|
|
147
145
|
const NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
@@ -149,7 +147,7 @@ const NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
|
149
147
|
if (env.AWS_SIGV4A_SIGNING_REGION_SET) {
|
|
150
148
|
return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
|
|
151
149
|
}
|
|
152
|
-
throw new
|
|
150
|
+
throw new ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
|
|
153
151
|
tryNextLink: true,
|
|
154
152
|
});
|
|
155
153
|
},
|
|
@@ -157,7 +155,7 @@ const NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
|
157
155
|
if (profile.sigv4a_signing_region_set) {
|
|
158
156
|
return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
|
|
159
157
|
}
|
|
160
|
-
throw new
|
|
158
|
+
throw new ProviderError("sigv4a_signing_region_set not set in profile.", {
|
|
161
159
|
tryNextLink: true,
|
|
162
160
|
});
|
|
163
161
|
},
|
|
@@ -185,7 +183,7 @@ const resolveAwsSdkSigV4Config = (config) => {
|
|
|
185
183
|
const creds = await boundProvider(options);
|
|
186
184
|
const attributedCreds = creds;
|
|
187
185
|
if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {
|
|
188
|
-
return
|
|
186
|
+
return setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e");
|
|
189
187
|
}
|
|
190
188
|
return attributedCreds;
|
|
191
189
|
};
|
|
@@ -207,10 +205,10 @@ const resolveAwsSdkSigV4Config = (config) => {
|
|
|
207
205
|
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
|
|
208
206
|
let signer;
|
|
209
207
|
if (config.signer) {
|
|
210
|
-
signer =
|
|
208
|
+
signer = normalizeProvider(config.signer);
|
|
211
209
|
}
|
|
212
210
|
else if (config.regionInfoProvider) {
|
|
213
|
-
signer = () =>
|
|
211
|
+
signer = () => normalizeProvider(config.region)()
|
|
214
212
|
.then(async (region) => [
|
|
215
213
|
(await config.regionInfoProvider(region, {
|
|
216
214
|
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
@@ -230,7 +228,7 @@ const resolveAwsSdkSigV4Config = (config) => {
|
|
|
230
228
|
sha256,
|
|
231
229
|
uriEscapePath: signingEscapePath,
|
|
232
230
|
};
|
|
233
|
-
const SignerCtor = config.signerConstructor ||
|
|
231
|
+
const SignerCtor = config.signerConstructor || SignatureV4;
|
|
234
232
|
return new SignerCtor(params);
|
|
235
233
|
});
|
|
236
234
|
}
|
|
@@ -239,7 +237,7 @@ const resolveAwsSdkSigV4Config = (config) => {
|
|
|
239
237
|
authScheme = Object.assign({}, {
|
|
240
238
|
name: "sigv4",
|
|
241
239
|
signingName: config.signingName || config.defaultSigningName,
|
|
242
|
-
signingRegion: await
|
|
240
|
+
signingRegion: await normalizeProvider(config.region)(),
|
|
243
241
|
properties: {},
|
|
244
242
|
}, authScheme);
|
|
245
243
|
const signingRegion = authScheme.signingRegion;
|
|
@@ -254,7 +252,7 @@ const resolveAwsSdkSigV4Config = (config) => {
|
|
|
254
252
|
sha256,
|
|
255
253
|
uriEscapePath: signingEscapePath,
|
|
256
254
|
};
|
|
257
|
-
const SignerCtor = config.signerConstructor ||
|
|
255
|
+
const SignerCtor = config.signerConstructor || SignatureV4;
|
|
258
256
|
return new SignerCtor(params);
|
|
259
257
|
};
|
|
260
258
|
}
|
|
@@ -270,7 +268,7 @@ function normalizeCredentialProvider(config, { credentials, credentialDefaultPro
|
|
|
270
268
|
let credentialsProvider;
|
|
271
269
|
if (credentials) {
|
|
272
270
|
if (!credentials?.memoized) {
|
|
273
|
-
credentialsProvider =
|
|
271
|
+
credentialsProvider = memoizeIdentityProvider(credentials, isIdentityExpired, doesIdentityRequireRefresh);
|
|
274
272
|
}
|
|
275
273
|
else {
|
|
276
274
|
credentialsProvider = credentials;
|
|
@@ -278,7 +276,7 @@ function normalizeCredentialProvider(config, { credentials, credentialDefaultPro
|
|
|
278
276
|
}
|
|
279
277
|
else {
|
|
280
278
|
if (credentialDefaultProvider) {
|
|
281
|
-
credentialsProvider =
|
|
279
|
+
credentialsProvider = normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {
|
|
282
280
|
parentClientConfig: config,
|
|
283
281
|
})));
|
|
284
282
|
}
|