@aws-sdk/client-cognito-identity 3.312.0 → 3.315.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.
@@ -8,161 +8,161 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_CreateIdentityPoolCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("CreateIdentityPool");
10
10
  let body;
11
- body = JSON.stringify(se_CreateIdentityPoolInput(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_CreateIdentityPoolCommand = se_CreateIdentityPoolCommand;
15
15
  const se_DeleteIdentitiesCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("DeleteIdentities");
17
17
  let body;
18
- body = JSON.stringify(se_DeleteIdentitiesInput(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_DeleteIdentitiesCommand = se_DeleteIdentitiesCommand;
22
22
  const se_DeleteIdentityPoolCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("DeleteIdentityPool");
24
24
  let body;
25
- body = JSON.stringify(se_DeleteIdentityPoolInput(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_DeleteIdentityPoolCommand = se_DeleteIdentityPoolCommand;
29
29
  const se_DescribeIdentityCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DescribeIdentity");
31
31
  let body;
32
- body = JSON.stringify(se_DescribeIdentityInput(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  exports.se_DescribeIdentityCommand = se_DescribeIdentityCommand;
36
36
  const se_DescribeIdentityPoolCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DescribeIdentityPool");
38
38
  let body;
39
- body = JSON.stringify(se_DescribeIdentityPoolInput(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_DescribeIdentityPoolCommand = se_DescribeIdentityPoolCommand;
43
43
  const se_GetCredentialsForIdentityCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("GetCredentialsForIdentity");
45
45
  let body;
46
- body = JSON.stringify(se_GetCredentialsForIdentityInput(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_GetCredentialsForIdentityCommand = se_GetCredentialsForIdentityCommand;
50
50
  const se_GetIdCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("GetId");
52
52
  let body;
53
- body = JSON.stringify(se_GetIdInput(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_GetIdCommand = se_GetIdCommand;
57
57
  const se_GetIdentityPoolRolesCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("GetIdentityPoolRoles");
59
59
  let body;
60
- body = JSON.stringify(se_GetIdentityPoolRolesInput(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_GetIdentityPoolRolesCommand = se_GetIdentityPoolRolesCommand;
64
64
  const se_GetOpenIdTokenCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("GetOpenIdToken");
66
66
  let body;
67
- body = JSON.stringify(se_GetOpenIdTokenInput(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_GetOpenIdTokenCommand = se_GetOpenIdTokenCommand;
71
71
  const se_GetOpenIdTokenForDeveloperIdentityCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("GetOpenIdTokenForDeveloperIdentity");
73
73
  let body;
74
- body = JSON.stringify(se_GetOpenIdTokenForDeveloperIdentityInput(input, context));
74
+ body = JSON.stringify((0, smithy_client_1._json)(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  exports.se_GetOpenIdTokenForDeveloperIdentityCommand = se_GetOpenIdTokenForDeveloperIdentityCommand;
78
78
  const se_GetPrincipalTagAttributeMapCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("GetPrincipalTagAttributeMap");
80
80
  let body;
81
- body = JSON.stringify(se_GetPrincipalTagAttributeMapInput(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_GetPrincipalTagAttributeMapCommand = se_GetPrincipalTagAttributeMapCommand;
85
85
  const se_ListIdentitiesCommand = async (input, context) => {
86
86
  const headers = sharedHeaders("ListIdentities");
87
87
  let body;
88
- body = JSON.stringify(se_ListIdentitiesInput(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
89
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
90
  };
91
91
  exports.se_ListIdentitiesCommand = se_ListIdentitiesCommand;
92
92
  const se_ListIdentityPoolsCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("ListIdentityPools");
94
94
  let body;
95
- body = JSON.stringify(se_ListIdentityPoolsInput(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_ListIdentityPoolsCommand = se_ListIdentityPoolsCommand;
99
99
  const se_ListTagsForResourceCommand = async (input, context) => {
100
100
  const headers = sharedHeaders("ListTagsForResource");
101
101
  let body;
102
- body = JSON.stringify(se_ListTagsForResourceInput(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
103
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
104
  };
105
105
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
106
106
  const se_LookupDeveloperIdentityCommand = async (input, context) => {
107
107
  const headers = sharedHeaders("LookupDeveloperIdentity");
108
108
  let body;
109
- body = JSON.stringify(se_LookupDeveloperIdentityInput(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
110
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
111
  };
112
112
  exports.se_LookupDeveloperIdentityCommand = se_LookupDeveloperIdentityCommand;
113
113
  const se_MergeDeveloperIdentitiesCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("MergeDeveloperIdentities");
115
115
  let body;
116
- body = JSON.stringify(se_MergeDeveloperIdentitiesInput(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  exports.se_MergeDeveloperIdentitiesCommand = se_MergeDeveloperIdentitiesCommand;
120
120
  const se_SetIdentityPoolRolesCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("SetIdentityPoolRoles");
122
122
  let body;
123
- body = JSON.stringify(se_SetIdentityPoolRolesInput(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  exports.se_SetIdentityPoolRolesCommand = se_SetIdentityPoolRolesCommand;
127
127
  const se_SetPrincipalTagAttributeMapCommand = async (input, context) => {
128
128
  const headers = sharedHeaders("SetPrincipalTagAttributeMap");
129
129
  let body;
130
- body = JSON.stringify(se_SetPrincipalTagAttributeMapInput(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
131
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
132
  };
133
133
  exports.se_SetPrincipalTagAttributeMapCommand = se_SetPrincipalTagAttributeMapCommand;
134
134
  const se_TagResourceCommand = async (input, context) => {
135
135
  const headers = sharedHeaders("TagResource");
136
136
  let body;
137
- body = JSON.stringify(se_TagResourceInput(input, context));
137
+ body = JSON.stringify((0, smithy_client_1._json)(input));
138
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
139
  };
140
140
  exports.se_TagResourceCommand = se_TagResourceCommand;
141
141
  const se_UnlinkDeveloperIdentityCommand = async (input, context) => {
142
142
  const headers = sharedHeaders("UnlinkDeveloperIdentity");
143
143
  let body;
144
- body = JSON.stringify(se_UnlinkDeveloperIdentityInput(input, context));
144
+ body = JSON.stringify((0, smithy_client_1._json)(input));
145
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
146
  };
147
147
  exports.se_UnlinkDeveloperIdentityCommand = se_UnlinkDeveloperIdentityCommand;
148
148
  const se_UnlinkIdentityCommand = async (input, context) => {
149
149
  const headers = sharedHeaders("UnlinkIdentity");
150
150
  let body;
151
- body = JSON.stringify(se_UnlinkIdentityInput(input, context));
151
+ body = JSON.stringify((0, smithy_client_1._json)(input));
152
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
153
153
  };
154
154
  exports.se_UnlinkIdentityCommand = se_UnlinkIdentityCommand;
155
155
  const se_UntagResourceCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("UntagResource");
157
157
  let body;
158
- body = JSON.stringify(se_UntagResourceInput(input, context));
158
+ body = JSON.stringify((0, smithy_client_1._json)(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
162
162
  const se_UpdateIdentityPoolCommand = async (input, context) => {
163
163
  const headers = sharedHeaders("UpdateIdentityPool");
164
164
  let body;
165
- body = JSON.stringify(se_IdentityPool(input, context));
165
+ body = JSON.stringify((0, smithy_client_1._json)(input));
166
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
167
  };
168
168
  exports.se_UpdateIdentityPoolCommand = se_UpdateIdentityPoolCommand;
@@ -172,12 +172,12 @@ const de_CreateIdentityPoolCommand = async (output, context) => {
172
172
  }
173
173
  const data = await parseBody(output.body, context);
174
174
  let contents = {};
175
- contents = de_IdentityPool(data, context);
175
+ contents = (0, smithy_client_1._json)(data);
176
176
  const response = {
177
177
  $metadata: deserializeMetadata(output),
178
178
  ...contents,
179
179
  };
180
- return Promise.resolve(response);
180
+ return response;
181
181
  };
182
182
  exports.de_CreateIdentityPoolCommand = de_CreateIdentityPoolCommand;
183
183
  const de_CreateIdentityPoolCommandError = async (output, context) => {
@@ -207,10 +207,9 @@ const de_CreateIdentityPoolCommandError = async (output, context) => {
207
207
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
208
208
  default:
209
209
  const parsedBody = parsedOutput.body;
210
- (0, smithy_client_1.throwDefaultError)({
210
+ return throwDefaultError({
211
211
  output,
212
212
  parsedBody,
213
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
214
213
  errorCode,
215
214
  });
216
215
  }
@@ -221,12 +220,12 @@ const de_DeleteIdentitiesCommand = async (output, context) => {
221
220
  }
222
221
  const data = await parseBody(output.body, context);
223
222
  let contents = {};
224
- contents = de_DeleteIdentitiesResponse(data, context);
223
+ contents = (0, smithy_client_1._json)(data);
225
224
  const response = {
226
225
  $metadata: deserializeMetadata(output),
227
226
  ...contents,
228
227
  };
229
- return Promise.resolve(response);
228
+ return response;
230
229
  };
231
230
  exports.de_DeleteIdentitiesCommand = de_DeleteIdentitiesCommand;
232
231
  const de_DeleteIdentitiesCommandError = async (output, context) => {
@@ -247,10 +246,9 @@ const de_DeleteIdentitiesCommandError = async (output, context) => {
247
246
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
248
247
  default:
249
248
  const parsedBody = parsedOutput.body;
250
- (0, smithy_client_1.throwDefaultError)({
249
+ return throwDefaultError({
251
250
  output,
252
251
  parsedBody,
253
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
254
252
  errorCode,
255
253
  });
256
254
  }
@@ -263,7 +261,7 @@ const de_DeleteIdentityPoolCommand = async (output, context) => {
263
261
  const response = {
264
262
  $metadata: deserializeMetadata(output),
265
263
  };
266
- return Promise.resolve(response);
264
+ return response;
267
265
  };
268
266
  exports.de_DeleteIdentityPoolCommand = de_DeleteIdentityPoolCommand;
269
267
  const de_DeleteIdentityPoolCommandError = async (output, context) => {
@@ -290,10 +288,9 @@ const de_DeleteIdentityPoolCommandError = async (output, context) => {
290
288
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
291
289
  default:
292
290
  const parsedBody = parsedOutput.body;
293
- (0, smithy_client_1.throwDefaultError)({
291
+ return throwDefaultError({
294
292
  output,
295
293
  parsedBody,
296
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
297
294
  errorCode,
298
295
  });
299
296
  }
@@ -309,7 +306,7 @@ const de_DescribeIdentityCommand = async (output, context) => {
309
306
  $metadata: deserializeMetadata(output),
310
307
  ...contents,
311
308
  };
312
- return Promise.resolve(response);
309
+ return response;
313
310
  };
314
311
  exports.de_DescribeIdentityCommand = de_DescribeIdentityCommand;
315
312
  const de_DescribeIdentityCommandError = async (output, context) => {
@@ -336,10 +333,9 @@ const de_DescribeIdentityCommandError = async (output, context) => {
336
333
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
337
334
  default:
338
335
  const parsedBody = parsedOutput.body;
339
- (0, smithy_client_1.throwDefaultError)({
336
+ return throwDefaultError({
340
337
  output,
341
338
  parsedBody,
342
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
343
339
  errorCode,
344
340
  });
345
341
  }
@@ -350,12 +346,12 @@ const de_DescribeIdentityPoolCommand = async (output, context) => {
350
346
  }
351
347
  const data = await parseBody(output.body, context);
352
348
  let contents = {};
353
- contents = de_IdentityPool(data, context);
349
+ contents = (0, smithy_client_1._json)(data);
354
350
  const response = {
355
351
  $metadata: deserializeMetadata(output),
356
352
  ...contents,
357
353
  };
358
- return Promise.resolve(response);
354
+ return response;
359
355
  };
360
356
  exports.de_DescribeIdentityPoolCommand = de_DescribeIdentityPoolCommand;
361
357
  const de_DescribeIdentityPoolCommandError = async (output, context) => {
@@ -382,10 +378,9 @@ const de_DescribeIdentityPoolCommandError = async (output, context) => {
382
378
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
383
379
  default:
384
380
  const parsedBody = parsedOutput.body;
385
- (0, smithy_client_1.throwDefaultError)({
381
+ return throwDefaultError({
386
382
  output,
387
383
  parsedBody,
388
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
389
384
  errorCode,
390
385
  });
391
386
  }
@@ -401,7 +396,7 @@ const de_GetCredentialsForIdentityCommand = async (output, context) => {
401
396
  $metadata: deserializeMetadata(output),
402
397
  ...contents,
403
398
  };
404
- return Promise.resolve(response);
399
+ return response;
405
400
  };
406
401
  exports.de_GetCredentialsForIdentityCommand = de_GetCredentialsForIdentityCommand;
407
402
  const de_GetCredentialsForIdentityCommandError = async (output, context) => {
@@ -437,10 +432,9 @@ const de_GetCredentialsForIdentityCommandError = async (output, context) => {
437
432
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
438
433
  default:
439
434
  const parsedBody = parsedOutput.body;
440
- (0, smithy_client_1.throwDefaultError)({
435
+ return throwDefaultError({
441
436
  output,
442
437
  parsedBody,
443
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
444
438
  errorCode,
445
439
  });
446
440
  }
@@ -451,12 +445,12 @@ const de_GetIdCommand = async (output, context) => {
451
445
  }
452
446
  const data = await parseBody(output.body, context);
453
447
  let contents = {};
454
- contents = de_GetIdResponse(data, context);
448
+ contents = (0, smithy_client_1._json)(data);
455
449
  const response = {
456
450
  $metadata: deserializeMetadata(output),
457
451
  ...contents,
458
452
  };
459
- return Promise.resolve(response);
453
+ return response;
460
454
  };
461
455
  exports.de_GetIdCommand = de_GetIdCommand;
462
456
  const de_GetIdCommandError = async (output, context) => {
@@ -492,10 +486,9 @@ const de_GetIdCommandError = async (output, context) => {
492
486
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
493
487
  default:
494
488
  const parsedBody = parsedOutput.body;
495
- (0, smithy_client_1.throwDefaultError)({
489
+ return throwDefaultError({
496
490
  output,
497
491
  parsedBody,
498
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
499
492
  errorCode,
500
493
  });
501
494
  }
@@ -506,12 +499,12 @@ const de_GetIdentityPoolRolesCommand = async (output, context) => {
506
499
  }
507
500
  const data = await parseBody(output.body, context);
508
501
  let contents = {};
509
- contents = de_GetIdentityPoolRolesResponse(data, context);
502
+ contents = (0, smithy_client_1._json)(data);
510
503
  const response = {
511
504
  $metadata: deserializeMetadata(output),
512
505
  ...contents,
513
506
  };
514
- return Promise.resolve(response);
507
+ return response;
515
508
  };
516
509
  exports.de_GetIdentityPoolRolesCommand = de_GetIdentityPoolRolesCommand;
517
510
  const de_GetIdentityPoolRolesCommandError = async (output, context) => {
@@ -541,10 +534,9 @@ const de_GetIdentityPoolRolesCommandError = async (output, context) => {
541
534
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
542
535
  default:
543
536
  const parsedBody = parsedOutput.body;
544
- (0, smithy_client_1.throwDefaultError)({
537
+ return throwDefaultError({
545
538
  output,
546
539
  parsedBody,
547
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
548
540
  errorCode,
549
541
  });
550
542
  }
@@ -555,12 +547,12 @@ const de_GetOpenIdTokenCommand = async (output, context) => {
555
547
  }
556
548
  const data = await parseBody(output.body, context);
557
549
  let contents = {};
558
- contents = de_GetOpenIdTokenResponse(data, context);
550
+ contents = (0, smithy_client_1._json)(data);
559
551
  const response = {
560
552
  $metadata: deserializeMetadata(output),
561
553
  ...contents,
562
554
  };
563
- return Promise.resolve(response);
555
+ return response;
564
556
  };
565
557
  exports.de_GetOpenIdTokenCommand = de_GetOpenIdTokenCommand;
566
558
  const de_GetOpenIdTokenCommandError = async (output, context) => {
@@ -593,10 +585,9 @@ const de_GetOpenIdTokenCommandError = async (output, context) => {
593
585
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
594
586
  default:
595
587
  const parsedBody = parsedOutput.body;
596
- (0, smithy_client_1.throwDefaultError)({
588
+ return throwDefaultError({
597
589
  output,
598
590
  parsedBody,
599
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
600
591
  errorCode,
601
592
  });
602
593
  }
@@ -607,12 +598,12 @@ const de_GetOpenIdTokenForDeveloperIdentityCommand = async (output, context) =>
607
598
  }
608
599
  const data = await parseBody(output.body, context);
609
600
  let contents = {};
610
- contents = de_GetOpenIdTokenForDeveloperIdentityResponse(data, context);
601
+ contents = (0, smithy_client_1._json)(data);
611
602
  const response = {
612
603
  $metadata: deserializeMetadata(output),
613
604
  ...contents,
614
605
  };
615
- return Promise.resolve(response);
606
+ return response;
616
607
  };
617
608
  exports.de_GetOpenIdTokenForDeveloperIdentityCommand = de_GetOpenIdTokenForDeveloperIdentityCommand;
618
609
  const de_GetOpenIdTokenForDeveloperIdentityCommandError = async (output, context) => {
@@ -645,10 +636,9 @@ const de_GetOpenIdTokenForDeveloperIdentityCommandError = async (output, context
645
636
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
646
637
  default:
647
638
  const parsedBody = parsedOutput.body;
648
- (0, smithy_client_1.throwDefaultError)({
639
+ return throwDefaultError({
649
640
  output,
650
641
  parsedBody,
651
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
652
642
  errorCode,
653
643
  });
654
644
  }
@@ -659,12 +649,12 @@ const de_GetPrincipalTagAttributeMapCommand = async (output, context) => {
659
649
  }
660
650
  const data = await parseBody(output.body, context);
661
651
  let contents = {};
662
- contents = de_GetPrincipalTagAttributeMapResponse(data, context);
652
+ contents = (0, smithy_client_1._json)(data);
663
653
  const response = {
664
654
  $metadata: deserializeMetadata(output),
665
655
  ...contents,
666
656
  };
667
- return Promise.resolve(response);
657
+ return response;
668
658
  };
669
659
  exports.de_GetPrincipalTagAttributeMapCommand = de_GetPrincipalTagAttributeMapCommand;
670
660
  const de_GetPrincipalTagAttributeMapCommandError = async (output, context) => {
@@ -691,10 +681,9 @@ const de_GetPrincipalTagAttributeMapCommandError = async (output, context) => {
691
681
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
692
682
  default:
693
683
  const parsedBody = parsedOutput.body;
694
- (0, smithy_client_1.throwDefaultError)({
684
+ return throwDefaultError({
695
685
  output,
696
686
  parsedBody,
697
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
698
687
  errorCode,
699
688
  });
700
689
  }
@@ -710,7 +699,7 @@ const de_ListIdentitiesCommand = async (output, context) => {
710
699
  $metadata: deserializeMetadata(output),
711
700
  ...contents,
712
701
  };
713
- return Promise.resolve(response);
702
+ return response;
714
703
  };
715
704
  exports.de_ListIdentitiesCommand = de_ListIdentitiesCommand;
716
705
  const de_ListIdentitiesCommandError = async (output, context) => {
@@ -737,10 +726,9 @@ const de_ListIdentitiesCommandError = async (output, context) => {
737
726
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
738
727
  default:
739
728
  const parsedBody = parsedOutput.body;
740
- (0, smithy_client_1.throwDefaultError)({
729
+ return throwDefaultError({
741
730
  output,
742
731
  parsedBody,
743
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
744
732
  errorCode,
745
733
  });
746
734
  }
@@ -751,12 +739,12 @@ const de_ListIdentityPoolsCommand = async (output, context) => {
751
739
  }
752
740
  const data = await parseBody(output.body, context);
753
741
  let contents = {};
754
- contents = de_ListIdentityPoolsResponse(data, context);
742
+ contents = (0, smithy_client_1._json)(data);
755
743
  const response = {
756
744
  $metadata: deserializeMetadata(output),
757
745
  ...contents,
758
746
  };
759
- return Promise.resolve(response);
747
+ return response;
760
748
  };
761
749
  exports.de_ListIdentityPoolsCommand = de_ListIdentityPoolsCommand;
762
750
  const de_ListIdentityPoolsCommandError = async (output, context) => {
@@ -783,10 +771,9 @@ const de_ListIdentityPoolsCommandError = async (output, context) => {
783
771
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
784
772
  default:
785
773
  const parsedBody = parsedOutput.body;
786
- (0, smithy_client_1.throwDefaultError)({
774
+ return throwDefaultError({
787
775
  output,
788
776
  parsedBody,
789
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
790
777
  errorCode,
791
778
  });
792
779
  }
@@ -797,12 +784,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
797
784
  }
798
785
  const data = await parseBody(output.body, context);
799
786
  let contents = {};
800
- contents = de_ListTagsForResourceResponse(data, context);
787
+ contents = (0, smithy_client_1._json)(data);
801
788
  const response = {
802
789
  $metadata: deserializeMetadata(output),
803
790
  ...contents,
804
791
  };
805
- return Promise.resolve(response);
792
+ return response;
806
793
  };
807
794
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
808
795
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -829,10 +816,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
829
816
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
830
817
  default:
831
818
  const parsedBody = parsedOutput.body;
832
- (0, smithy_client_1.throwDefaultError)({
819
+ return throwDefaultError({
833
820
  output,
834
821
  parsedBody,
835
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
836
822
  errorCode,
837
823
  });
838
824
  }
@@ -843,12 +829,12 @@ const de_LookupDeveloperIdentityCommand = async (output, context) => {
843
829
  }
844
830
  const data = await parseBody(output.body, context);
845
831
  let contents = {};
846
- contents = de_LookupDeveloperIdentityResponse(data, context);
832
+ contents = (0, smithy_client_1._json)(data);
847
833
  const response = {
848
834
  $metadata: deserializeMetadata(output),
849
835
  ...contents,
850
836
  };
851
- return Promise.resolve(response);
837
+ return response;
852
838
  };
853
839
  exports.de_LookupDeveloperIdentityCommand = de_LookupDeveloperIdentityCommand;
854
840
  const de_LookupDeveloperIdentityCommandError = async (output, context) => {
@@ -878,10 +864,9 @@ const de_LookupDeveloperIdentityCommandError = async (output, context) => {
878
864
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
879
865
  default:
880
866
  const parsedBody = parsedOutput.body;
881
- (0, smithy_client_1.throwDefaultError)({
867
+ return throwDefaultError({
882
868
  output,
883
869
  parsedBody,
884
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
885
870
  errorCode,
886
871
  });
887
872
  }
@@ -892,12 +877,12 @@ const de_MergeDeveloperIdentitiesCommand = async (output, context) => {
892
877
  }
893
878
  const data = await parseBody(output.body, context);
894
879
  let contents = {};
895
- contents = de_MergeDeveloperIdentitiesResponse(data, context);
880
+ contents = (0, smithy_client_1._json)(data);
896
881
  const response = {
897
882
  $metadata: deserializeMetadata(output),
898
883
  ...contents,
899
884
  };
900
- return Promise.resolve(response);
885
+ return response;
901
886
  };
902
887
  exports.de_MergeDeveloperIdentitiesCommand = de_MergeDeveloperIdentitiesCommand;
903
888
  const de_MergeDeveloperIdentitiesCommandError = async (output, context) => {
@@ -927,10 +912,9 @@ const de_MergeDeveloperIdentitiesCommandError = async (output, context) => {
927
912
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
928
913
  default:
929
914
  const parsedBody = parsedOutput.body;
930
- (0, smithy_client_1.throwDefaultError)({
915
+ return throwDefaultError({
931
916
  output,
932
917
  parsedBody,
933
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
934
918
  errorCode,
935
919
  });
936
920
  }
@@ -943,7 +927,7 @@ const de_SetIdentityPoolRolesCommand = async (output, context) => {
943
927
  const response = {
944
928
  $metadata: deserializeMetadata(output),
945
929
  };
946
- return Promise.resolve(response);
930
+ return response;
947
931
  };
948
932
  exports.de_SetIdentityPoolRolesCommand = de_SetIdentityPoolRolesCommand;
949
933
  const de_SetIdentityPoolRolesCommandError = async (output, context) => {
@@ -976,10 +960,9 @@ const de_SetIdentityPoolRolesCommandError = async (output, context) => {
976
960
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
977
961
  default:
978
962
  const parsedBody = parsedOutput.body;
979
- (0, smithy_client_1.throwDefaultError)({
963
+ return throwDefaultError({
980
964
  output,
981
965
  parsedBody,
982
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
983
966
  errorCode,
984
967
  });
985
968
  }
@@ -990,12 +973,12 @@ const de_SetPrincipalTagAttributeMapCommand = async (output, context) => {
990
973
  }
991
974
  const data = await parseBody(output.body, context);
992
975
  let contents = {};
993
- contents = de_SetPrincipalTagAttributeMapResponse(data, context);
976
+ contents = (0, smithy_client_1._json)(data);
994
977
  const response = {
995
978
  $metadata: deserializeMetadata(output),
996
979
  ...contents,
997
980
  };
998
- return Promise.resolve(response);
981
+ return response;
999
982
  };
1000
983
  exports.de_SetPrincipalTagAttributeMapCommand = de_SetPrincipalTagAttributeMapCommand;
1001
984
  const de_SetPrincipalTagAttributeMapCommandError = async (output, context) => {
@@ -1022,10 +1005,9 @@ const de_SetPrincipalTagAttributeMapCommandError = async (output, context) => {
1022
1005
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1023
1006
  default:
1024
1007
  const parsedBody = parsedOutput.body;
1025
- (0, smithy_client_1.throwDefaultError)({
1008
+ return throwDefaultError({
1026
1009
  output,
1027
1010
  parsedBody,
1028
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
1029
1011
  errorCode,
1030
1012
  });
1031
1013
  }
@@ -1036,12 +1018,12 @@ const de_TagResourceCommand = async (output, context) => {
1036
1018
  }
1037
1019
  const data = await parseBody(output.body, context);
1038
1020
  let contents = {};
1039
- contents = de_TagResourceResponse(data, context);
1021
+ contents = (0, smithy_client_1._json)(data);
1040
1022
  const response = {
1041
1023
  $metadata: deserializeMetadata(output),
1042
1024
  ...contents,
1043
1025
  };
1044
- return Promise.resolve(response);
1026
+ return response;
1045
1027
  };
1046
1028
  exports.de_TagResourceCommand = de_TagResourceCommand;
1047
1029
  const de_TagResourceCommandError = async (output, context) => {
@@ -1068,10 +1050,9 @@ const de_TagResourceCommandError = async (output, context) => {
1068
1050
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1069
1051
  default:
1070
1052
  const parsedBody = parsedOutput.body;
1071
- (0, smithy_client_1.throwDefaultError)({
1053
+ return throwDefaultError({
1072
1054
  output,
1073
1055
  parsedBody,
1074
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
1075
1056
  errorCode,
1076
1057
  });
1077
1058
  }
@@ -1084,7 +1065,7 @@ const de_UnlinkDeveloperIdentityCommand = async (output, context) => {
1084
1065
  const response = {
1085
1066
  $metadata: deserializeMetadata(output),
1086
1067
  };
1087
- return Promise.resolve(response);
1068
+ return response;
1088
1069
  };
1089
1070
  exports.de_UnlinkDeveloperIdentityCommand = de_UnlinkDeveloperIdentityCommand;
1090
1071
  const de_UnlinkDeveloperIdentityCommandError = async (output, context) => {
@@ -1114,10 +1095,9 @@ const de_UnlinkDeveloperIdentityCommandError = async (output, context) => {
1114
1095
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1115
1096
  default:
1116
1097
  const parsedBody = parsedOutput.body;
1117
- (0, smithy_client_1.throwDefaultError)({
1098
+ return throwDefaultError({
1118
1099
  output,
1119
1100
  parsedBody,
1120
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
1121
1101
  errorCode,
1122
1102
  });
1123
1103
  }
@@ -1130,7 +1110,7 @@ const de_UnlinkIdentityCommand = async (output, context) => {
1130
1110
  const response = {
1131
1111
  $metadata: deserializeMetadata(output),
1132
1112
  };
1133
- return Promise.resolve(response);
1113
+ return response;
1134
1114
  };
1135
1115
  exports.de_UnlinkIdentityCommand = de_UnlinkIdentityCommand;
1136
1116
  const de_UnlinkIdentityCommandError = async (output, context) => {
@@ -1163,10 +1143,9 @@ const de_UnlinkIdentityCommandError = async (output, context) => {
1163
1143
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1164
1144
  default:
1165
1145
  const parsedBody = parsedOutput.body;
1166
- (0, smithy_client_1.throwDefaultError)({
1146
+ return throwDefaultError({
1167
1147
  output,
1168
1148
  parsedBody,
1169
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
1170
1149
  errorCode,
1171
1150
  });
1172
1151
  }
@@ -1177,12 +1156,12 @@ const de_UntagResourceCommand = async (output, context) => {
1177
1156
  }
1178
1157
  const data = await parseBody(output.body, context);
1179
1158
  let contents = {};
1180
- contents = de_UntagResourceResponse(data, context);
1159
+ contents = (0, smithy_client_1._json)(data);
1181
1160
  const response = {
1182
1161
  $metadata: deserializeMetadata(output),
1183
1162
  ...contents,
1184
1163
  };
1185
- return Promise.resolve(response);
1164
+ return response;
1186
1165
  };
1187
1166
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1188
1167
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1209,10 +1188,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1209
1188
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1210
1189
  default:
1211
1190
  const parsedBody = parsedOutput.body;
1212
- (0, smithy_client_1.throwDefaultError)({
1191
+ return throwDefaultError({
1213
1192
  output,
1214
1193
  parsedBody,
1215
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
1216
1194
  errorCode,
1217
1195
  });
1218
1196
  }
@@ -1223,12 +1201,12 @@ const de_UpdateIdentityPoolCommand = async (output, context) => {
1223
1201
  }
1224
1202
  const data = await parseBody(output.body, context);
1225
1203
  let contents = {};
1226
- contents = de_IdentityPool(data, context);
1204
+ contents = (0, smithy_client_1._json)(data);
1227
1205
  const response = {
1228
1206
  $metadata: deserializeMetadata(output),
1229
1207
  ...contents,
1230
1208
  };
1231
- return Promise.resolve(response);
1209
+ return response;
1232
1210
  };
1233
1211
  exports.de_UpdateIdentityPoolCommand = de_UpdateIdentityPoolCommand;
1234
1212
  const de_UpdateIdentityPoolCommandError = async (output, context) => {
@@ -1264,17 +1242,16 @@ const de_UpdateIdentityPoolCommandError = async (output, context) => {
1264
1242
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1265
1243
  default:
1266
1244
  const parsedBody = parsedOutput.body;
1267
- (0, smithy_client_1.throwDefaultError)({
1245
+ return throwDefaultError({
1268
1246
  output,
1269
1247
  parsedBody,
1270
- exceptionCtor: CognitoIdentityServiceException_1.CognitoIdentityServiceException,
1271
1248
  errorCode,
1272
1249
  });
1273
1250
  }
1274
1251
  };
1275
1252
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1276
1253
  const body = parsedOutput.body;
1277
- const deserialized = de_ConcurrentModificationException(body, context);
1254
+ const deserialized = (0, smithy_client_1._json)(body);
1278
1255
  const exception = new models_0_1.ConcurrentModificationException({
1279
1256
  $metadata: deserializeMetadata(parsedOutput),
1280
1257
  ...deserialized,
@@ -1283,7 +1260,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1283
1260
  };
1284
1261
  const de_DeveloperUserAlreadyRegisteredExceptionRes = async (parsedOutput, context) => {
1285
1262
  const body = parsedOutput.body;
1286
- const deserialized = de_DeveloperUserAlreadyRegisteredException(body, context);
1263
+ const deserialized = (0, smithy_client_1._json)(body);
1287
1264
  const exception = new models_0_1.DeveloperUserAlreadyRegisteredException({
1288
1265
  $metadata: deserializeMetadata(parsedOutput),
1289
1266
  ...deserialized,
@@ -1292,7 +1269,7 @@ const de_DeveloperUserAlreadyRegisteredExceptionRes = async (parsedOutput, conte
1292
1269
  };
1293
1270
  const de_ExternalServiceExceptionRes = async (parsedOutput, context) => {
1294
1271
  const body = parsedOutput.body;
1295
- const deserialized = de_ExternalServiceException(body, context);
1272
+ const deserialized = (0, smithy_client_1._json)(body);
1296
1273
  const exception = new models_0_1.ExternalServiceException({
1297
1274
  $metadata: deserializeMetadata(parsedOutput),
1298
1275
  ...deserialized,
@@ -1301,7 +1278,7 @@ const de_ExternalServiceExceptionRes = async (parsedOutput, context) => {
1301
1278
  };
1302
1279
  const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1303
1280
  const body = parsedOutput.body;
1304
- const deserialized = de_InternalErrorException(body, context);
1281
+ const deserialized = (0, smithy_client_1._json)(body);
1305
1282
  const exception = new models_0_1.InternalErrorException({
1306
1283
  $metadata: deserializeMetadata(parsedOutput),
1307
1284
  ...deserialized,
@@ -1310,7 +1287,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1310
1287
  };
1311
1288
  const de_InvalidIdentityPoolConfigurationExceptionRes = async (parsedOutput, context) => {
1312
1289
  const body = parsedOutput.body;
1313
- const deserialized = de_InvalidIdentityPoolConfigurationException(body, context);
1290
+ const deserialized = (0, smithy_client_1._json)(body);
1314
1291
  const exception = new models_0_1.InvalidIdentityPoolConfigurationException({
1315
1292
  $metadata: deserializeMetadata(parsedOutput),
1316
1293
  ...deserialized,
@@ -1319,7 +1296,7 @@ const de_InvalidIdentityPoolConfigurationExceptionRes = async (parsedOutput, con
1319
1296
  };
1320
1297
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1321
1298
  const body = parsedOutput.body;
1322
- const deserialized = de_InvalidParameterException(body, context);
1299
+ const deserialized = (0, smithy_client_1._json)(body);
1323
1300
  const exception = new models_0_1.InvalidParameterException({
1324
1301
  $metadata: deserializeMetadata(parsedOutput),
1325
1302
  ...deserialized,
@@ -1328,7 +1305,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1328
1305
  };
1329
1306
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1330
1307
  const body = parsedOutput.body;
1331
- const deserialized = de_LimitExceededException(body, context);
1308
+ const deserialized = (0, smithy_client_1._json)(body);
1332
1309
  const exception = new models_0_1.LimitExceededException({
1333
1310
  $metadata: deserializeMetadata(parsedOutput),
1334
1311
  ...deserialized,
@@ -1337,7 +1314,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1337
1314
  };
1338
1315
  const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
1339
1316
  const body = parsedOutput.body;
1340
- const deserialized = de_NotAuthorizedException(body, context);
1317
+ const deserialized = (0, smithy_client_1._json)(body);
1341
1318
  const exception = new models_0_1.NotAuthorizedException({
1342
1319
  $metadata: deserializeMetadata(parsedOutput),
1343
1320
  ...deserialized,
@@ -1346,7 +1323,7 @@ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
1346
1323
  };
1347
1324
  const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
1348
1325
  const body = parsedOutput.body;
1349
- const deserialized = de_ResourceConflictException(body, context);
1326
+ const deserialized = (0, smithy_client_1._json)(body);
1350
1327
  const exception = new models_0_1.ResourceConflictException({
1351
1328
  $metadata: deserializeMetadata(parsedOutput),
1352
1329
  ...deserialized,
@@ -1355,7 +1332,7 @@ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
1355
1332
  };
1356
1333
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1357
1334
  const body = parsedOutput.body;
1358
- const deserialized = de_ResourceNotFoundException(body, context);
1335
+ const deserialized = (0, smithy_client_1._json)(body);
1359
1336
  const exception = new models_0_1.ResourceNotFoundException({
1360
1337
  $metadata: deserializeMetadata(parsedOutput),
1361
1338
  ...deserialized,
@@ -1364,700 +1341,49 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1364
1341
  };
1365
1342
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1366
1343
  const body = parsedOutput.body;
1367
- const deserialized = de_TooManyRequestsException(body, context);
1344
+ const deserialized = (0, smithy_client_1._json)(body);
1368
1345
  const exception = new models_0_1.TooManyRequestsException({
1369
1346
  $metadata: deserializeMetadata(parsedOutput),
1370
1347
  ...deserialized,
1371
1348
  });
1372
1349
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1373
1350
  };
1374
- const se_CognitoIdentityProvider = (input, context) => {
1375
- return {
1376
- ...(input.ClientId != null && { ClientId: input.ClientId }),
1377
- ...(input.ProviderName != null && { ProviderName: input.ProviderName }),
1378
- ...(input.ServerSideTokenCheck != null && { ServerSideTokenCheck: input.ServerSideTokenCheck }),
1379
- };
1380
- };
1381
- const se_CognitoIdentityProviderList = (input, context) => {
1382
- return input
1383
- .filter((e) => e != null)
1384
- .map((entry) => {
1385
- return se_CognitoIdentityProvider(entry, context);
1386
- });
1387
- };
1388
- const se_CreateIdentityPoolInput = (input, context) => {
1389
- return {
1390
- ...(input.AllowClassicFlow != null && { AllowClassicFlow: input.AllowClassicFlow }),
1391
- ...(input.AllowUnauthenticatedIdentities != null && {
1392
- AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities,
1393
- }),
1394
- ...(input.CognitoIdentityProviders != null && {
1395
- CognitoIdentityProviders: se_CognitoIdentityProviderList(input.CognitoIdentityProviders, context),
1396
- }),
1397
- ...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
1398
- ...(input.IdentityPoolName != null && { IdentityPoolName: input.IdentityPoolName }),
1399
- ...(input.IdentityPoolTags != null && {
1400
- IdentityPoolTags: se_IdentityPoolTagsType(input.IdentityPoolTags, context),
1401
- }),
1402
- ...(input.OpenIdConnectProviderARNs != null && {
1403
- OpenIdConnectProviderARNs: se_OIDCProviderList(input.OpenIdConnectProviderARNs, context),
1404
- }),
1405
- ...(input.SamlProviderARNs != null && { SamlProviderARNs: se_SAMLProviderList(input.SamlProviderARNs, context) }),
1406
- ...(input.SupportedLoginProviders != null && {
1407
- SupportedLoginProviders: se_IdentityProviders(input.SupportedLoginProviders, context),
1408
- }),
1409
- };
1410
- };
1411
- const se_DeleteIdentitiesInput = (input, context) => {
1412
- return {
1413
- ...(input.IdentityIdsToDelete != null && {
1414
- IdentityIdsToDelete: se_IdentityIdList(input.IdentityIdsToDelete, context),
1415
- }),
1416
- };
1417
- };
1418
- const se_DeleteIdentityPoolInput = (input, context) => {
1419
- return {
1420
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1421
- };
1422
- };
1423
- const se_DescribeIdentityInput = (input, context) => {
1424
- return {
1425
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1426
- };
1427
- };
1428
- const se_DescribeIdentityPoolInput = (input, context) => {
1429
- return {
1430
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1431
- };
1432
- };
1433
- const se_GetCredentialsForIdentityInput = (input, context) => {
1434
- return {
1435
- ...(input.CustomRoleArn != null && { CustomRoleArn: input.CustomRoleArn }),
1436
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1437
- ...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
1438
- };
1439
- };
1440
- const se_GetIdentityPoolRolesInput = (input, context) => {
1441
- return {
1442
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1443
- };
1444
- };
1445
- const se_GetIdInput = (input, context) => {
1446
- return {
1447
- ...(input.AccountId != null && { AccountId: input.AccountId }),
1448
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1449
- ...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
1450
- };
1451
- };
1452
- const se_GetOpenIdTokenForDeveloperIdentityInput = (input, context) => {
1453
- return {
1454
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1455
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1456
- ...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
1457
- ...(input.PrincipalTags != null && { PrincipalTags: se_PrincipalTags(input.PrincipalTags, context) }),
1458
- ...(input.TokenDuration != null && { TokenDuration: input.TokenDuration }),
1459
- };
1460
- };
1461
- const se_GetOpenIdTokenInput = (input, context) => {
1462
- return {
1463
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1464
- ...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
1465
- };
1466
- };
1467
- const se_GetPrincipalTagAttributeMapInput = (input, context) => {
1468
- return {
1469
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1470
- ...(input.IdentityProviderName != null && { IdentityProviderName: input.IdentityProviderName }),
1471
- };
1472
- };
1473
- const se_IdentityIdList = (input, context) => {
1474
- return input
1475
- .filter((e) => e != null)
1476
- .map((entry) => {
1477
- return entry;
1478
- });
1479
- };
1480
- const se_IdentityPool = (input, context) => {
1481
- return {
1482
- ...(input.AllowClassicFlow != null && { AllowClassicFlow: input.AllowClassicFlow }),
1483
- ...(input.AllowUnauthenticatedIdentities != null && {
1484
- AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities,
1485
- }),
1486
- ...(input.CognitoIdentityProviders != null && {
1487
- CognitoIdentityProviders: se_CognitoIdentityProviderList(input.CognitoIdentityProviders, context),
1488
- }),
1489
- ...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
1490
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1491
- ...(input.IdentityPoolName != null && { IdentityPoolName: input.IdentityPoolName }),
1492
- ...(input.IdentityPoolTags != null && {
1493
- IdentityPoolTags: se_IdentityPoolTagsType(input.IdentityPoolTags, context),
1494
- }),
1495
- ...(input.OpenIdConnectProviderARNs != null && {
1496
- OpenIdConnectProviderARNs: se_OIDCProviderList(input.OpenIdConnectProviderARNs, context),
1497
- }),
1498
- ...(input.SamlProviderARNs != null && { SamlProviderARNs: se_SAMLProviderList(input.SamlProviderARNs, context) }),
1499
- ...(input.SupportedLoginProviders != null && {
1500
- SupportedLoginProviders: se_IdentityProviders(input.SupportedLoginProviders, context),
1501
- }),
1502
- };
1503
- };
1504
- const se_IdentityPoolTagsListType = (input, context) => {
1505
- return input
1506
- .filter((e) => e != null)
1507
- .map((entry) => {
1508
- return entry;
1509
- });
1510
- };
1511
- const se_IdentityPoolTagsType = (input, context) => {
1512
- return Object.entries(input).reduce((acc, [key, value]) => {
1513
- if (value === null) {
1514
- return acc;
1515
- }
1516
- acc[key] = value;
1517
- return acc;
1518
- }, {});
1519
- };
1520
- const se_IdentityProviders = (input, context) => {
1521
- return Object.entries(input).reduce((acc, [key, value]) => {
1522
- if (value === null) {
1523
- return acc;
1524
- }
1525
- acc[key] = value;
1526
- return acc;
1527
- }, {});
1528
- };
1529
- const se_ListIdentitiesInput = (input, context) => {
1530
- return {
1531
- ...(input.HideDisabled != null && { HideDisabled: input.HideDisabled }),
1532
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1533
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1534
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1535
- };
1536
- };
1537
- const se_ListIdentityPoolsInput = (input, context) => {
1538
- return {
1539
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1540
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1541
- };
1542
- };
1543
- const se_ListTagsForResourceInput = (input, context) => {
1544
- return {
1545
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1546
- };
1547
- };
1548
- const se_LoginsList = (input, context) => {
1549
- return input
1550
- .filter((e) => e != null)
1551
- .map((entry) => {
1552
- return entry;
1553
- });
1554
- };
1555
- const se_LoginsMap = (input, context) => {
1556
- return Object.entries(input).reduce((acc, [key, value]) => {
1557
- if (value === null) {
1558
- return acc;
1559
- }
1560
- acc[key] = value;
1561
- return acc;
1562
- }, {});
1563
- };
1564
- const se_LookupDeveloperIdentityInput = (input, context) => {
1565
- return {
1566
- ...(input.DeveloperUserIdentifier != null && { DeveloperUserIdentifier: input.DeveloperUserIdentifier }),
1567
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1568
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1569
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1570
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1571
- };
1572
- };
1573
- const se_MappingRule = (input, context) => {
1574
- return {
1575
- ...(input.Claim != null && { Claim: input.Claim }),
1576
- ...(input.MatchType != null && { MatchType: input.MatchType }),
1577
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1578
- ...(input.Value != null && { Value: input.Value }),
1579
- };
1580
- };
1581
- const se_MappingRulesList = (input, context) => {
1582
- return input
1583
- .filter((e) => e != null)
1584
- .map((entry) => {
1585
- return se_MappingRule(entry, context);
1586
- });
1587
- };
1588
- const se_MergeDeveloperIdentitiesInput = (input, context) => {
1589
- return {
1590
- ...(input.DestinationUserIdentifier != null && { DestinationUserIdentifier: input.DestinationUserIdentifier }),
1591
- ...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
1592
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1593
- ...(input.SourceUserIdentifier != null && { SourceUserIdentifier: input.SourceUserIdentifier }),
1594
- };
1595
- };
1596
- const se_OIDCProviderList = (input, context) => {
1597
- return input
1598
- .filter((e) => e != null)
1599
- .map((entry) => {
1600
- return entry;
1601
- });
1602
- };
1603
- const se_PrincipalTags = (input, context) => {
1604
- return Object.entries(input).reduce((acc, [key, value]) => {
1605
- if (value === null) {
1606
- return acc;
1607
- }
1608
- acc[key] = value;
1609
- return acc;
1610
- }, {});
1611
- };
1612
- const se_RoleMapping = (input, context) => {
1613
- return {
1614
- ...(input.AmbiguousRoleResolution != null && { AmbiguousRoleResolution: input.AmbiguousRoleResolution }),
1615
- ...(input.RulesConfiguration != null && {
1616
- RulesConfiguration: se_RulesConfigurationType(input.RulesConfiguration, context),
1617
- }),
1618
- ...(input.Type != null && { Type: input.Type }),
1619
- };
1620
- };
1621
- const se_RoleMappingMap = (input, context) => {
1622
- return Object.entries(input).reduce((acc, [key, value]) => {
1623
- if (value === null) {
1624
- return acc;
1625
- }
1626
- acc[key] = se_RoleMapping(value, context);
1627
- return acc;
1628
- }, {});
1629
- };
1630
- const se_RolesMap = (input, context) => {
1631
- return Object.entries(input).reduce((acc, [key, value]) => {
1632
- if (value === null) {
1633
- return acc;
1634
- }
1635
- acc[key] = value;
1636
- return acc;
1637
- }, {});
1638
- };
1639
- const se_RulesConfigurationType = (input, context) => {
1640
- return {
1641
- ...(input.Rules != null && { Rules: se_MappingRulesList(input.Rules, context) }),
1642
- };
1643
- };
1644
- const se_SAMLProviderList = (input, context) => {
1645
- return input
1646
- .filter((e) => e != null)
1647
- .map((entry) => {
1648
- return entry;
1649
- });
1650
- };
1651
- const se_SetIdentityPoolRolesInput = (input, context) => {
1652
- return {
1653
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1654
- ...(input.RoleMappings != null && { RoleMappings: se_RoleMappingMap(input.RoleMappings, context) }),
1655
- ...(input.Roles != null && { Roles: se_RolesMap(input.Roles, context) }),
1656
- };
1657
- };
1658
- const se_SetPrincipalTagAttributeMapInput = (input, context) => {
1659
- return {
1660
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1661
- ...(input.IdentityProviderName != null && { IdentityProviderName: input.IdentityProviderName }),
1662
- ...(input.PrincipalTags != null && { PrincipalTags: se_PrincipalTags(input.PrincipalTags, context) }),
1663
- ...(input.UseDefaults != null && { UseDefaults: input.UseDefaults }),
1664
- };
1665
- };
1666
- const se_TagResourceInput = (input, context) => {
1667
- return {
1668
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1669
- ...(input.Tags != null && { Tags: se_IdentityPoolTagsType(input.Tags, context) }),
1670
- };
1671
- };
1672
- const se_UnlinkDeveloperIdentityInput = (input, context) => {
1673
- return {
1674
- ...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
1675
- ...(input.DeveloperUserIdentifier != null && { DeveloperUserIdentifier: input.DeveloperUserIdentifier }),
1676
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1677
- ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1678
- };
1679
- };
1680
- const se_UnlinkIdentityInput = (input, context) => {
1681
- return {
1682
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
1683
- ...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
1684
- ...(input.LoginsToRemove != null && { LoginsToRemove: se_LoginsList(input.LoginsToRemove, context) }),
1685
- };
1686
- };
1687
- const se_UntagResourceInput = (input, context) => {
1688
- return {
1689
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1690
- ...(input.TagKeys != null && { TagKeys: se_IdentityPoolTagsListType(input.TagKeys, context) }),
1691
- };
1692
- };
1693
- const de_CognitoIdentityProvider = (output, context) => {
1694
- return {
1695
- ClientId: (0, smithy_client_1.expectString)(output.ClientId),
1696
- ProviderName: (0, smithy_client_1.expectString)(output.ProviderName),
1697
- ServerSideTokenCheck: (0, smithy_client_1.expectBoolean)(output.ServerSideTokenCheck),
1698
- };
1699
- };
1700
- const de_CognitoIdentityProviderList = (output, context) => {
1701
- const retVal = (output || [])
1702
- .filter((e) => e != null)
1703
- .map((entry) => {
1704
- if (entry === null) {
1705
- return null;
1706
- }
1707
- return de_CognitoIdentityProvider(entry, context);
1708
- });
1709
- return retVal;
1710
- };
1711
- const de_ConcurrentModificationException = (output, context) => {
1712
- return {
1713
- message: (0, smithy_client_1.expectString)(output.message),
1714
- };
1715
- };
1716
1351
  const de_Credentials = (output, context) => {
1717
- return {
1718
- AccessKeyId: (0, smithy_client_1.expectString)(output.AccessKeyId),
1719
- Expiration: output.Expiration != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expiration))) : undefined,
1720
- SecretKey: (0, smithy_client_1.expectString)(output.SecretKey),
1721
- SessionToken: (0, smithy_client_1.expectString)(output.SessionToken),
1722
- };
1723
- };
1724
- const de_DeleteIdentitiesResponse = (output, context) => {
1725
- return {
1726
- UnprocessedIdentityIds: output.UnprocessedIdentityIds != null
1727
- ? de_UnprocessedIdentityIdList(output.UnprocessedIdentityIds, context)
1728
- : undefined,
1729
- };
1730
- };
1731
- const de_DeveloperUserAlreadyRegisteredException = (output, context) => {
1732
- return {
1733
- message: (0, smithy_client_1.expectString)(output.message),
1734
- };
1735
- };
1736
- const de_DeveloperUserIdentifierList = (output, context) => {
1737
- const retVal = (output || [])
1738
- .filter((e) => e != null)
1739
- .map((entry) => {
1740
- if (entry === null) {
1741
- return null;
1742
- }
1743
- return (0, smithy_client_1.expectString)(entry);
1352
+ return (0, smithy_client_1.take)(output, {
1353
+ AccessKeyId: smithy_client_1.expectString,
1354
+ Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1355
+ SecretKey: smithy_client_1.expectString,
1356
+ SessionToken: smithy_client_1.expectString,
1744
1357
  });
1745
- return retVal;
1746
- };
1747
- const de_ExternalServiceException = (output, context) => {
1748
- return {
1749
- message: (0, smithy_client_1.expectString)(output.message),
1750
- };
1751
1358
  };
1752
1359
  const de_GetCredentialsForIdentityResponse = (output, context) => {
1753
- return {
1754
- Credentials: output.Credentials != null ? de_Credentials(output.Credentials, context) : undefined,
1755
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1756
- };
1757
- };
1758
- const de_GetIdentityPoolRolesResponse = (output, context) => {
1759
- return {
1760
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1761
- RoleMappings: output.RoleMappings != null ? de_RoleMappingMap(output.RoleMappings, context) : undefined,
1762
- Roles: output.Roles != null ? de_RolesMap(output.Roles, context) : undefined,
1763
- };
1764
- };
1765
- const de_GetIdResponse = (output, context) => {
1766
- return {
1767
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1768
- };
1769
- };
1770
- const de_GetOpenIdTokenForDeveloperIdentityResponse = (output, context) => {
1771
- return {
1772
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1773
- Token: (0, smithy_client_1.expectString)(output.Token),
1774
- };
1775
- };
1776
- const de_GetOpenIdTokenResponse = (output, context) => {
1777
- return {
1778
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1779
- Token: (0, smithy_client_1.expectString)(output.Token),
1780
- };
1781
- };
1782
- const de_GetPrincipalTagAttributeMapResponse = (output, context) => {
1783
- return {
1784
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1785
- IdentityProviderName: (0, smithy_client_1.expectString)(output.IdentityProviderName),
1786
- PrincipalTags: output.PrincipalTags != null ? de_PrincipalTags(output.PrincipalTags, context) : undefined,
1787
- UseDefaults: (0, smithy_client_1.expectBoolean)(output.UseDefaults),
1788
- };
1360
+ return (0, smithy_client_1.take)(output, {
1361
+ Credentials: (_) => de_Credentials(_, context),
1362
+ IdentityId: smithy_client_1.expectString,
1363
+ });
1789
1364
  };
1790
1365
  const de_IdentitiesList = (output, context) => {
1791
1366
  const retVal = (output || [])
1792
1367
  .filter((e) => e != null)
1793
1368
  .map((entry) => {
1794
- if (entry === null) {
1795
- return null;
1796
- }
1797
1369
  return de_IdentityDescription(entry, context);
1798
1370
  });
1799
1371
  return retVal;
1800
1372
  };
1801
1373
  const de_IdentityDescription = (output, context) => {
1802
- return {
1803
- CreationDate: output.CreationDate != null
1804
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
1805
- : undefined,
1806
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1807
- LastModifiedDate: output.LastModifiedDate != null
1808
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
1809
- : undefined,
1810
- Logins: output.Logins != null ? de_LoginsList(output.Logins, context) : undefined,
1811
- };
1812
- };
1813
- const de_IdentityPool = (output, context) => {
1814
- return {
1815
- AllowClassicFlow: (0, smithy_client_1.expectBoolean)(output.AllowClassicFlow),
1816
- AllowUnauthenticatedIdentities: (0, smithy_client_1.expectBoolean)(output.AllowUnauthenticatedIdentities),
1817
- CognitoIdentityProviders: output.CognitoIdentityProviders != null
1818
- ? de_CognitoIdentityProviderList(output.CognitoIdentityProviders, context)
1819
- : undefined,
1820
- DeveloperProviderName: (0, smithy_client_1.expectString)(output.DeveloperProviderName),
1821
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1822
- IdentityPoolName: (0, smithy_client_1.expectString)(output.IdentityPoolName),
1823
- IdentityPoolTags: output.IdentityPoolTags != null ? de_IdentityPoolTagsType(output.IdentityPoolTags, context) : undefined,
1824
- OpenIdConnectProviderARNs: output.OpenIdConnectProviderARNs != null
1825
- ? de_OIDCProviderList(output.OpenIdConnectProviderARNs, context)
1826
- : undefined,
1827
- SamlProviderARNs: output.SamlProviderARNs != null ? de_SAMLProviderList(output.SamlProviderARNs, context) : undefined,
1828
- SupportedLoginProviders: output.SupportedLoginProviders != null
1829
- ? de_IdentityProviders(output.SupportedLoginProviders, context)
1830
- : undefined,
1831
- };
1832
- };
1833
- const de_IdentityPoolShortDescription = (output, context) => {
1834
- return {
1835
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1836
- IdentityPoolName: (0, smithy_client_1.expectString)(output.IdentityPoolName),
1837
- };
1838
- };
1839
- const de_IdentityPoolsList = (output, context) => {
1840
- const retVal = (output || [])
1841
- .filter((e) => e != null)
1842
- .map((entry) => {
1843
- if (entry === null) {
1844
- return null;
1845
- }
1846
- return de_IdentityPoolShortDescription(entry, context);
1374
+ return (0, smithy_client_1.take)(output, {
1375
+ CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1376
+ IdentityId: smithy_client_1.expectString,
1377
+ LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1378
+ Logins: smithy_client_1._json,
1847
1379
  });
1848
- return retVal;
1849
- };
1850
- const de_IdentityPoolTagsType = (output, context) => {
1851
- return Object.entries(output).reduce((acc, [key, value]) => {
1852
- if (value === null) {
1853
- return acc;
1854
- }
1855
- acc[key] = (0, smithy_client_1.expectString)(value);
1856
- return acc;
1857
- }, {});
1858
- };
1859
- const de_IdentityProviders = (output, context) => {
1860
- return Object.entries(output).reduce((acc, [key, value]) => {
1861
- if (value === null) {
1862
- return acc;
1863
- }
1864
- acc[key] = (0, smithy_client_1.expectString)(value);
1865
- return acc;
1866
- }, {});
1867
- };
1868
- const de_InternalErrorException = (output, context) => {
1869
- return {
1870
- message: (0, smithy_client_1.expectString)(output.message),
1871
- };
1872
- };
1873
- const de_InvalidIdentityPoolConfigurationException = (output, context) => {
1874
- return {
1875
- message: (0, smithy_client_1.expectString)(output.message),
1876
- };
1877
- };
1878
- const de_InvalidParameterException = (output, context) => {
1879
- return {
1880
- message: (0, smithy_client_1.expectString)(output.message),
1881
- };
1882
- };
1883
- const de_LimitExceededException = (output, context) => {
1884
- return {
1885
- message: (0, smithy_client_1.expectString)(output.message),
1886
- };
1887
1380
  };
1888
1381
  const de_ListIdentitiesResponse = (output, context) => {
1889
- return {
1890
- Identities: output.Identities != null ? de_IdentitiesList(output.Identities, context) : undefined,
1891
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1892
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1893
- };
1894
- };
1895
- const de_ListIdentityPoolsResponse = (output, context) => {
1896
- return {
1897
- IdentityPools: output.IdentityPools != null ? de_IdentityPoolsList(output.IdentityPools, context) : undefined,
1898
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1899
- };
1900
- };
1901
- const de_ListTagsForResourceResponse = (output, context) => {
1902
- return {
1903
- Tags: output.Tags != null ? de_IdentityPoolTagsType(output.Tags, context) : undefined,
1904
- };
1905
- };
1906
- const de_LoginsList = (output, context) => {
1907
- const retVal = (output || [])
1908
- .filter((e) => e != null)
1909
- .map((entry) => {
1910
- if (entry === null) {
1911
- return null;
1912
- }
1913
- return (0, smithy_client_1.expectString)(entry);
1914
- });
1915
- return retVal;
1916
- };
1917
- const de_LookupDeveloperIdentityResponse = (output, context) => {
1918
- return {
1919
- DeveloperUserIdentifierList: output.DeveloperUserIdentifierList != null
1920
- ? de_DeveloperUserIdentifierList(output.DeveloperUserIdentifierList, context)
1921
- : undefined,
1922
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1923
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1924
- };
1925
- };
1926
- const de_MappingRule = (output, context) => {
1927
- return {
1928
- Claim: (0, smithy_client_1.expectString)(output.Claim),
1929
- MatchType: (0, smithy_client_1.expectString)(output.MatchType),
1930
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1931
- Value: (0, smithy_client_1.expectString)(output.Value),
1932
- };
1933
- };
1934
- const de_MappingRulesList = (output, context) => {
1935
- const retVal = (output || [])
1936
- .filter((e) => e != null)
1937
- .map((entry) => {
1938
- if (entry === null) {
1939
- return null;
1940
- }
1941
- return de_MappingRule(entry, context);
1942
- });
1943
- return retVal;
1944
- };
1945
- const de_MergeDeveloperIdentitiesResponse = (output, context) => {
1946
- return {
1947
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1948
- };
1949
- };
1950
- const de_NotAuthorizedException = (output, context) => {
1951
- return {
1952
- message: (0, smithy_client_1.expectString)(output.message),
1953
- };
1954
- };
1955
- const de_OIDCProviderList = (output, context) => {
1956
- const retVal = (output || [])
1957
- .filter((e) => e != null)
1958
- .map((entry) => {
1959
- if (entry === null) {
1960
- return null;
1961
- }
1962
- return (0, smithy_client_1.expectString)(entry);
1963
- });
1964
- return retVal;
1965
- };
1966
- const de_PrincipalTags = (output, context) => {
1967
- return Object.entries(output).reduce((acc, [key, value]) => {
1968
- if (value === null) {
1969
- return acc;
1970
- }
1971
- acc[key] = (0, smithy_client_1.expectString)(value);
1972
- return acc;
1973
- }, {});
1974
- };
1975
- const de_ResourceConflictException = (output, context) => {
1976
- return {
1977
- message: (0, smithy_client_1.expectString)(output.message),
1978
- };
1979
- };
1980
- const de_ResourceNotFoundException = (output, context) => {
1981
- return {
1982
- message: (0, smithy_client_1.expectString)(output.message),
1983
- };
1984
- };
1985
- const de_RoleMapping = (output, context) => {
1986
- return {
1987
- AmbiguousRoleResolution: (0, smithy_client_1.expectString)(output.AmbiguousRoleResolution),
1988
- RulesConfiguration: output.RulesConfiguration != null ? de_RulesConfigurationType(output.RulesConfiguration, context) : undefined,
1989
- Type: (0, smithy_client_1.expectString)(output.Type),
1990
- };
1991
- };
1992
- const de_RoleMappingMap = (output, context) => {
1993
- return Object.entries(output).reduce((acc, [key, value]) => {
1994
- if (value === null) {
1995
- return acc;
1996
- }
1997
- acc[key] = de_RoleMapping(value, context);
1998
- return acc;
1999
- }, {});
2000
- };
2001
- const de_RolesMap = (output, context) => {
2002
- return Object.entries(output).reduce((acc, [key, value]) => {
2003
- if (value === null) {
2004
- return acc;
2005
- }
2006
- acc[key] = (0, smithy_client_1.expectString)(value);
2007
- return acc;
2008
- }, {});
2009
- };
2010
- const de_RulesConfigurationType = (output, context) => {
2011
- return {
2012
- Rules: output.Rules != null ? de_MappingRulesList(output.Rules, context) : undefined,
2013
- };
2014
- };
2015
- const de_SAMLProviderList = (output, context) => {
2016
- const retVal = (output || [])
2017
- .filter((e) => e != null)
2018
- .map((entry) => {
2019
- if (entry === null) {
2020
- return null;
2021
- }
2022
- return (0, smithy_client_1.expectString)(entry);
1382
+ return (0, smithy_client_1.take)(output, {
1383
+ Identities: (_) => de_IdentitiesList(_, context),
1384
+ IdentityPoolId: smithy_client_1.expectString,
1385
+ NextToken: smithy_client_1.expectString,
2023
1386
  });
2024
- return retVal;
2025
- };
2026
- const de_SetPrincipalTagAttributeMapResponse = (output, context) => {
2027
- return {
2028
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
2029
- IdentityProviderName: (0, smithy_client_1.expectString)(output.IdentityProviderName),
2030
- PrincipalTags: output.PrincipalTags != null ? de_PrincipalTags(output.PrincipalTags, context) : undefined,
2031
- UseDefaults: (0, smithy_client_1.expectBoolean)(output.UseDefaults),
2032
- };
2033
- };
2034
- const de_TagResourceResponse = (output, context) => {
2035
- return {};
2036
- };
2037
- const de_TooManyRequestsException = (output, context) => {
2038
- return {
2039
- message: (0, smithy_client_1.expectString)(output.message),
2040
- };
2041
- };
2042
- const de_UnprocessedIdentityId = (output, context) => {
2043
- return {
2044
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
2045
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
2046
- };
2047
- };
2048
- const de_UnprocessedIdentityIdList = (output, context) => {
2049
- const retVal = (output || [])
2050
- .filter((e) => e != null)
2051
- .map((entry) => {
2052
- if (entry === null) {
2053
- return null;
2054
- }
2055
- return de_UnprocessedIdentityId(entry, context);
2056
- });
2057
- return retVal;
2058
- };
2059
- const de_UntagResourceResponse = (output, context) => {
2060
- return {};
2061
1387
  };
2062
1388
  const deserializeMetadata = (output) => ({
2063
1389
  httpStatusCode: output.statusCode,
@@ -2072,6 +1398,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2072
1398
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2073
1399
  };
2074
1400
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1401
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CognitoIdentityServiceException_1.CognitoIdentityServiceException);
2075
1402
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2076
1403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2077
1404
  const contents = {