@aws-sdk/client-identitystore 3.312.0 → 3.316.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,59 +1,59 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, expectUnion as __expectUnion, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { IdentitystoreServiceException as __BaseException } from "../models/IdentitystoreServiceException";
4
- import { AccessDeniedException, AlternateIdentifier, ConflictException, InternalServerException, MemberId, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
4
+ import { AccessDeniedException, AlternateIdentifier, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_CreateGroupCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("CreateGroup");
7
7
  let body;
8
- body = JSON.stringify(se_CreateGroupRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_CreateGroupMembershipCommand = async (input, context) => {
12
12
  const headers = sharedHeaders("CreateGroupMembership");
13
13
  let body;
14
- body = JSON.stringify(se_CreateGroupMembershipRequest(input, context));
14
+ body = JSON.stringify(_json(input));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
17
  export const se_CreateUserCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CreateUser");
19
19
  let body;
20
- body = JSON.stringify(se_CreateUserRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_DeleteGroupCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("DeleteGroup");
25
25
  let body;
26
- body = JSON.stringify(se_DeleteGroupRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_DeleteGroupMembershipCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeleteGroupMembership");
31
31
  let body;
32
- body = JSON.stringify(se_DeleteGroupMembershipRequest(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_DeleteUserCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("DeleteUser");
37
37
  let body;
38
- body = JSON.stringify(se_DeleteUserRequest(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_DescribeGroupCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DescribeGroup");
43
43
  let body;
44
- body = JSON.stringify(se_DescribeGroupRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_DescribeGroupMembershipCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("DescribeGroupMembership");
49
49
  let body;
50
- body = JSON.stringify(se_DescribeGroupMembershipRequest(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_DescribeUserCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("DescribeUser");
55
55
  let body;
56
- body = JSON.stringify(se_DescribeUserRequest(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_GetGroupIdCommand = async (input, context) => {
@@ -65,7 +65,7 @@ export const se_GetGroupIdCommand = async (input, context) => {
65
65
  export const se_GetGroupMembershipIdCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("GetGroupMembershipId");
67
67
  let body;
68
- body = JSON.stringify(se_GetGroupMembershipIdRequest(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_GetUserIdCommand = async (input, context) => {
@@ -77,31 +77,31 @@ export const se_GetUserIdCommand = async (input, context) => {
77
77
  export const se_IsMemberInGroupsCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("IsMemberInGroups");
79
79
  let body;
80
- body = JSON.stringify(se_IsMemberInGroupsRequest(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_ListGroupMembershipsCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("ListGroupMemberships");
85
85
  let body;
86
- body = JSON.stringify(se_ListGroupMembershipsRequest(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("ListGroupMembershipsForMember");
91
91
  let body;
92
- body = JSON.stringify(se_ListGroupMembershipsForMemberRequest(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_ListGroupsCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("ListGroups");
97
97
  let body;
98
- body = JSON.stringify(se_ListGroupsRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_ListUsersCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("ListUsers");
103
103
  let body;
104
- body = JSON.stringify(se_ListUsersRequest(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_UpdateGroupCommand = async (input, context) => {
@@ -122,12 +122,12 @@ export const de_CreateGroupCommand = async (output, context) => {
122
122
  }
123
123
  const data = await parseBody(output.body, context);
124
124
  let contents = {};
125
- contents = de_CreateGroupResponse(data, context);
125
+ contents = _json(data);
126
126
  const response = {
127
127
  $metadata: deserializeMetadata(output),
128
128
  ...contents,
129
129
  };
130
- return Promise.resolve(response);
130
+ return response;
131
131
  };
132
132
  const de_CreateGroupCommandError = async (output, context) => {
133
133
  const parsedOutput = {
@@ -159,10 +159,9 @@ const de_CreateGroupCommandError = async (output, context) => {
159
159
  throw await de_ValidationExceptionRes(parsedOutput, context);
160
160
  default:
161
161
  const parsedBody = parsedOutput.body;
162
- throwDefaultError({
162
+ return throwDefaultError({
163
163
  output,
164
164
  parsedBody,
165
- exceptionCtor: __BaseException,
166
165
  errorCode,
167
166
  });
168
167
  }
@@ -173,12 +172,12 @@ export const de_CreateGroupMembershipCommand = async (output, context) => {
173
172
  }
174
173
  const data = await parseBody(output.body, context);
175
174
  let contents = {};
176
- contents = de_CreateGroupMembershipResponse(data, context);
175
+ contents = _json(data);
177
176
  const response = {
178
177
  $metadata: deserializeMetadata(output),
179
178
  ...contents,
180
179
  };
181
- return Promise.resolve(response);
180
+ return response;
182
181
  };
183
182
  const de_CreateGroupMembershipCommandError = async (output, context) => {
184
183
  const parsedOutput = {
@@ -210,10 +209,9 @@ const de_CreateGroupMembershipCommandError = async (output, context) => {
210
209
  throw await de_ValidationExceptionRes(parsedOutput, context);
211
210
  default:
212
211
  const parsedBody = parsedOutput.body;
213
- throwDefaultError({
212
+ return throwDefaultError({
214
213
  output,
215
214
  parsedBody,
216
- exceptionCtor: __BaseException,
217
215
  errorCode,
218
216
  });
219
217
  }
@@ -224,12 +222,12 @@ export const de_CreateUserCommand = async (output, context) => {
224
222
  }
225
223
  const data = await parseBody(output.body, context);
226
224
  let contents = {};
227
- contents = de_CreateUserResponse(data, context);
225
+ contents = _json(data);
228
226
  const response = {
229
227
  $metadata: deserializeMetadata(output),
230
228
  ...contents,
231
229
  };
232
- return Promise.resolve(response);
230
+ return response;
233
231
  };
234
232
  const de_CreateUserCommandError = async (output, context) => {
235
233
  const parsedOutput = {
@@ -261,10 +259,9 @@ const de_CreateUserCommandError = async (output, context) => {
261
259
  throw await de_ValidationExceptionRes(parsedOutput, context);
262
260
  default:
263
261
  const parsedBody = parsedOutput.body;
264
- throwDefaultError({
262
+ return throwDefaultError({
265
263
  output,
266
264
  parsedBody,
267
- exceptionCtor: __BaseException,
268
265
  errorCode,
269
266
  });
270
267
  }
@@ -275,12 +272,12 @@ export const de_DeleteGroupCommand = async (output, context) => {
275
272
  }
276
273
  const data = await parseBody(output.body, context);
277
274
  let contents = {};
278
- contents = de_DeleteGroupResponse(data, context);
275
+ contents = _json(data);
279
276
  const response = {
280
277
  $metadata: deserializeMetadata(output),
281
278
  ...contents,
282
279
  };
283
- return Promise.resolve(response);
280
+ return response;
284
281
  };
285
282
  const de_DeleteGroupCommandError = async (output, context) => {
286
283
  const parsedOutput = {
@@ -309,10 +306,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
309
306
  throw await de_ValidationExceptionRes(parsedOutput, context);
310
307
  default:
311
308
  const parsedBody = parsedOutput.body;
312
- throwDefaultError({
309
+ return throwDefaultError({
313
310
  output,
314
311
  parsedBody,
315
- exceptionCtor: __BaseException,
316
312
  errorCode,
317
313
  });
318
314
  }
@@ -323,12 +319,12 @@ export const de_DeleteGroupMembershipCommand = async (output, context) => {
323
319
  }
324
320
  const data = await parseBody(output.body, context);
325
321
  let contents = {};
326
- contents = de_DeleteGroupMembershipResponse(data, context);
322
+ contents = _json(data);
327
323
  const response = {
328
324
  $metadata: deserializeMetadata(output),
329
325
  ...contents,
330
326
  };
331
- return Promise.resolve(response);
327
+ return response;
332
328
  };
333
329
  const de_DeleteGroupMembershipCommandError = async (output, context) => {
334
330
  const parsedOutput = {
@@ -357,10 +353,9 @@ const de_DeleteGroupMembershipCommandError = async (output, context) => {
357
353
  throw await de_ValidationExceptionRes(parsedOutput, context);
358
354
  default:
359
355
  const parsedBody = parsedOutput.body;
360
- throwDefaultError({
356
+ return throwDefaultError({
361
357
  output,
362
358
  parsedBody,
363
- exceptionCtor: __BaseException,
364
359
  errorCode,
365
360
  });
366
361
  }
@@ -371,12 +366,12 @@ export const de_DeleteUserCommand = async (output, context) => {
371
366
  }
372
367
  const data = await parseBody(output.body, context);
373
368
  let contents = {};
374
- contents = de_DeleteUserResponse(data, context);
369
+ contents = _json(data);
375
370
  const response = {
376
371
  $metadata: deserializeMetadata(output),
377
372
  ...contents,
378
373
  };
379
- return Promise.resolve(response);
374
+ return response;
380
375
  };
381
376
  const de_DeleteUserCommandError = async (output, context) => {
382
377
  const parsedOutput = {
@@ -405,10 +400,9 @@ const de_DeleteUserCommandError = async (output, context) => {
405
400
  throw await de_ValidationExceptionRes(parsedOutput, context);
406
401
  default:
407
402
  const parsedBody = parsedOutput.body;
408
- throwDefaultError({
403
+ return throwDefaultError({
409
404
  output,
410
405
  parsedBody,
411
- exceptionCtor: __BaseException,
412
406
  errorCode,
413
407
  });
414
408
  }
@@ -419,12 +413,12 @@ export const de_DescribeGroupCommand = async (output, context) => {
419
413
  }
420
414
  const data = await parseBody(output.body, context);
421
415
  let contents = {};
422
- contents = de_DescribeGroupResponse(data, context);
416
+ contents = _json(data);
423
417
  const response = {
424
418
  $metadata: deserializeMetadata(output),
425
419
  ...contents,
426
420
  };
427
- return Promise.resolve(response);
421
+ return response;
428
422
  };
429
423
  const de_DescribeGroupCommandError = async (output, context) => {
430
424
  const parsedOutput = {
@@ -450,10 +444,9 @@ const de_DescribeGroupCommandError = async (output, context) => {
450
444
  throw await de_ValidationExceptionRes(parsedOutput, context);
451
445
  default:
452
446
  const parsedBody = parsedOutput.body;
453
- throwDefaultError({
447
+ return throwDefaultError({
454
448
  output,
455
449
  parsedBody,
456
- exceptionCtor: __BaseException,
457
450
  errorCode,
458
451
  });
459
452
  }
@@ -464,12 +457,12 @@ export const de_DescribeGroupMembershipCommand = async (output, context) => {
464
457
  }
465
458
  const data = await parseBody(output.body, context);
466
459
  let contents = {};
467
- contents = de_DescribeGroupMembershipResponse(data, context);
460
+ contents = _json(data);
468
461
  const response = {
469
462
  $metadata: deserializeMetadata(output),
470
463
  ...contents,
471
464
  };
472
- return Promise.resolve(response);
465
+ return response;
473
466
  };
474
467
  const de_DescribeGroupMembershipCommandError = async (output, context) => {
475
468
  const parsedOutput = {
@@ -495,10 +488,9 @@ const de_DescribeGroupMembershipCommandError = async (output, context) => {
495
488
  throw await de_ValidationExceptionRes(parsedOutput, context);
496
489
  default:
497
490
  const parsedBody = parsedOutput.body;
498
- throwDefaultError({
491
+ return throwDefaultError({
499
492
  output,
500
493
  parsedBody,
501
- exceptionCtor: __BaseException,
502
494
  errorCode,
503
495
  });
504
496
  }
@@ -509,12 +501,12 @@ export const de_DescribeUserCommand = async (output, context) => {
509
501
  }
510
502
  const data = await parseBody(output.body, context);
511
503
  let contents = {};
512
- contents = de_DescribeUserResponse(data, context);
504
+ contents = _json(data);
513
505
  const response = {
514
506
  $metadata: deserializeMetadata(output),
515
507
  ...contents,
516
508
  };
517
- return Promise.resolve(response);
509
+ return response;
518
510
  };
519
511
  const de_DescribeUserCommandError = async (output, context) => {
520
512
  const parsedOutput = {
@@ -540,10 +532,9 @@ const de_DescribeUserCommandError = async (output, context) => {
540
532
  throw await de_ValidationExceptionRes(parsedOutput, context);
541
533
  default:
542
534
  const parsedBody = parsedOutput.body;
543
- throwDefaultError({
535
+ return throwDefaultError({
544
536
  output,
545
537
  parsedBody,
546
- exceptionCtor: __BaseException,
547
538
  errorCode,
548
539
  });
549
540
  }
@@ -554,12 +545,12 @@ export const de_GetGroupIdCommand = async (output, context) => {
554
545
  }
555
546
  const data = await parseBody(output.body, context);
556
547
  let contents = {};
557
- contents = de_GetGroupIdResponse(data, context);
548
+ contents = _json(data);
558
549
  const response = {
559
550
  $metadata: deserializeMetadata(output),
560
551
  ...contents,
561
552
  };
562
- return Promise.resolve(response);
553
+ return response;
563
554
  };
564
555
  const de_GetGroupIdCommandError = async (output, context) => {
565
556
  const parsedOutput = {
@@ -585,10 +576,9 @@ const de_GetGroupIdCommandError = async (output, context) => {
585
576
  throw await de_ValidationExceptionRes(parsedOutput, context);
586
577
  default:
587
578
  const parsedBody = parsedOutput.body;
588
- throwDefaultError({
579
+ return throwDefaultError({
589
580
  output,
590
581
  parsedBody,
591
- exceptionCtor: __BaseException,
592
582
  errorCode,
593
583
  });
594
584
  }
@@ -599,12 +589,12 @@ export const de_GetGroupMembershipIdCommand = async (output, context) => {
599
589
  }
600
590
  const data = await parseBody(output.body, context);
601
591
  let contents = {};
602
- contents = de_GetGroupMembershipIdResponse(data, context);
592
+ contents = _json(data);
603
593
  const response = {
604
594
  $metadata: deserializeMetadata(output),
605
595
  ...contents,
606
596
  };
607
- return Promise.resolve(response);
597
+ return response;
608
598
  };
609
599
  const de_GetGroupMembershipIdCommandError = async (output, context) => {
610
600
  const parsedOutput = {
@@ -630,10 +620,9 @@ const de_GetGroupMembershipIdCommandError = async (output, context) => {
630
620
  throw await de_ValidationExceptionRes(parsedOutput, context);
631
621
  default:
632
622
  const parsedBody = parsedOutput.body;
633
- throwDefaultError({
623
+ return throwDefaultError({
634
624
  output,
635
625
  parsedBody,
636
- exceptionCtor: __BaseException,
637
626
  errorCode,
638
627
  });
639
628
  }
@@ -644,12 +633,12 @@ export const de_GetUserIdCommand = async (output, context) => {
644
633
  }
645
634
  const data = await parseBody(output.body, context);
646
635
  let contents = {};
647
- contents = de_GetUserIdResponse(data, context);
636
+ contents = _json(data);
648
637
  const response = {
649
638
  $metadata: deserializeMetadata(output),
650
639
  ...contents,
651
640
  };
652
- return Promise.resolve(response);
641
+ return response;
653
642
  };
654
643
  const de_GetUserIdCommandError = async (output, context) => {
655
644
  const parsedOutput = {
@@ -675,10 +664,9 @@ const de_GetUserIdCommandError = async (output, context) => {
675
664
  throw await de_ValidationExceptionRes(parsedOutput, context);
676
665
  default:
677
666
  const parsedBody = parsedOutput.body;
678
- throwDefaultError({
667
+ return throwDefaultError({
679
668
  output,
680
669
  parsedBody,
681
- exceptionCtor: __BaseException,
682
670
  errorCode,
683
671
  });
684
672
  }
@@ -689,12 +677,12 @@ export const de_IsMemberInGroupsCommand = async (output, context) => {
689
677
  }
690
678
  const data = await parseBody(output.body, context);
691
679
  let contents = {};
692
- contents = de_IsMemberInGroupsResponse(data, context);
680
+ contents = _json(data);
693
681
  const response = {
694
682
  $metadata: deserializeMetadata(output),
695
683
  ...contents,
696
684
  };
697
- return Promise.resolve(response);
685
+ return response;
698
686
  };
699
687
  const de_IsMemberInGroupsCommandError = async (output, context) => {
700
688
  const parsedOutput = {
@@ -720,10 +708,9 @@ const de_IsMemberInGroupsCommandError = async (output, context) => {
720
708
  throw await de_ValidationExceptionRes(parsedOutput, context);
721
709
  default:
722
710
  const parsedBody = parsedOutput.body;
723
- throwDefaultError({
711
+ return throwDefaultError({
724
712
  output,
725
713
  parsedBody,
726
- exceptionCtor: __BaseException,
727
714
  errorCode,
728
715
  });
729
716
  }
@@ -734,12 +721,12 @@ export const de_ListGroupMembershipsCommand = async (output, context) => {
734
721
  }
735
722
  const data = await parseBody(output.body, context);
736
723
  let contents = {};
737
- contents = de_ListGroupMembershipsResponse(data, context);
724
+ contents = _json(data);
738
725
  const response = {
739
726
  $metadata: deserializeMetadata(output),
740
727
  ...contents,
741
728
  };
742
- return Promise.resolve(response);
729
+ return response;
743
730
  };
744
731
  const de_ListGroupMembershipsCommandError = async (output, context) => {
745
732
  const parsedOutput = {
@@ -765,10 +752,9 @@ const de_ListGroupMembershipsCommandError = async (output, context) => {
765
752
  throw await de_ValidationExceptionRes(parsedOutput, context);
766
753
  default:
767
754
  const parsedBody = parsedOutput.body;
768
- throwDefaultError({
755
+ return throwDefaultError({
769
756
  output,
770
757
  parsedBody,
771
- exceptionCtor: __BaseException,
772
758
  errorCode,
773
759
  });
774
760
  }
@@ -779,12 +765,12 @@ export const de_ListGroupMembershipsForMemberCommand = async (output, context) =
779
765
  }
780
766
  const data = await parseBody(output.body, context);
781
767
  let contents = {};
782
- contents = de_ListGroupMembershipsForMemberResponse(data, context);
768
+ contents = _json(data);
783
769
  const response = {
784
770
  $metadata: deserializeMetadata(output),
785
771
  ...contents,
786
772
  };
787
- return Promise.resolve(response);
773
+ return response;
788
774
  };
789
775
  const de_ListGroupMembershipsForMemberCommandError = async (output, context) => {
790
776
  const parsedOutput = {
@@ -810,10 +796,9 @@ const de_ListGroupMembershipsForMemberCommandError = async (output, context) =>
810
796
  throw await de_ValidationExceptionRes(parsedOutput, context);
811
797
  default:
812
798
  const parsedBody = parsedOutput.body;
813
- throwDefaultError({
799
+ return throwDefaultError({
814
800
  output,
815
801
  parsedBody,
816
- exceptionCtor: __BaseException,
817
802
  errorCode,
818
803
  });
819
804
  }
@@ -824,12 +809,12 @@ export const de_ListGroupsCommand = async (output, context) => {
824
809
  }
825
810
  const data = await parseBody(output.body, context);
826
811
  let contents = {};
827
- contents = de_ListGroupsResponse(data, context);
812
+ contents = _json(data);
828
813
  const response = {
829
814
  $metadata: deserializeMetadata(output),
830
815
  ...contents,
831
816
  };
832
- return Promise.resolve(response);
817
+ return response;
833
818
  };
834
819
  const de_ListGroupsCommandError = async (output, context) => {
835
820
  const parsedOutput = {
@@ -855,10 +840,9 @@ const de_ListGroupsCommandError = async (output, context) => {
855
840
  throw await de_ValidationExceptionRes(parsedOutput, context);
856
841
  default:
857
842
  const parsedBody = parsedOutput.body;
858
- throwDefaultError({
843
+ return throwDefaultError({
859
844
  output,
860
845
  parsedBody,
861
- exceptionCtor: __BaseException,
862
846
  errorCode,
863
847
  });
864
848
  }
@@ -869,12 +853,12 @@ export const de_ListUsersCommand = async (output, context) => {
869
853
  }
870
854
  const data = await parseBody(output.body, context);
871
855
  let contents = {};
872
- contents = de_ListUsersResponse(data, context);
856
+ contents = _json(data);
873
857
  const response = {
874
858
  $metadata: deserializeMetadata(output),
875
859
  ...contents,
876
860
  };
877
- return Promise.resolve(response);
861
+ return response;
878
862
  };
879
863
  const de_ListUsersCommandError = async (output, context) => {
880
864
  const parsedOutput = {
@@ -900,10 +884,9 @@ const de_ListUsersCommandError = async (output, context) => {
900
884
  throw await de_ValidationExceptionRes(parsedOutput, context);
901
885
  default:
902
886
  const parsedBody = parsedOutput.body;
903
- throwDefaultError({
887
+ return throwDefaultError({
904
888
  output,
905
889
  parsedBody,
906
- exceptionCtor: __BaseException,
907
890
  errorCode,
908
891
  });
909
892
  }
@@ -914,12 +897,12 @@ export const de_UpdateGroupCommand = async (output, context) => {
914
897
  }
915
898
  const data = await parseBody(output.body, context);
916
899
  let contents = {};
917
- contents = de_UpdateGroupResponse(data, context);
900
+ contents = _json(data);
918
901
  const response = {
919
902
  $metadata: deserializeMetadata(output),
920
903
  ...contents,
921
904
  };
922
- return Promise.resolve(response);
905
+ return response;
923
906
  };
924
907
  const de_UpdateGroupCommandError = async (output, context) => {
925
908
  const parsedOutput = {
@@ -951,10 +934,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
951
934
  throw await de_ValidationExceptionRes(parsedOutput, context);
952
935
  default:
953
936
  const parsedBody = parsedOutput.body;
954
- throwDefaultError({
937
+ return throwDefaultError({
955
938
  output,
956
939
  parsedBody,
957
- exceptionCtor: __BaseException,
958
940
  errorCode,
959
941
  });
960
942
  }
@@ -965,12 +947,12 @@ export const de_UpdateUserCommand = async (output, context) => {
965
947
  }
966
948
  const data = await parseBody(output.body, context);
967
949
  let contents = {};
968
- contents = de_UpdateUserResponse(data, context);
950
+ contents = _json(data);
969
951
  const response = {
970
952
  $metadata: deserializeMetadata(output),
971
953
  ...contents,
972
954
  };
973
- return Promise.resolve(response);
955
+ return response;
974
956
  };
975
957
  const de_UpdateUserCommandError = async (output, context) => {
976
958
  const parsedOutput = {
@@ -1002,17 +984,16 @@ const de_UpdateUserCommandError = async (output, context) => {
1002
984
  throw await de_ValidationExceptionRes(parsedOutput, context);
1003
985
  default:
1004
986
  const parsedBody = parsedOutput.body;
1005
- throwDefaultError({
987
+ return throwDefaultError({
1006
988
  output,
1007
989
  parsedBody,
1008
- exceptionCtor: __BaseException,
1009
990
  errorCode,
1010
991
  });
1011
992
  }
1012
993
  };
1013
994
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1014
995
  const body = parsedOutput.body;
1015
- const deserialized = de_AccessDeniedException(body, context);
996
+ const deserialized = _json(body);
1016
997
  const exception = new AccessDeniedException({
1017
998
  $metadata: deserializeMetadata(parsedOutput),
1018
999
  ...deserialized,
@@ -1021,7 +1002,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1021
1002
  };
1022
1003
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1023
1004
  const body = parsedOutput.body;
1024
- const deserialized = de_ConflictException(body, context);
1005
+ const deserialized = _json(body);
1025
1006
  const exception = new ConflictException({
1026
1007
  $metadata: deserializeMetadata(parsedOutput),
1027
1008
  ...deserialized,
@@ -1030,7 +1011,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1030
1011
  };
1031
1012
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1032
1013
  const body = parsedOutput.body;
1033
- const deserialized = de_InternalServerException(body, context);
1014
+ const deserialized = _json(body);
1034
1015
  const exception = new InternalServerException({
1035
1016
  $metadata: deserializeMetadata(parsedOutput),
1036
1017
  ...deserialized,
@@ -1039,7 +1020,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1039
1020
  };
1040
1021
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1041
1022
  const body = parsedOutput.body;
1042
- const deserialized = de_ResourceNotFoundException(body, context);
1023
+ const deserialized = _json(body);
1043
1024
  const exception = new ResourceNotFoundException({
1044
1025
  $metadata: deserializeMetadata(parsedOutput),
1045
1026
  ...deserialized,
@@ -1048,7 +1029,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1048
1029
  };
1049
1030
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1050
1031
  const body = parsedOutput.body;
1051
- const deserialized = de_ServiceQuotaExceededException(body, context);
1032
+ const deserialized = _json(body);
1052
1033
  const exception = new ServiceQuotaExceededException({
1053
1034
  $metadata: deserializeMetadata(parsedOutput),
1054
1035
  ...deserialized,
@@ -1057,7 +1038,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1057
1038
  };
1058
1039
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1059
1040
  const body = parsedOutput.body;
1060
- const deserialized = de_ThrottlingException(body, context);
1041
+ const deserialized = _json(body);
1061
1042
  const exception = new ThrottlingException({
1062
1043
  $metadata: deserializeMetadata(parsedOutput),
1063
1044
  ...deserialized,
@@ -1066,44 +1047,25 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1066
1047
  };
1067
1048
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1068
1049
  const body = parsedOutput.body;
1069
- const deserialized = de_ValidationException(body, context);
1050
+ const deserialized = _json(body);
1070
1051
  const exception = new ValidationException({
1071
1052
  $metadata: deserializeMetadata(parsedOutput),
1072
1053
  ...deserialized,
1073
1054
  });
1074
1055
  return __decorateServiceException(exception, body);
1075
1056
  };
1076
- const se_Address = (input, context) => {
1077
- return {
1078
- ...(input.Country != null && { Country: input.Country }),
1079
- ...(input.Formatted != null && { Formatted: input.Formatted }),
1080
- ...(input.Locality != null && { Locality: input.Locality }),
1081
- ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
1082
- ...(input.Primary != null && { Primary: input.Primary }),
1083
- ...(input.Region != null && { Region: input.Region }),
1084
- ...(input.StreetAddress != null && { StreetAddress: input.StreetAddress }),
1085
- ...(input.Type != null && { Type: input.Type }),
1086
- };
1087
- };
1088
- const se_Addresses = (input, context) => {
1089
- return input
1090
- .filter((e) => e != null)
1091
- .map((entry) => {
1092
- return se_Address(entry, context);
1093
- });
1094
- };
1095
1057
  const se_AlternateIdentifier = (input, context) => {
1096
1058
  return AlternateIdentifier.visit(input, {
1097
- ExternalId: (value) => ({ ExternalId: se_ExternalId(value, context) }),
1059
+ ExternalId: (value) => ({ ExternalId: _json(value) }),
1098
1060
  UniqueAttribute: (value) => ({ UniqueAttribute: se_UniqueAttribute(value, context) }),
1099
1061
  _: (name, value) => ({ name: value }),
1100
1062
  });
1101
1063
  };
1102
1064
  const se_AttributeOperation = (input, context) => {
1103
- return {
1104
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1105
- ...(input.AttributeValue != null && { AttributeValue: se_AttributeValue(input.AttributeValue, context) }),
1106
- };
1065
+ return take(input, {
1066
+ AttributePath: [],
1067
+ AttributeValue: (_) => se_AttributeValue(_, context),
1068
+ });
1107
1069
  };
1108
1070
  const se_AttributeOperations = (input, context) => {
1109
1071
  return input
@@ -1115,569 +1077,37 @@ const se_AttributeOperations = (input, context) => {
1115
1077
  const se_AttributeValue = (input, context) => {
1116
1078
  return input;
1117
1079
  };
1118
- const se_CreateGroupMembershipRequest = (input, context) => {
1119
- return {
1120
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1121
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1122
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1123
- };
1124
- };
1125
- const se_CreateGroupRequest = (input, context) => {
1126
- return {
1127
- ...(input.Description != null && { Description: input.Description }),
1128
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1129
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1130
- };
1131
- };
1132
- const se_CreateUserRequest = (input, context) => {
1133
- return {
1134
- ...(input.Addresses != null && { Addresses: se_Addresses(input.Addresses, context) }),
1135
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1136
- ...(input.Emails != null && { Emails: se_Emails(input.Emails, context) }),
1137
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1138
- ...(input.Locale != null && { Locale: input.Locale }),
1139
- ...(input.Name != null && { Name: se_Name(input.Name, context) }),
1140
- ...(input.NickName != null && { NickName: input.NickName }),
1141
- ...(input.PhoneNumbers != null && { PhoneNumbers: se_PhoneNumbers(input.PhoneNumbers, context) }),
1142
- ...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
1143
- ...(input.ProfileUrl != null && { ProfileUrl: input.ProfileUrl }),
1144
- ...(input.Timezone != null && { Timezone: input.Timezone }),
1145
- ...(input.Title != null && { Title: input.Title }),
1146
- ...(input.UserName != null && { UserName: input.UserName }),
1147
- ...(input.UserType != null && { UserType: input.UserType }),
1148
- };
1149
- };
1150
- const se_DeleteGroupMembershipRequest = (input, context) => {
1151
- return {
1152
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1153
- ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1154
- };
1155
- };
1156
- const se_DeleteGroupRequest = (input, context) => {
1157
- return {
1158
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1159
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1160
- };
1161
- };
1162
- const se_DeleteUserRequest = (input, context) => {
1163
- return {
1164
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1165
- ...(input.UserId != null && { UserId: input.UserId }),
1166
- };
1167
- };
1168
- const se_DescribeGroupMembershipRequest = (input, context) => {
1169
- return {
1170
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1171
- ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1172
- };
1173
- };
1174
- const se_DescribeGroupRequest = (input, context) => {
1175
- return {
1176
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1177
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1178
- };
1179
- };
1180
- const se_DescribeUserRequest = (input, context) => {
1181
- return {
1182
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1183
- ...(input.UserId != null && { UserId: input.UserId }),
1184
- };
1185
- };
1186
- const se_Email = (input, context) => {
1187
- return {
1188
- ...(input.Primary != null && { Primary: input.Primary }),
1189
- ...(input.Type != null && { Type: input.Type }),
1190
- ...(input.Value != null && { Value: input.Value }),
1191
- };
1192
- };
1193
- const se_Emails = (input, context) => {
1194
- return input
1195
- .filter((e) => e != null)
1196
- .map((entry) => {
1197
- return se_Email(entry, context);
1198
- });
1199
- };
1200
- const se_ExternalId = (input, context) => {
1201
- return {
1202
- ...(input.Id != null && { Id: input.Id }),
1203
- ...(input.Issuer != null && { Issuer: input.Issuer }),
1204
- };
1205
- };
1206
- const se_Filter = (input, context) => {
1207
- return {
1208
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1209
- ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
1210
- };
1211
- };
1212
- const se_Filters = (input, context) => {
1213
- return input
1214
- .filter((e) => e != null)
1215
- .map((entry) => {
1216
- return se_Filter(entry, context);
1217
- });
1218
- };
1219
1080
  const se_GetGroupIdRequest = (input, context) => {
1220
- return {
1221
- ...(input.AlternateIdentifier != null && {
1222
- AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
1223
- }),
1224
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1225
- };
1226
- };
1227
- const se_GetGroupMembershipIdRequest = (input, context) => {
1228
- return {
1229
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1230
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1231
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1232
- };
1233
- };
1234
- const se_GetUserIdRequest = (input, context) => {
1235
- return {
1236
- ...(input.AlternateIdentifier != null && {
1237
- AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
1238
- }),
1239
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1240
- };
1241
- };
1242
- const se_GroupIds = (input, context) => {
1243
- return input
1244
- .filter((e) => e != null)
1245
- .map((entry) => {
1246
- return entry;
1081
+ return take(input, {
1082
+ AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
1083
+ IdentityStoreId: [],
1247
1084
  });
1248
1085
  };
1249
- const se_IsMemberInGroupsRequest = (input, context) => {
1250
- return {
1251
- ...(input.GroupIds != null && { GroupIds: se_GroupIds(input.GroupIds, context) }),
1252
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1253
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1254
- };
1255
- };
1256
- const se_ListGroupMembershipsForMemberRequest = (input, context) => {
1257
- return {
1258
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1259
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1260
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1261
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1262
- };
1263
- };
1264
- const se_ListGroupMembershipsRequest = (input, context) => {
1265
- return {
1266
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1267
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1268
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1269
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1270
- };
1271
- };
1272
- const se_ListGroupsRequest = (input, context) => {
1273
- return {
1274
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
1275
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1276
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1277
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1278
- };
1279
- };
1280
- const se_ListUsersRequest = (input, context) => {
1281
- return {
1282
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
1283
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1284
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1285
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1286
- };
1287
- };
1288
- const se_MemberId = (input, context) => {
1289
- return MemberId.visit(input, {
1290
- UserId: (value) => ({ UserId: value }),
1291
- _: (name, value) => ({ name: value }),
1292
- });
1293
- };
1294
- const se_Name = (input, context) => {
1295
- return {
1296
- ...(input.FamilyName != null && { FamilyName: input.FamilyName }),
1297
- ...(input.Formatted != null && { Formatted: input.Formatted }),
1298
- ...(input.GivenName != null && { GivenName: input.GivenName }),
1299
- ...(input.HonorificPrefix != null && { HonorificPrefix: input.HonorificPrefix }),
1300
- ...(input.HonorificSuffix != null && { HonorificSuffix: input.HonorificSuffix }),
1301
- ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
1302
- };
1303
- };
1304
- const se_PhoneNumber = (input, context) => {
1305
- return {
1306
- ...(input.Primary != null && { Primary: input.Primary }),
1307
- ...(input.Type != null && { Type: input.Type }),
1308
- ...(input.Value != null && { Value: input.Value }),
1309
- };
1310
- };
1311
- const se_PhoneNumbers = (input, context) => {
1312
- return input
1313
- .filter((e) => e != null)
1314
- .map((entry) => {
1315
- return se_PhoneNumber(entry, context);
1086
+ const se_GetUserIdRequest = (input, context) => {
1087
+ return take(input, {
1088
+ AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
1089
+ IdentityStoreId: [],
1316
1090
  });
1317
1091
  };
1318
1092
  const se_UniqueAttribute = (input, context) => {
1319
- return {
1320
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1321
- ...(input.AttributeValue != null && { AttributeValue: se_AttributeValue(input.AttributeValue, context) }),
1322
- };
1323
- };
1324
- const se_UpdateGroupRequest = (input, context) => {
1325
- return {
1326
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1327
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1328
- ...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
1329
- };
1330
- };
1331
- const se_UpdateUserRequest = (input, context) => {
1332
- return {
1333
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1334
- ...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
1335
- ...(input.UserId != null && { UserId: input.UserId }),
1336
- };
1337
- };
1338
- const de_AccessDeniedException = (output, context) => {
1339
- return {
1340
- Message: __expectString(output.Message),
1341
- RequestId: __expectString(output.RequestId),
1342
- };
1343
- };
1344
- const de_Address = (output, context) => {
1345
- return {
1346
- Country: __expectString(output.Country),
1347
- Formatted: __expectString(output.Formatted),
1348
- Locality: __expectString(output.Locality),
1349
- PostalCode: __expectString(output.PostalCode),
1350
- Primary: __expectBoolean(output.Primary),
1351
- Region: __expectString(output.Region),
1352
- StreetAddress: __expectString(output.StreetAddress),
1353
- Type: __expectString(output.Type),
1354
- };
1355
- };
1356
- const de_Addresses = (output, context) => {
1357
- const retVal = (output || [])
1358
- .filter((e) => e != null)
1359
- .map((entry) => {
1360
- if (entry === null) {
1361
- return null;
1362
- }
1363
- return de_Address(entry, context);
1093
+ return take(input, {
1094
+ AttributePath: [],
1095
+ AttributeValue: (_) => se_AttributeValue(_, context),
1364
1096
  });
1365
- return retVal;
1366
- };
1367
- const de_ConflictException = (output, context) => {
1368
- return {
1369
- Message: __expectString(output.Message),
1370
- Reason: __expectString(output.Reason),
1371
- RequestId: __expectString(output.RequestId),
1372
- };
1373
- };
1374
- const de_CreateGroupMembershipResponse = (output, context) => {
1375
- return {
1376
- IdentityStoreId: __expectString(output.IdentityStoreId),
1377
- MembershipId: __expectString(output.MembershipId),
1378
- };
1379
1097
  };
1380
- const de_CreateGroupResponse = (output, context) => {
1381
- return {
1382
- GroupId: __expectString(output.GroupId),
1383
- IdentityStoreId: __expectString(output.IdentityStoreId),
1384
- };
1385
- };
1386
- const de_CreateUserResponse = (output, context) => {
1387
- return {
1388
- IdentityStoreId: __expectString(output.IdentityStoreId),
1389
- UserId: __expectString(output.UserId),
1390
- };
1391
- };
1392
- const de_DeleteGroupMembershipResponse = (output, context) => {
1393
- return {};
1394
- };
1395
- const de_DeleteGroupResponse = (output, context) => {
1396
- return {};
1397
- };
1398
- const de_DeleteUserResponse = (output, context) => {
1399
- return {};
1400
- };
1401
- const de_DescribeGroupMembershipResponse = (output, context) => {
1402
- return {
1403
- GroupId: __expectString(output.GroupId),
1404
- IdentityStoreId: __expectString(output.IdentityStoreId),
1405
- MemberId: output.MemberId != null ? de_MemberId(__expectUnion(output.MemberId), context) : undefined,
1406
- MembershipId: __expectString(output.MembershipId),
1407
- };
1408
- };
1409
- const de_DescribeGroupResponse = (output, context) => {
1410
- return {
1411
- Description: __expectString(output.Description),
1412
- DisplayName: __expectString(output.DisplayName),
1413
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1414
- GroupId: __expectString(output.GroupId),
1415
- IdentityStoreId: __expectString(output.IdentityStoreId),
1416
- };
1417
- };
1418
- const de_DescribeUserResponse = (output, context) => {
1419
- return {
1420
- Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
1421
- DisplayName: __expectString(output.DisplayName),
1422
- Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
1423
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1424
- IdentityStoreId: __expectString(output.IdentityStoreId),
1425
- Locale: __expectString(output.Locale),
1426
- Name: output.Name != null ? de_Name(output.Name, context) : undefined,
1427
- NickName: __expectString(output.NickName),
1428
- PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
1429
- PreferredLanguage: __expectString(output.PreferredLanguage),
1430
- ProfileUrl: __expectString(output.ProfileUrl),
1431
- Timezone: __expectString(output.Timezone),
1432
- Title: __expectString(output.Title),
1433
- UserId: __expectString(output.UserId),
1434
- UserName: __expectString(output.UserName),
1435
- UserType: __expectString(output.UserType),
1436
- };
1437
- };
1438
- const de_Email = (output, context) => {
1439
- return {
1440
- Primary: __expectBoolean(output.Primary),
1441
- Type: __expectString(output.Type),
1442
- Value: __expectString(output.Value),
1443
- };
1444
- };
1445
- const de_Emails = (output, context) => {
1446
- const retVal = (output || [])
1447
- .filter((e) => e != null)
1448
- .map((entry) => {
1449
- if (entry === null) {
1450
- return null;
1451
- }
1452
- return de_Email(entry, context);
1453
- });
1454
- return retVal;
1455
- };
1456
- const de_ExternalId = (output, context) => {
1457
- return {
1458
- Id: __expectString(output.Id),
1459
- Issuer: __expectString(output.Issuer),
1460
- };
1461
- };
1462
- const de_ExternalIds = (output, context) => {
1463
- const retVal = (output || [])
1464
- .filter((e) => e != null)
1465
- .map((entry) => {
1466
- if (entry === null) {
1467
- return null;
1468
- }
1469
- return de_ExternalId(entry, context);
1470
- });
1471
- return retVal;
1472
- };
1473
- const de_GetGroupIdResponse = (output, context) => {
1474
- return {
1475
- GroupId: __expectString(output.GroupId),
1476
- IdentityStoreId: __expectString(output.IdentityStoreId),
1477
- };
1478
- };
1479
- const de_GetGroupMembershipIdResponse = (output, context) => {
1480
- return {
1481
- IdentityStoreId: __expectString(output.IdentityStoreId),
1482
- MembershipId: __expectString(output.MembershipId),
1483
- };
1484
- };
1485
- const de_GetUserIdResponse = (output, context) => {
1486
- return {
1487
- IdentityStoreId: __expectString(output.IdentityStoreId),
1488
- UserId: __expectString(output.UserId),
1489
- };
1490
- };
1491
- const de_Group = (output, context) => {
1492
- return {
1493
- Description: __expectString(output.Description),
1494
- DisplayName: __expectString(output.DisplayName),
1495
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1496
- GroupId: __expectString(output.GroupId),
1497
- IdentityStoreId: __expectString(output.IdentityStoreId),
1498
- };
1499
- };
1500
- const de_GroupMembership = (output, context) => {
1501
- return {
1502
- GroupId: __expectString(output.GroupId),
1503
- IdentityStoreId: __expectString(output.IdentityStoreId),
1504
- MemberId: output.MemberId != null ? de_MemberId(__expectUnion(output.MemberId), context) : undefined,
1505
- MembershipId: __expectString(output.MembershipId),
1506
- };
1507
- };
1508
- const de_GroupMembershipExistenceResult = (output, context) => {
1509
- return {
1510
- GroupId: __expectString(output.GroupId),
1511
- MemberId: output.MemberId != null ? de_MemberId(__expectUnion(output.MemberId), context) : undefined,
1512
- MembershipExists: __expectBoolean(output.MembershipExists),
1513
- };
1514
- };
1515
- const de_GroupMembershipExistenceResults = (output, context) => {
1516
- const retVal = (output || [])
1517
- .filter((e) => e != null)
1518
- .map((entry) => {
1519
- if (entry === null) {
1520
- return null;
1521
- }
1522
- return de_GroupMembershipExistenceResult(entry, context);
1523
- });
1524
- return retVal;
1525
- };
1526
- const de_GroupMemberships = (output, context) => {
1527
- const retVal = (output || [])
1528
- .filter((e) => e != null)
1529
- .map((entry) => {
1530
- if (entry === null) {
1531
- return null;
1532
- }
1533
- return de_GroupMembership(entry, context);
1534
- });
1535
- return retVal;
1536
- };
1537
- const de_Groups = (output, context) => {
1538
- const retVal = (output || [])
1539
- .filter((e) => e != null)
1540
- .map((entry) => {
1541
- if (entry === null) {
1542
- return null;
1543
- }
1544
- return de_Group(entry, context);
1545
- });
1546
- return retVal;
1547
- };
1548
- const de_InternalServerException = (output, context) => {
1549
- return {
1550
- Message: __expectString(output.Message),
1551
- RequestId: __expectString(output.RequestId),
1552
- RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
1553
- };
1554
- };
1555
- const de_IsMemberInGroupsResponse = (output, context) => {
1556
- return {
1557
- Results: output.Results != null ? de_GroupMembershipExistenceResults(output.Results, context) : undefined,
1558
- };
1559
- };
1560
- const de_ListGroupMembershipsForMemberResponse = (output, context) => {
1561
- return {
1562
- GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
1563
- NextToken: __expectString(output.NextToken),
1564
- };
1565
- };
1566
- const de_ListGroupMembershipsResponse = (output, context) => {
1567
- return {
1568
- GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
1569
- NextToken: __expectString(output.NextToken),
1570
- };
1571
- };
1572
- const de_ListGroupsResponse = (output, context) => {
1573
- return {
1574
- Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
1575
- NextToken: __expectString(output.NextToken),
1576
- };
1577
- };
1578
- const de_ListUsersResponse = (output, context) => {
1579
- return {
1580
- NextToken: __expectString(output.NextToken),
1581
- Users: output.Users != null ? de_Users(output.Users, context) : undefined,
1582
- };
1583
- };
1584
- const de_MemberId = (output, context) => {
1585
- if (__expectString(output.UserId) !== undefined) {
1586
- return { UserId: __expectString(output.UserId) };
1587
- }
1588
- return { $unknown: Object.entries(output)[0] };
1589
- };
1590
- const de_Name = (output, context) => {
1591
- return {
1592
- FamilyName: __expectString(output.FamilyName),
1593
- Formatted: __expectString(output.Formatted),
1594
- GivenName: __expectString(output.GivenName),
1595
- HonorificPrefix: __expectString(output.HonorificPrefix),
1596
- HonorificSuffix: __expectString(output.HonorificSuffix),
1597
- MiddleName: __expectString(output.MiddleName),
1598
- };
1599
- };
1600
- const de_PhoneNumber = (output, context) => {
1601
- return {
1602
- Primary: __expectBoolean(output.Primary),
1603
- Type: __expectString(output.Type),
1604
- Value: __expectString(output.Value),
1605
- };
1606
- };
1607
- const de_PhoneNumbers = (output, context) => {
1608
- const retVal = (output || [])
1609
- .filter((e) => e != null)
1610
- .map((entry) => {
1611
- if (entry === null) {
1612
- return null;
1613
- }
1614
- return de_PhoneNumber(entry, context);
1098
+ const se_UpdateGroupRequest = (input, context) => {
1099
+ return take(input, {
1100
+ GroupId: [],
1101
+ IdentityStoreId: [],
1102
+ Operations: (_) => se_AttributeOperations(_, context),
1615
1103
  });
1616
- return retVal;
1617
- };
1618
- const de_ResourceNotFoundException = (output, context) => {
1619
- return {
1620
- Message: __expectString(output.Message),
1621
- RequestId: __expectString(output.RequestId),
1622
- ResourceId: __expectString(output.ResourceId),
1623
- ResourceType: __expectString(output.ResourceType),
1624
- };
1625
- };
1626
- const de_ServiceQuotaExceededException = (output, context) => {
1627
- return {
1628
- Message: __expectString(output.Message),
1629
- RequestId: __expectString(output.RequestId),
1630
- };
1631
- };
1632
- const de_ThrottlingException = (output, context) => {
1633
- return {
1634
- Message: __expectString(output.Message),
1635
- RequestId: __expectString(output.RequestId),
1636
- RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
1637
- };
1638
- };
1639
- const de_UpdateGroupResponse = (output, context) => {
1640
- return {};
1641
- };
1642
- const de_UpdateUserResponse = (output, context) => {
1643
- return {};
1644
- };
1645
- const de_User = (output, context) => {
1646
- return {
1647
- Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
1648
- DisplayName: __expectString(output.DisplayName),
1649
- Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
1650
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1651
- IdentityStoreId: __expectString(output.IdentityStoreId),
1652
- Locale: __expectString(output.Locale),
1653
- Name: output.Name != null ? de_Name(output.Name, context) : undefined,
1654
- NickName: __expectString(output.NickName),
1655
- PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
1656
- PreferredLanguage: __expectString(output.PreferredLanguage),
1657
- ProfileUrl: __expectString(output.ProfileUrl),
1658
- Timezone: __expectString(output.Timezone),
1659
- Title: __expectString(output.Title),
1660
- UserId: __expectString(output.UserId),
1661
- UserName: __expectString(output.UserName),
1662
- UserType: __expectString(output.UserType),
1663
- };
1664
1104
  };
1665
- const de_Users = (output, context) => {
1666
- const retVal = (output || [])
1667
- .filter((e) => e != null)
1668
- .map((entry) => {
1669
- if (entry === null) {
1670
- return null;
1671
- }
1672
- return de_User(entry, context);
1105
+ const se_UpdateUserRequest = (input, context) => {
1106
+ return take(input, {
1107
+ IdentityStoreId: [],
1108
+ Operations: (_) => se_AttributeOperations(_, context),
1109
+ UserId: [],
1673
1110
  });
1674
- return retVal;
1675
- };
1676
- const de_ValidationException = (output, context) => {
1677
- return {
1678
- Message: __expectString(output.Message),
1679
- RequestId: __expectString(output.RequestId),
1680
- };
1681
1111
  };
1682
1112
  const deserializeMetadata = (output) => ({
1683
1113
  httpStatusCode: output.statusCode,
@@ -1692,6 +1122,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1692
1122
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1693
1123
  };
1694
1124
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1125
+ const throwDefaultError = withBaseException(__BaseException);
1695
1126
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1696
1127
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1697
1128
  const contents = {