@aws-sdk/client-dax 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,194 +1,131 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { DAXServiceException as __BaseException } from "../models/DAXServiceException";
4
4
  import { ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterQuotaForCustomerExceededFault, InsufficientClusterCapacityFault, InvalidARNFault, InvalidClusterStateFault, InvalidParameterCombinationException, InvalidParameterGroupStateFault, InvalidParameterValueException, InvalidSubnet, InvalidVPCNetworkStateFault, NodeNotFoundFault, NodeQuotaForClusterExceededFault, NodeQuotaForCustomerExceededFault, ParameterGroupAlreadyExistsFault, ParameterGroupNotFoundFault, ParameterGroupQuotaExceededFault, ServiceLinkedRoleNotFoundFault, ServiceQuotaExceededException, SubnetGroupAlreadyExistsFault, SubnetGroupInUseFault, SubnetGroupNotFoundFault, SubnetGroupQuotaExceededFault, SubnetInUse, SubnetQuotaExceededFault, TagNotFoundFault, TagQuotaPerResourceExceeded, } from "../models/models_0";
5
5
  export const se_CreateClusterCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "AmazonDAXV3.CreateCluster",
9
- };
6
+ const headers = sharedHeaders("CreateCluster");
10
7
  let body;
11
- body = JSON.stringify(se_CreateClusterRequest(input, context));
8
+ body = JSON.stringify(_json(input));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CreateParameterGroupCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "AmazonDAXV3.CreateParameterGroup",
18
- };
12
+ const headers = sharedHeaders("CreateParameterGroup");
19
13
  let body;
20
- body = JSON.stringify(se_CreateParameterGroupRequest(input, context));
14
+ body = JSON.stringify(_json(input));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateSubnetGroupCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "AmazonDAXV3.CreateSubnetGroup",
27
- };
18
+ const headers = sharedHeaders("CreateSubnetGroup");
28
19
  let body;
29
- body = JSON.stringify(se_CreateSubnetGroupRequest(input, context));
20
+ body = JSON.stringify(_json(input));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_DecreaseReplicationFactorCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "AmazonDAXV3.DecreaseReplicationFactor",
36
- };
24
+ const headers = sharedHeaders("DecreaseReplicationFactor");
37
25
  let body;
38
- body = JSON.stringify(se_DecreaseReplicationFactorRequest(input, context));
26
+ body = JSON.stringify(_json(input));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_DeleteClusterCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "AmazonDAXV3.DeleteCluster",
45
- };
30
+ const headers = sharedHeaders("DeleteCluster");
46
31
  let body;
47
- body = JSON.stringify(se_DeleteClusterRequest(input, context));
32
+ body = JSON.stringify(_json(input));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_DeleteParameterGroupCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AmazonDAXV3.DeleteParameterGroup",
54
- };
36
+ const headers = sharedHeaders("DeleteParameterGroup");
55
37
  let body;
56
- body = JSON.stringify(se_DeleteParameterGroupRequest(input, context));
38
+ body = JSON.stringify(_json(input));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_DeleteSubnetGroupCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AmazonDAXV3.DeleteSubnetGroup",
63
- };
42
+ const headers = sharedHeaders("DeleteSubnetGroup");
64
43
  let body;
65
- body = JSON.stringify(se_DeleteSubnetGroupRequest(input, context));
44
+ body = JSON.stringify(_json(input));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DescribeClustersCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AmazonDAXV3.DescribeClusters",
72
- };
48
+ const headers = sharedHeaders("DescribeClusters");
73
49
  let body;
74
- body = JSON.stringify(se_DescribeClustersRequest(input, context));
50
+ body = JSON.stringify(_json(input));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DescribeDefaultParametersCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "AmazonDAXV3.DescribeDefaultParameters",
81
- };
54
+ const headers = sharedHeaders("DescribeDefaultParameters");
82
55
  let body;
83
- body = JSON.stringify(se_DescribeDefaultParametersRequest(input, context));
56
+ body = JSON.stringify(_json(input));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_DescribeEventsCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AmazonDAXV3.DescribeEvents",
90
- };
60
+ const headers = sharedHeaders("DescribeEvents");
91
61
  let body;
92
62
  body = JSON.stringify(se_DescribeEventsRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_DescribeParameterGroupsCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "AmazonDAXV3.DescribeParameterGroups",
99
- };
66
+ const headers = sharedHeaders("DescribeParameterGroups");
100
67
  let body;
101
- body = JSON.stringify(se_DescribeParameterGroupsRequest(input, context));
68
+ body = JSON.stringify(_json(input));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_DescribeParametersCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "AmazonDAXV3.DescribeParameters",
108
- };
72
+ const headers = sharedHeaders("DescribeParameters");
109
73
  let body;
110
- body = JSON.stringify(se_DescribeParametersRequest(input, context));
74
+ body = JSON.stringify(_json(input));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_DescribeSubnetGroupsCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "AmazonDAXV3.DescribeSubnetGroups",
117
- };
78
+ const headers = sharedHeaders("DescribeSubnetGroups");
118
79
  let body;
119
- body = JSON.stringify(se_DescribeSubnetGroupsRequest(input, context));
80
+ body = JSON.stringify(_json(input));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_IncreaseReplicationFactorCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "AmazonDAXV3.IncreaseReplicationFactor",
126
- };
84
+ const headers = sharedHeaders("IncreaseReplicationFactor");
127
85
  let body;
128
- body = JSON.stringify(se_IncreaseReplicationFactorRequest(input, context));
86
+ body = JSON.stringify(_json(input));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_ListTagsCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "AmazonDAXV3.ListTags",
135
- };
90
+ const headers = sharedHeaders("ListTags");
136
91
  let body;
137
- body = JSON.stringify(se_ListTagsRequest(input, context));
92
+ body = JSON.stringify(_json(input));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_RebootNodeCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AmazonDAXV3.RebootNode",
144
- };
96
+ const headers = sharedHeaders("RebootNode");
145
97
  let body;
146
- body = JSON.stringify(se_RebootNodeRequest(input, context));
98
+ body = JSON.stringify(_json(input));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_TagResourceCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AmazonDAXV3.TagResource",
153
- };
102
+ const headers = sharedHeaders("TagResource");
154
103
  let body;
155
- body = JSON.stringify(se_TagResourceRequest(input, context));
104
+ body = JSON.stringify(_json(input));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_UntagResourceCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AmazonDAXV3.UntagResource",
162
- };
108
+ const headers = sharedHeaders("UntagResource");
163
109
  let body;
164
- body = JSON.stringify(se_UntagResourceRequest(input, context));
110
+ body = JSON.stringify(_json(input));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_UpdateClusterCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "AmazonDAXV3.UpdateCluster",
171
- };
114
+ const headers = sharedHeaders("UpdateCluster");
172
115
  let body;
173
- body = JSON.stringify(se_UpdateClusterRequest(input, context));
116
+ body = JSON.stringify(_json(input));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_UpdateParameterGroupCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "AmazonDAXV3.UpdateParameterGroup",
180
- };
120
+ const headers = sharedHeaders("UpdateParameterGroup");
181
121
  let body;
182
- body = JSON.stringify(se_UpdateParameterGroupRequest(input, context));
122
+ body = JSON.stringify(_json(input));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_UpdateSubnetGroupCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "AmazonDAXV3.UpdateSubnetGroup",
189
- };
126
+ const headers = sharedHeaders("UpdateSubnetGroup");
190
127
  let body;
191
- body = JSON.stringify(se_UpdateSubnetGroupRequest(input, context));
128
+ body = JSON.stringify(_json(input));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const de_CreateClusterCommand = async (output, context) => {
@@ -202,7 +139,7 @@ export const de_CreateClusterCommand = async (output, context) => {
202
139
  $metadata: deserializeMetadata(output),
203
140
  ...contents,
204
141
  };
205
- return Promise.resolve(response);
142
+ return response;
206
143
  };
207
144
  const de_CreateClusterCommandError = async (output, context) => {
208
145
  const parsedOutput = {
@@ -258,10 +195,9 @@ const de_CreateClusterCommandError = async (output, context) => {
258
195
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
259
196
  default:
260
197
  const parsedBody = parsedOutput.body;
261
- throwDefaultError({
198
+ return throwDefaultError({
262
199
  output,
263
200
  parsedBody,
264
- exceptionCtor: __BaseException,
265
201
  errorCode,
266
202
  });
267
203
  }
@@ -272,12 +208,12 @@ export const de_CreateParameterGroupCommand = async (output, context) => {
272
208
  }
273
209
  const data = await parseBody(output.body, context);
274
210
  let contents = {};
275
- contents = de_CreateParameterGroupResponse(data, context);
211
+ contents = _json(data);
276
212
  const response = {
277
213
  $metadata: deserializeMetadata(output),
278
214
  ...contents,
279
215
  };
280
- return Promise.resolve(response);
216
+ return response;
281
217
  };
282
218
  const de_CreateParameterGroupCommandError = async (output, context) => {
283
219
  const parsedOutput = {
@@ -306,10 +242,9 @@ const de_CreateParameterGroupCommandError = async (output, context) => {
306
242
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
307
243
  default:
308
244
  const parsedBody = parsedOutput.body;
309
- throwDefaultError({
245
+ return throwDefaultError({
310
246
  output,
311
247
  parsedBody,
312
- exceptionCtor: __BaseException,
313
248
  errorCode,
314
249
  });
315
250
  }
@@ -320,12 +255,12 @@ export const de_CreateSubnetGroupCommand = async (output, context) => {
320
255
  }
321
256
  const data = await parseBody(output.body, context);
322
257
  let contents = {};
323
- contents = de_CreateSubnetGroupResponse(data, context);
258
+ contents = _json(data);
324
259
  const response = {
325
260
  $metadata: deserializeMetadata(output),
326
261
  ...contents,
327
262
  };
328
- return Promise.resolve(response);
263
+ return response;
329
264
  };
330
265
  const de_CreateSubnetGroupCommandError = async (output, context) => {
331
266
  const parsedOutput = {
@@ -351,10 +286,9 @@ const de_CreateSubnetGroupCommandError = async (output, context) => {
351
286
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
352
287
  default:
353
288
  const parsedBody = parsedOutput.body;
354
- throwDefaultError({
289
+ return throwDefaultError({
355
290
  output,
356
291
  parsedBody,
357
- exceptionCtor: __BaseException,
358
292
  errorCode,
359
293
  });
360
294
  }
@@ -370,7 +304,7 @@ export const de_DecreaseReplicationFactorCommand = async (output, context) => {
370
304
  $metadata: deserializeMetadata(output),
371
305
  ...contents,
372
306
  };
373
- return Promise.resolve(response);
307
+ return response;
374
308
  };
375
309
  const de_DecreaseReplicationFactorCommandError = async (output, context) => {
376
310
  const parsedOutput = {
@@ -399,10 +333,9 @@ const de_DecreaseReplicationFactorCommandError = async (output, context) => {
399
333
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
400
334
  default:
401
335
  const parsedBody = parsedOutput.body;
402
- throwDefaultError({
336
+ return throwDefaultError({
403
337
  output,
404
338
  parsedBody,
405
- exceptionCtor: __BaseException,
406
339
  errorCode,
407
340
  });
408
341
  }
@@ -418,7 +351,7 @@ export const de_DeleteClusterCommand = async (output, context) => {
418
351
  $metadata: deserializeMetadata(output),
419
352
  ...contents,
420
353
  };
421
- return Promise.resolve(response);
354
+ return response;
422
355
  };
423
356
  const de_DeleteClusterCommandError = async (output, context) => {
424
357
  const parsedOutput = {
@@ -444,10 +377,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
444
377
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
445
378
  default:
446
379
  const parsedBody = parsedOutput.body;
447
- throwDefaultError({
380
+ return throwDefaultError({
448
381
  output,
449
382
  parsedBody,
450
- exceptionCtor: __BaseException,
451
383
  errorCode,
452
384
  });
453
385
  }
@@ -458,12 +390,12 @@ export const de_DeleteParameterGroupCommand = async (output, context) => {
458
390
  }
459
391
  const data = await parseBody(output.body, context);
460
392
  let contents = {};
461
- contents = de_DeleteParameterGroupResponse(data, context);
393
+ contents = _json(data);
462
394
  const response = {
463
395
  $metadata: deserializeMetadata(output),
464
396
  ...contents,
465
397
  };
466
- return Promise.resolve(response);
398
+ return response;
467
399
  };
468
400
  const de_DeleteParameterGroupCommandError = async (output, context) => {
469
401
  const parsedOutput = {
@@ -489,10 +421,9 @@ const de_DeleteParameterGroupCommandError = async (output, context) => {
489
421
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
490
422
  default:
491
423
  const parsedBody = parsedOutput.body;
492
- throwDefaultError({
424
+ return throwDefaultError({
493
425
  output,
494
426
  parsedBody,
495
- exceptionCtor: __BaseException,
496
427
  errorCode,
497
428
  });
498
429
  }
@@ -503,12 +434,12 @@ export const de_DeleteSubnetGroupCommand = async (output, context) => {
503
434
  }
504
435
  const data = await parseBody(output.body, context);
505
436
  let contents = {};
506
- contents = de_DeleteSubnetGroupResponse(data, context);
437
+ contents = _json(data);
507
438
  const response = {
508
439
  $metadata: deserializeMetadata(output),
509
440
  ...contents,
510
441
  };
511
- return Promise.resolve(response);
442
+ return response;
512
443
  };
513
444
  const de_DeleteSubnetGroupCommandError = async (output, context) => {
514
445
  const parsedOutput = {
@@ -528,10 +459,9 @@ const de_DeleteSubnetGroupCommandError = async (output, context) => {
528
459
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
529
460
  default:
530
461
  const parsedBody = parsedOutput.body;
531
- throwDefaultError({
462
+ return throwDefaultError({
532
463
  output,
533
464
  parsedBody,
534
- exceptionCtor: __BaseException,
535
465
  errorCode,
536
466
  });
537
467
  }
@@ -547,7 +477,7 @@ export const de_DescribeClustersCommand = async (output, context) => {
547
477
  $metadata: deserializeMetadata(output),
548
478
  ...contents,
549
479
  };
550
- return Promise.resolve(response);
480
+ return response;
551
481
  };
552
482
  const de_DescribeClustersCommandError = async (output, context) => {
553
483
  const parsedOutput = {
@@ -570,10 +500,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
570
500
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
571
501
  default:
572
502
  const parsedBody = parsedOutput.body;
573
- throwDefaultError({
503
+ return throwDefaultError({
574
504
  output,
575
505
  parsedBody,
576
- exceptionCtor: __BaseException,
577
506
  errorCode,
578
507
  });
579
508
  }
@@ -584,12 +513,12 @@ export const de_DescribeDefaultParametersCommand = async (output, context) => {
584
513
  }
585
514
  const data = await parseBody(output.body, context);
586
515
  let contents = {};
587
- contents = de_DescribeDefaultParametersResponse(data, context);
516
+ contents = _json(data);
588
517
  const response = {
589
518
  $metadata: deserializeMetadata(output),
590
519
  ...contents,
591
520
  };
592
- return Promise.resolve(response);
521
+ return response;
593
522
  };
594
523
  const de_DescribeDefaultParametersCommandError = async (output, context) => {
595
524
  const parsedOutput = {
@@ -609,10 +538,9 @@ const de_DescribeDefaultParametersCommandError = async (output, context) => {
609
538
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
610
539
  default:
611
540
  const parsedBody = parsedOutput.body;
612
- throwDefaultError({
541
+ return throwDefaultError({
613
542
  output,
614
543
  parsedBody,
615
- exceptionCtor: __BaseException,
616
544
  errorCode,
617
545
  });
618
546
  }
@@ -628,7 +556,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
628
556
  $metadata: deserializeMetadata(output),
629
557
  ...contents,
630
558
  };
631
- return Promise.resolve(response);
559
+ return response;
632
560
  };
633
561
  const de_DescribeEventsCommandError = async (output, context) => {
634
562
  const parsedOutput = {
@@ -648,10 +576,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
648
576
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
649
577
  default:
650
578
  const parsedBody = parsedOutput.body;
651
- throwDefaultError({
579
+ return throwDefaultError({
652
580
  output,
653
581
  parsedBody,
654
- exceptionCtor: __BaseException,
655
582
  errorCode,
656
583
  });
657
584
  }
@@ -662,12 +589,12 @@ export const de_DescribeParameterGroupsCommand = async (output, context) => {
662
589
  }
663
590
  const data = await parseBody(output.body, context);
664
591
  let contents = {};
665
- contents = de_DescribeParameterGroupsResponse(data, context);
592
+ contents = _json(data);
666
593
  const response = {
667
594
  $metadata: deserializeMetadata(output),
668
595
  ...contents,
669
596
  };
670
- return Promise.resolve(response);
597
+ return response;
671
598
  };
672
599
  const de_DescribeParameterGroupsCommandError = async (output, context) => {
673
600
  const parsedOutput = {
@@ -690,10 +617,9 @@ const de_DescribeParameterGroupsCommandError = async (output, context) => {
690
617
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
691
618
  default:
692
619
  const parsedBody = parsedOutput.body;
693
- throwDefaultError({
620
+ return throwDefaultError({
694
621
  output,
695
622
  parsedBody,
696
- exceptionCtor: __BaseException,
697
623
  errorCode,
698
624
  });
699
625
  }
@@ -704,12 +630,12 @@ export const de_DescribeParametersCommand = async (output, context) => {
704
630
  }
705
631
  const data = await parseBody(output.body, context);
706
632
  let contents = {};
707
- contents = de_DescribeParametersResponse(data, context);
633
+ contents = _json(data);
708
634
  const response = {
709
635
  $metadata: deserializeMetadata(output),
710
636
  ...contents,
711
637
  };
712
- return Promise.resolve(response);
638
+ return response;
713
639
  };
714
640
  const de_DescribeParametersCommandError = async (output, context) => {
715
641
  const parsedOutput = {
@@ -732,10 +658,9 @@ const de_DescribeParametersCommandError = async (output, context) => {
732
658
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
733
659
  default:
734
660
  const parsedBody = parsedOutput.body;
735
- throwDefaultError({
661
+ return throwDefaultError({
736
662
  output,
737
663
  parsedBody,
738
- exceptionCtor: __BaseException,
739
664
  errorCode,
740
665
  });
741
666
  }
@@ -746,12 +671,12 @@ export const de_DescribeSubnetGroupsCommand = async (output, context) => {
746
671
  }
747
672
  const data = await parseBody(output.body, context);
748
673
  let contents = {};
749
- contents = de_DescribeSubnetGroupsResponse(data, context);
674
+ contents = _json(data);
750
675
  const response = {
751
676
  $metadata: deserializeMetadata(output),
752
677
  ...contents,
753
678
  };
754
- return Promise.resolve(response);
679
+ return response;
755
680
  };
756
681
  const de_DescribeSubnetGroupsCommandError = async (output, context) => {
757
682
  const parsedOutput = {
@@ -768,10 +693,9 @@ const de_DescribeSubnetGroupsCommandError = async (output, context) => {
768
693
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
769
694
  default:
770
695
  const parsedBody = parsedOutput.body;
771
- throwDefaultError({
696
+ return throwDefaultError({
772
697
  output,
773
698
  parsedBody,
774
- exceptionCtor: __BaseException,
775
699
  errorCode,
776
700
  });
777
701
  }
@@ -787,7 +711,7 @@ export const de_IncreaseReplicationFactorCommand = async (output, context) => {
787
711
  $metadata: deserializeMetadata(output),
788
712
  ...contents,
789
713
  };
790
- return Promise.resolve(response);
714
+ return response;
791
715
  };
792
716
  const de_IncreaseReplicationFactorCommandError = async (output, context) => {
793
717
  const parsedOutput = {
@@ -825,10 +749,9 @@ const de_IncreaseReplicationFactorCommandError = async (output, context) => {
825
749
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
826
750
  default:
827
751
  const parsedBody = parsedOutput.body;
828
- throwDefaultError({
752
+ return throwDefaultError({
829
753
  output,
830
754
  parsedBody,
831
- exceptionCtor: __BaseException,
832
755
  errorCode,
833
756
  });
834
757
  }
@@ -839,12 +762,12 @@ export const de_ListTagsCommand = async (output, context) => {
839
762
  }
840
763
  const data = await parseBody(output.body, context);
841
764
  let contents = {};
842
- contents = de_ListTagsResponse(data, context);
765
+ contents = _json(data);
843
766
  const response = {
844
767
  $metadata: deserializeMetadata(output),
845
768
  ...contents,
846
769
  };
847
- return Promise.resolve(response);
770
+ return response;
848
771
  };
849
772
  const de_ListTagsCommandError = async (output, context) => {
850
773
  const parsedOutput = {
@@ -873,10 +796,9 @@ const de_ListTagsCommandError = async (output, context) => {
873
796
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
874
797
  default:
875
798
  const parsedBody = parsedOutput.body;
876
- throwDefaultError({
799
+ return throwDefaultError({
877
800
  output,
878
801
  parsedBody,
879
- exceptionCtor: __BaseException,
880
802
  errorCode,
881
803
  });
882
804
  }
@@ -892,7 +814,7 @@ export const de_RebootNodeCommand = async (output, context) => {
892
814
  $metadata: deserializeMetadata(output),
893
815
  ...contents,
894
816
  };
895
- return Promise.resolve(response);
817
+ return response;
896
818
  };
897
819
  const de_RebootNodeCommandError = async (output, context) => {
898
820
  const parsedOutput = {
@@ -921,10 +843,9 @@ const de_RebootNodeCommandError = async (output, context) => {
921
843
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
922
844
  default:
923
845
  const parsedBody = parsedOutput.body;
924
- throwDefaultError({
846
+ return throwDefaultError({
925
847
  output,
926
848
  parsedBody,
927
- exceptionCtor: __BaseException,
928
849
  errorCode,
929
850
  });
930
851
  }
@@ -935,12 +856,12 @@ export const de_TagResourceCommand = async (output, context) => {
935
856
  }
936
857
  const data = await parseBody(output.body, context);
937
858
  let contents = {};
938
- contents = de_TagResourceResponse(data, context);
859
+ contents = _json(data);
939
860
  const response = {
940
861
  $metadata: deserializeMetadata(output),
941
862
  ...contents,
942
863
  };
943
- return Promise.resolve(response);
864
+ return response;
944
865
  };
945
866
  const de_TagResourceCommandError = async (output, context) => {
946
867
  const parsedOutput = {
@@ -972,10 +893,9 @@ const de_TagResourceCommandError = async (output, context) => {
972
893
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
973
894
  default:
974
895
  const parsedBody = parsedOutput.body;
975
- throwDefaultError({
896
+ return throwDefaultError({
976
897
  output,
977
898
  parsedBody,
978
- exceptionCtor: __BaseException,
979
899
  errorCode,
980
900
  });
981
901
  }
@@ -986,12 +906,12 @@ export const de_UntagResourceCommand = async (output, context) => {
986
906
  }
987
907
  const data = await parseBody(output.body, context);
988
908
  let contents = {};
989
- contents = de_UntagResourceResponse(data, context);
909
+ contents = _json(data);
990
910
  const response = {
991
911
  $metadata: deserializeMetadata(output),
992
912
  ...contents,
993
913
  };
994
- return Promise.resolve(response);
914
+ return response;
995
915
  };
996
916
  const de_UntagResourceCommandError = async (output, context) => {
997
917
  const parsedOutput = {
@@ -1023,10 +943,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1023
943
  throw await de_TagNotFoundFaultRes(parsedOutput, context);
1024
944
  default:
1025
945
  const parsedBody = parsedOutput.body;
1026
- throwDefaultError({
946
+ return throwDefaultError({
1027
947
  output,
1028
948
  parsedBody,
1029
- exceptionCtor: __BaseException,
1030
949
  errorCode,
1031
950
  });
1032
951
  }
@@ -1042,7 +961,7 @@ export const de_UpdateClusterCommand = async (output, context) => {
1042
961
  $metadata: deserializeMetadata(output),
1043
962
  ...contents,
1044
963
  };
1045
- return Promise.resolve(response);
964
+ return response;
1046
965
  };
1047
966
  const de_UpdateClusterCommandError = async (output, context) => {
1048
967
  const parsedOutput = {
@@ -1074,10 +993,9 @@ const de_UpdateClusterCommandError = async (output, context) => {
1074
993
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1075
994
  default:
1076
995
  const parsedBody = parsedOutput.body;
1077
- throwDefaultError({
996
+ return throwDefaultError({
1078
997
  output,
1079
998
  parsedBody,
1080
- exceptionCtor: __BaseException,
1081
999
  errorCode,
1082
1000
  });
1083
1001
  }
@@ -1088,12 +1006,12 @@ export const de_UpdateParameterGroupCommand = async (output, context) => {
1088
1006
  }
1089
1007
  const data = await parseBody(output.body, context);
1090
1008
  let contents = {};
1091
- contents = de_UpdateParameterGroupResponse(data, context);
1009
+ contents = _json(data);
1092
1010
  const response = {
1093
1011
  $metadata: deserializeMetadata(output),
1094
1012
  ...contents,
1095
1013
  };
1096
- return Promise.resolve(response);
1014
+ return response;
1097
1015
  };
1098
1016
  const de_UpdateParameterGroupCommandError = async (output, context) => {
1099
1017
  const parsedOutput = {
@@ -1119,10 +1037,9 @@ const de_UpdateParameterGroupCommandError = async (output, context) => {
1119
1037
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1120
1038
  default:
1121
1039
  const parsedBody = parsedOutput.body;
1122
- throwDefaultError({
1040
+ return throwDefaultError({
1123
1041
  output,
1124
1042
  parsedBody,
1125
- exceptionCtor: __BaseException,
1126
1043
  errorCode,
1127
1044
  });
1128
1045
  }
@@ -1133,12 +1050,12 @@ export const de_UpdateSubnetGroupCommand = async (output, context) => {
1133
1050
  }
1134
1051
  const data = await parseBody(output.body, context);
1135
1052
  let contents = {};
1136
- contents = de_UpdateSubnetGroupResponse(data, context);
1053
+ contents = _json(data);
1137
1054
  const response = {
1138
1055
  $metadata: deserializeMetadata(output),
1139
1056
  ...contents,
1140
1057
  };
1141
- return Promise.resolve(response);
1058
+ return response;
1142
1059
  };
1143
1060
  const de_UpdateSubnetGroupCommandError = async (output, context) => {
1144
1061
  const parsedOutput = {
@@ -1164,17 +1081,16 @@ const de_UpdateSubnetGroupCommandError = async (output, context) => {
1164
1081
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
1165
1082
  default:
1166
1083
  const parsedBody = parsedOutput.body;
1167
- throwDefaultError({
1084
+ return throwDefaultError({
1168
1085
  output,
1169
1086
  parsedBody,
1170
- exceptionCtor: __BaseException,
1171
1087
  errorCode,
1172
1088
  });
1173
1089
  }
1174
1090
  };
1175
1091
  const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
1176
1092
  const body = parsedOutput.body;
1177
- const deserialized = de_ClusterAlreadyExistsFault(body, context);
1093
+ const deserialized = _json(body);
1178
1094
  const exception = new ClusterAlreadyExistsFault({
1179
1095
  $metadata: deserializeMetadata(parsedOutput),
1180
1096
  ...deserialized,
@@ -1183,7 +1099,7 @@ const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
1183
1099
  };
1184
1100
  const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
1185
1101
  const body = parsedOutput.body;
1186
- const deserialized = de_ClusterNotFoundFault(body, context);
1102
+ const deserialized = _json(body);
1187
1103
  const exception = new ClusterNotFoundFault({
1188
1104
  $metadata: deserializeMetadata(parsedOutput),
1189
1105
  ...deserialized,
@@ -1192,7 +1108,7 @@ const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
1192
1108
  };
1193
1109
  const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
1194
1110
  const body = parsedOutput.body;
1195
- const deserialized = de_ClusterQuotaForCustomerExceededFault(body, context);
1111
+ const deserialized = _json(body);
1196
1112
  const exception = new ClusterQuotaForCustomerExceededFault({
1197
1113
  $metadata: deserializeMetadata(parsedOutput),
1198
1114
  ...deserialized,
@@ -1201,7 +1117,7 @@ const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context)
1201
1117
  };
1202
1118
  const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
1203
1119
  const body = parsedOutput.body;
1204
- const deserialized = de_InsufficientClusterCapacityFault(body, context);
1120
+ const deserialized = _json(body);
1205
1121
  const exception = new InsufficientClusterCapacityFault({
1206
1122
  $metadata: deserializeMetadata(parsedOutput),
1207
1123
  ...deserialized,
@@ -1210,7 +1126,7 @@ const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) =>
1210
1126
  };
1211
1127
  const de_InvalidARNFaultRes = async (parsedOutput, context) => {
1212
1128
  const body = parsedOutput.body;
1213
- const deserialized = de_InvalidARNFault(body, context);
1129
+ const deserialized = _json(body);
1214
1130
  const exception = new InvalidARNFault({
1215
1131
  $metadata: deserializeMetadata(parsedOutput),
1216
1132
  ...deserialized,
@@ -1219,7 +1135,7 @@ const de_InvalidARNFaultRes = async (parsedOutput, context) => {
1219
1135
  };
1220
1136
  const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
1221
1137
  const body = parsedOutput.body;
1222
- const deserialized = de_InvalidClusterStateFault(body, context);
1138
+ const deserialized = _json(body);
1223
1139
  const exception = new InvalidClusterStateFault({
1224
1140
  $metadata: deserializeMetadata(parsedOutput),
1225
1141
  ...deserialized,
@@ -1228,7 +1144,7 @@ const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
1228
1144
  };
1229
1145
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
1230
1146
  const body = parsedOutput.body;
1231
- const deserialized = de_InvalidParameterCombinationException(body, context);
1147
+ const deserialized = _json(body);
1232
1148
  const exception = new InvalidParameterCombinationException({
1233
1149
  $metadata: deserializeMetadata(parsedOutput),
1234
1150
  ...deserialized,
@@ -1237,7 +1153,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
1237
1153
  };
1238
1154
  const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
1239
1155
  const body = parsedOutput.body;
1240
- const deserialized = de_InvalidParameterGroupStateFault(body, context);
1156
+ const deserialized = _json(body);
1241
1157
  const exception = new InvalidParameterGroupStateFault({
1242
1158
  $metadata: deserializeMetadata(parsedOutput),
1243
1159
  ...deserialized,
@@ -1246,7 +1162,7 @@ const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
1246
1162
  };
1247
1163
  const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1248
1164
  const body = parsedOutput.body;
1249
- const deserialized = de_InvalidParameterValueException(body, context);
1165
+ const deserialized = _json(body);
1250
1166
  const exception = new InvalidParameterValueException({
1251
1167
  $metadata: deserializeMetadata(parsedOutput),
1252
1168
  ...deserialized,
@@ -1255,7 +1171,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1255
1171
  };
1256
1172
  const de_InvalidSubnetRes = async (parsedOutput, context) => {
1257
1173
  const body = parsedOutput.body;
1258
- const deserialized = de_InvalidSubnet(body, context);
1174
+ const deserialized = _json(body);
1259
1175
  const exception = new InvalidSubnet({
1260
1176
  $metadata: deserializeMetadata(parsedOutput),
1261
1177
  ...deserialized,
@@ -1264,7 +1180,7 @@ const de_InvalidSubnetRes = async (parsedOutput, context) => {
1264
1180
  };
1265
1181
  const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
1266
1182
  const body = parsedOutput.body;
1267
- const deserialized = de_InvalidVPCNetworkStateFault(body, context);
1183
+ const deserialized = _json(body);
1268
1184
  const exception = new InvalidVPCNetworkStateFault({
1269
1185
  $metadata: deserializeMetadata(parsedOutput),
1270
1186
  ...deserialized,
@@ -1273,7 +1189,7 @@ const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
1273
1189
  };
1274
1190
  const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
1275
1191
  const body = parsedOutput.body;
1276
- const deserialized = de_NodeNotFoundFault(body, context);
1192
+ const deserialized = _json(body);
1277
1193
  const exception = new NodeNotFoundFault({
1278
1194
  $metadata: deserializeMetadata(parsedOutput),
1279
1195
  ...deserialized,
@@ -1282,7 +1198,7 @@ const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
1282
1198
  };
1283
1199
  const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
1284
1200
  const body = parsedOutput.body;
1285
- const deserialized = de_NodeQuotaForClusterExceededFault(body, context);
1201
+ const deserialized = _json(body);
1286
1202
  const exception = new NodeQuotaForClusterExceededFault({
1287
1203
  $metadata: deserializeMetadata(parsedOutput),
1288
1204
  ...deserialized,
@@ -1291,7 +1207,7 @@ const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) =>
1291
1207
  };
1292
1208
  const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
1293
1209
  const body = parsedOutput.body;
1294
- const deserialized = de_NodeQuotaForCustomerExceededFault(body, context);
1210
+ const deserialized = _json(body);
1295
1211
  const exception = new NodeQuotaForCustomerExceededFault({
1296
1212
  $metadata: deserializeMetadata(parsedOutput),
1297
1213
  ...deserialized,
@@ -1300,7 +1216,7 @@ const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) =>
1300
1216
  };
1301
1217
  const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1302
1218
  const body = parsedOutput.body;
1303
- const deserialized = de_ParameterGroupAlreadyExistsFault(body, context);
1219
+ const deserialized = _json(body);
1304
1220
  const exception = new ParameterGroupAlreadyExistsFault({
1305
1221
  $metadata: deserializeMetadata(parsedOutput),
1306
1222
  ...deserialized,
@@ -1309,7 +1225,7 @@ const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) =>
1309
1225
  };
1310
1226
  const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
1311
1227
  const body = parsedOutput.body;
1312
- const deserialized = de_ParameterGroupNotFoundFault(body, context);
1228
+ const deserialized = _json(body);
1313
1229
  const exception = new ParameterGroupNotFoundFault({
1314
1230
  $metadata: deserializeMetadata(parsedOutput),
1315
1231
  ...deserialized,
@@ -1318,7 +1234,7 @@ const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
1318
1234
  };
1319
1235
  const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1320
1236
  const body = parsedOutput.body;
1321
- const deserialized = de_ParameterGroupQuotaExceededFault(body, context);
1237
+ const deserialized = _json(body);
1322
1238
  const exception = new ParameterGroupQuotaExceededFault({
1323
1239
  $metadata: deserializeMetadata(parsedOutput),
1324
1240
  ...deserialized,
@@ -1327,7 +1243,7 @@ const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) =>
1327
1243
  };
1328
1244
  const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
1329
1245
  const body = parsedOutput.body;
1330
- const deserialized = de_ServiceLinkedRoleNotFoundFault(body, context);
1246
+ const deserialized = _json(body);
1331
1247
  const exception = new ServiceLinkedRoleNotFoundFault({
1332
1248
  $metadata: deserializeMetadata(parsedOutput),
1333
1249
  ...deserialized,
@@ -1336,7 +1252,7 @@ const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
1336
1252
  };
1337
1253
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1338
1254
  const body = parsedOutput.body;
1339
- const deserialized = de_ServiceQuotaExceededException(body, context);
1255
+ const deserialized = _json(body);
1340
1256
  const exception = new ServiceQuotaExceededException({
1341
1257
  $metadata: deserializeMetadata(parsedOutput),
1342
1258
  ...deserialized,
@@ -1345,7 +1261,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1345
1261
  };
1346
1262
  const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1347
1263
  const body = parsedOutput.body;
1348
- const deserialized = de_SubnetGroupAlreadyExistsFault(body, context);
1264
+ const deserialized = _json(body);
1349
1265
  const exception = new SubnetGroupAlreadyExistsFault({
1350
1266
  $metadata: deserializeMetadata(parsedOutput),
1351
1267
  ...deserialized,
@@ -1354,7 +1270,7 @@ const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1354
1270
  };
1355
1271
  const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
1356
1272
  const body = parsedOutput.body;
1357
- const deserialized = de_SubnetGroupInUseFault(body, context);
1273
+ const deserialized = _json(body);
1358
1274
  const exception = new SubnetGroupInUseFault({
1359
1275
  $metadata: deserializeMetadata(parsedOutput),
1360
1276
  ...deserialized,
@@ -1363,7 +1279,7 @@ const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
1363
1279
  };
1364
1280
  const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
1365
1281
  const body = parsedOutput.body;
1366
- const deserialized = de_SubnetGroupNotFoundFault(body, context);
1282
+ const deserialized = _json(body);
1367
1283
  const exception = new SubnetGroupNotFoundFault({
1368
1284
  $metadata: deserializeMetadata(parsedOutput),
1369
1285
  ...deserialized,
@@ -1372,7 +1288,7 @@ const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
1372
1288
  };
1373
1289
  const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1374
1290
  const body = parsedOutput.body;
1375
- const deserialized = de_SubnetGroupQuotaExceededFault(body, context);
1291
+ const deserialized = _json(body);
1376
1292
  const exception = new SubnetGroupQuotaExceededFault({
1377
1293
  $metadata: deserializeMetadata(parsedOutput),
1378
1294
  ...deserialized,
@@ -1381,7 +1297,7 @@ const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1381
1297
  };
1382
1298
  const de_SubnetInUseRes = async (parsedOutput, context) => {
1383
1299
  const body = parsedOutput.body;
1384
- const deserialized = de_SubnetInUse(body, context);
1300
+ const deserialized = _json(body);
1385
1301
  const exception = new SubnetInUse({
1386
1302
  $metadata: deserializeMetadata(parsedOutput),
1387
1303
  ...deserialized,
@@ -1390,7 +1306,7 @@ const de_SubnetInUseRes = async (parsedOutput, context) => {
1390
1306
  };
1391
1307
  const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
1392
1308
  const body = parsedOutput.body;
1393
- const deserialized = de_SubnetQuotaExceededFault(body, context);
1309
+ const deserialized = _json(body);
1394
1310
  const exception = new SubnetQuotaExceededFault({
1395
1311
  $metadata: deserializeMetadata(parsedOutput),
1396
1312
  ...deserialized,
@@ -1399,7 +1315,7 @@ const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
1399
1315
  };
1400
1316
  const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
1401
1317
  const body = parsedOutput.body;
1402
- const deserialized = de_TagNotFoundFault(body, context);
1318
+ const deserialized = _json(body);
1403
1319
  const exception = new TagNotFoundFault({
1404
1320
  $metadata: deserializeMetadata(parsedOutput),
1405
1321
  ...deserialized,
@@ -1408,761 +1324,129 @@ const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
1408
1324
  };
1409
1325
  const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
1410
1326
  const body = parsedOutput.body;
1411
- const deserialized = de_TagQuotaPerResourceExceeded(body, context);
1327
+ const deserialized = _json(body);
1412
1328
  const exception = new TagQuotaPerResourceExceeded({
1413
1329
  $metadata: deserializeMetadata(parsedOutput),
1414
1330
  ...deserialized,
1415
1331
  });
1416
1332
  return __decorateServiceException(exception, body);
1417
1333
  };
1418
- const se_AvailabilityZoneList = (input, context) => {
1419
- return input
1420
- .filter((e) => e != null)
1421
- .map((entry) => {
1422
- return entry;
1423
- });
1424
- };
1425
- const se_ClusterNameList = (input, context) => {
1426
- return input
1427
- .filter((e) => e != null)
1428
- .map((entry) => {
1429
- return entry;
1430
- });
1431
- };
1432
- const se_CreateClusterRequest = (input, context) => {
1433
- return {
1434
- ...(input.AvailabilityZones != null && {
1435
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
1436
- }),
1437
- ...(input.ClusterEndpointEncryptionType != null && {
1438
- ClusterEndpointEncryptionType: input.ClusterEndpointEncryptionType,
1439
- }),
1440
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1441
- ...(input.Description != null && { Description: input.Description }),
1442
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
1443
- ...(input.NodeType != null && { NodeType: input.NodeType }),
1444
- ...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
1445
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1446
- ...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
1447
- ...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
1448
- ...(input.SSESpecification != null && { SSESpecification: se_SSESpecification(input.SSESpecification, context) }),
1449
- ...(input.SecurityGroupIds != null && {
1450
- SecurityGroupIds: se_SecurityGroupIdentifierList(input.SecurityGroupIds, context),
1451
- }),
1452
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1453
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1454
- };
1455
- };
1456
- const se_CreateParameterGroupRequest = (input, context) => {
1457
- return {
1458
- ...(input.Description != null && { Description: input.Description }),
1459
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1460
- };
1461
- };
1462
- const se_CreateSubnetGroupRequest = (input, context) => {
1463
- return {
1464
- ...(input.Description != null && { Description: input.Description }),
1465
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1466
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdentifierList(input.SubnetIds, context) }),
1467
- };
1468
- };
1469
- const se_DecreaseReplicationFactorRequest = (input, context) => {
1470
- return {
1471
- ...(input.AvailabilityZones != null && {
1472
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
1473
- }),
1474
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1475
- ...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
1476
- ...(input.NodeIdsToRemove != null && { NodeIdsToRemove: se_NodeIdentifierList(input.NodeIdsToRemove, context) }),
1477
- };
1478
- };
1479
- const se_DeleteClusterRequest = (input, context) => {
1480
- return {
1481
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1482
- };
1483
- };
1484
- const se_DeleteParameterGroupRequest = (input, context) => {
1485
- return {
1486
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1487
- };
1488
- };
1489
- const se_DeleteSubnetGroupRequest = (input, context) => {
1490
- return {
1491
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1492
- };
1493
- };
1494
- const se_DescribeClustersRequest = (input, context) => {
1495
- return {
1496
- ...(input.ClusterNames != null && { ClusterNames: se_ClusterNameList(input.ClusterNames, context) }),
1497
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1498
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1499
- };
1500
- };
1501
- const se_DescribeDefaultParametersRequest = (input, context) => {
1502
- return {
1503
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1504
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1505
- };
1506
- };
1507
1334
  const se_DescribeEventsRequest = (input, context) => {
1508
- return {
1509
- ...(input.Duration != null && { Duration: input.Duration }),
1510
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1511
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1512
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1513
- ...(input.SourceName != null && { SourceName: input.SourceName }),
1514
- ...(input.SourceType != null && { SourceType: input.SourceType }),
1515
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1516
- };
1517
- };
1518
- const se_DescribeParameterGroupsRequest = (input, context) => {
1519
- return {
1520
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1521
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1522
- ...(input.ParameterGroupNames != null && {
1523
- ParameterGroupNames: se_ParameterGroupNameList(input.ParameterGroupNames, context),
1524
- }),
1525
- };
1526
- };
1527
- const se_DescribeParametersRequest = (input, context) => {
1528
- return {
1529
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1530
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1531
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1532
- ...(input.Source != null && { Source: input.Source }),
1533
- };
1534
- };
1535
- const se_DescribeSubnetGroupsRequest = (input, context) => {
1536
- return {
1537
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1538
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1539
- ...(input.SubnetGroupNames != null && {
1540
- SubnetGroupNames: se_SubnetGroupNameList(input.SubnetGroupNames, context),
1541
- }),
1542
- };
1543
- };
1544
- const se_IncreaseReplicationFactorRequest = (input, context) => {
1545
- return {
1546
- ...(input.AvailabilityZones != null && {
1547
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
1548
- }),
1549
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1550
- ...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
1551
- };
1552
- };
1553
- const se_KeyList = (input, context) => {
1554
- return input
1555
- .filter((e) => e != null)
1556
- .map((entry) => {
1557
- return entry;
1558
- });
1559
- };
1560
- const se_ListTagsRequest = (input, context) => {
1561
- return {
1562
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1563
- ...(input.ResourceName != null && { ResourceName: input.ResourceName }),
1564
- };
1565
- };
1566
- const se_NodeIdentifierList = (input, context) => {
1567
- return input
1568
- .filter((e) => e != null)
1569
- .map((entry) => {
1570
- return entry;
1571
- });
1572
- };
1573
- const se_ParameterGroupNameList = (input, context) => {
1574
- return input
1575
- .filter((e) => e != null)
1576
- .map((entry) => {
1577
- return entry;
1578
- });
1579
- };
1580
- const se_ParameterNameValue = (input, context) => {
1581
- return {
1582
- ...(input.ParameterName != null && { ParameterName: input.ParameterName }),
1583
- ...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
1584
- };
1585
- };
1586
- const se_ParameterNameValueList = (input, context) => {
1587
- return input
1588
- .filter((e) => e != null)
1589
- .map((entry) => {
1590
- return se_ParameterNameValue(entry, context);
1591
- });
1592
- };
1593
- const se_RebootNodeRequest = (input, context) => {
1594
- return {
1595
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1596
- ...(input.NodeId != null && { NodeId: input.NodeId }),
1597
- };
1598
- };
1599
- const se_SecurityGroupIdentifierList = (input, context) => {
1600
- return input
1601
- .filter((e) => e != null)
1602
- .map((entry) => {
1603
- return entry;
1604
- });
1605
- };
1606
- const se_SSESpecification = (input, context) => {
1607
- return {
1608
- ...(input.Enabled != null && { Enabled: input.Enabled }),
1609
- };
1610
- };
1611
- const se_SubnetGroupNameList = (input, context) => {
1612
- return input
1613
- .filter((e) => e != null)
1614
- .map((entry) => {
1615
- return entry;
1616
- });
1617
- };
1618
- const se_SubnetIdentifierList = (input, context) => {
1619
- return input
1620
- .filter((e) => e != null)
1621
- .map((entry) => {
1622
- return entry;
1623
- });
1624
- };
1625
- const se_Tag = (input, context) => {
1626
- return {
1627
- ...(input.Key != null && { Key: input.Key }),
1628
- ...(input.Value != null && { Value: input.Value }),
1629
- };
1630
- };
1631
- const se_TagList = (input, context) => {
1632
- return input
1633
- .filter((e) => e != null)
1634
- .map((entry) => {
1635
- return se_Tag(entry, context);
1335
+ return take(input, {
1336
+ Duration: [],
1337
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1338
+ MaxResults: [],
1339
+ NextToken: [],
1340
+ SourceName: [],
1341
+ SourceType: [],
1342
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1636
1343
  });
1637
1344
  };
1638
- const se_TagResourceRequest = (input, context) => {
1639
- return {
1640
- ...(input.ResourceName != null && { ResourceName: input.ResourceName }),
1641
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1642
- };
1643
- };
1644
- const se_UntagResourceRequest = (input, context) => {
1645
- return {
1646
- ...(input.ResourceName != null && { ResourceName: input.ResourceName }),
1647
- ...(input.TagKeys != null && { TagKeys: se_KeyList(input.TagKeys, context) }),
1648
- };
1649
- };
1650
- const se_UpdateClusterRequest = (input, context) => {
1651
- return {
1652
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
1653
- ...(input.Description != null && { Description: input.Description }),
1654
- ...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
1655
- ...(input.NotificationTopicStatus != null && { NotificationTopicStatus: input.NotificationTopicStatus }),
1656
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1657
- ...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
1658
- ...(input.SecurityGroupIds != null && {
1659
- SecurityGroupIds: se_SecurityGroupIdentifierList(input.SecurityGroupIds, context),
1660
- }),
1661
- };
1662
- };
1663
- const se_UpdateParameterGroupRequest = (input, context) => {
1664
- return {
1665
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
1666
- ...(input.ParameterNameValues != null && {
1667
- ParameterNameValues: se_ParameterNameValueList(input.ParameterNameValues, context),
1668
- }),
1669
- };
1670
- };
1671
- const se_UpdateSubnetGroupRequest = (input, context) => {
1672
- return {
1673
- ...(input.Description != null && { Description: input.Description }),
1674
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
1675
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdentifierList(input.SubnetIds, context) }),
1676
- };
1677
- };
1678
1345
  const de_Cluster = (output, context) => {
1679
- return {
1680
- ActiveNodes: __expectInt32(output.ActiveNodes),
1681
- ClusterArn: __expectString(output.ClusterArn),
1682
- ClusterDiscoveryEndpoint: output.ClusterDiscoveryEndpoint != null ? de_Endpoint(output.ClusterDiscoveryEndpoint, context) : undefined,
1683
- ClusterEndpointEncryptionType: __expectString(output.ClusterEndpointEncryptionType),
1684
- ClusterName: __expectString(output.ClusterName),
1685
- Description: __expectString(output.Description),
1686
- IamRoleArn: __expectString(output.IamRoleArn),
1687
- NodeIdsToRemove: output.NodeIdsToRemove != null ? de_NodeIdentifierList(output.NodeIdsToRemove, context) : undefined,
1688
- NodeType: __expectString(output.NodeType),
1689
- Nodes: output.Nodes != null ? de_NodeList(output.Nodes, context) : undefined,
1690
- NotificationConfiguration: output.NotificationConfiguration != null
1691
- ? de_NotificationConfiguration(output.NotificationConfiguration, context)
1692
- : undefined,
1693
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroupStatus(output.ParameterGroup, context) : undefined,
1694
- PreferredMaintenanceWindow: __expectString(output.PreferredMaintenanceWindow),
1695
- SSEDescription: output.SSEDescription != null ? de_SSEDescription(output.SSEDescription, context) : undefined,
1696
- SecurityGroups: output.SecurityGroups != null ? de_SecurityGroupMembershipList(output.SecurityGroups, context) : undefined,
1697
- Status: __expectString(output.Status),
1698
- SubnetGroup: __expectString(output.SubnetGroup),
1699
- TotalNodes: __expectInt32(output.TotalNodes),
1700
- };
1701
- };
1702
- const de_ClusterAlreadyExistsFault = (output, context) => {
1703
- return {
1704
- message: __expectString(output.message),
1705
- };
1346
+ return take(output, {
1347
+ ActiveNodes: __expectInt32,
1348
+ ClusterArn: __expectString,
1349
+ ClusterDiscoveryEndpoint: _json,
1350
+ ClusterEndpointEncryptionType: __expectString,
1351
+ ClusterName: __expectString,
1352
+ Description: __expectString,
1353
+ IamRoleArn: __expectString,
1354
+ NodeIdsToRemove: _json,
1355
+ NodeType: __expectString,
1356
+ Nodes: (_) => de_NodeList(_, context),
1357
+ NotificationConfiguration: _json,
1358
+ ParameterGroup: _json,
1359
+ PreferredMaintenanceWindow: __expectString,
1360
+ SSEDescription: _json,
1361
+ SecurityGroups: _json,
1362
+ Status: __expectString,
1363
+ SubnetGroup: __expectString,
1364
+ TotalNodes: __expectInt32,
1365
+ });
1706
1366
  };
1707
1367
  const de_ClusterList = (output, context) => {
1708
1368
  const retVal = (output || [])
1709
1369
  .filter((e) => e != null)
1710
1370
  .map((entry) => {
1711
- if (entry === null) {
1712
- return null;
1713
- }
1714
1371
  return de_Cluster(entry, context);
1715
1372
  });
1716
1373
  return retVal;
1717
1374
  };
1718
- const de_ClusterNotFoundFault = (output, context) => {
1719
- return {
1720
- message: __expectString(output.message),
1721
- };
1722
- };
1723
- const de_ClusterQuotaForCustomerExceededFault = (output, context) => {
1724
- return {
1725
- message: __expectString(output.message),
1726
- };
1727
- };
1728
1375
  const de_CreateClusterResponse = (output, context) => {
1729
- return {
1730
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1731
- };
1732
- };
1733
- const de_CreateParameterGroupResponse = (output, context) => {
1734
- return {
1735
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
1736
- };
1737
- };
1738
- const de_CreateSubnetGroupResponse = (output, context) => {
1739
- return {
1740
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
1741
- };
1376
+ return take(output, {
1377
+ Cluster: (_) => de_Cluster(_, context),
1378
+ });
1742
1379
  };
1743
1380
  const de_DecreaseReplicationFactorResponse = (output, context) => {
1744
- return {
1745
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1746
- };
1381
+ return take(output, {
1382
+ Cluster: (_) => de_Cluster(_, context),
1383
+ });
1747
1384
  };
1748
1385
  const de_DeleteClusterResponse = (output, context) => {
1749
- return {
1750
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1751
- };
1752
- };
1753
- const de_DeleteParameterGroupResponse = (output, context) => {
1754
- return {
1755
- DeletionMessage: __expectString(output.DeletionMessage),
1756
- };
1757
- };
1758
- const de_DeleteSubnetGroupResponse = (output, context) => {
1759
- return {
1760
- DeletionMessage: __expectString(output.DeletionMessage),
1761
- };
1386
+ return take(output, {
1387
+ Cluster: (_) => de_Cluster(_, context),
1388
+ });
1762
1389
  };
1763
1390
  const de_DescribeClustersResponse = (output, context) => {
1764
- return {
1765
- Clusters: output.Clusters != null ? de_ClusterList(output.Clusters, context) : undefined,
1766
- NextToken: __expectString(output.NextToken),
1767
- };
1768
- };
1769
- const de_DescribeDefaultParametersResponse = (output, context) => {
1770
- return {
1771
- NextToken: __expectString(output.NextToken),
1772
- Parameters: output.Parameters != null ? de_ParameterList(output.Parameters, context) : undefined,
1773
- };
1391
+ return take(output, {
1392
+ Clusters: (_) => de_ClusterList(_, context),
1393
+ NextToken: __expectString,
1394
+ });
1774
1395
  };
1775
1396
  const de_DescribeEventsResponse = (output, context) => {
1776
- return {
1777
- Events: output.Events != null ? de_EventList(output.Events, context) : undefined,
1778
- NextToken: __expectString(output.NextToken),
1779
- };
1780
- };
1781
- const de_DescribeParameterGroupsResponse = (output, context) => {
1782
- return {
1783
- NextToken: __expectString(output.NextToken),
1784
- ParameterGroups: output.ParameterGroups != null ? de_ParameterGroupList(output.ParameterGroups, context) : undefined,
1785
- };
1786
- };
1787
- const de_DescribeParametersResponse = (output, context) => {
1788
- return {
1789
- NextToken: __expectString(output.NextToken),
1790
- Parameters: output.Parameters != null ? de_ParameterList(output.Parameters, context) : undefined,
1791
- };
1792
- };
1793
- const de_DescribeSubnetGroupsResponse = (output, context) => {
1794
- return {
1795
- NextToken: __expectString(output.NextToken),
1796
- SubnetGroups: output.SubnetGroups != null ? de_SubnetGroupList(output.SubnetGroups, context) : undefined,
1797
- };
1798
- };
1799
- const de_Endpoint = (output, context) => {
1800
- return {
1801
- Address: __expectString(output.Address),
1802
- Port: __expectInt32(output.Port),
1803
- URL: __expectString(output.URL),
1804
- };
1397
+ return take(output, {
1398
+ Events: (_) => de_EventList(_, context),
1399
+ NextToken: __expectString,
1400
+ });
1805
1401
  };
1806
1402
  const de_Event = (output, context) => {
1807
- return {
1808
- Date: output.Date != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date))) : undefined,
1809
- Message: __expectString(output.Message),
1810
- SourceName: __expectString(output.SourceName),
1811
- SourceType: __expectString(output.SourceType),
1812
- };
1403
+ return take(output, {
1404
+ Date: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1405
+ Message: __expectString,
1406
+ SourceName: __expectString,
1407
+ SourceType: __expectString,
1408
+ });
1813
1409
  };
1814
1410
  const de_EventList = (output, context) => {
1815
1411
  const retVal = (output || [])
1816
1412
  .filter((e) => e != null)
1817
1413
  .map((entry) => {
1818
- if (entry === null) {
1819
- return null;
1820
- }
1821
1414
  return de_Event(entry, context);
1822
1415
  });
1823
1416
  return retVal;
1824
1417
  };
1825
1418
  const de_IncreaseReplicationFactorResponse = (output, context) => {
1826
- return {
1827
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
1828
- };
1829
- };
1830
- const de_InsufficientClusterCapacityFault = (output, context) => {
1831
- return {
1832
- message: __expectString(output.message),
1833
- };
1834
- };
1835
- const de_InvalidARNFault = (output, context) => {
1836
- return {
1837
- message: __expectString(output.message),
1838
- };
1839
- };
1840
- const de_InvalidClusterStateFault = (output, context) => {
1841
- return {
1842
- message: __expectString(output.message),
1843
- };
1844
- };
1845
- const de_InvalidParameterCombinationException = (output, context) => {
1846
- return {
1847
- message: __expectString(output.message),
1848
- };
1849
- };
1850
- const de_InvalidParameterGroupStateFault = (output, context) => {
1851
- return {
1852
- message: __expectString(output.message),
1853
- };
1854
- };
1855
- const de_InvalidParameterValueException = (output, context) => {
1856
- return {
1857
- message: __expectString(output.message),
1858
- };
1859
- };
1860
- const de_InvalidSubnet = (output, context) => {
1861
- return {
1862
- message: __expectString(output.message),
1863
- };
1864
- };
1865
- const de_InvalidVPCNetworkStateFault = (output, context) => {
1866
- return {
1867
- message: __expectString(output.message),
1868
- };
1869
- };
1870
- const de_ListTagsResponse = (output, context) => {
1871
- return {
1872
- NextToken: __expectString(output.NextToken),
1873
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1874
- };
1419
+ return take(output, {
1420
+ Cluster: (_) => de_Cluster(_, context),
1421
+ });
1875
1422
  };
1876
1423
  const de_Node = (output, context) => {
1877
- return {
1878
- AvailabilityZone: __expectString(output.AvailabilityZone),
1879
- Endpoint: output.Endpoint != null ? de_Endpoint(output.Endpoint, context) : undefined,
1880
- NodeCreateTime: output.NodeCreateTime != null
1881
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NodeCreateTime)))
1882
- : undefined,
1883
- NodeId: __expectString(output.NodeId),
1884
- NodeStatus: __expectString(output.NodeStatus),
1885
- ParameterGroupStatus: __expectString(output.ParameterGroupStatus),
1886
- };
1887
- };
1888
- const de_NodeIdentifierList = (output, context) => {
1889
- const retVal = (output || [])
1890
- .filter((e) => e != null)
1891
- .map((entry) => {
1892
- if (entry === null) {
1893
- return null;
1894
- }
1895
- return __expectString(entry);
1424
+ return take(output, {
1425
+ AvailabilityZone: __expectString,
1426
+ Endpoint: _json,
1427
+ NodeCreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1428
+ NodeId: __expectString,
1429
+ NodeStatus: __expectString,
1430
+ ParameterGroupStatus: __expectString,
1896
1431
  });
1897
- return retVal;
1898
1432
  };
1899
1433
  const de_NodeList = (output, context) => {
1900
1434
  const retVal = (output || [])
1901
1435
  .filter((e) => e != null)
1902
1436
  .map((entry) => {
1903
- if (entry === null) {
1904
- return null;
1905
- }
1906
1437
  return de_Node(entry, context);
1907
1438
  });
1908
1439
  return retVal;
1909
1440
  };
1910
- const de_NodeNotFoundFault = (output, context) => {
1911
- return {
1912
- message: __expectString(output.message),
1913
- };
1914
- };
1915
- const de_NodeQuotaForClusterExceededFault = (output, context) => {
1916
- return {
1917
- message: __expectString(output.message),
1918
- };
1919
- };
1920
- const de_NodeQuotaForCustomerExceededFault = (output, context) => {
1921
- return {
1922
- message: __expectString(output.message),
1923
- };
1924
- };
1925
- const de_NodeTypeSpecificValue = (output, context) => {
1926
- return {
1927
- NodeType: __expectString(output.NodeType),
1928
- Value: __expectString(output.Value),
1929
- };
1930
- };
1931
- const de_NodeTypeSpecificValueList = (output, context) => {
1932
- const retVal = (output || [])
1933
- .filter((e) => e != null)
1934
- .map((entry) => {
1935
- if (entry === null) {
1936
- return null;
1937
- }
1938
- return de_NodeTypeSpecificValue(entry, context);
1939
- });
1940
- return retVal;
1941
- };
1942
- const de_NotificationConfiguration = (output, context) => {
1943
- return {
1944
- TopicArn: __expectString(output.TopicArn),
1945
- TopicStatus: __expectString(output.TopicStatus),
1946
- };
1947
- };
1948
- const de_Parameter = (output, context) => {
1949
- return {
1950
- AllowedValues: __expectString(output.AllowedValues),
1951
- ChangeType: __expectString(output.ChangeType),
1952
- DataType: __expectString(output.DataType),
1953
- Description: __expectString(output.Description),
1954
- IsModifiable: __expectString(output.IsModifiable),
1955
- NodeTypeSpecificValues: output.NodeTypeSpecificValues != null
1956
- ? de_NodeTypeSpecificValueList(output.NodeTypeSpecificValues, context)
1957
- : undefined,
1958
- ParameterName: __expectString(output.ParameterName),
1959
- ParameterType: __expectString(output.ParameterType),
1960
- ParameterValue: __expectString(output.ParameterValue),
1961
- Source: __expectString(output.Source),
1962
- };
1963
- };
1964
- const de_ParameterGroup = (output, context) => {
1965
- return {
1966
- Description: __expectString(output.Description),
1967
- ParameterGroupName: __expectString(output.ParameterGroupName),
1968
- };
1969
- };
1970
- const de_ParameterGroupAlreadyExistsFault = (output, context) => {
1971
- return {
1972
- message: __expectString(output.message),
1973
- };
1974
- };
1975
- const de_ParameterGroupList = (output, context) => {
1976
- const retVal = (output || [])
1977
- .filter((e) => e != null)
1978
- .map((entry) => {
1979
- if (entry === null) {
1980
- return null;
1981
- }
1982
- return de_ParameterGroup(entry, context);
1983
- });
1984
- return retVal;
1985
- };
1986
- const de_ParameterGroupNotFoundFault = (output, context) => {
1987
- return {
1988
- message: __expectString(output.message),
1989
- };
1990
- };
1991
- const de_ParameterGroupQuotaExceededFault = (output, context) => {
1992
- return {
1993
- message: __expectString(output.message),
1994
- };
1995
- };
1996
- const de_ParameterGroupStatus = (output, context) => {
1997
- return {
1998
- NodeIdsToReboot: output.NodeIdsToReboot != null ? de_NodeIdentifierList(output.NodeIdsToReboot, context) : undefined,
1999
- ParameterApplyStatus: __expectString(output.ParameterApplyStatus),
2000
- ParameterGroupName: __expectString(output.ParameterGroupName),
2001
- };
2002
- };
2003
- const de_ParameterList = (output, context) => {
2004
- const retVal = (output || [])
2005
- .filter((e) => e != null)
2006
- .map((entry) => {
2007
- if (entry === null) {
2008
- return null;
2009
- }
2010
- return de_Parameter(entry, context);
2011
- });
2012
- return retVal;
2013
- };
2014
1441
  const de_RebootNodeResponse = (output, context) => {
2015
- return {
2016
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
2017
- };
2018
- };
2019
- const de_SecurityGroupMembership = (output, context) => {
2020
- return {
2021
- SecurityGroupIdentifier: __expectString(output.SecurityGroupIdentifier),
2022
- Status: __expectString(output.Status),
2023
- };
2024
- };
2025
- const de_SecurityGroupMembershipList = (output, context) => {
2026
- const retVal = (output || [])
2027
- .filter((e) => e != null)
2028
- .map((entry) => {
2029
- if (entry === null) {
2030
- return null;
2031
- }
2032
- return de_SecurityGroupMembership(entry, context);
2033
- });
2034
- return retVal;
2035
- };
2036
- const de_ServiceLinkedRoleNotFoundFault = (output, context) => {
2037
- return {
2038
- message: __expectString(output.message),
2039
- };
2040
- };
2041
- const de_ServiceQuotaExceededException = (output, context) => {
2042
- return {};
2043
- };
2044
- const de_SSEDescription = (output, context) => {
2045
- return {
2046
- Status: __expectString(output.Status),
2047
- };
2048
- };
2049
- const de_Subnet = (output, context) => {
2050
- return {
2051
- SubnetAvailabilityZone: __expectString(output.SubnetAvailabilityZone),
2052
- SubnetIdentifier: __expectString(output.SubnetIdentifier),
2053
- };
2054
- };
2055
- const de_SubnetGroup = (output, context) => {
2056
- return {
2057
- Description: __expectString(output.Description),
2058
- SubnetGroupName: __expectString(output.SubnetGroupName),
2059
- Subnets: output.Subnets != null ? de_SubnetList(output.Subnets, context) : undefined,
2060
- VpcId: __expectString(output.VpcId),
2061
- };
2062
- };
2063
- const de_SubnetGroupAlreadyExistsFault = (output, context) => {
2064
- return {
2065
- message: __expectString(output.message),
2066
- };
2067
- };
2068
- const de_SubnetGroupInUseFault = (output, context) => {
2069
- return {
2070
- message: __expectString(output.message),
2071
- };
2072
- };
2073
- const de_SubnetGroupList = (output, context) => {
2074
- const retVal = (output || [])
2075
- .filter((e) => e != null)
2076
- .map((entry) => {
2077
- if (entry === null) {
2078
- return null;
2079
- }
2080
- return de_SubnetGroup(entry, context);
2081
- });
2082
- return retVal;
2083
- };
2084
- const de_SubnetGroupNotFoundFault = (output, context) => {
2085
- return {
2086
- message: __expectString(output.message),
2087
- };
2088
- };
2089
- const de_SubnetGroupQuotaExceededFault = (output, context) => {
2090
- return {
2091
- message: __expectString(output.message),
2092
- };
2093
- };
2094
- const de_SubnetInUse = (output, context) => {
2095
- return {
2096
- message: __expectString(output.message),
2097
- };
2098
- };
2099
- const de_SubnetList = (output, context) => {
2100
- const retVal = (output || [])
2101
- .filter((e) => e != null)
2102
- .map((entry) => {
2103
- if (entry === null) {
2104
- return null;
2105
- }
2106
- return de_Subnet(entry, context);
1442
+ return take(output, {
1443
+ Cluster: (_) => de_Cluster(_, context),
2107
1444
  });
2108
- return retVal;
2109
- };
2110
- const de_SubnetQuotaExceededFault = (output, context) => {
2111
- return {
2112
- message: __expectString(output.message),
2113
- };
2114
- };
2115
- const de_Tag = (output, context) => {
2116
- return {
2117
- Key: __expectString(output.Key),
2118
- Value: __expectString(output.Value),
2119
- };
2120
- };
2121
- const de_TagList = (output, context) => {
2122
- const retVal = (output || [])
2123
- .filter((e) => e != null)
2124
- .map((entry) => {
2125
- if (entry === null) {
2126
- return null;
2127
- }
2128
- return de_Tag(entry, context);
2129
- });
2130
- return retVal;
2131
- };
2132
- const de_TagNotFoundFault = (output, context) => {
2133
- return {
2134
- message: __expectString(output.message),
2135
- };
2136
- };
2137
- const de_TagQuotaPerResourceExceeded = (output, context) => {
2138
- return {
2139
- message: __expectString(output.message),
2140
- };
2141
- };
2142
- const de_TagResourceResponse = (output, context) => {
2143
- return {
2144
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2145
- };
2146
- };
2147
- const de_UntagResourceResponse = (output, context) => {
2148
- return {
2149
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2150
- };
2151
1445
  };
2152
1446
  const de_UpdateClusterResponse = (output, context) => {
2153
- return {
2154
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
2155
- };
2156
- };
2157
- const de_UpdateParameterGroupResponse = (output, context) => {
2158
- return {
2159
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
2160
- };
2161
- };
2162
- const de_UpdateSubnetGroupResponse = (output, context) => {
2163
- return {
2164
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
2165
- };
1447
+ return take(output, {
1448
+ Cluster: (_) => de_Cluster(_, context),
1449
+ });
2166
1450
  };
2167
1451
  const deserializeMetadata = (output) => ({
2168
1452
  httpStatusCode: output.statusCode,
@@ -2177,6 +1461,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2177
1461
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2178
1462
  };
2179
1463
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1464
+ const throwDefaultError = withBaseException(__BaseException);
2180
1465
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2181
1466
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2182
1467
  const contents = {
@@ -2195,6 +1480,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
2195
1480
  }
2196
1481
  return new __HttpRequest(contents);
2197
1482
  };
1483
+ function sharedHeaders(operation) {
1484
+ return {
1485
+ "content-type": "application/x-amz-json-1.1",
1486
+ "x-amz-target": `AmazonDAXV3.${operation}`,
1487
+ };
1488
+ }
2198
1489
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2199
1490
  if (encoded.length) {
2200
1491
  return JSON.parse(encoded);