@aws-sdk/client-identitystore 3.310.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.
@@ -1,174 +1,117 @@
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
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "AWSIdentityStore.CreateGroup",
9
- };
6
+ const headers = sharedHeaders("CreateGroup");
10
7
  let body;
11
- body = JSON.stringify(se_CreateGroupRequest(input, context));
8
+ body = JSON.stringify(_json(input));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CreateGroupMembershipCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "AWSIdentityStore.CreateGroupMembership",
18
- };
12
+ const headers = sharedHeaders("CreateGroupMembership");
19
13
  let body;
20
- body = JSON.stringify(se_CreateGroupMembershipRequest(input, context));
14
+ body = JSON.stringify(_json(input));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateUserCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "AWSIdentityStore.CreateUser",
27
- };
18
+ const headers = sharedHeaders("CreateUser");
28
19
  let body;
29
- body = JSON.stringify(se_CreateUserRequest(input, context));
20
+ body = JSON.stringify(_json(input));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_DeleteGroupCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "AWSIdentityStore.DeleteGroup",
36
- };
24
+ const headers = sharedHeaders("DeleteGroup");
37
25
  let body;
38
- body = JSON.stringify(se_DeleteGroupRequest(input, context));
26
+ body = JSON.stringify(_json(input));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_DeleteGroupMembershipCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "AWSIdentityStore.DeleteGroupMembership",
45
- };
30
+ const headers = sharedHeaders("DeleteGroupMembership");
46
31
  let body;
47
- body = JSON.stringify(se_DeleteGroupMembershipRequest(input, context));
32
+ body = JSON.stringify(_json(input));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_DeleteUserCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AWSIdentityStore.DeleteUser",
54
- };
36
+ const headers = sharedHeaders("DeleteUser");
55
37
  let body;
56
- body = JSON.stringify(se_DeleteUserRequest(input, context));
38
+ body = JSON.stringify(_json(input));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_DescribeGroupCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AWSIdentityStore.DescribeGroup",
63
- };
42
+ const headers = sharedHeaders("DescribeGroup");
64
43
  let body;
65
- body = JSON.stringify(se_DescribeGroupRequest(input, context));
44
+ body = JSON.stringify(_json(input));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DescribeGroupMembershipCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AWSIdentityStore.DescribeGroupMembership",
72
- };
48
+ const headers = sharedHeaders("DescribeGroupMembership");
73
49
  let body;
74
- body = JSON.stringify(se_DescribeGroupMembershipRequest(input, context));
50
+ body = JSON.stringify(_json(input));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DescribeUserCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "AWSIdentityStore.DescribeUser",
81
- };
54
+ const headers = sharedHeaders("DescribeUser");
82
55
  let body;
83
- body = JSON.stringify(se_DescribeUserRequest(input, context));
56
+ body = JSON.stringify(_json(input));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_GetGroupIdCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AWSIdentityStore.GetGroupId",
90
- };
60
+ const headers = sharedHeaders("GetGroupId");
91
61
  let body;
92
62
  body = JSON.stringify(se_GetGroupIdRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_GetGroupMembershipIdCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "AWSIdentityStore.GetGroupMembershipId",
99
- };
66
+ const headers = sharedHeaders("GetGroupMembershipId");
100
67
  let body;
101
- body = JSON.stringify(se_GetGroupMembershipIdRequest(input, context));
68
+ body = JSON.stringify(_json(input));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_GetUserIdCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "AWSIdentityStore.GetUserId",
108
- };
72
+ const headers = sharedHeaders("GetUserId");
109
73
  let body;
110
74
  body = JSON.stringify(se_GetUserIdRequest(input, context));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_IsMemberInGroupsCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "AWSIdentityStore.IsMemberInGroups",
117
- };
78
+ const headers = sharedHeaders("IsMemberInGroups");
118
79
  let body;
119
- body = JSON.stringify(se_IsMemberInGroupsRequest(input, context));
80
+ body = JSON.stringify(_json(input));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_ListGroupMembershipsCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "AWSIdentityStore.ListGroupMemberships",
126
- };
84
+ const headers = sharedHeaders("ListGroupMemberships");
127
85
  let body;
128
- body = JSON.stringify(se_ListGroupMembershipsRequest(input, context));
86
+ body = JSON.stringify(_json(input));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "AWSIdentityStore.ListGroupMembershipsForMember",
135
- };
90
+ const headers = sharedHeaders("ListGroupMembershipsForMember");
136
91
  let body;
137
- body = JSON.stringify(se_ListGroupMembershipsForMemberRequest(input, context));
92
+ body = JSON.stringify(_json(input));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_ListGroupsCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AWSIdentityStore.ListGroups",
144
- };
96
+ const headers = sharedHeaders("ListGroups");
145
97
  let body;
146
- body = JSON.stringify(se_ListGroupsRequest(input, context));
98
+ body = JSON.stringify(_json(input));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_ListUsersCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AWSIdentityStore.ListUsers",
153
- };
102
+ const headers = sharedHeaders("ListUsers");
154
103
  let body;
155
- body = JSON.stringify(se_ListUsersRequest(input, context));
104
+ body = JSON.stringify(_json(input));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_UpdateGroupCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AWSIdentityStore.UpdateGroup",
162
- };
108
+ const headers = sharedHeaders("UpdateGroup");
163
109
  let body;
164
110
  body = JSON.stringify(se_UpdateGroupRequest(input, context));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_UpdateUserCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "AWSIdentityStore.UpdateUser",
171
- };
114
+ const headers = sharedHeaders("UpdateUser");
172
115
  let body;
173
116
  body = JSON.stringify(se_UpdateUserRequest(input, context));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -179,12 +122,12 @@ export const de_CreateGroupCommand = async (output, context) => {
179
122
  }
180
123
  const data = await parseBody(output.body, context);
181
124
  let contents = {};
182
- contents = de_CreateGroupResponse(data, context);
125
+ contents = _json(data);
183
126
  const response = {
184
127
  $metadata: deserializeMetadata(output),
185
128
  ...contents,
186
129
  };
187
- return Promise.resolve(response);
130
+ return response;
188
131
  };
189
132
  const de_CreateGroupCommandError = async (output, context) => {
190
133
  const parsedOutput = {
@@ -216,10 +159,9 @@ const de_CreateGroupCommandError = async (output, context) => {
216
159
  throw await de_ValidationExceptionRes(parsedOutput, context);
217
160
  default:
218
161
  const parsedBody = parsedOutput.body;
219
- throwDefaultError({
162
+ return throwDefaultError({
220
163
  output,
221
164
  parsedBody,
222
- exceptionCtor: __BaseException,
223
165
  errorCode,
224
166
  });
225
167
  }
@@ -230,12 +172,12 @@ export const de_CreateGroupMembershipCommand = async (output, context) => {
230
172
  }
231
173
  const data = await parseBody(output.body, context);
232
174
  let contents = {};
233
- contents = de_CreateGroupMembershipResponse(data, context);
175
+ contents = _json(data);
234
176
  const response = {
235
177
  $metadata: deserializeMetadata(output),
236
178
  ...contents,
237
179
  };
238
- return Promise.resolve(response);
180
+ return response;
239
181
  };
240
182
  const de_CreateGroupMembershipCommandError = async (output, context) => {
241
183
  const parsedOutput = {
@@ -267,10 +209,9 @@ const de_CreateGroupMembershipCommandError = async (output, context) => {
267
209
  throw await de_ValidationExceptionRes(parsedOutput, context);
268
210
  default:
269
211
  const parsedBody = parsedOutput.body;
270
- throwDefaultError({
212
+ return throwDefaultError({
271
213
  output,
272
214
  parsedBody,
273
- exceptionCtor: __BaseException,
274
215
  errorCode,
275
216
  });
276
217
  }
@@ -281,12 +222,12 @@ export const de_CreateUserCommand = async (output, context) => {
281
222
  }
282
223
  const data = await parseBody(output.body, context);
283
224
  let contents = {};
284
- contents = de_CreateUserResponse(data, context);
225
+ contents = _json(data);
285
226
  const response = {
286
227
  $metadata: deserializeMetadata(output),
287
228
  ...contents,
288
229
  };
289
- return Promise.resolve(response);
230
+ return response;
290
231
  };
291
232
  const de_CreateUserCommandError = async (output, context) => {
292
233
  const parsedOutput = {
@@ -318,10 +259,9 @@ const de_CreateUserCommandError = async (output, context) => {
318
259
  throw await de_ValidationExceptionRes(parsedOutput, context);
319
260
  default:
320
261
  const parsedBody = parsedOutput.body;
321
- throwDefaultError({
262
+ return throwDefaultError({
322
263
  output,
323
264
  parsedBody,
324
- exceptionCtor: __BaseException,
325
265
  errorCode,
326
266
  });
327
267
  }
@@ -332,12 +272,12 @@ export const de_DeleteGroupCommand = async (output, context) => {
332
272
  }
333
273
  const data = await parseBody(output.body, context);
334
274
  let contents = {};
335
- contents = de_DeleteGroupResponse(data, context);
275
+ contents = _json(data);
336
276
  const response = {
337
277
  $metadata: deserializeMetadata(output),
338
278
  ...contents,
339
279
  };
340
- return Promise.resolve(response);
280
+ return response;
341
281
  };
342
282
  const de_DeleteGroupCommandError = async (output, context) => {
343
283
  const parsedOutput = {
@@ -366,10 +306,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
366
306
  throw await de_ValidationExceptionRes(parsedOutput, context);
367
307
  default:
368
308
  const parsedBody = parsedOutput.body;
369
- throwDefaultError({
309
+ return throwDefaultError({
370
310
  output,
371
311
  parsedBody,
372
- exceptionCtor: __BaseException,
373
312
  errorCode,
374
313
  });
375
314
  }
@@ -380,12 +319,12 @@ export const de_DeleteGroupMembershipCommand = async (output, context) => {
380
319
  }
381
320
  const data = await parseBody(output.body, context);
382
321
  let contents = {};
383
- contents = de_DeleteGroupMembershipResponse(data, context);
322
+ contents = _json(data);
384
323
  const response = {
385
324
  $metadata: deserializeMetadata(output),
386
325
  ...contents,
387
326
  };
388
- return Promise.resolve(response);
327
+ return response;
389
328
  };
390
329
  const de_DeleteGroupMembershipCommandError = async (output, context) => {
391
330
  const parsedOutput = {
@@ -414,10 +353,9 @@ const de_DeleteGroupMembershipCommandError = async (output, context) => {
414
353
  throw await de_ValidationExceptionRes(parsedOutput, context);
415
354
  default:
416
355
  const parsedBody = parsedOutput.body;
417
- throwDefaultError({
356
+ return throwDefaultError({
418
357
  output,
419
358
  parsedBody,
420
- exceptionCtor: __BaseException,
421
359
  errorCode,
422
360
  });
423
361
  }
@@ -428,12 +366,12 @@ export const de_DeleteUserCommand = async (output, context) => {
428
366
  }
429
367
  const data = await parseBody(output.body, context);
430
368
  let contents = {};
431
- contents = de_DeleteUserResponse(data, context);
369
+ contents = _json(data);
432
370
  const response = {
433
371
  $metadata: deserializeMetadata(output),
434
372
  ...contents,
435
373
  };
436
- return Promise.resolve(response);
374
+ return response;
437
375
  };
438
376
  const de_DeleteUserCommandError = async (output, context) => {
439
377
  const parsedOutput = {
@@ -462,10 +400,9 @@ const de_DeleteUserCommandError = async (output, context) => {
462
400
  throw await de_ValidationExceptionRes(parsedOutput, context);
463
401
  default:
464
402
  const parsedBody = parsedOutput.body;
465
- throwDefaultError({
403
+ return throwDefaultError({
466
404
  output,
467
405
  parsedBody,
468
- exceptionCtor: __BaseException,
469
406
  errorCode,
470
407
  });
471
408
  }
@@ -476,12 +413,12 @@ export const de_DescribeGroupCommand = async (output, context) => {
476
413
  }
477
414
  const data = await parseBody(output.body, context);
478
415
  let contents = {};
479
- contents = de_DescribeGroupResponse(data, context);
416
+ contents = _json(data);
480
417
  const response = {
481
418
  $metadata: deserializeMetadata(output),
482
419
  ...contents,
483
420
  };
484
- return Promise.resolve(response);
421
+ return response;
485
422
  };
486
423
  const de_DescribeGroupCommandError = async (output, context) => {
487
424
  const parsedOutput = {
@@ -507,10 +444,9 @@ const de_DescribeGroupCommandError = async (output, context) => {
507
444
  throw await de_ValidationExceptionRes(parsedOutput, context);
508
445
  default:
509
446
  const parsedBody = parsedOutput.body;
510
- throwDefaultError({
447
+ return throwDefaultError({
511
448
  output,
512
449
  parsedBody,
513
- exceptionCtor: __BaseException,
514
450
  errorCode,
515
451
  });
516
452
  }
@@ -521,12 +457,12 @@ export const de_DescribeGroupMembershipCommand = async (output, context) => {
521
457
  }
522
458
  const data = await parseBody(output.body, context);
523
459
  let contents = {};
524
- contents = de_DescribeGroupMembershipResponse(data, context);
460
+ contents = _json(data);
525
461
  const response = {
526
462
  $metadata: deserializeMetadata(output),
527
463
  ...contents,
528
464
  };
529
- return Promise.resolve(response);
465
+ return response;
530
466
  };
531
467
  const de_DescribeGroupMembershipCommandError = async (output, context) => {
532
468
  const parsedOutput = {
@@ -552,10 +488,9 @@ const de_DescribeGroupMembershipCommandError = async (output, context) => {
552
488
  throw await de_ValidationExceptionRes(parsedOutput, context);
553
489
  default:
554
490
  const parsedBody = parsedOutput.body;
555
- throwDefaultError({
491
+ return throwDefaultError({
556
492
  output,
557
493
  parsedBody,
558
- exceptionCtor: __BaseException,
559
494
  errorCode,
560
495
  });
561
496
  }
@@ -566,12 +501,12 @@ export const de_DescribeUserCommand = async (output, context) => {
566
501
  }
567
502
  const data = await parseBody(output.body, context);
568
503
  let contents = {};
569
- contents = de_DescribeUserResponse(data, context);
504
+ contents = _json(data);
570
505
  const response = {
571
506
  $metadata: deserializeMetadata(output),
572
507
  ...contents,
573
508
  };
574
- return Promise.resolve(response);
509
+ return response;
575
510
  };
576
511
  const de_DescribeUserCommandError = async (output, context) => {
577
512
  const parsedOutput = {
@@ -597,10 +532,9 @@ const de_DescribeUserCommandError = async (output, context) => {
597
532
  throw await de_ValidationExceptionRes(parsedOutput, context);
598
533
  default:
599
534
  const parsedBody = parsedOutput.body;
600
- throwDefaultError({
535
+ return throwDefaultError({
601
536
  output,
602
537
  parsedBody,
603
- exceptionCtor: __BaseException,
604
538
  errorCode,
605
539
  });
606
540
  }
@@ -611,12 +545,12 @@ export const de_GetGroupIdCommand = async (output, context) => {
611
545
  }
612
546
  const data = await parseBody(output.body, context);
613
547
  let contents = {};
614
- contents = de_GetGroupIdResponse(data, context);
548
+ contents = _json(data);
615
549
  const response = {
616
550
  $metadata: deserializeMetadata(output),
617
551
  ...contents,
618
552
  };
619
- return Promise.resolve(response);
553
+ return response;
620
554
  };
621
555
  const de_GetGroupIdCommandError = async (output, context) => {
622
556
  const parsedOutput = {
@@ -642,10 +576,9 @@ const de_GetGroupIdCommandError = async (output, context) => {
642
576
  throw await de_ValidationExceptionRes(parsedOutput, context);
643
577
  default:
644
578
  const parsedBody = parsedOutput.body;
645
- throwDefaultError({
579
+ return throwDefaultError({
646
580
  output,
647
581
  parsedBody,
648
- exceptionCtor: __BaseException,
649
582
  errorCode,
650
583
  });
651
584
  }
@@ -656,12 +589,12 @@ export const de_GetGroupMembershipIdCommand = async (output, context) => {
656
589
  }
657
590
  const data = await parseBody(output.body, context);
658
591
  let contents = {};
659
- contents = de_GetGroupMembershipIdResponse(data, context);
592
+ contents = _json(data);
660
593
  const response = {
661
594
  $metadata: deserializeMetadata(output),
662
595
  ...contents,
663
596
  };
664
- return Promise.resolve(response);
597
+ return response;
665
598
  };
666
599
  const de_GetGroupMembershipIdCommandError = async (output, context) => {
667
600
  const parsedOutput = {
@@ -687,10 +620,9 @@ const de_GetGroupMembershipIdCommandError = async (output, context) => {
687
620
  throw await de_ValidationExceptionRes(parsedOutput, context);
688
621
  default:
689
622
  const parsedBody = parsedOutput.body;
690
- throwDefaultError({
623
+ return throwDefaultError({
691
624
  output,
692
625
  parsedBody,
693
- exceptionCtor: __BaseException,
694
626
  errorCode,
695
627
  });
696
628
  }
@@ -701,12 +633,12 @@ export const de_GetUserIdCommand = async (output, context) => {
701
633
  }
702
634
  const data = await parseBody(output.body, context);
703
635
  let contents = {};
704
- contents = de_GetUserIdResponse(data, context);
636
+ contents = _json(data);
705
637
  const response = {
706
638
  $metadata: deserializeMetadata(output),
707
639
  ...contents,
708
640
  };
709
- return Promise.resolve(response);
641
+ return response;
710
642
  };
711
643
  const de_GetUserIdCommandError = async (output, context) => {
712
644
  const parsedOutput = {
@@ -732,10 +664,9 @@ const de_GetUserIdCommandError = async (output, context) => {
732
664
  throw await de_ValidationExceptionRes(parsedOutput, context);
733
665
  default:
734
666
  const parsedBody = parsedOutput.body;
735
- throwDefaultError({
667
+ return throwDefaultError({
736
668
  output,
737
669
  parsedBody,
738
- exceptionCtor: __BaseException,
739
670
  errorCode,
740
671
  });
741
672
  }
@@ -746,12 +677,12 @@ export const de_IsMemberInGroupsCommand = async (output, context) => {
746
677
  }
747
678
  const data = await parseBody(output.body, context);
748
679
  let contents = {};
749
- contents = de_IsMemberInGroupsResponse(data, context);
680
+ contents = _json(data);
750
681
  const response = {
751
682
  $metadata: deserializeMetadata(output),
752
683
  ...contents,
753
684
  };
754
- return Promise.resolve(response);
685
+ return response;
755
686
  };
756
687
  const de_IsMemberInGroupsCommandError = async (output, context) => {
757
688
  const parsedOutput = {
@@ -777,10 +708,9 @@ const de_IsMemberInGroupsCommandError = async (output, context) => {
777
708
  throw await de_ValidationExceptionRes(parsedOutput, context);
778
709
  default:
779
710
  const parsedBody = parsedOutput.body;
780
- throwDefaultError({
711
+ return throwDefaultError({
781
712
  output,
782
713
  parsedBody,
783
- exceptionCtor: __BaseException,
784
714
  errorCode,
785
715
  });
786
716
  }
@@ -791,12 +721,12 @@ export const de_ListGroupMembershipsCommand = async (output, context) => {
791
721
  }
792
722
  const data = await parseBody(output.body, context);
793
723
  let contents = {};
794
- contents = de_ListGroupMembershipsResponse(data, context);
724
+ contents = _json(data);
795
725
  const response = {
796
726
  $metadata: deserializeMetadata(output),
797
727
  ...contents,
798
728
  };
799
- return Promise.resolve(response);
729
+ return response;
800
730
  };
801
731
  const de_ListGroupMembershipsCommandError = async (output, context) => {
802
732
  const parsedOutput = {
@@ -822,10 +752,9 @@ const de_ListGroupMembershipsCommandError = async (output, context) => {
822
752
  throw await de_ValidationExceptionRes(parsedOutput, context);
823
753
  default:
824
754
  const parsedBody = parsedOutput.body;
825
- throwDefaultError({
755
+ return throwDefaultError({
826
756
  output,
827
757
  parsedBody,
828
- exceptionCtor: __BaseException,
829
758
  errorCode,
830
759
  });
831
760
  }
@@ -836,12 +765,12 @@ export const de_ListGroupMembershipsForMemberCommand = async (output, context) =
836
765
  }
837
766
  const data = await parseBody(output.body, context);
838
767
  let contents = {};
839
- contents = de_ListGroupMembershipsForMemberResponse(data, context);
768
+ contents = _json(data);
840
769
  const response = {
841
770
  $metadata: deserializeMetadata(output),
842
771
  ...contents,
843
772
  };
844
- return Promise.resolve(response);
773
+ return response;
845
774
  };
846
775
  const de_ListGroupMembershipsForMemberCommandError = async (output, context) => {
847
776
  const parsedOutput = {
@@ -867,10 +796,9 @@ const de_ListGroupMembershipsForMemberCommandError = async (output, context) =>
867
796
  throw await de_ValidationExceptionRes(parsedOutput, context);
868
797
  default:
869
798
  const parsedBody = parsedOutput.body;
870
- throwDefaultError({
799
+ return throwDefaultError({
871
800
  output,
872
801
  parsedBody,
873
- exceptionCtor: __BaseException,
874
802
  errorCode,
875
803
  });
876
804
  }
@@ -881,12 +809,12 @@ export const de_ListGroupsCommand = async (output, context) => {
881
809
  }
882
810
  const data = await parseBody(output.body, context);
883
811
  let contents = {};
884
- contents = de_ListGroupsResponse(data, context);
812
+ contents = _json(data);
885
813
  const response = {
886
814
  $metadata: deserializeMetadata(output),
887
815
  ...contents,
888
816
  };
889
- return Promise.resolve(response);
817
+ return response;
890
818
  };
891
819
  const de_ListGroupsCommandError = async (output, context) => {
892
820
  const parsedOutput = {
@@ -912,10 +840,9 @@ const de_ListGroupsCommandError = async (output, context) => {
912
840
  throw await de_ValidationExceptionRes(parsedOutput, context);
913
841
  default:
914
842
  const parsedBody = parsedOutput.body;
915
- throwDefaultError({
843
+ return throwDefaultError({
916
844
  output,
917
845
  parsedBody,
918
- exceptionCtor: __BaseException,
919
846
  errorCode,
920
847
  });
921
848
  }
@@ -926,12 +853,12 @@ export const de_ListUsersCommand = async (output, context) => {
926
853
  }
927
854
  const data = await parseBody(output.body, context);
928
855
  let contents = {};
929
- contents = de_ListUsersResponse(data, context);
856
+ contents = _json(data);
930
857
  const response = {
931
858
  $metadata: deserializeMetadata(output),
932
859
  ...contents,
933
860
  };
934
- return Promise.resolve(response);
861
+ return response;
935
862
  };
936
863
  const de_ListUsersCommandError = async (output, context) => {
937
864
  const parsedOutput = {
@@ -957,10 +884,9 @@ const de_ListUsersCommandError = async (output, context) => {
957
884
  throw await de_ValidationExceptionRes(parsedOutput, context);
958
885
  default:
959
886
  const parsedBody = parsedOutput.body;
960
- throwDefaultError({
887
+ return throwDefaultError({
961
888
  output,
962
889
  parsedBody,
963
- exceptionCtor: __BaseException,
964
890
  errorCode,
965
891
  });
966
892
  }
@@ -971,12 +897,12 @@ export const de_UpdateGroupCommand = async (output, context) => {
971
897
  }
972
898
  const data = await parseBody(output.body, context);
973
899
  let contents = {};
974
- contents = de_UpdateGroupResponse(data, context);
900
+ contents = _json(data);
975
901
  const response = {
976
902
  $metadata: deserializeMetadata(output),
977
903
  ...contents,
978
904
  };
979
- return Promise.resolve(response);
905
+ return response;
980
906
  };
981
907
  const de_UpdateGroupCommandError = async (output, context) => {
982
908
  const parsedOutput = {
@@ -1008,10 +934,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
1008
934
  throw await de_ValidationExceptionRes(parsedOutput, context);
1009
935
  default:
1010
936
  const parsedBody = parsedOutput.body;
1011
- throwDefaultError({
937
+ return throwDefaultError({
1012
938
  output,
1013
939
  parsedBody,
1014
- exceptionCtor: __BaseException,
1015
940
  errorCode,
1016
941
  });
1017
942
  }
@@ -1022,12 +947,12 @@ export const de_UpdateUserCommand = async (output, context) => {
1022
947
  }
1023
948
  const data = await parseBody(output.body, context);
1024
949
  let contents = {};
1025
- contents = de_UpdateUserResponse(data, context);
950
+ contents = _json(data);
1026
951
  const response = {
1027
952
  $metadata: deserializeMetadata(output),
1028
953
  ...contents,
1029
954
  };
1030
- return Promise.resolve(response);
955
+ return response;
1031
956
  };
1032
957
  const de_UpdateUserCommandError = async (output, context) => {
1033
958
  const parsedOutput = {
@@ -1059,17 +984,16 @@ const de_UpdateUserCommandError = async (output, context) => {
1059
984
  throw await de_ValidationExceptionRes(parsedOutput, context);
1060
985
  default:
1061
986
  const parsedBody = parsedOutput.body;
1062
- throwDefaultError({
987
+ return throwDefaultError({
1063
988
  output,
1064
989
  parsedBody,
1065
- exceptionCtor: __BaseException,
1066
990
  errorCode,
1067
991
  });
1068
992
  }
1069
993
  };
1070
994
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1071
995
  const body = parsedOutput.body;
1072
- const deserialized = de_AccessDeniedException(body, context);
996
+ const deserialized = _json(body);
1073
997
  const exception = new AccessDeniedException({
1074
998
  $metadata: deserializeMetadata(parsedOutput),
1075
999
  ...deserialized,
@@ -1078,7 +1002,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1078
1002
  };
1079
1003
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1080
1004
  const body = parsedOutput.body;
1081
- const deserialized = de_ConflictException(body, context);
1005
+ const deserialized = _json(body);
1082
1006
  const exception = new ConflictException({
1083
1007
  $metadata: deserializeMetadata(parsedOutput),
1084
1008
  ...deserialized,
@@ -1087,7 +1011,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1087
1011
  };
1088
1012
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1089
1013
  const body = parsedOutput.body;
1090
- const deserialized = de_InternalServerException(body, context);
1014
+ const deserialized = _json(body);
1091
1015
  const exception = new InternalServerException({
1092
1016
  $metadata: deserializeMetadata(parsedOutput),
1093
1017
  ...deserialized,
@@ -1096,7 +1020,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1096
1020
  };
1097
1021
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1098
1022
  const body = parsedOutput.body;
1099
- const deserialized = de_ResourceNotFoundException(body, context);
1023
+ const deserialized = _json(body);
1100
1024
  const exception = new ResourceNotFoundException({
1101
1025
  $metadata: deserializeMetadata(parsedOutput),
1102
1026
  ...deserialized,
@@ -1105,7 +1029,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1105
1029
  };
1106
1030
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1107
1031
  const body = parsedOutput.body;
1108
- const deserialized = de_ServiceQuotaExceededException(body, context);
1032
+ const deserialized = _json(body);
1109
1033
  const exception = new ServiceQuotaExceededException({
1110
1034
  $metadata: deserializeMetadata(parsedOutput),
1111
1035
  ...deserialized,
@@ -1114,7 +1038,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1114
1038
  };
1115
1039
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1116
1040
  const body = parsedOutput.body;
1117
- const deserialized = de_ThrottlingException(body, context);
1041
+ const deserialized = _json(body);
1118
1042
  const exception = new ThrottlingException({
1119
1043
  $metadata: deserializeMetadata(parsedOutput),
1120
1044
  ...deserialized,
@@ -1123,44 +1047,25 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1123
1047
  };
1124
1048
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1125
1049
  const body = parsedOutput.body;
1126
- const deserialized = de_ValidationException(body, context);
1050
+ const deserialized = _json(body);
1127
1051
  const exception = new ValidationException({
1128
1052
  $metadata: deserializeMetadata(parsedOutput),
1129
1053
  ...deserialized,
1130
1054
  });
1131
1055
  return __decorateServiceException(exception, body);
1132
1056
  };
1133
- const se_Address = (input, context) => {
1134
- return {
1135
- ...(input.Country != null && { Country: input.Country }),
1136
- ...(input.Formatted != null && { Formatted: input.Formatted }),
1137
- ...(input.Locality != null && { Locality: input.Locality }),
1138
- ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
1139
- ...(input.Primary != null && { Primary: input.Primary }),
1140
- ...(input.Region != null && { Region: input.Region }),
1141
- ...(input.StreetAddress != null && { StreetAddress: input.StreetAddress }),
1142
- ...(input.Type != null && { Type: input.Type }),
1143
- };
1144
- };
1145
- const se_Addresses = (input, context) => {
1146
- return input
1147
- .filter((e) => e != null)
1148
- .map((entry) => {
1149
- return se_Address(entry, context);
1150
- });
1151
- };
1152
1057
  const se_AlternateIdentifier = (input, context) => {
1153
1058
  return AlternateIdentifier.visit(input, {
1154
- ExternalId: (value) => ({ ExternalId: se_ExternalId(value, context) }),
1059
+ ExternalId: (value) => ({ ExternalId: _json(value) }),
1155
1060
  UniqueAttribute: (value) => ({ UniqueAttribute: se_UniqueAttribute(value, context) }),
1156
1061
  _: (name, value) => ({ name: value }),
1157
1062
  });
1158
1063
  };
1159
1064
  const se_AttributeOperation = (input, context) => {
1160
- return {
1161
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1162
- ...(input.AttributeValue != null && { AttributeValue: se_AttributeValue(input.AttributeValue, context) }),
1163
- };
1065
+ return take(input, {
1066
+ AttributePath: [],
1067
+ AttributeValue: (_) => se_AttributeValue(_, context),
1068
+ });
1164
1069
  };
1165
1070
  const se_AttributeOperations = (input, context) => {
1166
1071
  return input
@@ -1172,569 +1077,37 @@ const se_AttributeOperations = (input, context) => {
1172
1077
  const se_AttributeValue = (input, context) => {
1173
1078
  return input;
1174
1079
  };
1175
- const se_CreateGroupMembershipRequest = (input, context) => {
1176
- return {
1177
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1178
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1179
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1180
- };
1181
- };
1182
- const se_CreateGroupRequest = (input, context) => {
1183
- return {
1184
- ...(input.Description != null && { Description: input.Description }),
1185
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1186
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1187
- };
1188
- };
1189
- const se_CreateUserRequest = (input, context) => {
1190
- return {
1191
- ...(input.Addresses != null && { Addresses: se_Addresses(input.Addresses, context) }),
1192
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1193
- ...(input.Emails != null && { Emails: se_Emails(input.Emails, context) }),
1194
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1195
- ...(input.Locale != null && { Locale: input.Locale }),
1196
- ...(input.Name != null && { Name: se_Name(input.Name, context) }),
1197
- ...(input.NickName != null && { NickName: input.NickName }),
1198
- ...(input.PhoneNumbers != null && { PhoneNumbers: se_PhoneNumbers(input.PhoneNumbers, context) }),
1199
- ...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
1200
- ...(input.ProfileUrl != null && { ProfileUrl: input.ProfileUrl }),
1201
- ...(input.Timezone != null && { Timezone: input.Timezone }),
1202
- ...(input.Title != null && { Title: input.Title }),
1203
- ...(input.UserName != null && { UserName: input.UserName }),
1204
- ...(input.UserType != null && { UserType: input.UserType }),
1205
- };
1206
- };
1207
- const se_DeleteGroupMembershipRequest = (input, context) => {
1208
- return {
1209
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1210
- ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1211
- };
1212
- };
1213
- const se_DeleteGroupRequest = (input, context) => {
1214
- return {
1215
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1216
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1217
- };
1218
- };
1219
- const se_DeleteUserRequest = (input, context) => {
1220
- return {
1221
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1222
- ...(input.UserId != null && { UserId: input.UserId }),
1223
- };
1224
- };
1225
- const se_DescribeGroupMembershipRequest = (input, context) => {
1226
- return {
1227
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1228
- ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1229
- };
1230
- };
1231
- const se_DescribeGroupRequest = (input, context) => {
1232
- return {
1233
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1234
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1235
- };
1236
- };
1237
- const se_DescribeUserRequest = (input, context) => {
1238
- return {
1239
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1240
- ...(input.UserId != null && { UserId: input.UserId }),
1241
- };
1242
- };
1243
- const se_Email = (input, context) => {
1244
- return {
1245
- ...(input.Primary != null && { Primary: input.Primary }),
1246
- ...(input.Type != null && { Type: input.Type }),
1247
- ...(input.Value != null && { Value: input.Value }),
1248
- };
1249
- };
1250
- const se_Emails = (input, context) => {
1251
- return input
1252
- .filter((e) => e != null)
1253
- .map((entry) => {
1254
- return se_Email(entry, context);
1255
- });
1256
- };
1257
- const se_ExternalId = (input, context) => {
1258
- return {
1259
- ...(input.Id != null && { Id: input.Id }),
1260
- ...(input.Issuer != null && { Issuer: input.Issuer }),
1261
- };
1262
- };
1263
- const se_Filter = (input, context) => {
1264
- return {
1265
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1266
- ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
1267
- };
1268
- };
1269
- const se_Filters = (input, context) => {
1270
- return input
1271
- .filter((e) => e != null)
1272
- .map((entry) => {
1273
- return se_Filter(entry, context);
1274
- });
1275
- };
1276
1080
  const se_GetGroupIdRequest = (input, context) => {
1277
- return {
1278
- ...(input.AlternateIdentifier != null && {
1279
- AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
1280
- }),
1281
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1282
- };
1283
- };
1284
- const se_GetGroupMembershipIdRequest = (input, context) => {
1285
- return {
1286
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1287
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1288
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1289
- };
1290
- };
1291
- const se_GetUserIdRequest = (input, context) => {
1292
- return {
1293
- ...(input.AlternateIdentifier != null && {
1294
- AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
1295
- }),
1296
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1297
- };
1298
- };
1299
- const se_GroupIds = (input, context) => {
1300
- return input
1301
- .filter((e) => e != null)
1302
- .map((entry) => {
1303
- return entry;
1081
+ return take(input, {
1082
+ AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
1083
+ IdentityStoreId: [],
1304
1084
  });
1305
1085
  };
1306
- const se_IsMemberInGroupsRequest = (input, context) => {
1307
- return {
1308
- ...(input.GroupIds != null && { GroupIds: se_GroupIds(input.GroupIds, context) }),
1309
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1310
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1311
- };
1312
- };
1313
- const se_ListGroupMembershipsForMemberRequest = (input, context) => {
1314
- return {
1315
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1316
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1317
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1318
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1319
- };
1320
- };
1321
- const se_ListGroupMembershipsRequest = (input, context) => {
1322
- return {
1323
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1324
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1325
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1326
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1327
- };
1328
- };
1329
- const se_ListGroupsRequest = (input, context) => {
1330
- return {
1331
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
1332
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1333
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1334
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1335
- };
1336
- };
1337
- const se_ListUsersRequest = (input, context) => {
1338
- return {
1339
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
1340
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1341
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1342
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1343
- };
1344
- };
1345
- const se_MemberId = (input, context) => {
1346
- return MemberId.visit(input, {
1347
- UserId: (value) => ({ UserId: value }),
1348
- _: (name, value) => ({ name: value }),
1349
- });
1350
- };
1351
- const se_Name = (input, context) => {
1352
- return {
1353
- ...(input.FamilyName != null && { FamilyName: input.FamilyName }),
1354
- ...(input.Formatted != null && { Formatted: input.Formatted }),
1355
- ...(input.GivenName != null && { GivenName: input.GivenName }),
1356
- ...(input.HonorificPrefix != null && { HonorificPrefix: input.HonorificPrefix }),
1357
- ...(input.HonorificSuffix != null && { HonorificSuffix: input.HonorificSuffix }),
1358
- ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
1359
- };
1360
- };
1361
- const se_PhoneNumber = (input, context) => {
1362
- return {
1363
- ...(input.Primary != null && { Primary: input.Primary }),
1364
- ...(input.Type != null && { Type: input.Type }),
1365
- ...(input.Value != null && { Value: input.Value }),
1366
- };
1367
- };
1368
- const se_PhoneNumbers = (input, context) => {
1369
- return input
1370
- .filter((e) => e != null)
1371
- .map((entry) => {
1372
- return se_PhoneNumber(entry, context);
1086
+ const se_GetUserIdRequest = (input, context) => {
1087
+ return take(input, {
1088
+ AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
1089
+ IdentityStoreId: [],
1373
1090
  });
1374
1091
  };
1375
1092
  const se_UniqueAttribute = (input, context) => {
1376
- return {
1377
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1378
- ...(input.AttributeValue != null && { AttributeValue: se_AttributeValue(input.AttributeValue, context) }),
1379
- };
1380
- };
1381
- const se_UpdateGroupRequest = (input, context) => {
1382
- return {
1383
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1384
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1385
- ...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
1386
- };
1387
- };
1388
- const se_UpdateUserRequest = (input, context) => {
1389
- return {
1390
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1391
- ...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
1392
- ...(input.UserId != null && { UserId: input.UserId }),
1393
- };
1394
- };
1395
- const de_AccessDeniedException = (output, context) => {
1396
- return {
1397
- Message: __expectString(output.Message),
1398
- RequestId: __expectString(output.RequestId),
1399
- };
1400
- };
1401
- const de_Address = (output, context) => {
1402
- return {
1403
- Country: __expectString(output.Country),
1404
- Formatted: __expectString(output.Formatted),
1405
- Locality: __expectString(output.Locality),
1406
- PostalCode: __expectString(output.PostalCode),
1407
- Primary: __expectBoolean(output.Primary),
1408
- Region: __expectString(output.Region),
1409
- StreetAddress: __expectString(output.StreetAddress),
1410
- Type: __expectString(output.Type),
1411
- };
1412
- };
1413
- const de_Addresses = (output, context) => {
1414
- const retVal = (output || [])
1415
- .filter((e) => e != null)
1416
- .map((entry) => {
1417
- if (entry === null) {
1418
- return null;
1419
- }
1420
- return de_Address(entry, context);
1421
- });
1422
- return retVal;
1423
- };
1424
- const de_ConflictException = (output, context) => {
1425
- return {
1426
- Message: __expectString(output.Message),
1427
- Reason: __expectString(output.Reason),
1428
- RequestId: __expectString(output.RequestId),
1429
- };
1430
- };
1431
- const de_CreateGroupMembershipResponse = (output, context) => {
1432
- return {
1433
- IdentityStoreId: __expectString(output.IdentityStoreId),
1434
- MembershipId: __expectString(output.MembershipId),
1435
- };
1436
- };
1437
- const de_CreateGroupResponse = (output, context) => {
1438
- return {
1439
- GroupId: __expectString(output.GroupId),
1440
- IdentityStoreId: __expectString(output.IdentityStoreId),
1441
- };
1442
- };
1443
- const de_CreateUserResponse = (output, context) => {
1444
- return {
1445
- IdentityStoreId: __expectString(output.IdentityStoreId),
1446
- UserId: __expectString(output.UserId),
1447
- };
1448
- };
1449
- const de_DeleteGroupMembershipResponse = (output, context) => {
1450
- return {};
1451
- };
1452
- const de_DeleteGroupResponse = (output, context) => {
1453
- return {};
1454
- };
1455
- const de_DeleteUserResponse = (output, context) => {
1456
- return {};
1457
- };
1458
- const de_DescribeGroupMembershipResponse = (output, context) => {
1459
- return {
1460
- GroupId: __expectString(output.GroupId),
1461
- IdentityStoreId: __expectString(output.IdentityStoreId),
1462
- MemberId: output.MemberId != null ? de_MemberId(__expectUnion(output.MemberId), context) : undefined,
1463
- MembershipId: __expectString(output.MembershipId),
1464
- };
1465
- };
1466
- const de_DescribeGroupResponse = (output, context) => {
1467
- return {
1468
- Description: __expectString(output.Description),
1469
- DisplayName: __expectString(output.DisplayName),
1470
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1471
- GroupId: __expectString(output.GroupId),
1472
- IdentityStoreId: __expectString(output.IdentityStoreId),
1473
- };
1474
- };
1475
- const de_DescribeUserResponse = (output, context) => {
1476
- return {
1477
- Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
1478
- DisplayName: __expectString(output.DisplayName),
1479
- Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
1480
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1481
- IdentityStoreId: __expectString(output.IdentityStoreId),
1482
- Locale: __expectString(output.Locale),
1483
- Name: output.Name != null ? de_Name(output.Name, context) : undefined,
1484
- NickName: __expectString(output.NickName),
1485
- PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
1486
- PreferredLanguage: __expectString(output.PreferredLanguage),
1487
- ProfileUrl: __expectString(output.ProfileUrl),
1488
- Timezone: __expectString(output.Timezone),
1489
- Title: __expectString(output.Title),
1490
- UserId: __expectString(output.UserId),
1491
- UserName: __expectString(output.UserName),
1492
- UserType: __expectString(output.UserType),
1493
- };
1494
- };
1495
- const de_Email = (output, context) => {
1496
- return {
1497
- Primary: __expectBoolean(output.Primary),
1498
- Type: __expectString(output.Type),
1499
- Value: __expectString(output.Value),
1500
- };
1501
- };
1502
- const de_Emails = (output, context) => {
1503
- const retVal = (output || [])
1504
- .filter((e) => e != null)
1505
- .map((entry) => {
1506
- if (entry === null) {
1507
- return null;
1508
- }
1509
- return de_Email(entry, context);
1510
- });
1511
- return retVal;
1512
- };
1513
- const de_ExternalId = (output, context) => {
1514
- return {
1515
- Id: __expectString(output.Id),
1516
- Issuer: __expectString(output.Issuer),
1517
- };
1518
- };
1519
- const de_ExternalIds = (output, context) => {
1520
- const retVal = (output || [])
1521
- .filter((e) => e != null)
1522
- .map((entry) => {
1523
- if (entry === null) {
1524
- return null;
1525
- }
1526
- return de_ExternalId(entry, context);
1527
- });
1528
- return retVal;
1529
- };
1530
- const de_GetGroupIdResponse = (output, context) => {
1531
- return {
1532
- GroupId: __expectString(output.GroupId),
1533
- IdentityStoreId: __expectString(output.IdentityStoreId),
1534
- };
1535
- };
1536
- const de_GetGroupMembershipIdResponse = (output, context) => {
1537
- return {
1538
- IdentityStoreId: __expectString(output.IdentityStoreId),
1539
- MembershipId: __expectString(output.MembershipId),
1540
- };
1541
- };
1542
- const de_GetUserIdResponse = (output, context) => {
1543
- return {
1544
- IdentityStoreId: __expectString(output.IdentityStoreId),
1545
- UserId: __expectString(output.UserId),
1546
- };
1547
- };
1548
- const de_Group = (output, context) => {
1549
- return {
1550
- Description: __expectString(output.Description),
1551
- DisplayName: __expectString(output.DisplayName),
1552
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1553
- GroupId: __expectString(output.GroupId),
1554
- IdentityStoreId: __expectString(output.IdentityStoreId),
1555
- };
1556
- };
1557
- const de_GroupMembership = (output, context) => {
1558
- return {
1559
- GroupId: __expectString(output.GroupId),
1560
- IdentityStoreId: __expectString(output.IdentityStoreId),
1561
- MemberId: output.MemberId != null ? de_MemberId(__expectUnion(output.MemberId), context) : undefined,
1562
- MembershipId: __expectString(output.MembershipId),
1563
- };
1564
- };
1565
- const de_GroupMembershipExistenceResult = (output, context) => {
1566
- return {
1567
- GroupId: __expectString(output.GroupId),
1568
- MemberId: output.MemberId != null ? de_MemberId(__expectUnion(output.MemberId), context) : undefined,
1569
- MembershipExists: __expectBoolean(output.MembershipExists),
1570
- };
1571
- };
1572
- const de_GroupMembershipExistenceResults = (output, context) => {
1573
- const retVal = (output || [])
1574
- .filter((e) => e != null)
1575
- .map((entry) => {
1576
- if (entry === null) {
1577
- return null;
1578
- }
1579
- return de_GroupMembershipExistenceResult(entry, context);
1580
- });
1581
- return retVal;
1582
- };
1583
- const de_GroupMemberships = (output, context) => {
1584
- const retVal = (output || [])
1585
- .filter((e) => e != null)
1586
- .map((entry) => {
1587
- if (entry === null) {
1588
- return null;
1589
- }
1590
- return de_GroupMembership(entry, context);
1093
+ return take(input, {
1094
+ AttributePath: [],
1095
+ AttributeValue: (_) => se_AttributeValue(_, context),
1591
1096
  });
1592
- return retVal;
1593
- };
1594
- const de_Groups = (output, context) => {
1595
- const retVal = (output || [])
1596
- .filter((e) => e != null)
1597
- .map((entry) => {
1598
- if (entry === null) {
1599
- return null;
1600
- }
1601
- return de_Group(entry, context);
1602
- });
1603
- return retVal;
1604
- };
1605
- const de_InternalServerException = (output, context) => {
1606
- return {
1607
- Message: __expectString(output.Message),
1608
- RequestId: __expectString(output.RequestId),
1609
- RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
1610
- };
1611
- };
1612
- const de_IsMemberInGroupsResponse = (output, context) => {
1613
- return {
1614
- Results: output.Results != null ? de_GroupMembershipExistenceResults(output.Results, context) : undefined,
1615
- };
1616
- };
1617
- const de_ListGroupMembershipsForMemberResponse = (output, context) => {
1618
- return {
1619
- GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
1620
- NextToken: __expectString(output.NextToken),
1621
- };
1622
- };
1623
- const de_ListGroupMembershipsResponse = (output, context) => {
1624
- return {
1625
- GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
1626
- NextToken: __expectString(output.NextToken),
1627
- };
1628
- };
1629
- const de_ListGroupsResponse = (output, context) => {
1630
- return {
1631
- Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
1632
- NextToken: __expectString(output.NextToken),
1633
- };
1634
- };
1635
- const de_ListUsersResponse = (output, context) => {
1636
- return {
1637
- NextToken: __expectString(output.NextToken),
1638
- Users: output.Users != null ? de_Users(output.Users, context) : undefined,
1639
- };
1640
- };
1641
- const de_MemberId = (output, context) => {
1642
- if (__expectString(output.UserId) !== undefined) {
1643
- return { UserId: __expectString(output.UserId) };
1644
- }
1645
- return { $unknown: Object.entries(output)[0] };
1646
1097
  };
1647
- const de_Name = (output, context) => {
1648
- return {
1649
- FamilyName: __expectString(output.FamilyName),
1650
- Formatted: __expectString(output.Formatted),
1651
- GivenName: __expectString(output.GivenName),
1652
- HonorificPrefix: __expectString(output.HonorificPrefix),
1653
- HonorificSuffix: __expectString(output.HonorificSuffix),
1654
- MiddleName: __expectString(output.MiddleName),
1655
- };
1656
- };
1657
- const de_PhoneNumber = (output, context) => {
1658
- return {
1659
- Primary: __expectBoolean(output.Primary),
1660
- Type: __expectString(output.Type),
1661
- Value: __expectString(output.Value),
1662
- };
1663
- };
1664
- const de_PhoneNumbers = (output, context) => {
1665
- const retVal = (output || [])
1666
- .filter((e) => e != null)
1667
- .map((entry) => {
1668
- if (entry === null) {
1669
- return null;
1670
- }
1671
- return de_PhoneNumber(entry, context);
1098
+ const se_UpdateGroupRequest = (input, context) => {
1099
+ return take(input, {
1100
+ GroupId: [],
1101
+ IdentityStoreId: [],
1102
+ Operations: (_) => se_AttributeOperations(_, context),
1672
1103
  });
1673
- return retVal;
1674
- };
1675
- const de_ResourceNotFoundException = (output, context) => {
1676
- return {
1677
- Message: __expectString(output.Message),
1678
- RequestId: __expectString(output.RequestId),
1679
- ResourceId: __expectString(output.ResourceId),
1680
- ResourceType: __expectString(output.ResourceType),
1681
- };
1682
- };
1683
- const de_ServiceQuotaExceededException = (output, context) => {
1684
- return {
1685
- Message: __expectString(output.Message),
1686
- RequestId: __expectString(output.RequestId),
1687
- };
1688
- };
1689
- const de_ThrottlingException = (output, context) => {
1690
- return {
1691
- Message: __expectString(output.Message),
1692
- RequestId: __expectString(output.RequestId),
1693
- RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
1694
- };
1695
- };
1696
- const de_UpdateGroupResponse = (output, context) => {
1697
- return {};
1698
- };
1699
- const de_UpdateUserResponse = (output, context) => {
1700
- return {};
1701
1104
  };
1702
- const de_User = (output, context) => {
1703
- return {
1704
- Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
1705
- DisplayName: __expectString(output.DisplayName),
1706
- Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
1707
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1708
- IdentityStoreId: __expectString(output.IdentityStoreId),
1709
- Locale: __expectString(output.Locale),
1710
- Name: output.Name != null ? de_Name(output.Name, context) : undefined,
1711
- NickName: __expectString(output.NickName),
1712
- PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
1713
- PreferredLanguage: __expectString(output.PreferredLanguage),
1714
- ProfileUrl: __expectString(output.ProfileUrl),
1715
- Timezone: __expectString(output.Timezone),
1716
- Title: __expectString(output.Title),
1717
- UserId: __expectString(output.UserId),
1718
- UserName: __expectString(output.UserName),
1719
- UserType: __expectString(output.UserType),
1720
- };
1721
- };
1722
- const de_Users = (output, context) => {
1723
- const retVal = (output || [])
1724
- .filter((e) => e != null)
1725
- .map((entry) => {
1726
- if (entry === null) {
1727
- return null;
1728
- }
1729
- return de_User(entry, context);
1105
+ const se_UpdateUserRequest = (input, context) => {
1106
+ return take(input, {
1107
+ IdentityStoreId: [],
1108
+ Operations: (_) => se_AttributeOperations(_, context),
1109
+ UserId: [],
1730
1110
  });
1731
- return retVal;
1732
- };
1733
- const de_ValidationException = (output, context) => {
1734
- return {
1735
- Message: __expectString(output.Message),
1736
- RequestId: __expectString(output.RequestId),
1737
- };
1738
1111
  };
1739
1112
  const deserializeMetadata = (output) => ({
1740
1113
  httpStatusCode: output.statusCode,
@@ -1749,6 +1122,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1749
1122
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1750
1123
  };
1751
1124
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1125
+ const throwDefaultError = withBaseException(__BaseException);
1752
1126
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1753
1127
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1754
1128
  const contents = {
@@ -1767,6 +1141,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1767
1141
  }
1768
1142
  return new __HttpRequest(contents);
1769
1143
  };
1144
+ function sharedHeaders(operation) {
1145
+ return {
1146
+ "content-type": "application/x-amz-json-1.1",
1147
+ "x-amz-target": `AWSIdentityStore.${operation}`,
1148
+ };
1149
+ }
1770
1150
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1771
1151
  if (encoded.length) {
1772
1152
  return JSON.parse(encoded);