@cdk8s/awscdk-resolver 0.0.600 → 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 +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 +3 -3
- 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 defaultSSOHttpAuthSchemeParametersProvider = 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 defaultSSOHttpAuthSchemeProvider = (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,7 +75,7 @@ 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
|
|
|
@@ -126,21 +126,21 @@ const nodes = new Int32Array([
|
|
|
126
126
|
3, r + 1, 14,
|
|
127
127
|
4, r + 2, r + 3,
|
|
128
128
|
]);
|
|
129
|
-
const bdd =
|
|
129
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
130
130
|
|
|
131
|
-
const cache = new
|
|
131
|
+
const cache = new EndpointCache({
|
|
132
132
|
size: 50,
|
|
133
133
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
134
134
|
});
|
|
135
135
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
136
|
-
return cache.get(endpointParams, () =>
|
|
136
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
137
137
|
endpointParams: endpointParams,
|
|
138
138
|
logger: context.logger,
|
|
139
139
|
}));
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
142
142
|
|
|
143
|
-
class SSOServiceException extends
|
|
143
|
+
class SSOServiceException extends ServiceException {
|
|
144
144
|
constructor(options) {
|
|
145
145
|
super(options);
|
|
146
146
|
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
@@ -227,10 +227,10 @@ const _sAK = "secretAccessKey";
|
|
|
227
227
|
const _sT = "sessionToken";
|
|
228
228
|
const _xasbt = "x-amz-sso_bearer_token";
|
|
229
229
|
const n0 = "com.amazonaws.sso";
|
|
230
|
-
const _s_registry =
|
|
230
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
231
231
|
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
232
232
|
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
233
|
-
const n0_registry =
|
|
233
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
234
234
|
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
235
235
|
{ [_e]: _c, [_hE]: 400 },
|
|
236
236
|
[_m],
|
|
@@ -284,8 +284,8 @@ var GetRoleCredentials$ = [9, n0, _GRC,
|
|
|
284
284
|
const getRuntimeConfig$1 = (config) => {
|
|
285
285
|
return {
|
|
286
286
|
apiVersion: "2019-06-10",
|
|
287
|
-
base64Decoder: config?.base64Decoder ??
|
|
288
|
-
base64Encoder: config?.base64Encoder ??
|
|
287
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
288
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
289
289
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
290
290
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
291
291
|
extensions: config?.extensions ?? [],
|
|
@@ -294,16 +294,16 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
294
294
|
{
|
|
295
295
|
schemeId: "aws.auth#sigv4",
|
|
296
296
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
297
|
-
signer: new
|
|
297
|
+
signer: new AwsSdkSigV4Signer(),
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
schemeId: "smithy.api#noAuth",
|
|
301
301
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
302
|
-
signer: new
|
|
302
|
+
signer: new NoAuthSigner(),
|
|
303
303
|
},
|
|
304
304
|
],
|
|
305
|
-
logger: config?.logger ?? new
|
|
306
|
-
protocol: config?.protocol ??
|
|
305
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
306
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
307
307
|
protocolSettings: config?.protocolSettings ?? {
|
|
308
308
|
defaultNamespace: "com.amazonaws.sso",
|
|
309
309
|
errorTypeRegistries,
|
|
@@ -311,43 +311,43 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
311
311
|
serviceTarget: "SWBPortalService",
|
|
312
312
|
},
|
|
313
313
|
serviceId: config?.serviceId ?? "SSO",
|
|
314
|
-
urlParser: config?.urlParser ??
|
|
315
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
316
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
314
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
315
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
316
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
|
|
320
|
-
const getRuntimeConfig = (config
|
|
321
|
-
|
|
322
|
-
const defaultsMode =
|
|
323
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
324
|
-
const clientSharedValues = getRuntimeConfig$1(config
|
|
325
|
-
|
|
320
|
+
const getRuntimeConfig = (config) => {
|
|
321
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
322
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
323
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
324
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
325
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
326
326
|
const loaderConfig = {
|
|
327
|
-
profile: config
|
|
327
|
+
profile: config?.profile,
|
|
328
328
|
logger: clientSharedValues.logger,
|
|
329
329
|
};
|
|
330
330
|
return {
|
|
331
331
|
...clientSharedValues,
|
|
332
|
-
...config
|
|
332
|
+
...config,
|
|
333
333
|
runtime: "node",
|
|
334
334
|
defaultsMode,
|
|
335
|
-
authSchemePreference: config
|
|
336
|
-
bodyLengthChecker: config
|
|
337
|
-
defaultUserAgentProvider: config
|
|
338
|
-
maxAttempts: config
|
|
339
|
-
region: config
|
|
340
|
-
requestHandler:
|
|
341
|
-
retryMode: config
|
|
342
|
-
|
|
343
|
-
...
|
|
344
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
345
|
-
}, config
|
|
346
|
-
sha256: config
|
|
347
|
-
streamCollector: config
|
|
348
|
-
useDualstackEndpoint: config
|
|
349
|
-
useFipsEndpoint: config
|
|
350
|
-
userAgentAppId: config
|
|
335
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
336
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
337
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
338
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
339
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
340
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
341
|
+
retryMode: config?.retryMode ??
|
|
342
|
+
loadConfig({
|
|
343
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
344
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
345
|
+
}, config),
|
|
346
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
347
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
348
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
349
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
350
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
353
|
|
|
@@ -391,51 +391,51 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
391
391
|
};
|
|
392
392
|
|
|
393
393
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
394
|
-
const extensionConfiguration = Object.assign(
|
|
394
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
395
395
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
396
|
-
return Object.assign(runtimeConfig,
|
|
396
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
-
class SSOClient extends
|
|
399
|
+
class SSOClient extends Client {
|
|
400
400
|
config;
|
|
401
401
|
constructor(...[configuration]) {
|
|
402
402
|
const _config_0 = getRuntimeConfig(configuration || {});
|
|
403
403
|
super(_config_0);
|
|
404
404
|
this.initConfig = _config_0;
|
|
405
405
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
406
|
-
const _config_2 =
|
|
407
|
-
const _config_3 =
|
|
408
|
-
const _config_4 =
|
|
409
|
-
const _config_5 =
|
|
410
|
-
const _config_6 =
|
|
406
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
407
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
408
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
409
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
410
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
411
411
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
412
412
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
413
413
|
this.config = _config_8;
|
|
414
|
-
this.middlewareStack.use(
|
|
415
|
-
this.middlewareStack.use(
|
|
416
|
-
this.middlewareStack.use(
|
|
417
|
-
this.middlewareStack.use(
|
|
418
|
-
this.middlewareStack.use(
|
|
419
|
-
this.middlewareStack.use(
|
|
420
|
-
this.middlewareStack.use(
|
|
421
|
-
this.middlewareStack.use(
|
|
414
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
415
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
416
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
417
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
418
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
419
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
420
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
421
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
422
422
|
httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
|
|
423
|
-
identityProviderConfigProvider: async (config) => new
|
|
423
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
424
424
|
"aws.auth#sigv4": config.credentials,
|
|
425
425
|
}),
|
|
426
426
|
}));
|
|
427
|
-
this.middlewareStack.use(
|
|
427
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
428
428
|
}
|
|
429
429
|
destroy() {
|
|
430
430
|
super.destroy();
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
class GetRoleCredentialsCommand extends
|
|
434
|
+
class GetRoleCredentialsCommand extends Command
|
|
435
435
|
.classBuilder()
|
|
436
436
|
.ep(commonParams)
|
|
437
437
|
.m(function (Command, cs, config, o) {
|
|
438
|
-
return [
|
|
438
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
439
439
|
})
|
|
440
440
|
.s("SWBPortalService", "GetRoleCredentials", {})
|
|
441
441
|
.n("SSOClient", "GetRoleCredentialsCommand")
|
|
@@ -448,10 +448,8 @@ const commands = {
|
|
|
448
448
|
};
|
|
449
449
|
class SSO extends SSOClient {
|
|
450
450
|
}
|
|
451
|
-
|
|
451
|
+
createAggregatedClient(commands, SSO);
|
|
452
452
|
|
|
453
|
-
exports.$Command = client.Command;
|
|
454
|
-
exports.__Client = client.Client;
|
|
455
453
|
exports.GetRoleCredentials$ = GetRoleCredentials$;
|
|
456
454
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
457
455
|
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
@@ -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 defaultSSOOIDCHttpAuthSchemeParametersProvider = 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 defaultSSOOIDCHttpAuthSchemeProvider = (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,7 +75,7 @@ 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
|
|
|
@@ -126,21 +126,21 @@ const nodes = new Int32Array([
|
|
|
126
126
|
3, r + 1, 14,
|
|
127
127
|
4, r + 2, r + 3,
|
|
128
128
|
]);
|
|
129
|
-
const bdd =
|
|
129
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
130
130
|
|
|
131
|
-
const cache = new
|
|
131
|
+
const cache = new EndpointCache({
|
|
132
132
|
size: 50,
|
|
133
133
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
134
134
|
});
|
|
135
135
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
136
|
-
return cache.get(endpointParams, () =>
|
|
136
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
137
137
|
endpointParams: endpointParams,
|
|
138
138
|
logger: context.logger,
|
|
139
139
|
}));
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
142
142
|
|
|
143
|
-
class SSOOIDCServiceException extends
|
|
143
|
+
class SSOOIDCServiceException extends ServiceException {
|
|
144
144
|
constructor(options) {
|
|
145
145
|
super(options);
|
|
146
146
|
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
@@ -369,10 +369,10 @@ const _sc = "scope";
|
|
|
369
369
|
const _se = "server";
|
|
370
370
|
const _tT = "tokenType";
|
|
371
371
|
const n0 = "com.amazonaws.ssooidc";
|
|
372
|
-
const _s_registry =
|
|
372
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
373
373
|
var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
374
374
|
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
375
|
-
const n0_registry =
|
|
375
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
376
376
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
377
377
|
{ [_e]: _c, [_hE]: 400 },
|
|
378
378
|
[_e, _r, _ed],
|
|
@@ -465,8 +465,8 @@ var CreateToken$ = [9, n0, _CT,
|
|
|
465
465
|
const getRuntimeConfig$1 = (config) => {
|
|
466
466
|
return {
|
|
467
467
|
apiVersion: "2019-06-10",
|
|
468
|
-
base64Decoder: config?.base64Decoder ??
|
|
469
|
-
base64Encoder: config?.base64Encoder ??
|
|
468
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
469
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
470
470
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
471
471
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
472
472
|
extensions: config?.extensions ?? [],
|
|
@@ -475,16 +475,16 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
475
475
|
{
|
|
476
476
|
schemeId: "aws.auth#sigv4",
|
|
477
477
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
478
|
-
signer: new
|
|
478
|
+
signer: new AwsSdkSigV4Signer(),
|
|
479
479
|
},
|
|
480
480
|
{
|
|
481
481
|
schemeId: "smithy.api#noAuth",
|
|
482
482
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
483
|
-
signer: new
|
|
483
|
+
signer: new NoAuthSigner(),
|
|
484
484
|
},
|
|
485
485
|
],
|
|
486
|
-
logger: config?.logger ?? new
|
|
487
|
-
protocol: config?.protocol ??
|
|
486
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
487
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
488
488
|
protocolSettings: config?.protocolSettings ?? {
|
|
489
489
|
defaultNamespace: "com.amazonaws.ssooidc",
|
|
490
490
|
errorTypeRegistries,
|
|
@@ -492,43 +492,43 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
492
492
|
serviceTarget: "AWSSSOOIDCService",
|
|
493
493
|
},
|
|
494
494
|
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
495
|
-
urlParser: config?.urlParser ??
|
|
496
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
497
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
495
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
496
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
497
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
498
498
|
};
|
|
499
499
|
};
|
|
500
500
|
|
|
501
|
-
const getRuntimeConfig = (config
|
|
502
|
-
|
|
503
|
-
const defaultsMode =
|
|
504
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
505
|
-
const clientSharedValues = getRuntimeConfig$1(config
|
|
506
|
-
|
|
501
|
+
const getRuntimeConfig = (config) => {
|
|
502
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
503
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
504
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
505
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
506
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
507
507
|
const loaderConfig = {
|
|
508
|
-
profile: config
|
|
508
|
+
profile: config?.profile,
|
|
509
509
|
logger: clientSharedValues.logger,
|
|
510
510
|
};
|
|
511
511
|
return {
|
|
512
512
|
...clientSharedValues,
|
|
513
|
-
...config
|
|
513
|
+
...config,
|
|
514
514
|
runtime: "node",
|
|
515
515
|
defaultsMode,
|
|
516
|
-
authSchemePreference: config
|
|
517
|
-
bodyLengthChecker: config
|
|
518
|
-
defaultUserAgentProvider: config
|
|
519
|
-
maxAttempts: config
|
|
520
|
-
region: config
|
|
521
|
-
requestHandler:
|
|
522
|
-
retryMode: config
|
|
523
|
-
|
|
524
|
-
...
|
|
525
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
526
|
-
}, config
|
|
527
|
-
sha256: config
|
|
528
|
-
streamCollector: config
|
|
529
|
-
useDualstackEndpoint: config
|
|
530
|
-
useFipsEndpoint: config
|
|
531
|
-
userAgentAppId: config
|
|
516
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
517
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
518
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
519
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
520
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
521
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
522
|
+
retryMode: config?.retryMode ??
|
|
523
|
+
loadConfig({
|
|
524
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
525
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
526
|
+
}, config),
|
|
527
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
528
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
529
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
530
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
531
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
|
|
@@ -572,51 +572,51 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
572
572
|
};
|
|
573
573
|
|
|
574
574
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
575
|
-
const extensionConfiguration = Object.assign(
|
|
575
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
576
576
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
577
|
-
return Object.assign(runtimeConfig,
|
|
577
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
578
578
|
};
|
|
579
579
|
|
|
580
|
-
class SSOOIDCClient extends
|
|
580
|
+
class SSOOIDCClient extends Client {
|
|
581
581
|
config;
|
|
582
582
|
constructor(...[configuration]) {
|
|
583
583
|
const _config_0 = getRuntimeConfig(configuration || {});
|
|
584
584
|
super(_config_0);
|
|
585
585
|
this.initConfig = _config_0;
|
|
586
586
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
587
|
-
const _config_2 =
|
|
588
|
-
const _config_3 =
|
|
589
|
-
const _config_4 =
|
|
590
|
-
const _config_5 =
|
|
591
|
-
const _config_6 =
|
|
587
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
588
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
589
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
590
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
591
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
592
592
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
593
593
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
594
594
|
this.config = _config_8;
|
|
595
|
-
this.middlewareStack.use(
|
|
596
|
-
this.middlewareStack.use(
|
|
597
|
-
this.middlewareStack.use(
|
|
598
|
-
this.middlewareStack.use(
|
|
599
|
-
this.middlewareStack.use(
|
|
600
|
-
this.middlewareStack.use(
|
|
601
|
-
this.middlewareStack.use(
|
|
602
|
-
this.middlewareStack.use(
|
|
595
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
596
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
597
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
598
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
599
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
600
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
601
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
602
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
603
603
|
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
604
|
-
identityProviderConfigProvider: async (config) => new
|
|
604
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
605
605
|
"aws.auth#sigv4": config.credentials,
|
|
606
606
|
}),
|
|
607
607
|
}));
|
|
608
|
-
this.middlewareStack.use(
|
|
608
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
609
609
|
}
|
|
610
610
|
destroy() {
|
|
611
611
|
super.destroy();
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
-
class CreateTokenCommand extends
|
|
615
|
+
class CreateTokenCommand extends Command
|
|
616
616
|
.classBuilder()
|
|
617
617
|
.ep(commonParams)
|
|
618
618
|
.m(function (Command, cs, config, o) {
|
|
619
|
-
return [
|
|
619
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
620
620
|
})
|
|
621
621
|
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
622
622
|
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
@@ -629,7 +629,7 @@ const commands = {
|
|
|
629
629
|
};
|
|
630
630
|
class SSOOIDC extends SSOOIDCClient {
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
createAggregatedClient(commands, SSOOIDC);
|
|
633
633
|
|
|
634
634
|
const AccessDeniedExceptionReason = {
|
|
635
635
|
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
@@ -641,8 +641,6 @@ const InvalidRequestExceptionReason = {
|
|
|
641
641
|
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
-
exports.$Command = client.Command;
|
|
645
|
-
exports.__Client = client.Client;
|
|
646
644
|
exports.AccessDeniedException = AccessDeniedException;
|
|
647
645
|
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
648
646
|
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|