@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,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.53",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
9
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
11
11
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
16
|
"test:watch": "yarn g:vitest watch",
|
|
17
17
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
33
|
-
"@aws-sdk/token-providers": "3.
|
|
34
|
-
"@aws-sdk/types": "^3.973.
|
|
31
|
+
"@aws-sdk/core": "^3.974.21",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.997.21",
|
|
33
|
+
"@aws-sdk/token-providers": "3.1069.0",
|
|
34
|
+
"@aws-sdk/types": "^3.973.13",
|
|
35
35
|
"@smithy/core": "^3.24.6",
|
|
36
36
|
"@smithy/types": "^4.14.3",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const config_1 = require("@smithy/core/config");
|
|
6
|
-
const node_fs_1 = require("node:fs");
|
|
7
|
-
const fromWebToken_1 = require("./fromWebToken");
|
|
1
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
2
|
+
const { CredentialsProviderError, externalDataInterceptor } = require("@smithy/core/config");
|
|
3
|
+
const { readFileSync } = require("node:fs");
|
|
4
|
+
const { fromWebToken } = require("./fromWebToken");
|
|
8
5
|
const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
9
6
|
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
10
7
|
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
11
|
-
|
|
8
|
+
exports.fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
|
12
9
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
13
10
|
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
|
14
11
|
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
15
12
|
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
|
16
13
|
if (!webIdentityTokenFile || !roleArn) {
|
|
17
|
-
throw new
|
|
14
|
+
throw new CredentialsProviderError("Web identity configuration not specified", {
|
|
18
15
|
logger: init.logger,
|
|
19
16
|
});
|
|
20
17
|
}
|
|
21
|
-
const credentials = await
|
|
18
|
+
const credentials = await fromWebToken({
|
|
22
19
|
...init,
|
|
23
|
-
webIdentityToken:
|
|
24
|
-
|
|
20
|
+
webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
|
|
21
|
+
readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
|
|
25
22
|
roleArn,
|
|
26
23
|
roleSessionName,
|
|
27
24
|
})(awsIdentityProperties);
|
|
28
25
|
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
29
|
-
|
|
26
|
+
setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
30
27
|
}
|
|
31
28
|
return credentials;
|
|
32
29
|
};
|
|
33
|
-
exports.fromTokenFile = fromTokenFile;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromWebToken = void 0;
|
|
4
|
-
const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
1
|
+
exports.fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
5
2
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
6
3
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
7
4
|
let { roleAssumerWithWebIdentity } = init;
|
|
8
5
|
if (!roleAssumerWithWebIdentity) {
|
|
9
|
-
const { getDefaultRoleAssumerWithWebIdentity } =
|
|
6
|
+
const { getDefaultRoleAssumerWithWebIdentity } = require("@aws-sdk/nested-clients/sts");
|
|
10
7
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
11
8
|
...init.clientConfig,
|
|
12
9
|
credentialProviderLogger: init.logger,
|
|
@@ -26,4 +23,3 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
26
23
|
DurationSeconds: durationSeconds,
|
|
27
24
|
});
|
|
28
25
|
};
|
|
29
|
-
exports.fromWebToken = fromWebToken;
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var fromWebToken = require('./fromWebToken');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.prototype.hasOwnProperty.call(fromTokenFile, '__proto__') &&
|
|
9
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
10
|
-
Object.defineProperty(exports, '__proto__', {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
value: fromTokenFile['__proto__']
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
Object.keys(fromTokenFile).forEach(function (k) {
|
|
16
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromTokenFile[k];
|
|
17
|
-
});
|
|
18
|
-
Object.prototype.hasOwnProperty.call(fromWebToken, '__proto__') &&
|
|
19
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
20
|
-
Object.defineProperty(exports, '__proto__', {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
value: fromWebToken['__proto__']
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
Object.keys(fromWebToken).forEach(function (k) {
|
|
26
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromWebToken[k];
|
|
27
|
-
});
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
__exportStar(require("./fromTokenFile"), exports);
|
|
3
|
+
__exportStar(require("./fromWebToken"), exports);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.53",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
9
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
11
11
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
16
|
"test:watch": "yarn g:vitest watch"
|
|
17
17
|
},
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/core": "^3.974.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
39
|
-
"@aws-sdk/types": "^3.973.
|
|
37
|
+
"@aws-sdk/core": "^3.974.21",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.997.21",
|
|
39
|
+
"@aws-sdk/types": "^3.973.13",
|
|
40
40
|
"@smithy/core": "^3.24.6",
|
|
41
41
|
"@smithy/types": "^4.14.3",
|
|
42
42
|
"tslib": "^2.6.2"
|
|
@@ -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 { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
15
15
|
|
|
16
16
|
const defaultCognitoIdentityHttpAuthSchemeParametersProvider = 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
|
};
|
|
@@ -59,9 +59,9 @@ const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
|
|
|
59
59
|
return options;
|
|
60
60
|
};
|
|
61
61
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
62
|
-
const config_0 =
|
|
62
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
63
63
|
return Object.assign(config_0, {
|
|
64
|
-
authSchemePreference:
|
|
64
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
|
|
@@ -79,7 +79,7 @@ const commonParams = {
|
|
|
79
79
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
var version = "3.997.
|
|
82
|
+
var version = "3.997.20";
|
|
83
83
|
var packageInfo = {
|
|
84
84
|
version: version};
|
|
85
85
|
|
|
@@ -142,21 +142,21 @@ const nodes = new Int32Array([
|
|
|
142
142
|
3, r + 1, 18,
|
|
143
143
|
5, r + 2, r + 3,
|
|
144
144
|
]);
|
|
145
|
-
const bdd =
|
|
145
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
146
146
|
|
|
147
|
-
const cache = new
|
|
147
|
+
const cache = new EndpointCache({
|
|
148
148
|
size: 50,
|
|
149
149
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
150
150
|
});
|
|
151
151
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
152
|
-
return cache.get(endpointParams, () =>
|
|
152
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
153
153
|
endpointParams: endpointParams,
|
|
154
154
|
logger: context.logger,
|
|
155
155
|
}));
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
158
158
|
|
|
159
|
-
class CognitoIdentityServiceException extends
|
|
159
|
+
class CognitoIdentityServiceException extends ServiceException {
|
|
160
160
|
constructor(options) {
|
|
161
161
|
super(options);
|
|
162
162
|
Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
|
|
@@ -307,10 +307,10 @@ const _m = "message";
|
|
|
307
307
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
|
|
308
308
|
const _se = "server";
|
|
309
309
|
const n0 = "com.amazonaws.cognitoidentity";
|
|
310
|
-
const _s_registry =
|
|
310
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
311
311
|
var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
|
|
312
312
|
_s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
|
|
313
|
-
const n0_registry =
|
|
313
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
314
314
|
var ExternalServiceException$ = [-3, n0, _ESE,
|
|
315
315
|
{ [_e]: _c, [_hE]: 400 },
|
|
316
316
|
[_m],
|
|
@@ -412,8 +412,8 @@ var GetId$ = [9, n0, _GI,
|
|
|
412
412
|
const getRuntimeConfig$1 = (config) => {
|
|
413
413
|
return {
|
|
414
414
|
apiVersion: "2014-06-30",
|
|
415
|
-
base64Decoder: config?.base64Decoder ??
|
|
416
|
-
base64Encoder: config?.base64Encoder ??
|
|
415
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
416
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
417
417
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
418
418
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
419
419
|
extensions: config?.extensions ?? [],
|
|
@@ -422,16 +422,16 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
422
422
|
{
|
|
423
423
|
schemeId: "aws.auth#sigv4",
|
|
424
424
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
425
|
-
signer: new
|
|
425
|
+
signer: new AwsSdkSigV4Signer(),
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
schemeId: "smithy.api#noAuth",
|
|
429
429
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
430
|
-
signer: new
|
|
430
|
+
signer: new NoAuthSigner(),
|
|
431
431
|
},
|
|
432
432
|
],
|
|
433
|
-
logger: config?.logger ?? new
|
|
434
|
-
protocol: config?.protocol ??
|
|
433
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
434
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
435
435
|
protocolSettings: config?.protocolSettings ?? {
|
|
436
436
|
defaultNamespace: "com.amazonaws.cognitoidentity",
|
|
437
437
|
errorTypeRegistries,
|
|
@@ -440,43 +440,43 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
440
440
|
serviceTarget: "AWSCognitoIdentityService",
|
|
441
441
|
},
|
|
442
442
|
serviceId: config?.serviceId ?? "Cognito Identity",
|
|
443
|
-
urlParser: config?.urlParser ??
|
|
444
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
445
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
443
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
444
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
445
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
const getRuntimeConfig = (config
|
|
450
|
-
|
|
451
|
-
const defaultsMode =
|
|
452
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
453
|
-
const clientSharedValues = getRuntimeConfig$1(config
|
|
454
|
-
|
|
449
|
+
const getRuntimeConfig = (config) => {
|
|
450
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
451
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
452
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
453
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
454
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
455
455
|
const loaderConfig = {
|
|
456
|
-
profile: config
|
|
456
|
+
profile: config?.profile,
|
|
457
457
|
logger: clientSharedValues.logger,
|
|
458
458
|
};
|
|
459
459
|
return {
|
|
460
460
|
...clientSharedValues,
|
|
461
|
-
...config
|
|
461
|
+
...config,
|
|
462
462
|
runtime: "node",
|
|
463
463
|
defaultsMode,
|
|
464
|
-
authSchemePreference: config
|
|
465
|
-
bodyLengthChecker: config
|
|
466
|
-
defaultUserAgentProvider: config
|
|
467
|
-
maxAttempts: config
|
|
468
|
-
region: config
|
|
469
|
-
requestHandler:
|
|
470
|
-
retryMode: config
|
|
471
|
-
|
|
472
|
-
...
|
|
473
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
474
|
-
}, config
|
|
475
|
-
sha256: config
|
|
476
|
-
streamCollector: config
|
|
477
|
-
useDualstackEndpoint: config
|
|
478
|
-
useFipsEndpoint: config
|
|
479
|
-
userAgentAppId: config
|
|
464
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
465
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
466
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
467
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
468
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
469
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
470
|
+
retryMode: config?.retryMode ??
|
|
471
|
+
loadConfig({
|
|
472
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
473
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
474
|
+
}, config),
|
|
475
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
476
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
477
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
478
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
479
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
482
|
|
|
@@ -520,51 +520,51 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
520
520
|
};
|
|
521
521
|
|
|
522
522
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
523
|
-
const extensionConfiguration = Object.assign(
|
|
523
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
524
524
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
525
|
-
return Object.assign(runtimeConfig,
|
|
525
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
526
526
|
};
|
|
527
527
|
|
|
528
|
-
class CognitoIdentityClient extends
|
|
528
|
+
class CognitoIdentityClient extends Client {
|
|
529
529
|
config;
|
|
530
530
|
constructor(...[configuration]) {
|
|
531
531
|
const _config_0 = getRuntimeConfig(configuration || {});
|
|
532
532
|
super(_config_0);
|
|
533
533
|
this.initConfig = _config_0;
|
|
534
534
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
535
|
-
const _config_2 =
|
|
536
|
-
const _config_3 =
|
|
537
|
-
const _config_4 =
|
|
538
|
-
const _config_5 =
|
|
539
|
-
const _config_6 =
|
|
535
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
536
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
537
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
538
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
539
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
540
540
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
541
541
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
542
542
|
this.config = _config_8;
|
|
543
|
-
this.middlewareStack.use(
|
|
544
|
-
this.middlewareStack.use(
|
|
545
|
-
this.middlewareStack.use(
|
|
546
|
-
this.middlewareStack.use(
|
|
547
|
-
this.middlewareStack.use(
|
|
548
|
-
this.middlewareStack.use(
|
|
549
|
-
this.middlewareStack.use(
|
|
550
|
-
this.middlewareStack.use(
|
|
543
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
544
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
545
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
546
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
547
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
548
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
549
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
550
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
551
551
|
httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider,
|
|
552
|
-
identityProviderConfigProvider: async (config) => new
|
|
552
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
553
553
|
"aws.auth#sigv4": config.credentials,
|
|
554
554
|
}),
|
|
555
555
|
}));
|
|
556
|
-
this.middlewareStack.use(
|
|
556
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
557
557
|
}
|
|
558
558
|
destroy() {
|
|
559
559
|
super.destroy();
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
class GetCredentialsForIdentityCommand extends
|
|
563
|
+
class GetCredentialsForIdentityCommand extends Command
|
|
564
564
|
.classBuilder()
|
|
565
565
|
.ep(commonParams)
|
|
566
566
|
.m(function (Command, cs, config, o) {
|
|
567
|
-
return [
|
|
567
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
568
568
|
})
|
|
569
569
|
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
|
|
570
570
|
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
|
|
@@ -572,11 +572,11 @@ class GetCredentialsForIdentityCommand extends client.Command
|
|
|
572
572
|
.build() {
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
class GetIdCommand extends
|
|
575
|
+
class GetIdCommand extends Command
|
|
576
576
|
.classBuilder()
|
|
577
577
|
.ep(commonParams)
|
|
578
578
|
.m(function (Command, cs, config, o) {
|
|
579
|
-
return [
|
|
579
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
580
580
|
})
|
|
581
581
|
.s("AWSCognitoIdentityService", "GetId", {})
|
|
582
582
|
.n("CognitoIdentityClient", "GetIdCommand")
|
|
@@ -590,10 +590,8 @@ const commands = {
|
|
|
590
590
|
};
|
|
591
591
|
class CognitoIdentity extends CognitoIdentityClient {
|
|
592
592
|
}
|
|
593
|
-
|
|
593
|
+
createAggregatedClient(commands, CognitoIdentity);
|
|
594
594
|
|
|
595
|
-
exports.$Command = client.Command;
|
|
596
|
-
exports.__Client = client.Client;
|
|
597
595
|
exports.CognitoIdentity = CognitoIdentity;
|
|
598
596
|
exports.CognitoIdentityClient = CognitoIdentityClient;
|
|
599
597
|
exports.CognitoIdentityServiceException = CognitoIdentityServiceException;
|