@aws-sdk/client-cognito-identity-provider 3.1074.0 → 3.1076.0
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/index.js +5059 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -237
- package/dist-cjs/endpoint/bdd.js +0 -61
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/CognitoIdentityProviderServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -699
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -45
- package/dist-cjs/schemas/schemas_0.js +0 -3835
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (
|
|
|
23
23
|
| RequestHandler;
|
|
24
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
25
|
sha256: import("@smithy/types").HashConstructor;
|
|
26
|
-
streamCollector:
|
|
26
|
+
streamCollector: (
|
|
27
|
+
stream:
|
|
28
|
+
| import("stream").Readable
|
|
29
|
+
| import("stream/web").ReadableStream
|
|
30
|
+
| ReadableStream
|
|
31
|
+
| Blob
|
|
32
|
+
) => Promise<Uint8Array>;
|
|
27
33
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
28
34
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
29
35
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -24,7 +24,13 @@ export declare const getRuntimeConfig: (
|
|
|
24
24
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
25
25
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
sha256: import("@smithy/types").HashConstructor;
|
|
27
|
-
streamCollector:
|
|
27
|
+
streamCollector: (
|
|
28
|
+
stream:
|
|
29
|
+
| import("stream").Readable
|
|
30
|
+
| import("stream/web").ReadableStream
|
|
31
|
+
| ReadableStream
|
|
32
|
+
| Blob
|
|
33
|
+
) => Promise<Uint8Array>;
|
|
28
34
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
35
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
30
36
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (
|
|
|
22
22
|
apiVersion: string;
|
|
23
23
|
urlParser: import("@smithy/types").UrlParser;
|
|
24
24
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
base64Decoder: import("@smithy/types").Decoder;
|
|
27
33
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
28
34
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity-provider",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1076.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultCognitoIdentityProviderHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "cognito-idp",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
27
|
-
return {
|
|
28
|
-
schemeId: "smithy.api#noAuth",
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
exports.defaultCognitoIdentityProviderHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
-
const options = [];
|
|
33
|
-
switch (authParameters.operation) {
|
|
34
|
-
case "AssociateSoftwareToken":
|
|
35
|
-
{
|
|
36
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
;
|
|
40
|
-
case "ChangePassword":
|
|
41
|
-
{
|
|
42
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
;
|
|
46
|
-
case "CompleteWebAuthnRegistration":
|
|
47
|
-
{
|
|
48
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
;
|
|
52
|
-
case "ConfirmDevice":
|
|
53
|
-
{
|
|
54
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
;
|
|
58
|
-
case "ConfirmForgotPassword":
|
|
59
|
-
{
|
|
60
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
;
|
|
64
|
-
case "ConfirmSignUp":
|
|
65
|
-
{
|
|
66
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
;
|
|
70
|
-
case "DeleteUser":
|
|
71
|
-
{
|
|
72
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
;
|
|
76
|
-
case "DeleteUserAttributes":
|
|
77
|
-
{
|
|
78
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
;
|
|
82
|
-
case "DeleteWebAuthnCredential":
|
|
83
|
-
{
|
|
84
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
;
|
|
88
|
-
case "ForgetDevice":
|
|
89
|
-
{
|
|
90
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
;
|
|
94
|
-
case "ForgotPassword":
|
|
95
|
-
{
|
|
96
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
;
|
|
100
|
-
case "GetDevice":
|
|
101
|
-
{
|
|
102
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
;
|
|
106
|
-
case "GetTokensFromRefreshToken":
|
|
107
|
-
{
|
|
108
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
;
|
|
112
|
-
case "GetUser":
|
|
113
|
-
{
|
|
114
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
;
|
|
118
|
-
case "GetUserAttributeVerificationCode":
|
|
119
|
-
{
|
|
120
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
;
|
|
124
|
-
case "GetUserAuthFactors":
|
|
125
|
-
{
|
|
126
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
;
|
|
130
|
-
case "GlobalSignOut":
|
|
131
|
-
{
|
|
132
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
;
|
|
136
|
-
case "InitiateAuth":
|
|
137
|
-
{
|
|
138
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
;
|
|
142
|
-
case "ListDevices":
|
|
143
|
-
{
|
|
144
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
;
|
|
148
|
-
case "ListWebAuthnCredentials":
|
|
149
|
-
{
|
|
150
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
;
|
|
154
|
-
case "ResendConfirmationCode":
|
|
155
|
-
{
|
|
156
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
;
|
|
160
|
-
case "RespondToAuthChallenge":
|
|
161
|
-
{
|
|
162
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
;
|
|
166
|
-
case "RevokeToken":
|
|
167
|
-
{
|
|
168
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
;
|
|
172
|
-
case "SetUserMFAPreference":
|
|
173
|
-
{
|
|
174
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
;
|
|
178
|
-
case "SetUserSettings":
|
|
179
|
-
{
|
|
180
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
;
|
|
184
|
-
case "SignUp":
|
|
185
|
-
{
|
|
186
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
;
|
|
190
|
-
case "StartWebAuthnRegistration":
|
|
191
|
-
{
|
|
192
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
;
|
|
196
|
-
case "UpdateAuthEventFeedback":
|
|
197
|
-
{
|
|
198
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
;
|
|
202
|
-
case "UpdateDeviceStatus":
|
|
203
|
-
{
|
|
204
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
;
|
|
208
|
-
case "UpdateUserAttributes":
|
|
209
|
-
{
|
|
210
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
;
|
|
214
|
-
case "VerifySoftwareToken":
|
|
215
|
-
{
|
|
216
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
;
|
|
220
|
-
case "VerifyUserAttribute":
|
|
221
|
-
{
|
|
222
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
;
|
|
226
|
-
default: {
|
|
227
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return options;
|
|
231
|
-
};
|
|
232
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
233
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
234
|
-
return Object.assign(config_0, {
|
|
235
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
236
|
-
});
|
|
237
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
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];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
11
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
13
|
-
[g, [{ fn: f, argv: [i, "name"] }, "aws"]],
|
|
14
|
-
[g, [j, "us-east-1"]],
|
|
15
|
-
[g, [j, "us-east-2"]],
|
|
16
|
-
[g, [j, "us-west-1"]],
|
|
17
|
-
[g, [j, "us-west-2"]]
|
|
18
|
-
],
|
|
19
|
-
results: [
|
|
20
|
-
[a],
|
|
21
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
22
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
23
|
-
[h, k],
|
|
24
|
-
["https://cognito-idp-fips.us-east-1.amazonaws.com", k],
|
|
25
|
-
["https://cognito-idp-fips.us-east-2.amazonaws.com", k],
|
|
26
|
-
["https://cognito-idp-fips.us-west-1.amazonaws.com", k],
|
|
27
|
-
["https://cognito-idp-fips.us-west-2.amazonaws.com", k],
|
|
28
|
-
["https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
29
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
30
|
-
["https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
31
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
32
|
-
["https://cognito-idp.{Region}.amazonaws.com", k],
|
|
33
|
-
["https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
34
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
35
|
-
["https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
36
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
const root = 2;
|
|
40
|
-
const r = 100_000_000;
|
|
41
|
-
const nodes = new Int32Array([
|
|
42
|
-
-1, 1, -1,
|
|
43
|
-
0, 17, 3,
|
|
44
|
-
1, 4, r + 16,
|
|
45
|
-
2, 5, r + 16,
|
|
46
|
-
3, 9, 6,
|
|
47
|
-
5, 7, r + 15,
|
|
48
|
-
6, 8, r + 14,
|
|
49
|
-
7, r + 12, r + 13,
|
|
50
|
-
4, 11, 10,
|
|
51
|
-
5, r + 9, r + 11,
|
|
52
|
-
5, 12, r + 10,
|
|
53
|
-
6, 13, r + 9,
|
|
54
|
-
8, r + 4, 14,
|
|
55
|
-
9, r + 5, 15,
|
|
56
|
-
10, r + 6, 16,
|
|
57
|
-
11, r + 7, r + 8,
|
|
58
|
-
3, r + 1, 18,
|
|
59
|
-
5, r + 2, r + 3,
|
|
60
|
-
]);
|
|
61
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.CognitoIdentityProviderServiceException = class CognitoIdentityProviderServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, CognitoIdentityProviderServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|