@aws-sdk/nested-clients 3.997.5 → 3.997.7
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/dist-cjs/submodules/cognito-identity/index.js +520 -52
- package/dist-cjs/submodules/signin/index.js +454 -49
- package/dist-cjs/submodules/sso/index.js +399 -49
- package/dist-cjs/submodules/sso-oidc/index.js +593 -49
- package/dist-cjs/submodules/sts/index.js +835 -55
- package/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
- package/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +5 -5
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -2
- package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -2
- package/dist-es/submodules/cognito-identity/endpoint/bdd.js +1 -1
- package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -1
- package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/cognito-identity/runtimeConfig.js +4 -8
- package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/cognito-identity/runtimeExtensions.js +2 -2
- package/dist-es/submodules/signin/Signin.js +1 -1
- package/dist-es/submodules/signin/SigninClient.js +5 -5
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -2
- package/dist-es/submodules/signin/endpoint/bdd.js +1 -1
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/signin/models/SigninServiceException.js +1 -1
- package/dist-es/submodules/signin/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/signin/runtimeConfig.js +4 -8
- package/dist-es/submodules/signin/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/signin/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sso/SSO.js +1 -1
- package/dist-es/submodules/sso/SSOClient.js +5 -5
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -2
- package/dist-es/submodules/sso/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sso/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sso/models/SSOServiceException.js +1 -1
- package/dist-es/submodules/sso/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sso/runtimeConfig.js +4 -8
- package/dist-es/submodules/sso/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sso/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sso-oidc/SSOOIDC.js +1 -1
- package/dist-es/submodules/sso-oidc/SSOOIDCClient.js +5 -5
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -2
- package/dist-es/submodules/sso-oidc/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -1
- package/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sso-oidc/runtimeConfig.js +4 -8
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sso-oidc/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sts/STS.js +1 -1
- package/dist-es/submodules/sts/STSClient.js +5 -5
- package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +5 -10
- package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +0 -5
- package/dist-es/submodules/sts/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sts/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sts/models/STSServiceException.js +1 -1
- package/dist-es/submodules/sts/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sts/runtimeConfig.js +4 -8
- package/dist-es/submodules/sts/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sts/runtimeExtensions.js +2 -2
- package/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +5 -5
- package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +6 -4
- package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -4
- package/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/models/errors.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/signin/SigninClient.d.ts +5 -5
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +6 -4
- package/dist-types/submodules/signin/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/signin/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -1
- package/dist-types/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/signin/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sso/SSOClient.d.ts +5 -5
- package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +6 -4
- package/dist-types/submodules/sso/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sso/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -1
- package/dist-types/submodules/sso/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sso/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sso/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +5 -5
- package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +6 -4
- package/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sts/STSClient.d.ts +5 -5
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -13
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +0 -9
- package/dist-types/submodules/sts/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sts/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/dist-types/submodules/sts/models/errors.d.ts +1 -1
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sts/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +2 -12
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +0 -3
- package/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +5 -5
- package/package.json +13 -34
- package/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +0 -60
- package/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +0 -100
- package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +0 -12
- package/dist-cjs/submodules/cognito-identity/models/errors.js +0 -121
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +0 -50
- package/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +0 -110
- package/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/signin/endpoint/bdd.js +0 -90
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/signin/models/SigninServiceException.js +0 -12
- package/dist-cjs/submodules/signin/models/errors.js +0 -64
- package/dist-cjs/submodules/signin/runtimeConfig.browser.js +0 -39
- package/dist-cjs/submodules/signin/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/signin/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/signin/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/signin/schemas/schemas_0.js +0 -125
- package/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/sso/endpoint/bdd.js +0 -80
- package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sso/models/SSOServiceException.js +0 -12
- package/dist-cjs/submodules/sso/models/errors.js +0 -56
- package/dist-cjs/submodules/sso/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/sso/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/sso/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sso/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/sso/schemas/schemas_0.js +0 -90
- package/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +0 -80
- package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +0 -12
- package/dist-cjs/submodules/sso-oidc/models/errors.js +0 -195
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +0 -140
- package/dist-cjs/submodules/sts/STSClient.js +0 -55
- package/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +0 -144
- package/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +0 -19
- package/dist-cjs/submodules/sts/endpoint/bdd.js +0 -150
- package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sts/models/STSServiceException.js +0 -12
- package/dist-cjs/submodules/sts/models/errors.js +0 -96
- package/dist-cjs/submodules/sts/runtimeConfig.browser.js +0 -39
- package/dist-cjs/submodules/sts/runtimeConfig.js +0 -74
- package/dist-cjs/submodules/sts/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sts/runtimeConfig.shared.js +0 -57
- package/dist-cjs/submodules/sts/runtimeExtensions.js +0 -13
- package/dist-cjs/submodules/sts/schemas/schemas_0.js +0 -195
|
@@ -4,20 +4,74 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
|
4
4
|
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
5
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
-
var configResolver = require('@smithy/config-resolver');
|
|
8
7
|
var core = require('@smithy/core');
|
|
8
|
+
var client = require('@smithy/core/client');
|
|
9
|
+
var config = require('@smithy/core/config');
|
|
10
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
11
|
+
var protocols = require('@smithy/core/protocols');
|
|
12
|
+
var retry = require('@smithy/core/retry');
|
|
9
13
|
var schema = require('@smithy/core/schema');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
|
|
15
|
+
var client$1 = require('@aws-sdk/core/client');
|
|
16
|
+
var utilUserAgentNode = require('@aws-sdk/util-user-agent-node');
|
|
17
|
+
var serde = require('@smithy/core/serde');
|
|
18
|
+
var nodeHttpHandler = require('@smithy/node-http-handler');
|
|
19
|
+
var protocols$1 = require('@aws-sdk/core/protocols');
|
|
20
|
+
var utilEndpoints = require('@aws-sdk/util-endpoints');
|
|
16
21
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
|
|
23
|
+
const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
24
|
+
return {
|
|
25
|
+
operation: client.getSmithyContext(context).operation,
|
|
26
|
+
region: (await client.normalizeProvider(config.region)()) ||
|
|
27
|
+
(() => {
|
|
28
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
29
|
+
})(),
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
33
|
+
return {
|
|
34
|
+
schemeId: "aws.auth#sigv4",
|
|
35
|
+
signingProperties: {
|
|
36
|
+
name: "cognito-identity",
|
|
37
|
+
region: authParameters.region,
|
|
38
|
+
},
|
|
39
|
+
propertiesExtractor: (config, context) => ({
|
|
40
|
+
signingProperties: {
|
|
41
|
+
config,
|
|
42
|
+
context,
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
48
|
+
return {
|
|
49
|
+
schemeId: "smithy.api#noAuth",
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
|
|
53
|
+
const options = [];
|
|
54
|
+
switch (authParameters.operation) {
|
|
55
|
+
case "GetCredentialsForIdentity": {
|
|
56
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
case "GetId": {
|
|
60
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
default: {
|
|
64
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return options;
|
|
68
|
+
};
|
|
69
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
70
|
+
const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config);
|
|
71
|
+
return Object.assign(config_0, {
|
|
72
|
+
authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []),
|
|
73
|
+
});
|
|
74
|
+
};
|
|
21
75
|
|
|
22
76
|
const resolveClientEndpointParameters = (options) => {
|
|
23
77
|
return Object.assign(options, {
|
|
@@ -33,6 +87,413 @@ const commonParams = {
|
|
|
33
87
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
34
88
|
};
|
|
35
89
|
|
|
90
|
+
var version = "3.997.6";
|
|
91
|
+
var packageInfo = {
|
|
92
|
+
version: version};
|
|
93
|
+
|
|
94
|
+
const m = "ref";
|
|
95
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
|
|
96
|
+
const _data = {
|
|
97
|
+
conditions: [
|
|
98
|
+
[c, [h]],
|
|
99
|
+
[c, l],
|
|
100
|
+
["aws.partition", l, d],
|
|
101
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
102
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
103
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
104
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
105
|
+
[g, [{ fn: f, argv: [i, "name"] }, "aws"]],
|
|
106
|
+
[g, [j, "us-east-1"]],
|
|
107
|
+
[g, [j, "us-east-2"]],
|
|
108
|
+
[g, [j, "us-west-1"]],
|
|
109
|
+
[g, [j, "us-west-2"]],
|
|
110
|
+
],
|
|
111
|
+
results: [
|
|
112
|
+
[a],
|
|
113
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
114
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
115
|
+
[h, k],
|
|
116
|
+
["https://cognito-identity-fips.us-east-1.amazonaws.com", k],
|
|
117
|
+
["https://cognito-identity-fips.us-east-2.amazonaws.com", k],
|
|
118
|
+
["https://cognito-identity-fips.us-west-1.amazonaws.com", k],
|
|
119
|
+
["https://cognito-identity-fips.us-west-2.amazonaws.com", k],
|
|
120
|
+
["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
121
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
122
|
+
["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
123
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
124
|
+
["https://cognito-identity.{Region}.amazonaws.com", k],
|
|
125
|
+
["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
126
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
127
|
+
["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
128
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
129
|
+
],
|
|
130
|
+
};
|
|
131
|
+
const root = 2;
|
|
132
|
+
const r = 100_000_000;
|
|
133
|
+
const nodes = new Int32Array([
|
|
134
|
+
-1,
|
|
135
|
+
1,
|
|
136
|
+
-1,
|
|
137
|
+
0,
|
|
138
|
+
17,
|
|
139
|
+
3,
|
|
140
|
+
1,
|
|
141
|
+
4,
|
|
142
|
+
r + 16,
|
|
143
|
+
2,
|
|
144
|
+
5,
|
|
145
|
+
r + 16,
|
|
146
|
+
3,
|
|
147
|
+
9,
|
|
148
|
+
6,
|
|
149
|
+
5,
|
|
150
|
+
7,
|
|
151
|
+
r + 15,
|
|
152
|
+
6,
|
|
153
|
+
8,
|
|
154
|
+
r + 14,
|
|
155
|
+
7,
|
|
156
|
+
r + 12,
|
|
157
|
+
r + 13,
|
|
158
|
+
4,
|
|
159
|
+
11,
|
|
160
|
+
10,
|
|
161
|
+
5,
|
|
162
|
+
r + 9,
|
|
163
|
+
r + 11,
|
|
164
|
+
5,
|
|
165
|
+
12,
|
|
166
|
+
r + 10,
|
|
167
|
+
6,
|
|
168
|
+
13,
|
|
169
|
+
r + 9,
|
|
170
|
+
8,
|
|
171
|
+
r + 4,
|
|
172
|
+
14,
|
|
173
|
+
9,
|
|
174
|
+
r + 5,
|
|
175
|
+
15,
|
|
176
|
+
10,
|
|
177
|
+
r + 6,
|
|
178
|
+
16,
|
|
179
|
+
11,
|
|
180
|
+
r + 7,
|
|
181
|
+
r + 8,
|
|
182
|
+
3,
|
|
183
|
+
r + 1,
|
|
184
|
+
18,
|
|
185
|
+
5,
|
|
186
|
+
r + 2,
|
|
187
|
+
r + 3,
|
|
188
|
+
]);
|
|
189
|
+
const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
190
|
+
|
|
191
|
+
const cache = new endpoints.EndpointCache({
|
|
192
|
+
size: 50,
|
|
193
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
194
|
+
});
|
|
195
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
196
|
+
return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
|
|
197
|
+
endpointParams: endpointParams,
|
|
198
|
+
logger: context.logger,
|
|
199
|
+
}));
|
|
200
|
+
};
|
|
201
|
+
endpoints.customEndpointFunctions.aws = utilEndpoints.awsEndpointFunctions;
|
|
202
|
+
|
|
203
|
+
class CognitoIdentityServiceException extends client.ServiceException {
|
|
204
|
+
constructor(options) {
|
|
205
|
+
super(options);
|
|
206
|
+
Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
class ExternalServiceException extends CognitoIdentityServiceException {
|
|
211
|
+
name = "ExternalServiceException";
|
|
212
|
+
$fault = "client";
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ExternalServiceException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
Object.setPrototypeOf(this, ExternalServiceException.prototype);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
class InternalErrorException extends CognitoIdentityServiceException {
|
|
223
|
+
name = "InternalErrorException";
|
|
224
|
+
$fault = "server";
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "InternalErrorException",
|
|
228
|
+
$fault: "server",
|
|
229
|
+
...opts,
|
|
230
|
+
});
|
|
231
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
|
|
235
|
+
name = "InvalidIdentityPoolConfigurationException";
|
|
236
|
+
$fault = "client";
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "InvalidIdentityPoolConfigurationException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts,
|
|
242
|
+
});
|
|
243
|
+
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
class InvalidParameterException extends CognitoIdentityServiceException {
|
|
247
|
+
name = "InvalidParameterException";
|
|
248
|
+
$fault = "client";
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "InvalidParameterException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
class NotAuthorizedException extends CognitoIdentityServiceException {
|
|
259
|
+
name = "NotAuthorizedException";
|
|
260
|
+
$fault = "client";
|
|
261
|
+
constructor(opts) {
|
|
262
|
+
super({
|
|
263
|
+
name: "NotAuthorizedException",
|
|
264
|
+
$fault: "client",
|
|
265
|
+
...opts,
|
|
266
|
+
});
|
|
267
|
+
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
class ResourceConflictException extends CognitoIdentityServiceException {
|
|
271
|
+
name = "ResourceConflictException";
|
|
272
|
+
$fault = "client";
|
|
273
|
+
constructor(opts) {
|
|
274
|
+
super({
|
|
275
|
+
name: "ResourceConflictException",
|
|
276
|
+
$fault: "client",
|
|
277
|
+
...opts,
|
|
278
|
+
});
|
|
279
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
class ResourceNotFoundException extends CognitoIdentityServiceException {
|
|
283
|
+
name = "ResourceNotFoundException";
|
|
284
|
+
$fault = "client";
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "ResourceNotFoundException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts,
|
|
290
|
+
});
|
|
291
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
class TooManyRequestsException extends CognitoIdentityServiceException {
|
|
295
|
+
name = "TooManyRequestsException";
|
|
296
|
+
$fault = "client";
|
|
297
|
+
constructor(opts) {
|
|
298
|
+
super({
|
|
299
|
+
name: "TooManyRequestsException",
|
|
300
|
+
$fault: "client",
|
|
301
|
+
...opts,
|
|
302
|
+
});
|
|
303
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
class LimitExceededException extends CognitoIdentityServiceException {
|
|
307
|
+
name = "LimitExceededException";
|
|
308
|
+
$fault = "client";
|
|
309
|
+
constructor(opts) {
|
|
310
|
+
super({
|
|
311
|
+
name: "LimitExceededException",
|
|
312
|
+
$fault: "client",
|
|
313
|
+
...opts,
|
|
314
|
+
});
|
|
315
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const _AI = "AccountId";
|
|
320
|
+
const _AKI = "AccessKeyId";
|
|
321
|
+
const _C = "Credentials";
|
|
322
|
+
const _CRA = "CustomRoleArn";
|
|
323
|
+
const _E = "Expiration";
|
|
324
|
+
const _ESE = "ExternalServiceException";
|
|
325
|
+
const _GCFI = "GetCredentialsForIdentity";
|
|
326
|
+
const _GCFII = "GetCredentialsForIdentityInput";
|
|
327
|
+
const _GCFIR = "GetCredentialsForIdentityResponse";
|
|
328
|
+
const _GI = "GetId";
|
|
329
|
+
const _GII = "GetIdInput";
|
|
330
|
+
const _GIR = "GetIdResponse";
|
|
331
|
+
const _IEE = "InternalErrorException";
|
|
332
|
+
const _II = "IdentityId";
|
|
333
|
+
const _IIPCE = "InvalidIdentityPoolConfigurationException";
|
|
334
|
+
const _IPE = "InvalidParameterException";
|
|
335
|
+
const _IPI = "IdentityPoolId";
|
|
336
|
+
const _IPT = "IdentityProviderToken";
|
|
337
|
+
const _L = "Logins";
|
|
338
|
+
const _LEE = "LimitExceededException";
|
|
339
|
+
const _LM = "LoginsMap";
|
|
340
|
+
const _NAE = "NotAuthorizedException";
|
|
341
|
+
const _RCE = "ResourceConflictException";
|
|
342
|
+
const _RNFE = "ResourceNotFoundException";
|
|
343
|
+
const _SK = "SecretKey";
|
|
344
|
+
const _SKS = "SecretKeyString";
|
|
345
|
+
const _ST = "SessionToken";
|
|
346
|
+
const _TMRE = "TooManyRequestsException";
|
|
347
|
+
const _c = "client";
|
|
348
|
+
const _e = "error";
|
|
349
|
+
const _hE = "httpError";
|
|
350
|
+
const _m = "message";
|
|
351
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
|
|
352
|
+
const _se = "server";
|
|
353
|
+
const n0 = "com.amazonaws.cognitoidentity";
|
|
354
|
+
const _s_registry = schema.TypeRegistry.for(_s);
|
|
355
|
+
var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
|
|
356
|
+
_s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
|
|
357
|
+
const n0_registry = schema.TypeRegistry.for(n0);
|
|
358
|
+
var ExternalServiceException$ = [-3, n0, _ESE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
359
|
+
n0_registry.registerError(ExternalServiceException$, ExternalServiceException);
|
|
360
|
+
var InternalErrorException$ = [-3, n0, _IEE, { [_e]: _se }, [_m], [0]];
|
|
361
|
+
n0_registry.registerError(InternalErrorException$, InternalErrorException);
|
|
362
|
+
var InvalidIdentityPoolConfigurationException$ = [
|
|
363
|
+
-3,
|
|
364
|
+
n0,
|
|
365
|
+
_IIPCE,
|
|
366
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
367
|
+
[_m],
|
|
368
|
+
[0],
|
|
369
|
+
];
|
|
370
|
+
n0_registry.registerError(InvalidIdentityPoolConfigurationException$, InvalidIdentityPoolConfigurationException);
|
|
371
|
+
var InvalidParameterException$ = [-3, n0, _IPE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
372
|
+
n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
|
|
373
|
+
var LimitExceededException$ = [-3, n0, _LEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
374
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
375
|
+
var NotAuthorizedException$ = [-3, n0, _NAE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
376
|
+
n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
|
|
377
|
+
var ResourceConflictException$ = [-3, n0, _RCE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
|
|
378
|
+
n0_registry.registerError(ResourceConflictException$, ResourceConflictException);
|
|
379
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
380
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
381
|
+
var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
382
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
383
|
+
const errorTypeRegistries = [_s_registry, n0_registry];
|
|
384
|
+
var IdentityProviderToken = [0, n0, _IPT, 8, 0];
|
|
385
|
+
var SecretKeyString = [0, n0, _SKS, 8, 0];
|
|
386
|
+
var Credentials$ = [
|
|
387
|
+
3,
|
|
388
|
+
n0,
|
|
389
|
+
_C,
|
|
390
|
+
0,
|
|
391
|
+
[_AKI, _SK, _ST, _E],
|
|
392
|
+
[0, [() => SecretKeyString, 0], 0, 4],
|
|
393
|
+
];
|
|
394
|
+
var GetCredentialsForIdentityInput$ = [
|
|
395
|
+
3,
|
|
396
|
+
n0,
|
|
397
|
+
_GCFII,
|
|
398
|
+
0,
|
|
399
|
+
[_II, _L, _CRA],
|
|
400
|
+
[0, [() => LoginsMap, 0], 0],
|
|
401
|
+
1,
|
|
402
|
+
];
|
|
403
|
+
var GetCredentialsForIdentityResponse$ = [
|
|
404
|
+
3,
|
|
405
|
+
n0,
|
|
406
|
+
_GCFIR,
|
|
407
|
+
0,
|
|
408
|
+
[_II, _C],
|
|
409
|
+
[0, [() => Credentials$, 0]],
|
|
410
|
+
];
|
|
411
|
+
var GetIdInput$ = [3, n0, _GII, 0, [_IPI, _AI, _L], [0, 0, [() => LoginsMap, 0]], 1];
|
|
412
|
+
var GetIdResponse$ = [3, n0, _GIR, 0, [_II], [0]];
|
|
413
|
+
var LoginsMap = [2, n0, _LM, 0, [0, 0], [() => IdentityProviderToken, 0]];
|
|
414
|
+
var GetCredentialsForIdentity$ = [
|
|
415
|
+
9,
|
|
416
|
+
n0,
|
|
417
|
+
_GCFI,
|
|
418
|
+
0,
|
|
419
|
+
() => GetCredentialsForIdentityInput$,
|
|
420
|
+
() => GetCredentialsForIdentityResponse$,
|
|
421
|
+
];
|
|
422
|
+
var GetId$ = [9, n0, _GI, 0, () => GetIdInput$, () => GetIdResponse$];
|
|
423
|
+
|
|
424
|
+
const getRuntimeConfig$1 = (config) => {
|
|
425
|
+
return {
|
|
426
|
+
apiVersion: "2014-06-30",
|
|
427
|
+
base64Decoder: config?.base64Decoder ?? serde.fromBase64,
|
|
428
|
+
base64Encoder: config?.base64Encoder ?? serde.toBase64,
|
|
429
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
430
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
431
|
+
extensions: config?.extensions ?? [],
|
|
432
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCognitoIdentityHttpAuthSchemeProvider,
|
|
433
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
434
|
+
{
|
|
435
|
+
schemeId: "aws.auth#sigv4",
|
|
436
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
437
|
+
signer: new httpAuthSchemes.AwsSdkSigV4Signer(),
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
schemeId: "smithy.api#noAuth",
|
|
441
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
442
|
+
signer: new core.NoAuthSigner(),
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
logger: config?.logger ?? new client.NoOpLogger(),
|
|
446
|
+
protocol: config?.protocol ?? protocols$1.AwsJson1_1Protocol,
|
|
447
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
448
|
+
defaultNamespace: "com.amazonaws.cognitoidentity",
|
|
449
|
+
errorTypeRegistries,
|
|
450
|
+
xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
|
|
451
|
+
version: "2014-06-30",
|
|
452
|
+
serviceTarget: "AWSCognitoIdentityService",
|
|
453
|
+
},
|
|
454
|
+
serviceId: config?.serviceId ?? "Cognito Identity",
|
|
455
|
+
urlParser: config?.urlParser ?? protocols.parseUrl,
|
|
456
|
+
utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,
|
|
457
|
+
utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
const getRuntimeConfig = (config$1) => {
|
|
462
|
+
client.emitWarningIfUnsupportedVersion(process.version);
|
|
463
|
+
const defaultsMode = config.resolveDefaultsModeConfig(config$1);
|
|
464
|
+
const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
|
|
465
|
+
const clientSharedValues = getRuntimeConfig$1(config$1);
|
|
466
|
+
client$1.emitWarningIfUnsupportedVersion(process.version);
|
|
467
|
+
const loaderConfig = {
|
|
468
|
+
profile: config$1?.profile,
|
|
469
|
+
logger: clientSharedValues.logger,
|
|
470
|
+
};
|
|
471
|
+
return {
|
|
472
|
+
...clientSharedValues,
|
|
473
|
+
...config$1,
|
|
474
|
+
runtime: "node",
|
|
475
|
+
defaultsMode,
|
|
476
|
+
authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
477
|
+
bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
|
|
478
|
+
defaultUserAgentProvider: config$1?.defaultUserAgentProvider ??
|
|
479
|
+
utilUserAgentNode.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
480
|
+
maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
|
|
481
|
+
region: config$1?.region ??
|
|
482
|
+
config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
483
|
+
requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
|
|
484
|
+
retryMode: config$1?.retryMode ??
|
|
485
|
+
config.loadConfig({
|
|
486
|
+
...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
487
|
+
default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,
|
|
488
|
+
}, config$1),
|
|
489
|
+
sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
|
|
490
|
+
streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
|
|
491
|
+
useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
492
|
+
useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
493
|
+
userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(utilUserAgentNode.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
|
|
36
497
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
498
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
499
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -73,35 +534,35 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
73
534
|
};
|
|
74
535
|
|
|
75
536
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig),
|
|
537
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
538
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
539
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
540
|
};
|
|
80
541
|
|
|
81
|
-
class CognitoIdentityClient extends
|
|
542
|
+
class CognitoIdentityClient extends client.Client {
|
|
82
543
|
config;
|
|
83
544
|
constructor(...[configuration]) {
|
|
84
|
-
const _config_0 =
|
|
545
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
85
546
|
super(_config_0);
|
|
86
547
|
this.initConfig = _config_0;
|
|
87
548
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
549
|
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
-
const _config_3 =
|
|
90
|
-
const _config_4 =
|
|
550
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
551
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
91
552
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
-
const _config_6 =
|
|
93
|
-
const _config_7 =
|
|
553
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
554
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
94
555
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
556
|
this.config = _config_8;
|
|
96
557
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
97
558
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
559
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
560
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
100
561
|
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
101
562
|
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
102
563
|
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
103
564
|
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
104
|
-
httpAuthSchemeParametersProvider:
|
|
565
|
+
httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider,
|
|
105
566
|
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
106
567
|
"aws.auth#sigv4": config.credentials,
|
|
107
568
|
}),
|
|
@@ -113,27 +574,27 @@ class CognitoIdentityClient extends smithyClient.Client {
|
|
|
113
574
|
}
|
|
114
575
|
}
|
|
115
576
|
|
|
116
|
-
class GetCredentialsForIdentityCommand extends
|
|
577
|
+
class GetCredentialsForIdentityCommand extends client.Command
|
|
117
578
|
.classBuilder()
|
|
118
579
|
.ep(commonParams)
|
|
119
580
|
.m(function (Command, cs, config, o) {
|
|
120
|
-
return [
|
|
581
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
121
582
|
})
|
|
122
583
|
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
|
|
123
584
|
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
|
|
124
|
-
.sc(
|
|
585
|
+
.sc(GetCredentialsForIdentity$)
|
|
125
586
|
.build() {
|
|
126
587
|
}
|
|
127
588
|
|
|
128
|
-
class GetIdCommand extends
|
|
589
|
+
class GetIdCommand extends client.Command
|
|
129
590
|
.classBuilder()
|
|
130
591
|
.ep(commonParams)
|
|
131
592
|
.m(function (Command, cs, config, o) {
|
|
132
|
-
return [
|
|
593
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
133
594
|
})
|
|
134
595
|
.s("AWSCognitoIdentityService", "GetId", {})
|
|
135
596
|
.n("CognitoIdentityClient", "GetIdCommand")
|
|
136
|
-
.sc(
|
|
597
|
+
.sc(GetId$)
|
|
137
598
|
.build() {
|
|
138
599
|
}
|
|
139
600
|
|
|
@@ -143,32 +604,39 @@ const commands = {
|
|
|
143
604
|
};
|
|
144
605
|
class CognitoIdentity extends CognitoIdentityClient {
|
|
145
606
|
}
|
|
146
|
-
|
|
607
|
+
client.createAggregatedClient(commands, CognitoIdentity);
|
|
147
608
|
|
|
148
|
-
exports.$Command =
|
|
149
|
-
exports.__Client =
|
|
150
|
-
exports.CognitoIdentityServiceException = CognitoIdentityServiceException.CognitoIdentityServiceException;
|
|
609
|
+
exports.$Command = client.Command;
|
|
610
|
+
exports.__Client = client.Client;
|
|
151
611
|
exports.CognitoIdentity = CognitoIdentity;
|
|
152
612
|
exports.CognitoIdentityClient = CognitoIdentityClient;
|
|
613
|
+
exports.CognitoIdentityServiceException = CognitoIdentityServiceException;
|
|
614
|
+
exports.CognitoIdentityServiceException$ = CognitoIdentityServiceException$;
|
|
615
|
+
exports.Credentials$ = Credentials$;
|
|
616
|
+
exports.ExternalServiceException = ExternalServiceException;
|
|
617
|
+
exports.ExternalServiceException$ = ExternalServiceException$;
|
|
618
|
+
exports.GetCredentialsForIdentity$ = GetCredentialsForIdentity$;
|
|
153
619
|
exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand;
|
|
620
|
+
exports.GetCredentialsForIdentityInput$ = GetCredentialsForIdentityInput$;
|
|
621
|
+
exports.GetCredentialsForIdentityResponse$ = GetCredentialsForIdentityResponse$;
|
|
622
|
+
exports.GetId$ = GetId$;
|
|
154
623
|
exports.GetIdCommand = GetIdCommand;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
});
|
|
624
|
+
exports.GetIdInput$ = GetIdInput$;
|
|
625
|
+
exports.GetIdResponse$ = GetIdResponse$;
|
|
626
|
+
exports.InternalErrorException = InternalErrorException;
|
|
627
|
+
exports.InternalErrorException$ = InternalErrorException$;
|
|
628
|
+
exports.InvalidIdentityPoolConfigurationException = InvalidIdentityPoolConfigurationException;
|
|
629
|
+
exports.InvalidIdentityPoolConfigurationException$ = InvalidIdentityPoolConfigurationException$;
|
|
630
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
631
|
+
exports.InvalidParameterException$ = InvalidParameterException$;
|
|
632
|
+
exports.LimitExceededException = LimitExceededException;
|
|
633
|
+
exports.LimitExceededException$ = LimitExceededException$;
|
|
634
|
+
exports.NotAuthorizedException = NotAuthorizedException;
|
|
635
|
+
exports.NotAuthorizedException$ = NotAuthorizedException$;
|
|
636
|
+
exports.ResourceConflictException = ResourceConflictException;
|
|
637
|
+
exports.ResourceConflictException$ = ResourceConflictException$;
|
|
638
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
639
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
640
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
641
|
+
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
642
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|