@aws-sdk/client-cognito-identity 3.956.0 → 3.958.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/README.md CHANGED
@@ -7,7 +7,6 @@
7
7
  AWS SDK for JavaScript CognitoIdentity Client for Node.js, Browser and React Native.
8
8
 
9
9
  <fullname>Amazon Cognito Federated Identities</fullname>
10
-
11
10
  <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
12
11
  credentials to mobile devices and other untrusted environments. It uniquely identifies a
13
12
  device and supplies the user with a consistent identity over the lifetime of an
@@ -24,10 +23,8 @@ Flow</a>.</p>
24
23
  Identities</a>.</p>
25
24
 
26
25
  ## Installing
27
-
28
26
  To install this package, simply type add or install @aws-sdk/client-cognito-identity
29
27
  using your favorite package manager:
30
-
31
28
  - `npm install @aws-sdk/client-cognito-identity`
32
29
  - `yarn add @aws-sdk/client-cognito-identity`
33
30
  - `pnpm add @aws-sdk/client-cognito-identity`
@@ -63,9 +60,7 @@ To send a request, you:
63
60
  // a client can be shared by different commands.
64
61
  const client = new CognitoIdentityClient({ region: "REGION" });
65
62
 
66
- const params = {
67
- /** input parameters */
68
- };
63
+ const params = { /** input parameters */ };
69
64
  const command = new ListIdentityPoolsCommand(params);
70
65
  ```
71
66
 
@@ -224,7 +219,6 @@ CreateIdentityPool
224
219
  </summary>
225
220
 
226
221
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/CreateIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/CreateIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/CreateIdentityPoolCommandOutput/)
227
-
228
222
  </details>
229
223
  <details>
230
224
  <summary>
@@ -232,7 +226,6 @@ DeleteIdentities
232
226
  </summary>
233
227
 
234
228
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DeleteIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentitiesCommandOutput/)
235
-
236
229
  </details>
237
230
  <details>
238
231
  <summary>
@@ -240,7 +233,6 @@ DeleteIdentityPool
240
233
  </summary>
241
234
 
242
235
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DeleteIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentityPoolCommandOutput/)
243
-
244
236
  </details>
245
237
  <details>
246
238
  <summary>
@@ -248,7 +240,6 @@ DescribeIdentity
248
240
  </summary>
249
241
 
250
242
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DescribeIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityCommandOutput/)
251
-
252
243
  </details>
253
244
  <details>
254
245
  <summary>
@@ -256,7 +247,6 @@ DescribeIdentityPool
256
247
  </summary>
257
248
 
258
249
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DescribeIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityPoolCommandOutput/)
259
-
260
250
  </details>
261
251
  <details>
262
252
  <summary>
@@ -264,7 +254,6 @@ GetCredentialsForIdentity
264
254
  </summary>
265
255
 
266
256
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetCredentialsForIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetCredentialsForIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetCredentialsForIdentityCommandOutput/)
267
-
268
257
  </details>
269
258
  <details>
270
259
  <summary>
@@ -272,7 +261,6 @@ GetId
272
261
  </summary>
273
262
 
274
263
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetIdCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdCommandOutput/)
275
-
276
264
  </details>
277
265
  <details>
278
266
  <summary>
@@ -280,7 +268,6 @@ GetIdentityPoolRoles
280
268
  </summary>
281
269
 
282
270
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetIdentityPoolRolesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdentityPoolRolesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdentityPoolRolesCommandOutput/)
283
-
284
271
  </details>
285
272
  <details>
286
273
  <summary>
@@ -288,7 +275,6 @@ GetOpenIdToken
288
275
  </summary>
289
276
 
290
277
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetOpenIdTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenCommandOutput/)
291
-
292
278
  </details>
293
279
  <details>
294
280
  <summary>
@@ -296,7 +282,6 @@ GetOpenIdTokenForDeveloperIdentity
296
282
  </summary>
297
283
 
298
284
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetOpenIdTokenForDeveloperIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenForDeveloperIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenForDeveloperIdentityCommandOutput/)
299
-
300
285
  </details>
301
286
  <details>
302
287
  <summary>
@@ -304,7 +289,6 @@ GetPrincipalTagAttributeMap
304
289
  </summary>
305
290
 
306
291
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetPrincipalTagAttributeMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetPrincipalTagAttributeMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetPrincipalTagAttributeMapCommandOutput/)
307
-
308
292
  </details>
309
293
  <details>
310
294
  <summary>
@@ -312,7 +296,6 @@ ListIdentities
312
296
  </summary>
313
297
 
314
298
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/ListIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentitiesCommandOutput/)
315
-
316
299
  </details>
317
300
  <details>
318
301
  <summary>
@@ -320,7 +303,6 @@ ListIdentityPools
320
303
  </summary>
321
304
 
322
305
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/ListIdentityPoolsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentityPoolsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentityPoolsCommandOutput/)
323
-
324
306
  </details>
325
307
  <details>
326
308
  <summary>
@@ -328,7 +310,6 @@ ListTagsForResource
328
310
  </summary>
329
311
 
330
312
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListTagsForResourceCommandOutput/)
331
-
332
313
  </details>
333
314
  <details>
334
315
  <summary>
@@ -336,7 +317,6 @@ LookupDeveloperIdentity
336
317
  </summary>
337
318
 
338
319
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/LookupDeveloperIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/LookupDeveloperIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/LookupDeveloperIdentityCommandOutput/)
339
-
340
320
  </details>
341
321
  <details>
342
322
  <summary>
@@ -344,7 +324,6 @@ MergeDeveloperIdentities
344
324
  </summary>
345
325
 
346
326
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/MergeDeveloperIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/MergeDeveloperIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/MergeDeveloperIdentitiesCommandOutput/)
347
-
348
327
  </details>
349
328
  <details>
350
329
  <summary>
@@ -352,7 +331,6 @@ SetIdentityPoolRoles
352
331
  </summary>
353
332
 
354
333
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/SetIdentityPoolRolesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetIdentityPoolRolesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetIdentityPoolRolesCommandOutput/)
355
-
356
334
  </details>
357
335
  <details>
358
336
  <summary>
@@ -360,7 +338,6 @@ SetPrincipalTagAttributeMap
360
338
  </summary>
361
339
 
362
340
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/SetPrincipalTagAttributeMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetPrincipalTagAttributeMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetPrincipalTagAttributeMapCommandOutput/)
363
-
364
341
  </details>
365
342
  <details>
366
343
  <summary>
@@ -368,7 +345,6 @@ TagResource
368
345
  </summary>
369
346
 
370
347
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/TagResourceCommandOutput/)
371
-
372
348
  </details>
373
349
  <details>
374
350
  <summary>
@@ -376,7 +352,6 @@ UnlinkDeveloperIdentity
376
352
  </summary>
377
353
 
378
354
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UnlinkDeveloperIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkDeveloperIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkDeveloperIdentityCommandOutput/)
379
-
380
355
  </details>
381
356
  <details>
382
357
  <summary>
@@ -384,7 +359,6 @@ UnlinkIdentity
384
359
  </summary>
385
360
 
386
361
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UnlinkIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkIdentityCommandOutput/)
387
-
388
362
  </details>
389
363
  <details>
390
364
  <summary>
@@ -392,7 +366,6 @@ UntagResource
392
366
  </summary>
393
367
 
394
368
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UntagResourceCommandOutput/)
395
-
396
369
  </details>
397
370
  <details>
398
371
  <summary>
@@ -400,5 +373,4 @@ UpdateIdentityPool
400
373
  </summary>
401
374
 
402
375
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UpdateIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UpdateIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UpdateIdentityPoolCommandOutput/)
403
-
404
376
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultCognitoIdentityHttpAuthSchemeParametersProvider = defaultCognitoIdentityHttpAuthSchemeParametersProvider;
@@ -36,22 +35,30 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
36
35
  const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
37
36
  const options = [];
38
37
  switch (authParameters.operation) {
39
- case "GetCredentialsForIdentity": {
40
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
41
- break;
42
- }
43
- case "GetId": {
44
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
45
- break;
46
- }
47
- case "GetOpenIdToken": {
48
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
49
- break;
50
- }
51
- case "UnlinkIdentity": {
52
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
53
- break;
54
- }
38
+ case "GetCredentialsForIdentity":
39
+ {
40
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
41
+ break;
42
+ }
43
+ ;
44
+ case "GetId":
45
+ {
46
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
47
+ break;
48
+ }
49
+ ;
50
+ case "GetOpenIdToken":
51
+ {
52
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
53
+ break;
54
+ }
55
+ ;
56
+ case "UnlinkIdentity":
57
+ {
58
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
59
+ break;
60
+ }
61
+ ;
55
62
  default: {
56
63
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
57
64
  }