@cdk8s/awscdk-resolver 0.0.599 → 0.0.601
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 +26 -27
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
- 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-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +18 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
- package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
- package/node_modules/@smithy/node-http-handler/package.json +8 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
- package/node_modules/@smithy/signature-v4/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
- package/node_modules/@smithy/types/package.json +10 -10
- package/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = require("@aws-sdk/core/client");
|
|
2
|
+
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
exports.$Command = Command;
|
|
5
|
+
exports.__Client = Client;
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsQueryProtocol } = require("@aws-sdk/core/protocols");
|
|
16
16
|
|
|
17
17
|
const q = "ref";
|
|
18
18
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
@@ -97,37 +97,37 @@ const nodes = new Int32Array([
|
|
|
97
97
|
3, r + 3, 31,
|
|
98
98
|
4, r + 4, r + 5,
|
|
99
99
|
]);
|
|
100
|
-
const bdd =
|
|
100
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
101
101
|
|
|
102
|
-
const cache = new
|
|
102
|
+
const cache = new EndpointCache({
|
|
103
103
|
size: 50,
|
|
104
104
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
|
|
105
105
|
});
|
|
106
106
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
107
|
-
return cache.get(endpointParams, () =>
|
|
107
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
108
108
|
endpointParams: endpointParams,
|
|
109
109
|
logger: context.logger,
|
|
110
110
|
}));
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
113
113
|
|
|
114
114
|
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
115
115
|
if (!input) {
|
|
116
116
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
117
117
|
}
|
|
118
118
|
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
119
|
-
const instructionsFn =
|
|
119
|
+
const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
|
|
120
120
|
?.getEndpointParameterInstructions;
|
|
121
121
|
if (!instructionsFn) {
|
|
122
122
|
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
123
123
|
}
|
|
124
|
-
const endpointParameters = await
|
|
124
|
+
const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
125
125
|
return Object.assign(defaultParameters, endpointParameters);
|
|
126
126
|
};
|
|
127
127
|
const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
128
128
|
return {
|
|
129
|
-
operation:
|
|
130
|
-
region: await
|
|
129
|
+
operation: getSmithyContext(context).operation,
|
|
130
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
131
131
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
132
132
|
})(),
|
|
133
133
|
};
|
|
@@ -189,7 +189,7 @@ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, de
|
|
|
189
189
|
const name = s.name.toLowerCase();
|
|
190
190
|
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
191
191
|
});
|
|
192
|
-
if (
|
|
192
|
+
if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
193
193
|
continue;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
@@ -233,10 +233,10 @@ const defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProv
|
|
|
233
233
|
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
|
|
234
234
|
});
|
|
235
235
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
236
|
-
const config_0 =
|
|
237
|
-
const config_1 =
|
|
236
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
237
|
+
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
238
238
|
return Object.assign(config_1, {
|
|
239
|
-
authSchemePreference:
|
|
239
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
242
|
|
|
@@ -256,11 +256,11 @@ const commonParams = {
|
|
|
256
256
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
-
var version = "3.997.
|
|
259
|
+
var version = "3.997.20";
|
|
260
260
|
var packageInfo = {
|
|
261
261
|
version: version};
|
|
262
262
|
|
|
263
|
-
class STSServiceException extends
|
|
263
|
+
class STSServiceException extends ServiceException {
|
|
264
264
|
constructor(options) {
|
|
265
265
|
super(options);
|
|
266
266
|
Object.setPrototypeOf(this, STSServiceException.prototype);
|
|
@@ -412,10 +412,10 @@ const _pDLT = "policyDescriptorListType";
|
|
|
412
412
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
413
413
|
const _tLT = "tagListType";
|
|
414
414
|
const n0 = "com.amazonaws.sts";
|
|
415
|
-
const _s_registry =
|
|
415
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
416
416
|
var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
417
417
|
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
418
|
-
const n0_registry =
|
|
418
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
419
419
|
var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
420
420
|
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
421
421
|
[_m],
|
|
@@ -528,8 +528,8 @@ var AssumeRoleWithWebIdentity$ = [9, n0, _ARWWI,
|
|
|
528
528
|
const getRuntimeConfig$1 = (config) => {
|
|
529
529
|
return {
|
|
530
530
|
apiVersion: "2011-06-15",
|
|
531
|
-
base64Decoder: config?.base64Decoder ??
|
|
532
|
-
base64Encoder: config?.base64Encoder ??
|
|
531
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
532
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
533
533
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
534
534
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
535
535
|
extensions: config?.extensions ?? [],
|
|
@@ -538,21 +538,21 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
538
538
|
{
|
|
539
539
|
schemeId: "aws.auth#sigv4",
|
|
540
540
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
541
|
-
signer: new
|
|
541
|
+
signer: new AwsSdkSigV4Signer(),
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
544
|
schemeId: "aws.auth#sigv4a",
|
|
545
545
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
546
|
-
signer: new
|
|
546
|
+
signer: new AwsSdkSigV4ASigner(),
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
549
|
schemeId: "smithy.api#noAuth",
|
|
550
550
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
551
|
-
signer: new
|
|
551
|
+
signer: new NoAuthSigner(),
|
|
552
552
|
},
|
|
553
553
|
],
|
|
554
|
-
logger: config?.logger ?? new
|
|
555
|
-
protocol: config?.protocol ??
|
|
554
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
555
|
+
protocol: config?.protocol ?? AwsQueryProtocol,
|
|
556
556
|
protocolSettings: config?.protocolSettings ?? {
|
|
557
557
|
defaultNamespace: "com.amazonaws.sts",
|
|
558
558
|
errorTypeRegistries,
|
|
@@ -561,62 +561,62 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
561
561
|
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
562
562
|
},
|
|
563
563
|
serviceId: config?.serviceId ?? "STS",
|
|
564
|
-
signerConstructor: config?.signerConstructor ??
|
|
565
|
-
urlParser: config?.urlParser ??
|
|
566
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
567
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
564
|
+
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
565
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
566
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
567
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
568
568
|
};
|
|
569
569
|
};
|
|
570
570
|
|
|
571
|
-
const getRuntimeConfig = (config
|
|
572
|
-
|
|
573
|
-
const defaultsMode =
|
|
574
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
575
|
-
const clientSharedValues = getRuntimeConfig$1(config
|
|
576
|
-
|
|
571
|
+
const getRuntimeConfig = (config) => {
|
|
572
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
573
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
574
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
575
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
576
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
577
577
|
const loaderConfig = {
|
|
578
|
-
profile: config
|
|
578
|
+
profile: config?.profile,
|
|
579
579
|
logger: clientSharedValues.logger,
|
|
580
580
|
};
|
|
581
581
|
return {
|
|
582
582
|
...clientSharedValues,
|
|
583
|
-
...config
|
|
583
|
+
...config,
|
|
584
584
|
runtime: "node",
|
|
585
585
|
defaultsMode,
|
|
586
|
-
authSchemePreference: config
|
|
587
|
-
bodyLengthChecker: config
|
|
588
|
-
defaultUserAgentProvider: config
|
|
589
|
-
httpAuthSchemes: config
|
|
586
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
587
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
588
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
589
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
590
590
|
{
|
|
591
591
|
schemeId: "aws.auth#sigv4",
|
|
592
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config
|
|
593
|
-
signer: new
|
|
592
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
|
593
|
+
signer: new AwsSdkSigV4Signer(),
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
schemeId: "aws.auth#sigv4a",
|
|
597
597
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
598
|
-
signer: new
|
|
598
|
+
signer: new AwsSdkSigV4ASigner(),
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
601
|
schemeId: "smithy.api#noAuth",
|
|
602
602
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
603
|
-
signer: new
|
|
603
|
+
signer: new NoAuthSigner(),
|
|
604
604
|
},
|
|
605
605
|
],
|
|
606
|
-
maxAttempts: config
|
|
607
|
-
region: config
|
|
608
|
-
requestHandler:
|
|
609
|
-
retryMode: config
|
|
610
|
-
|
|
611
|
-
...
|
|
612
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
613
|
-
}, config
|
|
614
|
-
sha256: config
|
|
615
|
-
sigv4aSigningRegionSet: config
|
|
616
|
-
streamCollector: config
|
|
617
|
-
useDualstackEndpoint: config
|
|
618
|
-
useFipsEndpoint: config
|
|
619
|
-
userAgentAppId: config
|
|
606
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
607
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
608
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
609
|
+
retryMode: config?.retryMode ??
|
|
610
|
+
loadConfig({
|
|
611
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
612
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
613
|
+
}, config),
|
|
614
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
615
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
616
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
617
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
618
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
619
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
620
620
|
};
|
|
621
621
|
};
|
|
622
622
|
|
|
@@ -660,52 +660,52 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
660
660
|
};
|
|
661
661
|
|
|
662
662
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
663
|
-
const extensionConfiguration = Object.assign(
|
|
663
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
664
664
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
665
|
-
return Object.assign(runtimeConfig,
|
|
665
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
666
666
|
};
|
|
667
667
|
|
|
668
|
-
class STSClient extends
|
|
668
|
+
class STSClient extends Client {
|
|
669
669
|
config;
|
|
670
670
|
constructor(...[configuration]) {
|
|
671
671
|
const _config_0 = getRuntimeConfig(configuration || {});
|
|
672
672
|
super(_config_0);
|
|
673
673
|
this.initConfig = _config_0;
|
|
674
674
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
675
|
-
const _config_2 =
|
|
676
|
-
const _config_3 =
|
|
677
|
-
const _config_4 =
|
|
678
|
-
const _config_5 =
|
|
679
|
-
const _config_6 =
|
|
675
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
676
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
677
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
678
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
679
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
680
680
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
681
681
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
682
682
|
this.config = _config_8;
|
|
683
|
-
this.middlewareStack.use(
|
|
684
|
-
this.middlewareStack.use(
|
|
685
|
-
this.middlewareStack.use(
|
|
686
|
-
this.middlewareStack.use(
|
|
687
|
-
this.middlewareStack.use(
|
|
688
|
-
this.middlewareStack.use(
|
|
689
|
-
this.middlewareStack.use(
|
|
690
|
-
this.middlewareStack.use(
|
|
683
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
684
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
685
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
686
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
687
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
688
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
689
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
690
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
691
691
|
httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
|
|
692
|
-
identityProviderConfigProvider: async (config) => new
|
|
692
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
693
693
|
"aws.auth#sigv4": config.credentials,
|
|
694
694
|
"aws.auth#sigv4a": config.credentials,
|
|
695
695
|
}),
|
|
696
696
|
}));
|
|
697
|
-
this.middlewareStack.use(
|
|
697
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
698
698
|
}
|
|
699
699
|
destroy() {
|
|
700
700
|
super.destroy();
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
class AssumeRoleCommand extends
|
|
704
|
+
class AssumeRoleCommand extends Command
|
|
705
705
|
.classBuilder()
|
|
706
706
|
.ep(commonParams)
|
|
707
707
|
.m(function (Command, cs, config, o) {
|
|
708
|
-
return [
|
|
708
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
709
709
|
})
|
|
710
710
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
|
711
711
|
.n("STSClient", "AssumeRoleCommand")
|
|
@@ -713,11 +713,11 @@ class AssumeRoleCommand extends client.Command
|
|
|
713
713
|
.build() {
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
class AssumeRoleWithWebIdentityCommand extends
|
|
716
|
+
class AssumeRoleWithWebIdentityCommand extends Command
|
|
717
717
|
.classBuilder()
|
|
718
718
|
.ep(commonParams)
|
|
719
719
|
.m(function (Command, cs, config, o) {
|
|
720
|
-
return [
|
|
720
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
721
721
|
})
|
|
722
722
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
|
723
723
|
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
|
@@ -731,7 +731,7 @@ const commands = {
|
|
|
731
731
|
};
|
|
732
732
|
class STS extends STSClient {
|
|
733
733
|
}
|
|
734
|
-
|
|
734
|
+
createAggregatedClient(commands, STS);
|
|
735
735
|
|
|
736
736
|
const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
|
737
737
|
if (typeof assumedRoleUser?.Arn === "string") {
|
|
@@ -746,7 +746,7 @@ const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, l
|
|
|
746
746
|
const region = typeof _region === "function" ? await _region() : _region;
|
|
747
747
|
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
748
748
|
let stsDefaultRegion = "";
|
|
749
|
-
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await
|
|
749
|
+
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)());
|
|
750
750
|
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
|
751
751
|
return resolvedRegion;
|
|
752
752
|
};
|
|
@@ -785,7 +785,7 @@ const getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {
|
|
|
785
785
|
...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
|
|
786
786
|
...(accountId && { accountId }),
|
|
787
787
|
};
|
|
788
|
-
|
|
788
|
+
setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
|
|
789
789
|
return credentials;
|
|
790
790
|
};
|
|
791
791
|
};
|
|
@@ -822,9 +822,9 @@ const getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {
|
|
|
822
822
|
...(accountId && { accountId }),
|
|
823
823
|
};
|
|
824
824
|
if (accountId) {
|
|
825
|
-
|
|
825
|
+
setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
|
|
826
826
|
}
|
|
827
|
-
|
|
827
|
+
setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
|
|
828
828
|
return credentials;
|
|
829
829
|
};
|
|
830
830
|
};
|
|
@@ -853,8 +853,6 @@ const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
|
|
853
853
|
...input,
|
|
854
854
|
});
|
|
855
855
|
|
|
856
|
-
exports.$Command = client.Command;
|
|
857
|
-
exports.__Client = client.Client;
|
|
858
856
|
exports.AssumeRole$ = AssumeRole$;
|
|
859
857
|
exports.AssumeRoleCommand = AssumeRoleCommand;
|
|
860
858
|
exports.AssumeRoleRequest$ = AssumeRoleRequest$;
|
|
@@ -5,7 +5,10 @@ import { CreateOAuth2Token$ } from "../schemas/schemas_0";
|
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class CreateOAuth2TokenCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
|
-
.ep(
|
|
8
|
+
.ep({
|
|
9
|
+
...commonParams,
|
|
10
|
+
IsControlPlane: { type: "staticContextParams", value: false },
|
|
11
|
+
})
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
13
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
14
|
})
|
|
@@ -1,34 +1,52 @@
|
|
|
1
1
|
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
-
const
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "
|
|
2
|
+
const p = "ref";
|
|
3
|
+
const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
|
|
4
4
|
const _data = {
|
|
5
5
|
conditions: [
|
|
6
|
-
[c,
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[g, [
|
|
15
|
-
[
|
|
6
|
+
[c, o],
|
|
7
|
+
[d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
|
|
8
|
+
[c, [i]],
|
|
9
|
+
["aws.partition", o, e],
|
|
10
|
+
[d, [{ [p]: "UseFIPS" }, b]],
|
|
11
|
+
[d, [{ [p]: "UseDualStack" }, b]],
|
|
12
|
+
[f, [j, "aws"]],
|
|
13
|
+
[f, [j, "aws-cn"]],
|
|
14
|
+
[d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
|
|
15
|
+
[f, [l, "us-gov-west-1"]],
|
|
16
|
+
[f, [j, "aws-us-gov"]],
|
|
17
|
+
[d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
|
|
18
|
+
[f, [j, "aws-iso"]],
|
|
19
|
+
[f, [j, "aws-iso-b"]],
|
|
20
|
+
[f, [j, "aws-iso-f"]],
|
|
21
|
+
[f, [j, "aws-iso-e"]],
|
|
22
|
+
[f, [j, "aws-eusc"]]
|
|
16
23
|
],
|
|
17
24
|
results: [
|
|
18
25
|
[a],
|
|
26
|
+
["https://signin.{Region}.api.aws", m],
|
|
27
|
+
["https://signin.{Region}.api.amazonwebservices.com.cn", m],
|
|
28
|
+
[h, m],
|
|
29
|
+
["https://{Region}.signin.aws.amazon.com", n],
|
|
30
|
+
["https://{Region}.signin.amazonaws.cn", n],
|
|
31
|
+
["https://{Region}.signin.amazonaws-us-gov.com", n],
|
|
32
|
+
["https://{Region}.signin.c2shome.ic.gov", n],
|
|
33
|
+
["https://{Region}.signin.sc2shome.sgov.gov", n],
|
|
34
|
+
["https://{Region}.signin.csphome.hci.ic.gov", n],
|
|
35
|
+
["https://{Region}.signin.csphome.adc-e.uk", n],
|
|
36
|
+
["https://{Region}.signin.amazonaws-eusc.eu", n],
|
|
37
|
+
["https://signin-fips.amazonaws-us-gov.com", n],
|
|
38
|
+
["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
|
|
39
|
+
["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
|
|
19
40
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
20
41
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
21
|
-
[
|
|
22
|
-
["https://{Region}.
|
|
23
|
-
["https://{Region}.signin.amazonaws.cn", k],
|
|
24
|
-
["https://{Region}.signin.amazonaws-us-gov.com", k],
|
|
25
|
-
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
42
|
+
[i, n],
|
|
43
|
+
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
|
|
26
44
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
27
|
-
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
45
|
+
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
28
46
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
29
|
-
[
|
|
47
|
+
[h, n],
|
|
30
48
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
31
|
-
["https://signin.{Region}.{PartitionResult#dnsSuffix}",
|
|
49
|
+
["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
32
50
|
[a, "Invalid Configuration: Missing Region"]
|
|
33
51
|
]
|
|
34
52
|
};
|
|
@@ -36,20 +54,37 @@ const root = 2;
|
|
|
36
54
|
const r = 100_000_000;
|
|
37
55
|
const nodes = new Int32Array([
|
|
38
56
|
-1, 1, -1,
|
|
39
|
-
0,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
0, 4, 3,
|
|
58
|
+
2, 30, r + 25,
|
|
59
|
+
1, 24, 5,
|
|
60
|
+
2, 30, 6,
|
|
61
|
+
3, 7, 26,
|
|
62
|
+
4, 18, 8,
|
|
63
|
+
5, 17, 9,
|
|
64
|
+
6, r + 4, 10,
|
|
65
|
+
7, r + 5, 11,
|
|
66
|
+
10, r + 6, 12,
|
|
67
|
+
12, r + 7, 13,
|
|
68
|
+
13, r + 8, 14,
|
|
69
|
+
14, r + 9, 15,
|
|
70
|
+
15, r + 10, 16,
|
|
71
|
+
16, r + 11, r + 14,
|
|
72
|
+
8, r + 22, r + 23,
|
|
73
|
+
5, 22, 19,
|
|
74
|
+
9, r + 12, 20,
|
|
75
|
+
10, r + 13, 21,
|
|
76
|
+
11, r + 20, r + 21,
|
|
77
|
+
8, 23, r + 19,
|
|
78
|
+
11, r + 18, r + 19,
|
|
79
|
+
2, 29, 25,
|
|
80
|
+
3, 32, 26,
|
|
81
|
+
4, 27, r + 25,
|
|
82
|
+
5, r + 25, 28,
|
|
83
|
+
9, r + 12, r + 25,
|
|
84
|
+
3, 32, 30,
|
|
85
|
+
4, r + 15, 31,
|
|
86
|
+
5, r + 16, r + 17,
|
|
87
|
+
6, r + 1, 33,
|
|
88
|
+
7, r + 2, r + 3,
|
|
54
89
|
]);
|
|
55
90
|
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js
CHANGED
|
@@ -3,7 +3,7 @@ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/
|
|
|
3
3
|
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
6
|
+
params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
|
|
7
7
|
});
|
|
8
8
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
9
|
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export const OAuth2ErrorCode = {
|
|
2
2
|
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
3
|
+
CONFLICT: "CONFLICT",
|
|
3
4
|
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
4
5
|
INVALID_REQUEST: "INVALID_REQUEST",
|
|
6
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
5
7
|
SERVER_ERROR: "server_error",
|
|
8
|
+
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
|
6
9
|
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
7
10
|
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
|
|
8
11
|
};
|
|
@@ -7,6 +7,10 @@ export declare const OAuth2ErrorCode: {
|
|
|
7
7
|
* Authorization code has expired
|
|
8
8
|
*/
|
|
9
9
|
readonly AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED";
|
|
10
|
+
/**
|
|
11
|
+
* Request conflicts with current state of the resource
|
|
12
|
+
*/
|
|
13
|
+
readonly CONFLICT: "CONFLICT";
|
|
10
14
|
/**
|
|
11
15
|
* Insufficient permissions to perform this operation
|
|
12
16
|
*/
|
|
@@ -15,10 +19,18 @@ export declare const OAuth2ErrorCode: {
|
|
|
15
19
|
* The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed
|
|
16
20
|
*/
|
|
17
21
|
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
22
|
+
/**
|
|
23
|
+
* Requested resource was not found
|
|
24
|
+
*/
|
|
25
|
+
readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
18
26
|
/**
|
|
19
27
|
* Internal server error occurred
|
|
20
28
|
*/
|
|
21
29
|
readonly SERVER_ERROR: "server_error";
|
|
30
|
+
/**
|
|
31
|
+
* Request would cause a service quota to be exceeded
|
|
32
|
+
*/
|
|
33
|
+
readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
|
|
22
34
|
/**
|
|
23
35
|
* Token has expired and needs to be refreshed
|
|
24
36
|
*/
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare const OAuth2ErrorCode: {
|
|
2
2
|
readonly AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED";
|
|
3
|
+
readonly CONFLICT: "CONFLICT";
|
|
3
4
|
readonly INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS";
|
|
4
5
|
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
6
|
+
readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
5
7
|
readonly SERVER_ERROR: "server_error";
|
|
8
|
+
readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
|
|
6
9
|
readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
7
10
|
readonly USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED";
|
|
8
11
|
};
|