@aws-sdk/client-dax 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,63 +8,63 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_CreateClusterCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("CreateCluster");
10
10
  let body;
11
- body = JSON.stringify(se_CreateClusterRequest(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_CreateClusterCommand = se_CreateClusterCommand;
15
15
  const se_CreateParameterGroupCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("CreateParameterGroup");
17
17
  let body;
18
- body = JSON.stringify(se_CreateParameterGroupRequest(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_CreateParameterGroupCommand = se_CreateParameterGroupCommand;
22
22
  const se_CreateSubnetGroupCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("CreateSubnetGroup");
24
24
  let body;
25
- body = JSON.stringify(se_CreateSubnetGroupRequest(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_CreateSubnetGroupCommand = se_CreateSubnetGroupCommand;
29
29
  const se_DecreaseReplicationFactorCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DecreaseReplicationFactor");
31
31
  let body;
32
- body = JSON.stringify(se_DecreaseReplicationFactorRequest(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  exports.se_DecreaseReplicationFactorCommand = se_DecreaseReplicationFactorCommand;
36
36
  const se_DeleteClusterCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DeleteCluster");
38
38
  let body;
39
- body = JSON.stringify(se_DeleteClusterRequest(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
43
43
  const se_DeleteParameterGroupCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("DeleteParameterGroup");
45
45
  let body;
46
- body = JSON.stringify(se_DeleteParameterGroupRequest(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_DeleteParameterGroupCommand = se_DeleteParameterGroupCommand;
50
50
  const se_DeleteSubnetGroupCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("DeleteSubnetGroup");
52
52
  let body;
53
- body = JSON.stringify(se_DeleteSubnetGroupRequest(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_DeleteSubnetGroupCommand = se_DeleteSubnetGroupCommand;
57
57
  const se_DescribeClustersCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("DescribeClusters");
59
59
  let body;
60
- body = JSON.stringify(se_DescribeClustersRequest(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_DescribeClustersCommand = se_DescribeClustersCommand;
64
64
  const se_DescribeDefaultParametersCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("DescribeDefaultParameters");
66
66
  let body;
67
- body = JSON.stringify(se_DescribeDefaultParametersRequest(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_DescribeDefaultParametersCommand = se_DescribeDefaultParametersCommand;
@@ -78,77 +78,77 @@ exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
78
78
  const se_DescribeParameterGroupsCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("DescribeParameterGroups");
80
80
  let body;
81
- body = JSON.stringify(se_DescribeParameterGroupsRequest(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_DescribeParameterGroupsCommand = se_DescribeParameterGroupsCommand;
85
85
  const se_DescribeParametersCommand = async (input, context) => {
86
86
  const headers = sharedHeaders("DescribeParameters");
87
87
  let body;
88
- body = JSON.stringify(se_DescribeParametersRequest(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
89
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
90
  };
91
91
  exports.se_DescribeParametersCommand = se_DescribeParametersCommand;
92
92
  const se_DescribeSubnetGroupsCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("DescribeSubnetGroups");
94
94
  let body;
95
- body = JSON.stringify(se_DescribeSubnetGroupsRequest(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_DescribeSubnetGroupsCommand = se_DescribeSubnetGroupsCommand;
99
99
  const se_IncreaseReplicationFactorCommand = async (input, context) => {
100
100
  const headers = sharedHeaders("IncreaseReplicationFactor");
101
101
  let body;
102
- body = JSON.stringify(se_IncreaseReplicationFactorRequest(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
103
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
104
  };
105
105
  exports.se_IncreaseReplicationFactorCommand = se_IncreaseReplicationFactorCommand;
106
106
  const se_ListTagsCommand = async (input, context) => {
107
107
  const headers = sharedHeaders("ListTags");
108
108
  let body;
109
- body = JSON.stringify(se_ListTagsRequest(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
110
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
111
  };
112
112
  exports.se_ListTagsCommand = se_ListTagsCommand;
113
113
  const se_RebootNodeCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("RebootNode");
115
115
  let body;
116
- body = JSON.stringify(se_RebootNodeRequest(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  exports.se_RebootNodeCommand = se_RebootNodeCommand;
120
120
  const se_TagResourceCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("TagResource");
122
122
  let body;
123
- body = JSON.stringify(se_TagResourceRequest(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  exports.se_TagResourceCommand = se_TagResourceCommand;
127
127
  const se_UntagResourceCommand = async (input, context) => {
128
128
  const headers = sharedHeaders("UntagResource");
129
129
  let body;
130
- body = JSON.stringify(se_UntagResourceRequest(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
131
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
132
  };
133
133
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
134
134
  const se_UpdateClusterCommand = async (input, context) => {
135
135
  const headers = sharedHeaders("UpdateCluster");
136
136
  let body;
137
- body = JSON.stringify(se_UpdateClusterRequest(input, context));
137
+ body = JSON.stringify((0, smithy_client_1._json)(input));
138
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
139
  };
140
140
  exports.se_UpdateClusterCommand = se_UpdateClusterCommand;
141
141
  const se_UpdateParameterGroupCommand = async (input, context) => {
142
142
  const headers = sharedHeaders("UpdateParameterGroup");
143
143
  let body;
144
- body = JSON.stringify(se_UpdateParameterGroupRequest(input, context));
144
+ body = JSON.stringify((0, smithy_client_1._json)(input));
145
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
146
  };
147
147
  exports.se_UpdateParameterGroupCommand = se_UpdateParameterGroupCommand;
148
148
  const se_UpdateSubnetGroupCommand = async (input, context) => {
149
149
  const headers = sharedHeaders("UpdateSubnetGroup");
150
150
  let body;
151
- body = JSON.stringify(se_UpdateSubnetGroupRequest(input, context));
151
+ body = JSON.stringify((0, smithy_client_1._json)(input));
152
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
153
153
  };
154
154
  exports.se_UpdateSubnetGroupCommand = se_UpdateSubnetGroupCommand;
@@ -163,7 +163,7 @@ const de_CreateClusterCommand = async (output, context) => {
163
163
  $metadata: deserializeMetadata(output),
164
164
  ...contents,
165
165
  };
166
- return Promise.resolve(response);
166
+ return response;
167
167
  };
168
168
  exports.de_CreateClusterCommand = de_CreateClusterCommand;
169
169
  const de_CreateClusterCommandError = async (output, context) => {
@@ -220,10 +220,9 @@ const de_CreateClusterCommandError = async (output, context) => {
220
220
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
221
221
  default:
222
222
  const parsedBody = parsedOutput.body;
223
- (0, smithy_client_1.throwDefaultError)({
223
+ return throwDefaultError({
224
224
  output,
225
225
  parsedBody,
226
- exceptionCtor: DAXServiceException_1.DAXServiceException,
227
226
  errorCode,
228
227
  });
229
228
  }
@@ -234,12 +233,12 @@ const de_CreateParameterGroupCommand = async (output, context) => {
234
233
  }
235
234
  const data = await parseBody(output.body, context);
236
235
  let contents = {};
237
- contents = de_CreateParameterGroupResponse(data, context);
236
+ contents = (0, smithy_client_1._json)(data);
238
237
  const response = {
239
238
  $metadata: deserializeMetadata(output),
240
239
  ...contents,
241
240
  };
242
- return Promise.resolve(response);
241
+ return response;
243
242
  };
244
243
  exports.de_CreateParameterGroupCommand = de_CreateParameterGroupCommand;
245
244
  const de_CreateParameterGroupCommandError = async (output, context) => {
@@ -269,10 +268,9 @@ const de_CreateParameterGroupCommandError = async (output, context) => {
269
268
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
270
269
  default:
271
270
  const parsedBody = parsedOutput.body;
272
- (0, smithy_client_1.throwDefaultError)({
271
+ return throwDefaultError({
273
272
  output,
274
273
  parsedBody,
275
- exceptionCtor: DAXServiceException_1.DAXServiceException,
276
274
  errorCode,
277
275
  });
278
276
  }
@@ -283,12 +281,12 @@ const de_CreateSubnetGroupCommand = async (output, context) => {
283
281
  }
284
282
  const data = await parseBody(output.body, context);
285
283
  let contents = {};
286
- contents = de_CreateSubnetGroupResponse(data, context);
284
+ contents = (0, smithy_client_1._json)(data);
287
285
  const response = {
288
286
  $metadata: deserializeMetadata(output),
289
287
  ...contents,
290
288
  };
291
- return Promise.resolve(response);
289
+ return response;
292
290
  };
293
291
  exports.de_CreateSubnetGroupCommand = de_CreateSubnetGroupCommand;
294
292
  const de_CreateSubnetGroupCommandError = async (output, context) => {
@@ -315,10 +313,9 @@ const de_CreateSubnetGroupCommandError = async (output, context) => {
315
313
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
316
314
  default:
317
315
  const parsedBody = parsedOutput.body;
318
- (0, smithy_client_1.throwDefaultError)({
316
+ return throwDefaultError({
319
317
  output,
320
318
  parsedBody,
321
- exceptionCtor: DAXServiceException_1.DAXServiceException,
322
319
  errorCode,
323
320
  });
324
321
  }
@@ -334,7 +331,7 @@ const de_DecreaseReplicationFactorCommand = async (output, context) => {
334
331
  $metadata: deserializeMetadata(output),
335
332
  ...contents,
336
333
  };
337
- return Promise.resolve(response);
334
+ return response;
338
335
  };
339
336
  exports.de_DecreaseReplicationFactorCommand = de_DecreaseReplicationFactorCommand;
340
337
  const de_DecreaseReplicationFactorCommandError = async (output, context) => {
@@ -364,10 +361,9 @@ const de_DecreaseReplicationFactorCommandError = async (output, context) => {
364
361
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
365
362
  default:
366
363
  const parsedBody = parsedOutput.body;
367
- (0, smithy_client_1.throwDefaultError)({
364
+ return throwDefaultError({
368
365
  output,
369
366
  parsedBody,
370
- exceptionCtor: DAXServiceException_1.DAXServiceException,
371
367
  errorCode,
372
368
  });
373
369
  }
@@ -383,7 +379,7 @@ const de_DeleteClusterCommand = async (output, context) => {
383
379
  $metadata: deserializeMetadata(output),
384
380
  ...contents,
385
381
  };
386
- return Promise.resolve(response);
382
+ return response;
387
383
  };
388
384
  exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
389
385
  const de_DeleteClusterCommandError = async (output, context) => {
@@ -410,10 +406,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
410
406
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
411
407
  default:
412
408
  const parsedBody = parsedOutput.body;
413
- (0, smithy_client_1.throwDefaultError)({
409
+ return throwDefaultError({
414
410
  output,
415
411
  parsedBody,
416
- exceptionCtor: DAXServiceException_1.DAXServiceException,
417
412
  errorCode,
418
413
  });
419
414
  }
@@ -424,12 +419,12 @@ const de_DeleteParameterGroupCommand = async (output, context) => {
424
419
  }
425
420
  const data = await parseBody(output.body, context);
426
421
  let contents = {};
427
- contents = de_DeleteParameterGroupResponse(data, context);
422
+ contents = (0, smithy_client_1._json)(data);
428
423
  const response = {
429
424
  $metadata: deserializeMetadata(output),
430
425
  ...contents,
431
426
  };
432
- return Promise.resolve(response);
427
+ return response;
433
428
  };
434
429
  exports.de_DeleteParameterGroupCommand = de_DeleteParameterGroupCommand;
435
430
  const de_DeleteParameterGroupCommandError = async (output, context) => {
@@ -456,10 +451,9 @@ const de_DeleteParameterGroupCommandError = async (output, context) => {
456
451
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
457
452
  default:
458
453
  const parsedBody = parsedOutput.body;
459
- (0, smithy_client_1.throwDefaultError)({
454
+ return throwDefaultError({
460
455
  output,
461
456
  parsedBody,
462
- exceptionCtor: DAXServiceException_1.DAXServiceException,
463
457
  errorCode,
464
458
  });
465
459
  }
@@ -470,12 +464,12 @@ const de_DeleteSubnetGroupCommand = async (output, context) => {
470
464
  }
471
465
  const data = await parseBody(output.body, context);
472
466
  let contents = {};
473
- contents = de_DeleteSubnetGroupResponse(data, context);
467
+ contents = (0, smithy_client_1._json)(data);
474
468
  const response = {
475
469
  $metadata: deserializeMetadata(output),
476
470
  ...contents,
477
471
  };
478
- return Promise.resolve(response);
472
+ return response;
479
473
  };
480
474
  exports.de_DeleteSubnetGroupCommand = de_DeleteSubnetGroupCommand;
481
475
  const de_DeleteSubnetGroupCommandError = async (output, context) => {
@@ -496,10 +490,9 @@ const de_DeleteSubnetGroupCommandError = async (output, context) => {
496
490
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
497
491
  default:
498
492
  const parsedBody = parsedOutput.body;
499
- (0, smithy_client_1.throwDefaultError)({
493
+ return throwDefaultError({
500
494
  output,
501
495
  parsedBody,
502
- exceptionCtor: DAXServiceException_1.DAXServiceException,
503
496
  errorCode,
504
497
  });
505
498
  }
@@ -515,7 +508,7 @@ const de_DescribeClustersCommand = async (output, context) => {
515
508
  $metadata: deserializeMetadata(output),
516
509
  ...contents,
517
510
  };
518
- return Promise.resolve(response);
511
+ return response;
519
512
  };
520
513
  exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
521
514
  const de_DescribeClustersCommandError = async (output, context) => {
@@ -539,10 +532,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
539
532
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
540
533
  default:
541
534
  const parsedBody = parsedOutput.body;
542
- (0, smithy_client_1.throwDefaultError)({
535
+ return throwDefaultError({
543
536
  output,
544
537
  parsedBody,
545
- exceptionCtor: DAXServiceException_1.DAXServiceException,
546
538
  errorCode,
547
539
  });
548
540
  }
@@ -553,12 +545,12 @@ const de_DescribeDefaultParametersCommand = async (output, context) => {
553
545
  }
554
546
  const data = await parseBody(output.body, context);
555
547
  let contents = {};
556
- contents = de_DescribeDefaultParametersResponse(data, context);
548
+ contents = (0, smithy_client_1._json)(data);
557
549
  const response = {
558
550
  $metadata: deserializeMetadata(output),
559
551
  ...contents,
560
552
  };
561
- return Promise.resolve(response);
553
+ return response;
562
554
  };
563
555
  exports.de_DescribeDefaultParametersCommand = de_DescribeDefaultParametersCommand;
564
556
  const de_DescribeDefaultParametersCommandError = async (output, context) => {
@@ -579,10 +571,9 @@ const de_DescribeDefaultParametersCommandError = async (output, context) => {
579
571
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
580
572
  default:
581
573
  const parsedBody = parsedOutput.body;
582
- (0, smithy_client_1.throwDefaultError)({
574
+ return throwDefaultError({
583
575
  output,
584
576
  parsedBody,
585
- exceptionCtor: DAXServiceException_1.DAXServiceException,
586
577
  errorCode,
587
578
  });
588
579
  }
@@ -598,7 +589,7 @@ const de_DescribeEventsCommand = async (output, context) => {
598
589
  $metadata: deserializeMetadata(output),
599
590
  ...contents,
600
591
  };
601
- return Promise.resolve(response);
592
+ return response;
602
593
  };
603
594
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
604
595
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -619,10 +610,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
619
610
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
620
611
  default:
621
612
  const parsedBody = parsedOutput.body;
622
- (0, smithy_client_1.throwDefaultError)({
613
+ return throwDefaultError({
623
614
  output,
624
615
  parsedBody,
625
- exceptionCtor: DAXServiceException_1.DAXServiceException,
626
616
  errorCode,
627
617
  });
628
618
  }
@@ -633,12 +623,12 @@ const de_DescribeParameterGroupsCommand = async (output, context) => {
633
623
  }
634
624
  const data = await parseBody(output.body, context);
635
625
  let contents = {};
636
- contents = de_DescribeParameterGroupsResponse(data, context);
626
+ contents = (0, smithy_client_1._json)(data);
637
627
  const response = {
638
628
  $metadata: deserializeMetadata(output),
639
629
  ...contents,
640
630
  };
641
- return Promise.resolve(response);
631
+ return response;
642
632
  };
643
633
  exports.de_DescribeParameterGroupsCommand = de_DescribeParameterGroupsCommand;
644
634
  const de_DescribeParameterGroupsCommandError = async (output, context) => {
@@ -662,10 +652,9 @@ const de_DescribeParameterGroupsCommandError = async (output, context) => {
662
652
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
663
653
  default:
664
654
  const parsedBody = parsedOutput.body;
665
- (0, smithy_client_1.throwDefaultError)({
655
+ return throwDefaultError({
666
656
  output,
667
657
  parsedBody,
668
- exceptionCtor: DAXServiceException_1.DAXServiceException,
669
658
  errorCode,
670
659
  });
671
660
  }
@@ -676,12 +665,12 @@ const de_DescribeParametersCommand = async (output, context) => {
676
665
  }
677
666
  const data = await parseBody(output.body, context);
678
667
  let contents = {};
679
- contents = de_DescribeParametersResponse(data, context);
668
+ contents = (0, smithy_client_1._json)(data);
680
669
  const response = {
681
670
  $metadata: deserializeMetadata(output),
682
671
  ...contents,
683
672
  };
684
- return Promise.resolve(response);
673
+ return response;
685
674
  };
686
675
  exports.de_DescribeParametersCommand = de_DescribeParametersCommand;
687
676
  const de_DescribeParametersCommandError = async (output, context) => {
@@ -705,10 +694,9 @@ const de_DescribeParametersCommandError = async (output, context) => {
705
694
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
706
695
  default:
707
696
  const parsedBody = parsedOutput.body;
708
- (0, smithy_client_1.throwDefaultError)({
697
+ return throwDefaultError({
709
698
  output,
710
699
  parsedBody,
711
- exceptionCtor: DAXServiceException_1.DAXServiceException,
712
700
  errorCode,
713
701
  });
714
702
  }
@@ -719,12 +707,12 @@ const de_DescribeSubnetGroupsCommand = async (output, context) => {
719
707
  }
720
708
  const data = await parseBody(output.body, context);
721
709
  let contents = {};
722
- contents = de_DescribeSubnetGroupsResponse(data, context);
710
+ contents = (0, smithy_client_1._json)(data);
723
711
  const response = {
724
712
  $metadata: deserializeMetadata(output),
725
713
  ...contents,
726
714
  };
727
- return Promise.resolve(response);
715
+ return response;
728
716
  };
729
717
  exports.de_DescribeSubnetGroupsCommand = de_DescribeSubnetGroupsCommand;
730
718
  const de_DescribeSubnetGroupsCommandError = async (output, context) => {
@@ -742,10 +730,9 @@ const de_DescribeSubnetGroupsCommandError = async (output, context) => {
742
730
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
743
731
  default:
744
732
  const parsedBody = parsedOutput.body;
745
- (0, smithy_client_1.throwDefaultError)({
733
+ return throwDefaultError({
746
734
  output,
747
735
  parsedBody,
748
- exceptionCtor: DAXServiceException_1.DAXServiceException,
749
736
  errorCode,
750
737
  });
751
738
  }
@@ -761,7 +748,7 @@ const de_IncreaseReplicationFactorCommand = async (output, context) => {
761
748
  $metadata: deserializeMetadata(output),
762
749
  ...contents,
763
750
  };
764
- return Promise.resolve(response);
751
+ return response;
765
752
  };
766
753
  exports.de_IncreaseReplicationFactorCommand = de_IncreaseReplicationFactorCommand;
767
754
  const de_IncreaseReplicationFactorCommandError = async (output, context) => {
@@ -800,10 +787,9 @@ const de_IncreaseReplicationFactorCommandError = async (output, context) => {
800
787
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
801
788
  default:
802
789
  const parsedBody = parsedOutput.body;
803
- (0, smithy_client_1.throwDefaultError)({
790
+ return throwDefaultError({
804
791
  output,
805
792
  parsedBody,
806
- exceptionCtor: DAXServiceException_1.DAXServiceException,
807
793
  errorCode,
808
794
  });
809
795
  }
@@ -814,12 +800,12 @@ const de_ListTagsCommand = async (output, context) => {
814
800
  }
815
801
  const data = await parseBody(output.body, context);
816
802
  let contents = {};
817
- contents = de_ListTagsResponse(data, context);
803
+ contents = (0, smithy_client_1._json)(data);
818
804
  const response = {
819
805
  $metadata: deserializeMetadata(output),
820
806
  ...contents,
821
807
  };
822
- return Promise.resolve(response);
808
+ return response;
823
809
  };
824
810
  exports.de_ListTagsCommand = de_ListTagsCommand;
825
811
  const de_ListTagsCommandError = async (output, context) => {
@@ -849,10 +835,9 @@ const de_ListTagsCommandError = async (output, context) => {
849
835
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
850
836
  default:
851
837
  const parsedBody = parsedOutput.body;
852
- (0, smithy_client_1.throwDefaultError)({
838
+ return throwDefaultError({
853
839
  output,
854
840
  parsedBody,
855
- exceptionCtor: DAXServiceException_1.DAXServiceException,
856
841
  errorCode,
857
842
  });
858
843
  }
@@ -868,7 +853,7 @@ const de_RebootNodeCommand = async (output, context) => {
868
853
  $metadata: deserializeMetadata(output),
869
854
  ...contents,
870
855
  };
871
- return Promise.resolve(response);
856
+ return response;
872
857
  };
873
858
  exports.de_RebootNodeCommand = de_RebootNodeCommand;
874
859
  const de_RebootNodeCommandError = async (output, context) => {
@@ -898,10 +883,9 @@ const de_RebootNodeCommandError = async (output, context) => {
898
883
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
899
884
  default:
900
885
  const parsedBody = parsedOutput.body;
901
- (0, smithy_client_1.throwDefaultError)({
886
+ return throwDefaultError({
902
887
  output,
903
888
  parsedBody,
904
- exceptionCtor: DAXServiceException_1.DAXServiceException,
905
889
  errorCode,
906
890
  });
907
891
  }
@@ -912,12 +896,12 @@ const de_TagResourceCommand = async (output, context) => {
912
896
  }
913
897
  const data = await parseBody(output.body, context);
914
898
  let contents = {};
915
- contents = de_TagResourceResponse(data, context);
899
+ contents = (0, smithy_client_1._json)(data);
916
900
  const response = {
917
901
  $metadata: deserializeMetadata(output),
918
902
  ...contents,
919
903
  };
920
- return Promise.resolve(response);
904
+ return response;
921
905
  };
922
906
  exports.de_TagResourceCommand = de_TagResourceCommand;
923
907
  const de_TagResourceCommandError = async (output, context) => {
@@ -950,10 +934,9 @@ const de_TagResourceCommandError = async (output, context) => {
950
934
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
951
935
  default:
952
936
  const parsedBody = parsedOutput.body;
953
- (0, smithy_client_1.throwDefaultError)({
937
+ return throwDefaultError({
954
938
  output,
955
939
  parsedBody,
956
- exceptionCtor: DAXServiceException_1.DAXServiceException,
957
940
  errorCode,
958
941
  });
959
942
  }
@@ -964,12 +947,12 @@ const de_UntagResourceCommand = async (output, context) => {
964
947
  }
965
948
  const data = await parseBody(output.body, context);
966
949
  let contents = {};
967
- contents = de_UntagResourceResponse(data, context);
950
+ contents = (0, smithy_client_1._json)(data);
968
951
  const response = {
969
952
  $metadata: deserializeMetadata(output),
970
953
  ...contents,
971
954
  };
972
- return Promise.resolve(response);
955
+ return response;
973
956
  };
974
957
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
975
958
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1002,10 +985,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1002
985
  throw await de_TagNotFoundFaultRes(parsedOutput, context);
1003
986
  default:
1004
987
  const parsedBody = parsedOutput.body;
1005
- (0, smithy_client_1.throwDefaultError)({
988
+ return throwDefaultError({
1006
989
  output,
1007
990
  parsedBody,
1008
- exceptionCtor: DAXServiceException_1.DAXServiceException,
1009
991
  errorCode,
1010
992
  });
1011
993
  }
@@ -1021,7 +1003,7 @@ const de_UpdateClusterCommand = async (output, context) => {
1021
1003
  $metadata: deserializeMetadata(output),
1022
1004
  ...contents,
1023
1005
  };
1024
- return Promise.resolve(response);
1006
+ return response;
1025
1007
  };
1026
1008
  exports.de_UpdateClusterCommand = de_UpdateClusterCommand;
1027
1009
  const de_UpdateClusterCommandError = async (output, context) => {
@@ -1054,10 +1036,9 @@ const de_UpdateClusterCommandError = async (output, context) => {
1054
1036
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1055
1037
  default:
1056
1038
  const parsedBody = parsedOutput.body;
1057
- (0, smithy_client_1.throwDefaultError)({
1039
+ return throwDefaultError({
1058
1040
  output,
1059
1041
  parsedBody,
1060
- exceptionCtor: DAXServiceException_1.DAXServiceException,
1061
1042
  errorCode,
1062
1043
  });
1063
1044
  }
@@ -1068,12 +1049,12 @@ const de_UpdateParameterGroupCommand = async (output, context) => {
1068
1049
  }
1069
1050
  const data = await parseBody(output.body, context);
1070
1051
  let contents = {};
1071
- contents = de_UpdateParameterGroupResponse(data, context);
1052
+ contents = (0, smithy_client_1._json)(data);
1072
1053
  const response = {
1073
1054
  $metadata: deserializeMetadata(output),
1074
1055
  ...contents,
1075
1056
  };
1076
- return Promise.resolve(response);
1057
+ return response;
1077
1058
  };
1078
1059
  exports.de_UpdateParameterGroupCommand = de_UpdateParameterGroupCommand;
1079
1060
  const de_UpdateParameterGroupCommandError = async (output, context) => {
@@ -1100,10 +1081,9 @@ const de_UpdateParameterGroupCommandError = async (output, context) => {
1100
1081
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1101
1082
  default:
1102
1083
  const parsedBody = parsedOutput.body;
1103
- (0, smithy_client_1.throwDefaultError)({
1084
+ return throwDefaultError({
1104
1085
  output,
1105
1086
  parsedBody,
1106
- exceptionCtor: DAXServiceException_1.DAXServiceException,
1107
1087
  errorCode,
1108
1088
  });
1109
1089
  }
@@ -1114,12 +1094,12 @@ const de_UpdateSubnetGroupCommand = async (output, context) => {
1114
1094
  }
1115
1095
  const data = await parseBody(output.body, context);
1116
1096
  let contents = {};
1117
- contents = de_UpdateSubnetGroupResponse(data, context);
1097
+ contents = (0, smithy_client_1._json)(data);
1118
1098
  const response = {
1119
1099
  $metadata: deserializeMetadata(output),
1120
1100
  ...contents,
1121
1101
  };
1122
- return Promise.resolve(response);
1102
+ return response;
1123
1103
  };
1124
1104
  exports.de_UpdateSubnetGroupCommand = de_UpdateSubnetGroupCommand;
1125
1105
  const de_UpdateSubnetGroupCommandError = async (output, context) => {
@@ -1146,17 +1126,16 @@ const de_UpdateSubnetGroupCommandError = async (output, context) => {
1146
1126
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
1147
1127
  default:
1148
1128
  const parsedBody = parsedOutput.body;
1149
- (0, smithy_client_1.throwDefaultError)({
1129
+ return throwDefaultError({
1150
1130
  output,
1151
1131
  parsedBody,
1152
- exceptionCtor: DAXServiceException_1.DAXServiceException,
1153
1132
  errorCode,
1154
1133
  });
1155
1134
  }
1156
1135
  };
1157
1136
  const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
1158
1137
  const body = parsedOutput.body;
1159
- const deserialized = de_ClusterAlreadyExistsFault(body, context);
1138
+ const deserialized = (0, smithy_client_1._json)(body);
1160
1139
  const exception = new models_0_1.ClusterAlreadyExistsFault({
1161
1140
  $metadata: deserializeMetadata(parsedOutput),
1162
1141
  ...deserialized,
@@ -1165,7 +1144,7 @@ const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
1165
1144
  };
1166
1145
  const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
1167
1146
  const body = parsedOutput.body;
1168
- const deserialized = de_ClusterNotFoundFault(body, context);
1147
+ const deserialized = (0, smithy_client_1._json)(body);
1169
1148
  const exception = new models_0_1.ClusterNotFoundFault({
1170
1149
  $metadata: deserializeMetadata(parsedOutput),
1171
1150
  ...deserialized,
@@ -1174,7 +1153,7 @@ const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
1174
1153
  };
1175
1154
  const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
1176
1155
  const body = parsedOutput.body;
1177
- const deserialized = de_ClusterQuotaForCustomerExceededFault(body, context);
1156
+ const deserialized = (0, smithy_client_1._json)(body);
1178
1157
  const exception = new models_0_1.ClusterQuotaForCustomerExceededFault({
1179
1158
  $metadata: deserializeMetadata(parsedOutput),
1180
1159
  ...deserialized,
@@ -1183,7 +1162,7 @@ const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context)
1183
1162
  };
1184
1163
  const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
1185
1164
  const body = parsedOutput.body;
1186
- const deserialized = de_InsufficientClusterCapacityFault(body, context);
1165
+ const deserialized = (0, smithy_client_1._json)(body);
1187
1166
  const exception = new models_0_1.InsufficientClusterCapacityFault({
1188
1167
  $metadata: deserializeMetadata(parsedOutput),
1189
1168
  ...deserialized,
@@ -1192,7 +1171,7 @@ const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) =>
1192
1171
  };
1193
1172
  const de_InvalidARNFaultRes = async (parsedOutput, context) => {
1194
1173
  const body = parsedOutput.body;
1195
- const deserialized = de_InvalidARNFault(body, context);
1174
+ const deserialized = (0, smithy_client_1._json)(body);
1196
1175
  const exception = new models_0_1.InvalidARNFault({
1197
1176
  $metadata: deserializeMetadata(parsedOutput),
1198
1177
  ...deserialized,
@@ -1201,7 +1180,7 @@ const de_InvalidARNFaultRes = async (parsedOutput, context) => {
1201
1180
  };
1202
1181
  const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
1203
1182
  const body = parsedOutput.body;
1204
- const deserialized = de_InvalidClusterStateFault(body, context);
1183
+ const deserialized = (0, smithy_client_1._json)(body);
1205
1184
  const exception = new models_0_1.InvalidClusterStateFault({
1206
1185
  $metadata: deserializeMetadata(parsedOutput),
1207
1186
  ...deserialized,
@@ -1210,7 +1189,7 @@ const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
1210
1189
  };
1211
1190
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
1212
1191
  const body = parsedOutput.body;
1213
- const deserialized = de_InvalidParameterCombinationException(body, context);
1192
+ const deserialized = (0, smithy_client_1._json)(body);
1214
1193
  const exception = new models_0_1.InvalidParameterCombinationException({
1215
1194
  $metadata: deserializeMetadata(parsedOutput),
1216
1195
  ...deserialized,
@@ -1219,7 +1198,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
1219
1198
  };
1220
1199
  const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
1221
1200
  const body = parsedOutput.body;
1222
- const deserialized = de_InvalidParameterGroupStateFault(body, context);
1201
+ const deserialized = (0, smithy_client_1._json)(body);
1223
1202
  const exception = new models_0_1.InvalidParameterGroupStateFault({
1224
1203
  $metadata: deserializeMetadata(parsedOutput),
1225
1204
  ...deserialized,
@@ -1228,7 +1207,7 @@ const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
1228
1207
  };
1229
1208
  const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1230
1209
  const body = parsedOutput.body;
1231
- const deserialized = de_InvalidParameterValueException(body, context);
1210
+ const deserialized = (0, smithy_client_1._json)(body);
1232
1211
  const exception = new models_0_1.InvalidParameterValueException({
1233
1212
  $metadata: deserializeMetadata(parsedOutput),
1234
1213
  ...deserialized,
@@ -1237,7 +1216,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1237
1216
  };
1238
1217
  const de_InvalidSubnetRes = async (parsedOutput, context) => {
1239
1218
  const body = parsedOutput.body;
1240
- const deserialized = de_InvalidSubnet(body, context);
1219
+ const deserialized = (0, smithy_client_1._json)(body);
1241
1220
  const exception = new models_0_1.InvalidSubnet({
1242
1221
  $metadata: deserializeMetadata(parsedOutput),
1243
1222
  ...deserialized,
@@ -1246,7 +1225,7 @@ const de_InvalidSubnetRes = async (parsedOutput, context) => {
1246
1225
  };
1247
1226
  const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
1248
1227
  const body = parsedOutput.body;
1249
- const deserialized = de_InvalidVPCNetworkStateFault(body, context);
1228
+ const deserialized = (0, smithy_client_1._json)(body);
1250
1229
  const exception = new models_0_1.InvalidVPCNetworkStateFault({
1251
1230
  $metadata: deserializeMetadata(parsedOutput),
1252
1231
  ...deserialized,
@@ -1255,7 +1234,7 @@ const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
1255
1234
  };
1256
1235
  const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
1257
1236
  const body = parsedOutput.body;
1258
- const deserialized = de_NodeNotFoundFault(body, context);
1237
+ const deserialized = (0, smithy_client_1._json)(body);
1259
1238
  const exception = new models_0_1.NodeNotFoundFault({
1260
1239
  $metadata: deserializeMetadata(parsedOutput),
1261
1240
  ...deserialized,
@@ -1264,7 +1243,7 @@ const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
1264
1243
  };
1265
1244
  const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
1266
1245
  const body = parsedOutput.body;
1267
- const deserialized = de_NodeQuotaForClusterExceededFault(body, context);
1246
+ const deserialized = (0, smithy_client_1._json)(body);
1268
1247
  const exception = new models_0_1.NodeQuotaForClusterExceededFault({
1269
1248
  $metadata: deserializeMetadata(parsedOutput),
1270
1249
  ...deserialized,
@@ -1273,7 +1252,7 @@ const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) =>
1273
1252
  };
1274
1253
  const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
1275
1254
  const body = parsedOutput.body;
1276
- const deserialized = de_NodeQuotaForCustomerExceededFault(body, context);
1255
+ const deserialized = (0, smithy_client_1._json)(body);
1277
1256
  const exception = new models_0_1.NodeQuotaForCustomerExceededFault({
1278
1257
  $metadata: deserializeMetadata(parsedOutput),
1279
1258
  ...deserialized,
@@ -1282,7 +1261,7 @@ const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) =>
1282
1261
  };
1283
1262
  const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1284
1263
  const body = parsedOutput.body;
1285
- const deserialized = de_ParameterGroupAlreadyExistsFault(body, context);
1264
+ const deserialized = (0, smithy_client_1._json)(body);
1286
1265
  const exception = new models_0_1.ParameterGroupAlreadyExistsFault({
1287
1266
  $metadata: deserializeMetadata(parsedOutput),
1288
1267
  ...deserialized,
@@ -1291,7 +1270,7 @@ const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) =>
1291
1270
  };
1292
1271
  const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
1293
1272
  const body = parsedOutput.body;
1294
- const deserialized = de_ParameterGroupNotFoundFault(body, context);
1273
+ const deserialized = (0, smithy_client_1._json)(body);
1295
1274
  const exception = new models_0_1.ParameterGroupNotFoundFault({
1296
1275
  $metadata: deserializeMetadata(parsedOutput),
1297
1276
  ...deserialized,
@@ -1300,7 +1279,7 @@ const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
1300
1279
  };
1301
1280
  const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1302
1281
  const body = parsedOutput.body;
1303
- const deserialized = de_ParameterGroupQuotaExceededFault(body, context);
1282
+ const deserialized = (0, smithy_client_1._json)(body);
1304
1283
  const exception = new models_0_1.ParameterGroupQuotaExceededFault({
1305
1284
  $metadata: deserializeMetadata(parsedOutput),
1306
1285
  ...deserialized,
@@ -1309,7 +1288,7 @@ const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) =>
1309
1288
  };
1310
1289
  const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
1311
1290
  const body = parsedOutput.body;
1312
- const deserialized = de_ServiceLinkedRoleNotFoundFault(body, context);
1291
+ const deserialized = (0, smithy_client_1._json)(body);
1313
1292
  const exception = new models_0_1.ServiceLinkedRoleNotFoundFault({
1314
1293
  $metadata: deserializeMetadata(parsedOutput),
1315
1294
  ...deserialized,
@@ -1318,7 +1297,7 @@ const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
1318
1297
  };
1319
1298
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1320
1299
  const body = parsedOutput.body;
1321
- const deserialized = de_ServiceQuotaExceededException(body, context);
1300
+ const deserialized = (0, smithy_client_1._json)(body);
1322
1301
  const exception = new models_0_1.ServiceQuotaExceededException({
1323
1302
  $metadata: deserializeMetadata(parsedOutput),
1324
1303
  ...deserialized,
@@ -1327,7 +1306,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1327
1306
  };
1328
1307
  const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1329
1308
  const body = parsedOutput.body;
1330
- const deserialized = de_SubnetGroupAlreadyExistsFault(body, context);
1309
+ const deserialized = (0, smithy_client_1._json)(body);
1331
1310
  const exception = new models_0_1.SubnetGroupAlreadyExistsFault({
1332
1311
  $metadata: deserializeMetadata(parsedOutput),
1333
1312
  ...deserialized,
@@ -1336,7 +1315,7 @@ const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1336
1315
  };
1337
1316
  const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
1338
1317
  const body = parsedOutput.body;
1339
- const deserialized = de_SubnetGroupInUseFault(body, context);
1318
+ const deserialized = (0, smithy_client_1._json)(body);
1340
1319
  const exception = new models_0_1.SubnetGroupInUseFault({
1341
1320
  $metadata: deserializeMetadata(parsedOutput),
1342
1321
  ...deserialized,
@@ -1345,7 +1324,7 @@ const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
1345
1324
  };
1346
1325
  const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
1347
1326
  const body = parsedOutput.body;
1348
- const deserialized = de_SubnetGroupNotFoundFault(body, context);
1327
+ const deserialized = (0, smithy_client_1._json)(body);
1349
1328
  const exception = new models_0_1.SubnetGroupNotFoundFault({
1350
1329
  $metadata: deserializeMetadata(parsedOutput),
1351
1330
  ...deserialized,
@@ -1354,7 +1333,7 @@ const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
1354
1333
  };
1355
1334
  const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1356
1335
  const body = parsedOutput.body;
1357
- const deserialized = de_SubnetGroupQuotaExceededFault(body, context);
1336
+ const deserialized = (0, smithy_client_1._json)(body);
1358
1337
  const exception = new models_0_1.SubnetGroupQuotaExceededFault({
1359
1338
  $metadata: deserializeMetadata(parsedOutput),
1360
1339
  ...deserialized,
@@ -1363,7 +1342,7 @@ const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1363
1342
  };
1364
1343
  const de_SubnetInUseRes = async (parsedOutput, context) => {
1365
1344
  const body = parsedOutput.body;
1366
- const deserialized = de_SubnetInUse(body, context);
1345
+ const deserialized = (0, smithy_client_1._json)(body);
1367
1346
  const exception = new models_0_1.SubnetInUse({
1368
1347
  $metadata: deserializeMetadata(parsedOutput),
1369
1348
  ...deserialized,
@@ -1372,7 +1351,7 @@ const de_SubnetInUseRes = async (parsedOutput, context) => {
1372
1351
  };
1373
1352
  const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
1374
1353
  const body = parsedOutput.body;
1375
- const deserialized = de_SubnetQuotaExceededFault(body, context);
1354
+ const deserialized = (0, smithy_client_1._json)(body);
1376
1355
  const exception = new models_0_1.SubnetQuotaExceededFault({
1377
1356
  $metadata: deserializeMetadata(parsedOutput),
1378
1357
  ...deserialized,
@@ -1381,7 +1360,7 @@ const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
1381
1360
  };
1382
1361
  const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
1383
1362
  const body = parsedOutput.body;
1384
- const deserialized = de_TagNotFoundFault(body, context);
1363
+ const deserialized = (0, smithy_client_1._json)(body);
1385
1364
  const exception = new models_0_1.TagNotFoundFault({
1386
1365
  $metadata: deserializeMetadata(parsedOutput),
1387
1366
  ...deserialized,
@@ -1390,761 +1369,129 @@ const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
1390
1369
  };
1391
1370
  const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
1392
1371
  const body = parsedOutput.body;
1393
- const deserialized = de_TagQuotaPerResourceExceeded(body, context);
1372
+ const deserialized = (0, smithy_client_1._json)(body);
1394
1373
  const exception = new models_0_1.TagQuotaPerResourceExceeded({
1395
1374
  $metadata: deserializeMetadata(parsedOutput),
1396
1375
  ...deserialized,
1397
1376
  });
1398
1377
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1399
1378
  };
1400
- const se_AvailabilityZoneList = (input, context) => {
1401
- return input
1402
- .filter((e) => e != null)
1403
- .map((entry) => {
1404
- return entry;
1405
- });
1406
- };
1407
- const se_ClusterNameList = (input, context) => {
1408
- return input
1409
- .filter((e) => e != null)
1410
- .map((entry) => {
1411
- return entry;
1412
- });
1413
- };
1414
- const se_CreateClusterRequest = (input, context) => {
1415
- return {
1416
- ...(input.AvailabilityZones != null && {
1417
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
1418
- }),
1419
- ...(input.ClusterEndpointEncryptionType != null && {
1420
- ClusterEndpointEncryptionType: input.ClusterEndpointEncryptionType,
1421
- }),
1422
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1423
- ...(input.Description != null && { Description: input.Description }),
1424
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
1425
- ...(input.NodeType != null && { NodeType: input.NodeType }),
1426
- ...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
1427
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1428
- ...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
1429
- ...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
1430
- ...(input.SSESpecification != null && { SSESpecification: se_SSESpecification(input.SSESpecification, context) }),
1431
- ...(input.SecurityGroupIds != null && {
1432
- SecurityGroupIds: se_SecurityGroupIdentifierList(input.SecurityGroupIds, context),
1433
- }),
1434
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1435
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1436
- };
1437
- };
1438
- const se_CreateParameterGroupRequest = (input, context) => {
1439
- return {
1440
- ...(input.Description != null && { Description: input.Description }),
1441
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1442
- };
1443
- };
1444
- const se_CreateSubnetGroupRequest = (input, context) => {
1445
- return {
1446
- ...(input.Description != null && { Description: input.Description }),
1447
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1448
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdentifierList(input.SubnetIds, context) }),
1449
- };
1450
- };
1451
- const se_DecreaseReplicationFactorRequest = (input, context) => {
1452
- return {
1453
- ...(input.AvailabilityZones != null && {
1454
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
1455
- }),
1456
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1457
- ...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
1458
- ...(input.NodeIdsToRemove != null && { NodeIdsToRemove: se_NodeIdentifierList(input.NodeIdsToRemove, context) }),
1459
- };
1460
- };
1461
- const se_DeleteClusterRequest = (input, context) => {
1462
- return {
1463
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1464
- };
1465
- };
1466
- const se_DeleteParameterGroupRequest = (input, context) => {
1467
- return {
1468
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1469
- };
1470
- };
1471
- const se_DeleteSubnetGroupRequest = (input, context) => {
1472
- return {
1473
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1474
- };
1475
- };
1476
- const se_DescribeClustersRequest = (input, context) => {
1477
- return {
1478
- ...(input.ClusterNames != null && { ClusterNames: se_ClusterNameList(input.ClusterNames, context) }),
1479
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1480
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1481
- };
1482
- };
1483
- const se_DescribeDefaultParametersRequest = (input, context) => {
1484
- return {
1485
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1486
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1487
- };
1488
- };
1489
1379
  const se_DescribeEventsRequest = (input, context) => {
1490
- return {
1491
- ...(input.Duration != null && { Duration: input.Duration }),
1492
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1493
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1494
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1495
- ...(input.SourceName != null && { SourceName: input.SourceName }),
1496
- ...(input.SourceType != null && { SourceType: input.SourceType }),
1497
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1498
- };
1499
- };
1500
- const se_DescribeParameterGroupsRequest = (input, context) => {
1501
- return {
1502
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1503
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1504
- ...(input.ParameterGroupNames != null && {
1505
- ParameterGroupNames: se_ParameterGroupNameList(input.ParameterGroupNames, context),
1506
- }),
1507
- };
1508
- };
1509
- const se_DescribeParametersRequest = (input, context) => {
1510
- return {
1511
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1512
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1513
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1514
- ...(input.Source != null && { Source: input.Source }),
1515
- };
1516
- };
1517
- const se_DescribeSubnetGroupsRequest = (input, context) => {
1518
- return {
1519
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1520
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1521
- ...(input.SubnetGroupNames != null && {
1522
- SubnetGroupNames: se_SubnetGroupNameList(input.SubnetGroupNames, context),
1523
- }),
1524
- };
1525
- };
1526
- const se_IncreaseReplicationFactorRequest = (input, context) => {
1527
- return {
1528
- ...(input.AvailabilityZones != null && {
1529
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
1530
- }),
1531
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1532
- ...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
1533
- };
1534
- };
1535
- const se_KeyList = (input, context) => {
1536
- return input
1537
- .filter((e) => e != null)
1538
- .map((entry) => {
1539
- return entry;
1540
- });
1541
- };
1542
- const se_ListTagsRequest = (input, context) => {
1543
- return {
1544
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1545
- ...(input.ResourceName != null && { ResourceName: input.ResourceName }),
1546
- };
1547
- };
1548
- const se_NodeIdentifierList = (input, context) => {
1549
- return input
1550
- .filter((e) => e != null)
1551
- .map((entry) => {
1552
- return entry;
1553
- });
1554
- };
1555
- const se_ParameterGroupNameList = (input, context) => {
1556
- return input
1557
- .filter((e) => e != null)
1558
- .map((entry) => {
1559
- return entry;
1560
- });
1561
- };
1562
- const se_ParameterNameValue = (input, context) => {
1563
- return {
1564
- ...(input.ParameterName != null && { ParameterName: input.ParameterName }),
1565
- ...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
1566
- };
1567
- };
1568
- const se_ParameterNameValueList = (input, context) => {
1569
- return input
1570
- .filter((e) => e != null)
1571
- .map((entry) => {
1572
- return se_ParameterNameValue(entry, context);
1573
- });
1574
- };
1575
- const se_RebootNodeRequest = (input, context) => {
1576
- return {
1577
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1578
- ...(input.NodeId != null && { NodeId: input.NodeId }),
1579
- };
1580
- };
1581
- const se_SecurityGroupIdentifierList = (input, context) => {
1582
- return input
1583
- .filter((e) => e != null)
1584
- .map((entry) => {
1585
- return entry;
1586
- });
1587
- };
1588
- const se_SSESpecification = (input, context) => {
1589
- return {
1590
- ...(input.Enabled != null && { Enabled: input.Enabled }),
1591
- };
1592
- };
1593
- const se_SubnetGroupNameList = (input, context) => {
1594
- return input
1595
- .filter((e) => e != null)
1596
- .map((entry) => {
1597
- return entry;
1598
- });
1599
- };
1600
- const se_SubnetIdentifierList = (input, context) => {
1601
- return input
1602
- .filter((e) => e != null)
1603
- .map((entry) => {
1604
- return entry;
1380
+ return (0, smithy_client_1.take)(input, {
1381
+ Duration: [],
1382
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1383
+ MaxResults: [],
1384
+ NextToken: [],
1385
+ SourceName: [],
1386
+ SourceType: [],
1387
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1605
1388
  });
1606
1389
  };
1607
- const se_Tag = (input, context) => {
1608
- return {
1609
- ...(input.Key != null && { Key: input.Key }),
1610
- ...(input.Value != null && { Value: input.Value }),
1611
- };
1612
- };
1613
- const se_TagList = (input, context) => {
1614
- return input
1615
- .filter((e) => e != null)
1616
- .map((entry) => {
1617
- return se_Tag(entry, context);
1618
- });
1619
- };
1620
- const se_TagResourceRequest = (input, context) => {
1621
- return {
1622
- ...(input.ResourceName != null && { ResourceName: input.ResourceName }),
1623
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1624
- };
1625
- };
1626
- const se_UntagResourceRequest = (input, context) => {
1627
- return {
1628
- ...(input.ResourceName != null && { ResourceName: input.ResourceName }),
1629
- ...(input.TagKeys != null && { TagKeys: se_KeyList(input.TagKeys, context) }),
1630
- };
1631
- };
1632
- const se_UpdateClusterRequest = (input, context) => {
1633
- return {
1634
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1635
- ...(input.Description != null && { Description: input.Description }),
1636
- ...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
1637
- ...(input.NotificationTopicStatus != null && { NotificationTopicStatus: input.NotificationTopicStatus }),
1638
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1639
- ...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
1640
- ...(input.SecurityGroupIds != null && {
1641
- SecurityGroupIds: se_SecurityGroupIdentifierList(input.SecurityGroupIds, context),
1642
- }),
1643
- };
1644
- };
1645
- const se_UpdateParameterGroupRequest = (input, context) => {
1646
- return {
1647
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1648
- ...(input.ParameterNameValues != null && {
1649
- ParameterNameValues: se_ParameterNameValueList(input.ParameterNameValues, context),
1650
- }),
1651
- };
1652
- };
1653
- const se_UpdateSubnetGroupRequest = (input, context) => {
1654
- return {
1655
- ...(input.Description != null && { Description: input.Description }),
1656
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1657
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdentifierList(input.SubnetIds, context) }),
1658
- };
1659
- };
1660
1390
  const de_Cluster = (output, context) => {
1661
- return {
1662
- ActiveNodes: (0, smithy_client_1.expectInt32)(output.ActiveNodes),
1663
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
1664
- ClusterDiscoveryEndpoint: output.ClusterDiscoveryEndpoint != null ? de_Endpoint(output.ClusterDiscoveryEndpoint, context) : undefined,
1665
- ClusterEndpointEncryptionType: (0, smithy_client_1.expectString)(output.ClusterEndpointEncryptionType),
1666
- ClusterName: (0, smithy_client_1.expectString)(output.ClusterName),
1667
- Description: (0, smithy_client_1.expectString)(output.Description),
1668
- IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
1669
- NodeIdsToRemove: output.NodeIdsToRemove != null ? de_NodeIdentifierList(output.NodeIdsToRemove, context) : undefined,
1670
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
1671
- Nodes: output.Nodes != null ? de_NodeList(output.Nodes, context) : undefined,
1672
- NotificationConfiguration: output.NotificationConfiguration != null
1673
- ? de_NotificationConfiguration(output.NotificationConfiguration, context)
1674
- : undefined,
1675
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroupStatus(output.ParameterGroup, context) : undefined,
1676
- PreferredMaintenanceWindow: (0, smithy_client_1.expectString)(output.PreferredMaintenanceWindow),
1677
- SSEDescription: output.SSEDescription != null ? de_SSEDescription(output.SSEDescription, context) : undefined,
1678
- SecurityGroups: output.SecurityGroups != null ? de_SecurityGroupMembershipList(output.SecurityGroups, context) : undefined,
1679
- Status: (0, smithy_client_1.expectString)(output.Status),
1680
- SubnetGroup: (0, smithy_client_1.expectString)(output.SubnetGroup),
1681
- TotalNodes: (0, smithy_client_1.expectInt32)(output.TotalNodes),
1682
- };
1683
- };
1684
- const de_ClusterAlreadyExistsFault = (output, context) => {
1685
- return {
1686
- message: (0, smithy_client_1.expectString)(output.message),
1687
- };
1391
+ return (0, smithy_client_1.take)(output, {
1392
+ ActiveNodes: smithy_client_1.expectInt32,
1393
+ ClusterArn: smithy_client_1.expectString,
1394
+ ClusterDiscoveryEndpoint: smithy_client_1._json,
1395
+ ClusterEndpointEncryptionType: smithy_client_1.expectString,
1396
+ ClusterName: smithy_client_1.expectString,
1397
+ Description: smithy_client_1.expectString,
1398
+ IamRoleArn: smithy_client_1.expectString,
1399
+ NodeIdsToRemove: smithy_client_1._json,
1400
+ NodeType: smithy_client_1.expectString,
1401
+ Nodes: (_) => de_NodeList(_, context),
1402
+ NotificationConfiguration: smithy_client_1._json,
1403
+ ParameterGroup: smithy_client_1._json,
1404
+ PreferredMaintenanceWindow: smithy_client_1.expectString,
1405
+ SSEDescription: smithy_client_1._json,
1406
+ SecurityGroups: smithy_client_1._json,
1407
+ Status: smithy_client_1.expectString,
1408
+ SubnetGroup: smithy_client_1.expectString,
1409
+ TotalNodes: smithy_client_1.expectInt32,
1410
+ });
1688
1411
  };
1689
1412
  const de_ClusterList = (output, context) => {
1690
1413
  const retVal = (output || [])
1691
1414
  .filter((e) => e != null)
1692
1415
  .map((entry) => {
1693
- if (entry === null) {
1694
- return null;
1695
- }
1696
1416
  return de_Cluster(entry, context);
1697
1417
  });
1698
1418
  return retVal;
1699
1419
  };
1700
- const de_ClusterNotFoundFault = (output, context) => {
1701
- return {
1702
- message: (0, smithy_client_1.expectString)(output.message),
1703
- };
1704
- };
1705
- const de_ClusterQuotaForCustomerExceededFault = (output, context) => {
1706
- return {
1707
- message: (0, smithy_client_1.expectString)(output.message),
1708
- };
1709
- };
1710
1420
  const de_CreateClusterResponse = (output, context) => {
1711
- return {
1712
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1713
- };
1714
- };
1715
- const de_CreateParameterGroupResponse = (output, context) => {
1716
- return {
1717
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
1718
- };
1719
- };
1720
- const de_CreateSubnetGroupResponse = (output, context) => {
1721
- return {
1722
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
1723
- };
1421
+ return (0, smithy_client_1.take)(output, {
1422
+ Cluster: (_) => de_Cluster(_, context),
1423
+ });
1724
1424
  };
1725
1425
  const de_DecreaseReplicationFactorResponse = (output, context) => {
1726
- return {
1727
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1728
- };
1426
+ return (0, smithy_client_1.take)(output, {
1427
+ Cluster: (_) => de_Cluster(_, context),
1428
+ });
1729
1429
  };
1730
1430
  const de_DeleteClusterResponse = (output, context) => {
1731
- return {
1732
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1733
- };
1734
- };
1735
- const de_DeleteParameterGroupResponse = (output, context) => {
1736
- return {
1737
- DeletionMessage: (0, smithy_client_1.expectString)(output.DeletionMessage),
1738
- };
1739
- };
1740
- const de_DeleteSubnetGroupResponse = (output, context) => {
1741
- return {
1742
- DeletionMessage: (0, smithy_client_1.expectString)(output.DeletionMessage),
1743
- };
1431
+ return (0, smithy_client_1.take)(output, {
1432
+ Cluster: (_) => de_Cluster(_, context),
1433
+ });
1744
1434
  };
1745
1435
  const de_DescribeClustersResponse = (output, context) => {
1746
- return {
1747
- Clusters: output.Clusters != null ? de_ClusterList(output.Clusters, context) : undefined,
1748
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1749
- };
1750
- };
1751
- const de_DescribeDefaultParametersResponse = (output, context) => {
1752
- return {
1753
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1754
- Parameters: output.Parameters != null ? de_ParameterList(output.Parameters, context) : undefined,
1755
- };
1436
+ return (0, smithy_client_1.take)(output, {
1437
+ Clusters: (_) => de_ClusterList(_, context),
1438
+ NextToken: smithy_client_1.expectString,
1439
+ });
1756
1440
  };
1757
1441
  const de_DescribeEventsResponse = (output, context) => {
1758
- return {
1759
- Events: output.Events != null ? de_EventList(output.Events, context) : undefined,
1760
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1761
- };
1762
- };
1763
- const de_DescribeParameterGroupsResponse = (output, context) => {
1764
- return {
1765
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1766
- ParameterGroups: output.ParameterGroups != null ? de_ParameterGroupList(output.ParameterGroups, context) : undefined,
1767
- };
1768
- };
1769
- const de_DescribeParametersResponse = (output, context) => {
1770
- return {
1771
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1772
- Parameters: output.Parameters != null ? de_ParameterList(output.Parameters, context) : undefined,
1773
- };
1774
- };
1775
- const de_DescribeSubnetGroupsResponse = (output, context) => {
1776
- return {
1777
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1778
- SubnetGroups: output.SubnetGroups != null ? de_SubnetGroupList(output.SubnetGroups, context) : undefined,
1779
- };
1780
- };
1781
- const de_Endpoint = (output, context) => {
1782
- return {
1783
- Address: (0, smithy_client_1.expectString)(output.Address),
1784
- Port: (0, smithy_client_1.expectInt32)(output.Port),
1785
- URL: (0, smithy_client_1.expectString)(output.URL),
1786
- };
1442
+ return (0, smithy_client_1.take)(output, {
1443
+ Events: (_) => de_EventList(_, context),
1444
+ NextToken: smithy_client_1.expectString,
1445
+ });
1787
1446
  };
1788
1447
  const de_Event = (output, context) => {
1789
- return {
1790
- Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined,
1791
- Message: (0, smithy_client_1.expectString)(output.Message),
1792
- SourceName: (0, smithy_client_1.expectString)(output.SourceName),
1793
- SourceType: (0, smithy_client_1.expectString)(output.SourceType),
1794
- };
1448
+ return (0, smithy_client_1.take)(output, {
1449
+ Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1450
+ Message: smithy_client_1.expectString,
1451
+ SourceName: smithy_client_1.expectString,
1452
+ SourceType: smithy_client_1.expectString,
1453
+ });
1795
1454
  };
1796
1455
  const de_EventList = (output, context) => {
1797
1456
  const retVal = (output || [])
1798
1457
  .filter((e) => e != null)
1799
1458
  .map((entry) => {
1800
- if (entry === null) {
1801
- return null;
1802
- }
1803
1459
  return de_Event(entry, context);
1804
1460
  });
1805
1461
  return retVal;
1806
1462
  };
1807
1463
  const de_IncreaseReplicationFactorResponse = (output, context) => {
1808
- return {
1809
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1810
- };
1811
- };
1812
- const de_InsufficientClusterCapacityFault = (output, context) => {
1813
- return {
1814
- message: (0, smithy_client_1.expectString)(output.message),
1815
- };
1816
- };
1817
- const de_InvalidARNFault = (output, context) => {
1818
- return {
1819
- message: (0, smithy_client_1.expectString)(output.message),
1820
- };
1821
- };
1822
- const de_InvalidClusterStateFault = (output, context) => {
1823
- return {
1824
- message: (0, smithy_client_1.expectString)(output.message),
1825
- };
1826
- };
1827
- const de_InvalidParameterCombinationException = (output, context) => {
1828
- return {
1829
- message: (0, smithy_client_1.expectString)(output.message),
1830
- };
1831
- };
1832
- const de_InvalidParameterGroupStateFault = (output, context) => {
1833
- return {
1834
- message: (0, smithy_client_1.expectString)(output.message),
1835
- };
1836
- };
1837
- const de_InvalidParameterValueException = (output, context) => {
1838
- return {
1839
- message: (0, smithy_client_1.expectString)(output.message),
1840
- };
1841
- };
1842
- const de_InvalidSubnet = (output, context) => {
1843
- return {
1844
- message: (0, smithy_client_1.expectString)(output.message),
1845
- };
1846
- };
1847
- const de_InvalidVPCNetworkStateFault = (output, context) => {
1848
- return {
1849
- message: (0, smithy_client_1.expectString)(output.message),
1850
- };
1851
- };
1852
- const de_ListTagsResponse = (output, context) => {
1853
- return {
1854
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1855
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1856
- };
1464
+ return (0, smithy_client_1.take)(output, {
1465
+ Cluster: (_) => de_Cluster(_, context),
1466
+ });
1857
1467
  };
1858
1468
  const de_Node = (output, context) => {
1859
- return {
1860
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
1861
- Endpoint: output.Endpoint != null ? de_Endpoint(output.Endpoint, context) : undefined,
1862
- NodeCreateTime: output.NodeCreateTime != null
1863
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NodeCreateTime)))
1864
- : undefined,
1865
- NodeId: (0, smithy_client_1.expectString)(output.NodeId),
1866
- NodeStatus: (0, smithy_client_1.expectString)(output.NodeStatus),
1867
- ParameterGroupStatus: (0, smithy_client_1.expectString)(output.ParameterGroupStatus),
1868
- };
1869
- };
1870
- const de_NodeIdentifierList = (output, context) => {
1871
- const retVal = (output || [])
1872
- .filter((e) => e != null)
1873
- .map((entry) => {
1874
- if (entry === null) {
1875
- return null;
1876
- }
1877
- return (0, smithy_client_1.expectString)(entry);
1469
+ return (0, smithy_client_1.take)(output, {
1470
+ AvailabilityZone: smithy_client_1.expectString,
1471
+ Endpoint: smithy_client_1._json,
1472
+ NodeCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1473
+ NodeId: smithy_client_1.expectString,
1474
+ NodeStatus: smithy_client_1.expectString,
1475
+ ParameterGroupStatus: smithy_client_1.expectString,
1878
1476
  });
1879
- return retVal;
1880
1477
  };
1881
1478
  const de_NodeList = (output, context) => {
1882
1479
  const retVal = (output || [])
1883
1480
  .filter((e) => e != null)
1884
1481
  .map((entry) => {
1885
- if (entry === null) {
1886
- return null;
1887
- }
1888
1482
  return de_Node(entry, context);
1889
1483
  });
1890
1484
  return retVal;
1891
1485
  };
1892
- const de_NodeNotFoundFault = (output, context) => {
1893
- return {
1894
- message: (0, smithy_client_1.expectString)(output.message),
1895
- };
1896
- };
1897
- const de_NodeQuotaForClusterExceededFault = (output, context) => {
1898
- return {
1899
- message: (0, smithy_client_1.expectString)(output.message),
1900
- };
1901
- };
1902
- const de_NodeQuotaForCustomerExceededFault = (output, context) => {
1903
- return {
1904
- message: (0, smithy_client_1.expectString)(output.message),
1905
- };
1906
- };
1907
- const de_NodeTypeSpecificValue = (output, context) => {
1908
- return {
1909
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
1910
- Value: (0, smithy_client_1.expectString)(output.Value),
1911
- };
1912
- };
1913
- const de_NodeTypeSpecificValueList = (output, context) => {
1914
- const retVal = (output || [])
1915
- .filter((e) => e != null)
1916
- .map((entry) => {
1917
- if (entry === null) {
1918
- return null;
1919
- }
1920
- return de_NodeTypeSpecificValue(entry, context);
1921
- });
1922
- return retVal;
1923
- };
1924
- const de_NotificationConfiguration = (output, context) => {
1925
- return {
1926
- TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
1927
- TopicStatus: (0, smithy_client_1.expectString)(output.TopicStatus),
1928
- };
1929
- };
1930
- const de_Parameter = (output, context) => {
1931
- return {
1932
- AllowedValues: (0, smithy_client_1.expectString)(output.AllowedValues),
1933
- ChangeType: (0, smithy_client_1.expectString)(output.ChangeType),
1934
- DataType: (0, smithy_client_1.expectString)(output.DataType),
1935
- Description: (0, smithy_client_1.expectString)(output.Description),
1936
- IsModifiable: (0, smithy_client_1.expectString)(output.IsModifiable),
1937
- NodeTypeSpecificValues: output.NodeTypeSpecificValues != null
1938
- ? de_NodeTypeSpecificValueList(output.NodeTypeSpecificValues, context)
1939
- : undefined,
1940
- ParameterName: (0, smithy_client_1.expectString)(output.ParameterName),
1941
- ParameterType: (0, smithy_client_1.expectString)(output.ParameterType),
1942
- ParameterValue: (0, smithy_client_1.expectString)(output.ParameterValue),
1943
- Source: (0, smithy_client_1.expectString)(output.Source),
1944
- };
1945
- };
1946
- const de_ParameterGroup = (output, context) => {
1947
- return {
1948
- Description: (0, smithy_client_1.expectString)(output.Description),
1949
- ParameterGroupName: (0, smithy_client_1.expectString)(output.ParameterGroupName),
1950
- };
1951
- };
1952
- const de_ParameterGroupAlreadyExistsFault = (output, context) => {
1953
- return {
1954
- message: (0, smithy_client_1.expectString)(output.message),
1955
- };
1956
- };
1957
- const de_ParameterGroupList = (output, context) => {
1958
- const retVal = (output || [])
1959
- .filter((e) => e != null)
1960
- .map((entry) => {
1961
- if (entry === null) {
1962
- return null;
1963
- }
1964
- return de_ParameterGroup(entry, context);
1965
- });
1966
- return retVal;
1967
- };
1968
- const de_ParameterGroupNotFoundFault = (output, context) => {
1969
- return {
1970
- message: (0, smithy_client_1.expectString)(output.message),
1971
- };
1972
- };
1973
- const de_ParameterGroupQuotaExceededFault = (output, context) => {
1974
- return {
1975
- message: (0, smithy_client_1.expectString)(output.message),
1976
- };
1977
- };
1978
- const de_ParameterGroupStatus = (output, context) => {
1979
- return {
1980
- NodeIdsToReboot: output.NodeIdsToReboot != null ? de_NodeIdentifierList(output.NodeIdsToReboot, context) : undefined,
1981
- ParameterApplyStatus: (0, smithy_client_1.expectString)(output.ParameterApplyStatus),
1982
- ParameterGroupName: (0, smithy_client_1.expectString)(output.ParameterGroupName),
1983
- };
1984
- };
1985
- const de_ParameterList = (output, context) => {
1986
- const retVal = (output || [])
1987
- .filter((e) => e != null)
1988
- .map((entry) => {
1989
- if (entry === null) {
1990
- return null;
1991
- }
1992
- return de_Parameter(entry, context);
1993
- });
1994
- return retVal;
1995
- };
1996
1486
  const de_RebootNodeResponse = (output, context) => {
1997
- return {
1998
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1999
- };
2000
- };
2001
- const de_SecurityGroupMembership = (output, context) => {
2002
- return {
2003
- SecurityGroupIdentifier: (0, smithy_client_1.expectString)(output.SecurityGroupIdentifier),
2004
- Status: (0, smithy_client_1.expectString)(output.Status),
2005
- };
2006
- };
2007
- const de_SecurityGroupMembershipList = (output, context) => {
2008
- const retVal = (output || [])
2009
- .filter((e) => e != null)
2010
- .map((entry) => {
2011
- if (entry === null) {
2012
- return null;
2013
- }
2014
- return de_SecurityGroupMembership(entry, context);
2015
- });
2016
- return retVal;
2017
- };
2018
- const de_ServiceLinkedRoleNotFoundFault = (output, context) => {
2019
- return {
2020
- message: (0, smithy_client_1.expectString)(output.message),
2021
- };
2022
- };
2023
- const de_ServiceQuotaExceededException = (output, context) => {
2024
- return {};
2025
- };
2026
- const de_SSEDescription = (output, context) => {
2027
- return {
2028
- Status: (0, smithy_client_1.expectString)(output.Status),
2029
- };
2030
- };
2031
- const de_Subnet = (output, context) => {
2032
- return {
2033
- SubnetAvailabilityZone: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZone),
2034
- SubnetIdentifier: (0, smithy_client_1.expectString)(output.SubnetIdentifier),
2035
- };
2036
- };
2037
- const de_SubnetGroup = (output, context) => {
2038
- return {
2039
- Description: (0, smithy_client_1.expectString)(output.Description),
2040
- SubnetGroupName: (0, smithy_client_1.expectString)(output.SubnetGroupName),
2041
- Subnets: output.Subnets != null ? de_SubnetList(output.Subnets, context) : undefined,
2042
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
2043
- };
2044
- };
2045
- const de_SubnetGroupAlreadyExistsFault = (output, context) => {
2046
- return {
2047
- message: (0, smithy_client_1.expectString)(output.message),
2048
- };
2049
- };
2050
- const de_SubnetGroupInUseFault = (output, context) => {
2051
- return {
2052
- message: (0, smithy_client_1.expectString)(output.message),
2053
- };
2054
- };
2055
- const de_SubnetGroupList = (output, context) => {
2056
- const retVal = (output || [])
2057
- .filter((e) => e != null)
2058
- .map((entry) => {
2059
- if (entry === null) {
2060
- return null;
2061
- }
2062
- return de_SubnetGroup(entry, context);
1487
+ return (0, smithy_client_1.take)(output, {
1488
+ Cluster: (_) => de_Cluster(_, context),
2063
1489
  });
2064
- return retVal;
2065
- };
2066
- const de_SubnetGroupNotFoundFault = (output, context) => {
2067
- return {
2068
- message: (0, smithy_client_1.expectString)(output.message),
2069
- };
2070
- };
2071
- const de_SubnetGroupQuotaExceededFault = (output, context) => {
2072
- return {
2073
- message: (0, smithy_client_1.expectString)(output.message),
2074
- };
2075
- };
2076
- const de_SubnetInUse = (output, context) => {
2077
- return {
2078
- message: (0, smithy_client_1.expectString)(output.message),
2079
- };
2080
- };
2081
- const de_SubnetList = (output, context) => {
2082
- const retVal = (output || [])
2083
- .filter((e) => e != null)
2084
- .map((entry) => {
2085
- if (entry === null) {
2086
- return null;
2087
- }
2088
- return de_Subnet(entry, context);
2089
- });
2090
- return retVal;
2091
- };
2092
- const de_SubnetQuotaExceededFault = (output, context) => {
2093
- return {
2094
- message: (0, smithy_client_1.expectString)(output.message),
2095
- };
2096
- };
2097
- const de_Tag = (output, context) => {
2098
- return {
2099
- Key: (0, smithy_client_1.expectString)(output.Key),
2100
- Value: (0, smithy_client_1.expectString)(output.Value),
2101
- };
2102
- };
2103
- const de_TagList = (output, context) => {
2104
- const retVal = (output || [])
2105
- .filter((e) => e != null)
2106
- .map((entry) => {
2107
- if (entry === null) {
2108
- return null;
2109
- }
2110
- return de_Tag(entry, context);
2111
- });
2112
- return retVal;
2113
- };
2114
- const de_TagNotFoundFault = (output, context) => {
2115
- return {
2116
- message: (0, smithy_client_1.expectString)(output.message),
2117
- };
2118
- };
2119
- const de_TagQuotaPerResourceExceeded = (output, context) => {
2120
- return {
2121
- message: (0, smithy_client_1.expectString)(output.message),
2122
- };
2123
- };
2124
- const de_TagResourceResponse = (output, context) => {
2125
- return {
2126
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2127
- };
2128
- };
2129
- const de_UntagResourceResponse = (output, context) => {
2130
- return {
2131
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2132
- };
2133
1490
  };
2134
1491
  const de_UpdateClusterResponse = (output, context) => {
2135
- return {
2136
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
2137
- };
2138
- };
2139
- const de_UpdateParameterGroupResponse = (output, context) => {
2140
- return {
2141
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
2142
- };
2143
- };
2144
- const de_UpdateSubnetGroupResponse = (output, context) => {
2145
- return {
2146
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
2147
- };
1492
+ return (0, smithy_client_1.take)(output, {
1493
+ Cluster: (_) => de_Cluster(_, context),
1494
+ });
2148
1495
  };
2149
1496
  const deserializeMetadata = (output) => ({
2150
1497
  httpStatusCode: output.statusCode,
@@ -2159,6 +1506,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2159
1506
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2160
1507
  };
2161
1508
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1509
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(DAXServiceException_1.DAXServiceException);
2162
1510
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2163
1511
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2164
1512
  const contents = {