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