@aws-sdk/client-cognito-identity-provider 3.1075.0 → 3.1077.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.
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,6 +1,7 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
3
3
  import { NoAuthSigner } from "@smithy/core";
4
+ import { Sha256 } from "@smithy/core/checksum";
4
5
  import { NoOpLogger } from "@smithy/core/client";
5
6
  import { parseUrl } from "@smithy/core/protocols";
6
7
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -38,6 +39,7 @@ export const getRuntimeConfig = (config) => {
38
39
  serviceTarget: "AWSCognitoIdentityProviderService",
39
40
  },
40
41
  serviceId: config?.serviceId ?? "Cognito Identity Provider",
42
+ sha256: config?.sha256 ?? Sha256,
41
43
  urlParser: config?.urlParser ?? parseUrl,
42
44
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
43
45
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
16
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
19
  cacheMiddleware?: boolean | undefined;
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -14,8 +14,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
- sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
20
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProvi
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_1Protocol;
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
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;
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
32
32
  defaultNamespace?: string;
33
33
  };
34
34
  serviceId: string;
35
+ sha256: import("@smithy/types").HashConstructor;
35
36
  urlParser: import("@smithy/types").UrlParser;
36
37
  utf8Decoder: import("@smithy/types").Decoder;
37
38
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -22,8 +22,13 @@ export declare const getRuntimeConfig: (
22
22
  | import("@smithy/core/protocols").HttpHandler<any>
23
23
  | RequestHandler;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
- sha256: import("@smithy/types").HashConstructor;
26
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
27
32
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
28
33
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
34
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -38,6 +43,7 @@ export declare const getRuntimeConfig: (
38
43
  [setting: string]: unknown;
39
44
  };
40
45
  apiVersion: string;
46
+ sha256: import("@smithy/types").HashConstructor;
41
47
  urlParser: import("@smithy/types").UrlParser;
42
48
  base64Decoder: import("@smithy/types").Decoder;
43
49
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -23,8 +23,13 @@ export declare const getRuntimeConfig: (
23
23
  | RequestHandler
24
24
  | import("@smithy/core/protocols").HttpHandler<any>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
- sha256: import("@smithy/types").HashConstructor;
27
- streamCollector: import("@smithy/types").StreamCollector;
26
+ streamCollector: (
27
+ stream:
28
+ | import("stream").Readable
29
+ | import("stream/web").ReadableStream
30
+ | ReadableStream
31
+ | Blob
32
+ ) => Promise<Uint8Array>;
28
33
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
34
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
35
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -38,6 +43,7 @@ export declare const getRuntimeConfig: (
38
43
  [setting: string]: unknown;
39
44
  };
40
45
  apiVersion: string;
46
+ sha256: import("@smithy/types").HashConstructor;
41
47
  urlParser: import("@smithy/types").UrlParser;
42
48
  base64Decoder: import("@smithy/types").Decoder;
43
49
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -3,7 +3,6 @@ export declare const getRuntimeConfig: (
3
3
  config: CognitoIdentityProviderClientConfig
4
4
  ) => {
5
5
  runtime: string;
6
- sha256: import("@smithy/types").HashConstructor;
7
6
  requestHandler:
8
7
  | import("@smithy/types").NodeHttpHandlerOptions
9
8
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -20,9 +19,16 @@ export declare const getRuntimeConfig: (
20
19
  [setting: string]: unknown;
21
20
  };
22
21
  apiVersion: string;
22
+ sha256: import("@smithy/types").HashConstructor;
23
23
  urlParser: import("@smithy/types").UrlParser;
24
24
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
25
- streamCollector: import("@smithy/types").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;
@@ -54,6 +54,7 @@ export declare const getRuntimeConfig: (
54
54
  defaultNamespace?: string;
55
55
  };
56
56
  serviceId: string;
57
+ sha256: import("@smithy/types").HashConstructor;
57
58
  urlParser: import("@smithy/types").UrlParser;
58
59
  utf8Decoder: import("@smithy/types").Decoder;
59
60
  utf8Encoder: (input: Uint8Array | string) => string;
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.1075.0",
4
+ "version": "3.1077.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",
@@ -19,15 +19,13 @@
19
19
  "module": "./dist-es/index.js",
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@aws-crypto/sha256-browser": "5.2.0",
23
- "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.23",
25
- "@aws-sdk/credential-provider-node": "^3.972.58",
26
- "@aws-sdk/types": "^3.973.13",
27
- "@smithy/core": "^3.24.6",
28
- "@smithy/fetch-http-handler": "^5.4.6",
29
- "@smithy/node-http-handler": "^4.7.6",
30
- "@smithy/types": "^4.14.3",
22
+ "@aws-sdk/core": "^3.974.25",
23
+ "@aws-sdk/credential-provider-node": "^3.972.60",
24
+ "@aws-sdk/types": "^3.973.14",
25
+ "@smithy/core": "^3.28.0",
26
+ "@smithy/fetch-http-handler": "^5.6.1",
27
+ "@smithy/node-http-handler": "^4.9.1",
28
+ "@smithy/types": "^4.15.0",
31
29
  "tslib": "^2.6.2"
32
30
  },
33
31
  "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
- };
@@ -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
- };