@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,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = 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, 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, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
13
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
14
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
15
15
|
|
|
16
16
|
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
17
17
|
return {
|
|
18
|
-
operation:
|
|
19
|
-
region: await
|
|
18
|
+
operation: getSmithyContext(context).operation,
|
|
19
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
20
20
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
21
21
|
})(),
|
|
22
22
|
};
|
|
@@ -55,9 +55,9 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
55
55
|
return options;
|
|
56
56
|
};
|
|
57
57
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
58
|
-
const config_0 =
|
|
58
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
59
59
|
return Object.assign(config_0, {
|
|
60
|
-
authSchemePreference:
|
|
60
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
|
|
@@ -75,40 +75,58 @@ const commonParams = {
|
|
|
75
75
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
var version = "3.997.
|
|
78
|
+
var version = "3.997.20";
|
|
79
79
|
var packageInfo = {
|
|
80
80
|
version: version};
|
|
81
81
|
|
|
82
|
-
const
|
|
83
|
-
const a = -1, b = true, c = "isSet", d = "
|
|
82
|
+
const p = "ref";
|
|
83
|
+
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];
|
|
84
84
|
const _data = {
|
|
85
85
|
conditions: [
|
|
86
|
-
[c,
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
[
|
|
92
|
-
[
|
|
93
|
-
[
|
|
94
|
-
[g, [
|
|
95
|
-
[
|
|
86
|
+
[c, o],
|
|
87
|
+
[d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
|
|
88
|
+
[c, [i]],
|
|
89
|
+
["aws.partition", o, e],
|
|
90
|
+
[d, [{ [p]: "UseFIPS" }, b]],
|
|
91
|
+
[d, [{ [p]: "UseDualStack" }, b]],
|
|
92
|
+
[f, [j, "aws"]],
|
|
93
|
+
[f, [j, "aws-cn"]],
|
|
94
|
+
[d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
|
|
95
|
+
[f, [l, "us-gov-west-1"]],
|
|
96
|
+
[f, [j, "aws-us-gov"]],
|
|
97
|
+
[d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
|
|
98
|
+
[f, [j, "aws-iso"]],
|
|
99
|
+
[f, [j, "aws-iso-b"]],
|
|
100
|
+
[f, [j, "aws-iso-f"]],
|
|
101
|
+
[f, [j, "aws-iso-e"]],
|
|
102
|
+
[f, [j, "aws-eusc"]]
|
|
96
103
|
],
|
|
97
104
|
results: [
|
|
98
105
|
[a],
|
|
106
|
+
["https://signin.{Region}.api.aws", m],
|
|
107
|
+
["https://signin.{Region}.api.amazonwebservices.com.cn", m],
|
|
108
|
+
[h, m],
|
|
109
|
+
["https://{Region}.signin.aws.amazon.com", n],
|
|
110
|
+
["https://{Region}.signin.amazonaws.cn", n],
|
|
111
|
+
["https://{Region}.signin.amazonaws-us-gov.com", n],
|
|
112
|
+
["https://{Region}.signin.c2shome.ic.gov", n],
|
|
113
|
+
["https://{Region}.signin.sc2shome.sgov.gov", n],
|
|
114
|
+
["https://{Region}.signin.csphome.hci.ic.gov", n],
|
|
115
|
+
["https://{Region}.signin.csphome.adc-e.uk", n],
|
|
116
|
+
["https://{Region}.signin.amazonaws-eusc.eu", n],
|
|
117
|
+
["https://signin-fips.amazonaws-us-gov.com", n],
|
|
118
|
+
["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
|
|
119
|
+
["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
|
|
99
120
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
100
121
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
101
|
-
[
|
|
102
|
-
["https://{Region}.
|
|
103
|
-
["https://{Region}.signin.amazonaws.cn", k],
|
|
104
|
-
["https://{Region}.signin.amazonaws-us-gov.com", k],
|
|
105
|
-
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
122
|
+
[i, n],
|
|
123
|
+
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
|
|
106
124
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
107
|
-
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
125
|
+
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
108
126
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
109
|
-
[
|
|
127
|
+
[h, n],
|
|
110
128
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
111
|
-
["https://signin.{Region}.{PartitionResult#dnsSuffix}",
|
|
129
|
+
["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
112
130
|
[a, "Invalid Configuration: Missing Region"]
|
|
113
131
|
]
|
|
114
132
|
};
|
|
@@ -116,37 +134,54 @@ const root = 2;
|
|
|
116
134
|
const r = 100_000_000;
|
|
117
135
|
const nodes = new Int32Array([
|
|
118
136
|
-1, 1, -1,
|
|
119
|
-
0,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
137
|
+
0, 4, 3,
|
|
138
|
+
2, 30, r + 25,
|
|
139
|
+
1, 24, 5,
|
|
140
|
+
2, 30, 6,
|
|
141
|
+
3, 7, 26,
|
|
142
|
+
4, 18, 8,
|
|
143
|
+
5, 17, 9,
|
|
144
|
+
6, r + 4, 10,
|
|
145
|
+
7, r + 5, 11,
|
|
146
|
+
10, r + 6, 12,
|
|
147
|
+
12, r + 7, 13,
|
|
148
|
+
13, r + 8, 14,
|
|
149
|
+
14, r + 9, 15,
|
|
150
|
+
15, r + 10, 16,
|
|
151
|
+
16, r + 11, r + 14,
|
|
152
|
+
8, r + 22, r + 23,
|
|
153
|
+
5, 22, 19,
|
|
154
|
+
9, r + 12, 20,
|
|
155
|
+
10, r + 13, 21,
|
|
156
|
+
11, r + 20, r + 21,
|
|
157
|
+
8, 23, r + 19,
|
|
158
|
+
11, r + 18, r + 19,
|
|
159
|
+
2, 29, 25,
|
|
160
|
+
3, 32, 26,
|
|
161
|
+
4, 27, r + 25,
|
|
162
|
+
5, r + 25, 28,
|
|
163
|
+
9, r + 12, r + 25,
|
|
164
|
+
3, 32, 30,
|
|
165
|
+
4, r + 15, 31,
|
|
166
|
+
5, r + 16, r + 17,
|
|
167
|
+
6, r + 1, 33,
|
|
168
|
+
7, r + 2, r + 3,
|
|
134
169
|
]);
|
|
135
|
-
const bdd =
|
|
170
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
136
171
|
|
|
137
|
-
const cache = new
|
|
172
|
+
const cache = new EndpointCache({
|
|
138
173
|
size: 50,
|
|
139
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
174
|
+
params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
|
|
140
175
|
});
|
|
141
176
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
142
|
-
return cache.get(endpointParams, () =>
|
|
177
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
143
178
|
endpointParams: endpointParams,
|
|
144
179
|
logger: context.logger,
|
|
145
180
|
}));
|
|
146
181
|
};
|
|
147
|
-
|
|
182
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
148
183
|
|
|
149
|
-
class SigninServiceException extends
|
|
184
|
+
class SigninServiceException extends ServiceException {
|
|
150
185
|
constructor(options) {
|
|
151
186
|
super(options);
|
|
152
187
|
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
@@ -245,10 +280,10 @@ const _tI = "tokenInput";
|
|
|
245
280
|
const _tO = "tokenOutput";
|
|
246
281
|
const _tT = "tokenType";
|
|
247
282
|
const n0 = "com.amazonaws.signin";
|
|
248
|
-
const _s_registry =
|
|
283
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
249
284
|
var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
250
285
|
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
251
|
-
const n0_registry =
|
|
286
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
252
287
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
253
288
|
{ [_e]: _c },
|
|
254
289
|
[_e, _m],
|
|
@@ -310,8 +345,8 @@ var CreateOAuth2Token$ = [9, n0, _COAT,
|
|
|
310
345
|
const getRuntimeConfig$1 = (config) => {
|
|
311
346
|
return {
|
|
312
347
|
apiVersion: "2023-01-01",
|
|
313
|
-
base64Decoder: config?.base64Decoder ??
|
|
314
|
-
base64Encoder: config?.base64Encoder ??
|
|
348
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
349
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
315
350
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
316
351
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
317
352
|
extensions: config?.extensions ?? [],
|
|
@@ -320,16 +355,16 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
320
355
|
{
|
|
321
356
|
schemeId: "aws.auth#sigv4",
|
|
322
357
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
323
|
-
signer: new
|
|
358
|
+
signer: new AwsSdkSigV4Signer(),
|
|
324
359
|
},
|
|
325
360
|
{
|
|
326
361
|
schemeId: "smithy.api#noAuth",
|
|
327
362
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
328
|
-
signer: new
|
|
363
|
+
signer: new NoAuthSigner(),
|
|
329
364
|
},
|
|
330
365
|
],
|
|
331
|
-
logger: config?.logger ?? new
|
|
332
|
-
protocol: config?.protocol ??
|
|
366
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
367
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
333
368
|
protocolSettings: config?.protocolSettings ?? {
|
|
334
369
|
defaultNamespace: "com.amazonaws.signin",
|
|
335
370
|
errorTypeRegistries,
|
|
@@ -337,43 +372,43 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
337
372
|
serviceTarget: "Signin",
|
|
338
373
|
},
|
|
339
374
|
serviceId: config?.serviceId ?? "Signin",
|
|
340
|
-
urlParser: config?.urlParser ??
|
|
341
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
342
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
375
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
376
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
377
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
343
378
|
};
|
|
344
379
|
};
|
|
345
380
|
|
|
346
|
-
const getRuntimeConfig = (config
|
|
347
|
-
|
|
348
|
-
const defaultsMode =
|
|
349
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
350
|
-
const clientSharedValues = getRuntimeConfig$1(config
|
|
351
|
-
|
|
381
|
+
const getRuntimeConfig = (config) => {
|
|
382
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
383
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
384
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
385
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
386
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
352
387
|
const loaderConfig = {
|
|
353
|
-
profile: config
|
|
388
|
+
profile: config?.profile,
|
|
354
389
|
logger: clientSharedValues.logger,
|
|
355
390
|
};
|
|
356
391
|
return {
|
|
357
392
|
...clientSharedValues,
|
|
358
|
-
...config
|
|
393
|
+
...config,
|
|
359
394
|
runtime: "node",
|
|
360
395
|
defaultsMode,
|
|
361
|
-
authSchemePreference: config
|
|
362
|
-
bodyLengthChecker: config
|
|
363
|
-
defaultUserAgentProvider: config
|
|
364
|
-
maxAttempts: config
|
|
365
|
-
region: config
|
|
366
|
-
requestHandler:
|
|
367
|
-
retryMode: config
|
|
368
|
-
|
|
369
|
-
...
|
|
370
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
371
|
-
}, config
|
|
372
|
-
sha256: config
|
|
373
|
-
streamCollector: config
|
|
374
|
-
useDualstackEndpoint: config
|
|
375
|
-
useFipsEndpoint: config
|
|
376
|
-
userAgentAppId: config
|
|
396
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
397
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
398
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
399
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
400
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
401
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
402
|
+
retryMode: config?.retryMode ??
|
|
403
|
+
loadConfig({
|
|
404
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
405
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
406
|
+
}, config),
|
|
407
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
408
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
409
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
410
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
411
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
377
412
|
};
|
|
378
413
|
};
|
|
379
414
|
|
|
@@ -417,51 +452,54 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
417
452
|
};
|
|
418
453
|
|
|
419
454
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
420
|
-
const extensionConfiguration = Object.assign(
|
|
455
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
421
456
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
422
|
-
return Object.assign(runtimeConfig,
|
|
457
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
423
458
|
};
|
|
424
459
|
|
|
425
|
-
class SigninClient extends
|
|
460
|
+
class SigninClient extends Client {
|
|
426
461
|
config;
|
|
427
462
|
constructor(...[configuration]) {
|
|
428
463
|
const _config_0 = getRuntimeConfig(configuration || {});
|
|
429
464
|
super(_config_0);
|
|
430
465
|
this.initConfig = _config_0;
|
|
431
466
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
432
|
-
const _config_2 =
|
|
433
|
-
const _config_3 =
|
|
434
|
-
const _config_4 =
|
|
435
|
-
const _config_5 =
|
|
436
|
-
const _config_6 =
|
|
467
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
468
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
469
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
470
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
471
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
437
472
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
438
473
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
439
474
|
this.config = _config_8;
|
|
440
|
-
this.middlewareStack.use(
|
|
441
|
-
this.middlewareStack.use(
|
|
442
|
-
this.middlewareStack.use(
|
|
443
|
-
this.middlewareStack.use(
|
|
444
|
-
this.middlewareStack.use(
|
|
445
|
-
this.middlewareStack.use(
|
|
446
|
-
this.middlewareStack.use(
|
|
447
|
-
this.middlewareStack.use(
|
|
475
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
476
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
477
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
478
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
479
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
480
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
481
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
482
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
448
483
|
httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
|
|
449
|
-
identityProviderConfigProvider: async (config) => new
|
|
484
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
450
485
|
"aws.auth#sigv4": config.credentials,
|
|
451
486
|
}),
|
|
452
487
|
}));
|
|
453
|
-
this.middlewareStack.use(
|
|
488
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
454
489
|
}
|
|
455
490
|
destroy() {
|
|
456
491
|
super.destroy();
|
|
457
492
|
}
|
|
458
493
|
}
|
|
459
494
|
|
|
460
|
-
class CreateOAuth2TokenCommand extends
|
|
495
|
+
class CreateOAuth2TokenCommand extends Command
|
|
461
496
|
.classBuilder()
|
|
462
|
-
.ep(
|
|
497
|
+
.ep({
|
|
498
|
+
...commonParams,
|
|
499
|
+
IsControlPlane: { type: "staticContextParams", value: false },
|
|
500
|
+
})
|
|
463
501
|
.m(function (Command, cs, config, o) {
|
|
464
|
-
return [
|
|
502
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
465
503
|
})
|
|
466
504
|
.s("Signin", "CreateOAuth2Token", {})
|
|
467
505
|
.n("SigninClient", "CreateOAuth2TokenCommand")
|
|
@@ -474,19 +512,20 @@ const commands = {
|
|
|
474
512
|
};
|
|
475
513
|
class Signin extends SigninClient {
|
|
476
514
|
}
|
|
477
|
-
|
|
515
|
+
createAggregatedClient(commands, Signin);
|
|
478
516
|
|
|
479
517
|
const OAuth2ErrorCode = {
|
|
480
518
|
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
519
|
+
CONFLICT: "CONFLICT",
|
|
481
520
|
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
482
521
|
INVALID_REQUEST: "INVALID_REQUEST",
|
|
522
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
483
523
|
SERVER_ERROR: "server_error",
|
|
524
|
+
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
|
484
525
|
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
485
526
|
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
|
|
486
527
|
};
|
|
487
528
|
|
|
488
|
-
exports.$Command = client.Command;
|
|
489
|
-
exports.__Client = client.Client;
|
|
490
529
|
exports.AccessDeniedException = AccessDeniedException;
|
|
491
530
|
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
492
531
|
exports.AccessToken$ = AccessToken$;
|