@aws-sdk/client-dax 3.180.0 → 3.183.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.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +27 -21
- package/dist-es/DAX.js +86 -93
- package/dist-es/DAXClient.js +22 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateParameterGroupCommand.js +21 -28
- package/dist-es/commands/CreateSubnetGroupCommand.js +21 -28
- package/dist-es/commands/DecreaseReplicationFactorCommand.js +21 -28
- package/dist-es/commands/DeleteClusterCommand.js +21 -28
- package/dist-es/commands/DeleteParameterGroupCommand.js +21 -28
- package/dist-es/commands/DeleteSubnetGroupCommand.js +21 -28
- package/dist-es/commands/DescribeClustersCommand.js +21 -28
- package/dist-es/commands/DescribeDefaultParametersCommand.js +21 -28
- package/dist-es/commands/DescribeEventsCommand.js +21 -28
- package/dist-es/commands/DescribeParameterGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeParametersCommand.js +21 -28
- package/dist-es/commands/DescribeSubnetGroupsCommand.js +21 -28
- package/dist-es/commands/IncreaseReplicationFactorCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/RebootNodeCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateClusterCommand.js +21 -28
- package/dist-es/commands/UpdateParameterGroupCommand.js +21 -28
- package/dist-es/commands/UpdateSubnetGroupCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DAXServiceException.js +5 -10
- package/dist-es/models/models_0.js +471 -356
- package/dist-es/protocols/Aws_json1_1.js +1776 -2203
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,2104 +1,1687 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
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";
|
|
4
3
|
import { DAXServiceException as __BaseException } from "../models/DAXServiceException";
|
|
5
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";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
body
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
errorCode
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
parsedBody
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
errorCode
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
return
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
return
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
});
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1421
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1422
|
-
return [2, Promise.resolve(response)];
|
|
1423
|
-
}
|
|
1424
|
-
});
|
|
1425
|
-
}); };
|
|
1426
|
-
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1428
|
-
var _c;
|
|
1429
|
-
return __generator(this, function (_d) {
|
|
1430
|
-
switch (_d.label) {
|
|
1431
|
-
case 0:
|
|
1432
|
-
_a = [__assign({}, output)];
|
|
1433
|
-
_c = {};
|
|
1434
|
-
return [4, parseBody(output.body, context)];
|
|
1435
|
-
case 1:
|
|
1436
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
-
_b = errorCode;
|
|
1439
|
-
switch (_b) {
|
|
1440
|
-
case "ClusterNotFoundFault": return [3, 2];
|
|
1441
|
-
case "com.amazonaws.dax#ClusterNotFoundFault": return [3, 2];
|
|
1442
|
-
case "InvalidARNFault": return [3, 4];
|
|
1443
|
-
case "com.amazonaws.dax#InvalidARNFault": return [3, 4];
|
|
1444
|
-
case "InvalidClusterStateFault": return [3, 6];
|
|
1445
|
-
case "com.amazonaws.dax#InvalidClusterStateFault": return [3, 6];
|
|
1446
|
-
case "InvalidParameterCombinationException": return [3, 8];
|
|
1447
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException": return [3, 8];
|
|
1448
|
-
case "InvalidParameterValueException": return [3, 10];
|
|
1449
|
-
case "com.amazonaws.dax#InvalidParameterValueException": return [3, 10];
|
|
1450
|
-
case "ServiceLinkedRoleNotFoundFault": return [3, 12];
|
|
1451
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault": return [3, 12];
|
|
1452
|
-
case "TagNotFoundFault": return [3, 14];
|
|
1453
|
-
case "com.amazonaws.dax#TagNotFoundFault": return [3, 14];
|
|
1454
|
-
}
|
|
1455
|
-
return [3, 16];
|
|
1456
|
-
case 2: return [4, deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
1457
|
-
case 3: throw _d.sent();
|
|
1458
|
-
case 4: return [4, deserializeAws_json1_1InvalidARNFaultResponse(parsedOutput, context)];
|
|
1459
|
-
case 5: throw _d.sent();
|
|
1460
|
-
case 6: return [4, deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context)];
|
|
1461
|
-
case 7: throw _d.sent();
|
|
1462
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
1463
|
-
case 9: throw _d.sent();
|
|
1464
|
-
case 10: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1465
|
-
case 11: throw _d.sent();
|
|
1466
|
-
case 12: return [4, deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context)];
|
|
1467
|
-
case 13: throw _d.sent();
|
|
1468
|
-
case 14: return [4, deserializeAws_json1_1TagNotFoundFaultResponse(parsedOutput, context)];
|
|
1469
|
-
case 15: throw _d.sent();
|
|
1470
|
-
case 16:
|
|
1471
|
-
parsedBody = parsedOutput.body;
|
|
1472
|
-
throwDefaultError({
|
|
1473
|
-
output: output,
|
|
1474
|
-
parsedBody: parsedBody,
|
|
1475
|
-
exceptionCtor: __BaseException,
|
|
1476
|
-
errorCode: errorCode,
|
|
1477
|
-
});
|
|
1478
|
-
_d.label = 17;
|
|
1479
|
-
case 17: return [2];
|
|
1480
|
-
}
|
|
1481
|
-
});
|
|
1482
|
-
}); };
|
|
1483
|
-
export var deserializeAws_json1_1UpdateClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1484
|
-
var data, contents, response;
|
|
1485
|
-
return __generator(this, function (_a) {
|
|
1486
|
-
switch (_a.label) {
|
|
1487
|
-
case 0:
|
|
1488
|
-
if (output.statusCode >= 300) {
|
|
1489
|
-
return [2, deserializeAws_json1_1UpdateClusterCommandError(output, context)];
|
|
1490
|
-
}
|
|
1491
|
-
return [4, parseBody(output.body, context)];
|
|
1492
|
-
case 1:
|
|
1493
|
-
data = _a.sent();
|
|
1494
|
-
contents = {};
|
|
1495
|
-
contents = deserializeAws_json1_1UpdateClusterResponse(data, context);
|
|
1496
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1497
|
-
return [2, Promise.resolve(response)];
|
|
1498
|
-
}
|
|
1499
|
-
});
|
|
1500
|
-
}); };
|
|
1501
|
-
var deserializeAws_json1_1UpdateClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1502
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1503
|
-
var _c;
|
|
1504
|
-
return __generator(this, function (_d) {
|
|
1505
|
-
switch (_d.label) {
|
|
1506
|
-
case 0:
|
|
1507
|
-
_a = [__assign({}, output)];
|
|
1508
|
-
_c = {};
|
|
1509
|
-
return [4, parseBody(output.body, context)];
|
|
1510
|
-
case 1:
|
|
1511
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1512
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
-
_b = errorCode;
|
|
1514
|
-
switch (_b) {
|
|
1515
|
-
case "ClusterNotFoundFault": return [3, 2];
|
|
1516
|
-
case "com.amazonaws.dax#ClusterNotFoundFault": return [3, 2];
|
|
1517
|
-
case "InvalidClusterStateFault": return [3, 4];
|
|
1518
|
-
case "com.amazonaws.dax#InvalidClusterStateFault": return [3, 4];
|
|
1519
|
-
case "InvalidParameterCombinationException": return [3, 6];
|
|
1520
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException": return [3, 6];
|
|
1521
|
-
case "InvalidParameterGroupStateFault": return [3, 8];
|
|
1522
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault": return [3, 8];
|
|
1523
|
-
case "InvalidParameterValueException": return [3, 10];
|
|
1524
|
-
case "com.amazonaws.dax#InvalidParameterValueException": return [3, 10];
|
|
1525
|
-
case "ParameterGroupNotFoundFault": return [3, 12];
|
|
1526
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault": return [3, 12];
|
|
1527
|
-
case "ServiceLinkedRoleNotFoundFault": return [3, 14];
|
|
1528
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault": return [3, 14];
|
|
1529
|
-
}
|
|
1530
|
-
return [3, 16];
|
|
1531
|
-
case 2: return [4, deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
1532
|
-
case 3: throw _d.sent();
|
|
1533
|
-
case 4: return [4, deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context)];
|
|
1534
|
-
case 5: throw _d.sent();
|
|
1535
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
1536
|
-
case 7: throw _d.sent();
|
|
1537
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context)];
|
|
1538
|
-
case 9: throw _d.sent();
|
|
1539
|
-
case 10: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1540
|
-
case 11: throw _d.sent();
|
|
1541
|
-
case 12: return [4, deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context)];
|
|
1542
|
-
case 13: throw _d.sent();
|
|
1543
|
-
case 14: return [4, deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context)];
|
|
1544
|
-
case 15: throw _d.sent();
|
|
1545
|
-
case 16:
|
|
1546
|
-
parsedBody = parsedOutput.body;
|
|
1547
|
-
throwDefaultError({
|
|
1548
|
-
output: output,
|
|
1549
|
-
parsedBody: parsedBody,
|
|
1550
|
-
exceptionCtor: __BaseException,
|
|
1551
|
-
errorCode: errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
_d.label = 17;
|
|
1554
|
-
case 17: return [2];
|
|
1555
|
-
}
|
|
1556
|
-
});
|
|
1557
|
-
}); };
|
|
1558
|
-
export var deserializeAws_json1_1UpdateParameterGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1559
|
-
var data, contents, response;
|
|
1560
|
-
return __generator(this, function (_a) {
|
|
1561
|
-
switch (_a.label) {
|
|
1562
|
-
case 0:
|
|
1563
|
-
if (output.statusCode >= 300) {
|
|
1564
|
-
return [2, deserializeAws_json1_1UpdateParameterGroupCommandError(output, context)];
|
|
1565
|
-
}
|
|
1566
|
-
return [4, parseBody(output.body, context)];
|
|
1567
|
-
case 1:
|
|
1568
|
-
data = _a.sent();
|
|
1569
|
-
contents = {};
|
|
1570
|
-
contents = deserializeAws_json1_1UpdateParameterGroupResponse(data, context);
|
|
1571
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1572
|
-
return [2, Promise.resolve(response)];
|
|
1573
|
-
}
|
|
1574
|
-
});
|
|
1575
|
-
}); };
|
|
1576
|
-
var deserializeAws_json1_1UpdateParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1577
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1578
|
-
var _c;
|
|
1579
|
-
return __generator(this, function (_d) {
|
|
1580
|
-
switch (_d.label) {
|
|
1581
|
-
case 0:
|
|
1582
|
-
_a = [__assign({}, output)];
|
|
1583
|
-
_c = {};
|
|
1584
|
-
return [4, parseBody(output.body, context)];
|
|
1585
|
-
case 1:
|
|
1586
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1587
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
_b = errorCode;
|
|
1589
|
-
switch (_b) {
|
|
1590
|
-
case "InvalidParameterCombinationException": return [3, 2];
|
|
1591
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException": return [3, 2];
|
|
1592
|
-
case "InvalidParameterGroupStateFault": return [3, 4];
|
|
1593
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault": return [3, 4];
|
|
1594
|
-
case "InvalidParameterValueException": return [3, 6];
|
|
1595
|
-
case "com.amazonaws.dax#InvalidParameterValueException": return [3, 6];
|
|
1596
|
-
case "ParameterGroupNotFoundFault": return [3, 8];
|
|
1597
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault": return [3, 8];
|
|
1598
|
-
case "ServiceLinkedRoleNotFoundFault": return [3, 10];
|
|
1599
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault": return [3, 10];
|
|
1600
|
-
}
|
|
1601
|
-
return [3, 12];
|
|
1602
|
-
case 2: return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
1603
|
-
case 3: throw _d.sent();
|
|
1604
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context)];
|
|
1605
|
-
case 5: throw _d.sent();
|
|
1606
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1607
|
-
case 7: throw _d.sent();
|
|
1608
|
-
case 8: return [4, deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context)];
|
|
1609
|
-
case 9: throw _d.sent();
|
|
1610
|
-
case 10: return [4, deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context)];
|
|
1611
|
-
case 11: throw _d.sent();
|
|
1612
|
-
case 12:
|
|
1613
|
-
parsedBody = parsedOutput.body;
|
|
1614
|
-
throwDefaultError({
|
|
1615
|
-
output: output,
|
|
1616
|
-
parsedBody: parsedBody,
|
|
1617
|
-
exceptionCtor: __BaseException,
|
|
1618
|
-
errorCode: errorCode,
|
|
1619
|
-
});
|
|
1620
|
-
_d.label = 13;
|
|
1621
|
-
case 13: return [2];
|
|
1622
|
-
}
|
|
1623
|
-
});
|
|
1624
|
-
}); };
|
|
1625
|
-
export var deserializeAws_json1_1UpdateSubnetGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1626
|
-
var data, contents, response;
|
|
1627
|
-
return __generator(this, function (_a) {
|
|
1628
|
-
switch (_a.label) {
|
|
1629
|
-
case 0:
|
|
1630
|
-
if (output.statusCode >= 300) {
|
|
1631
|
-
return [2, deserializeAws_json1_1UpdateSubnetGroupCommandError(output, context)];
|
|
1632
|
-
}
|
|
1633
|
-
return [4, parseBody(output.body, context)];
|
|
1634
|
-
case 1:
|
|
1635
|
-
data = _a.sent();
|
|
1636
|
-
contents = {};
|
|
1637
|
-
contents = deserializeAws_json1_1UpdateSubnetGroupResponse(data, context);
|
|
1638
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1639
|
-
return [2, Promise.resolve(response)];
|
|
1640
|
-
}
|
|
1641
|
-
});
|
|
1642
|
-
}); };
|
|
1643
|
-
var deserializeAws_json1_1UpdateSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1644
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1645
|
-
var _c;
|
|
1646
|
-
return __generator(this, function (_d) {
|
|
1647
|
-
switch (_d.label) {
|
|
1648
|
-
case 0:
|
|
1649
|
-
_a = [__assign({}, output)];
|
|
1650
|
-
_c = {};
|
|
1651
|
-
return [4, parseBody(output.body, context)];
|
|
1652
|
-
case 1:
|
|
1653
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1654
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
-
_b = errorCode;
|
|
1656
|
-
switch (_b) {
|
|
1657
|
-
case "InvalidSubnet": return [3, 2];
|
|
1658
|
-
case "com.amazonaws.dax#InvalidSubnet": return [3, 2];
|
|
1659
|
-
case "ServiceLinkedRoleNotFoundFault": return [3, 4];
|
|
1660
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault": return [3, 4];
|
|
1661
|
-
case "SubnetGroupNotFoundFault": return [3, 6];
|
|
1662
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault": return [3, 6];
|
|
1663
|
-
case "SubnetInUse": return [3, 8];
|
|
1664
|
-
case "com.amazonaws.dax#SubnetInUse": return [3, 8];
|
|
1665
|
-
case "SubnetQuotaExceededFault": return [3, 10];
|
|
1666
|
-
case "com.amazonaws.dax#SubnetQuotaExceededFault": return [3, 10];
|
|
1667
|
-
}
|
|
1668
|
-
return [3, 12];
|
|
1669
|
-
case 2: return [4, deserializeAws_json1_1InvalidSubnetResponse(parsedOutput, context)];
|
|
1670
|
-
case 3: throw _d.sent();
|
|
1671
|
-
case 4: return [4, deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context)];
|
|
1672
|
-
case 5: throw _d.sent();
|
|
1673
|
-
case 6: return [4, deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context)];
|
|
1674
|
-
case 7: throw _d.sent();
|
|
1675
|
-
case 8: return [4, deserializeAws_json1_1SubnetInUseResponse(parsedOutput, context)];
|
|
1676
|
-
case 9: throw _d.sent();
|
|
1677
|
-
case 10: return [4, deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context)];
|
|
1678
|
-
case 11: throw _d.sent();
|
|
1679
|
-
case 12:
|
|
1680
|
-
parsedBody = parsedOutput.body;
|
|
1681
|
-
throwDefaultError({
|
|
1682
|
-
output: output,
|
|
1683
|
-
parsedBody: parsedBody,
|
|
1684
|
-
exceptionCtor: __BaseException,
|
|
1685
|
-
errorCode: errorCode,
|
|
1686
|
-
});
|
|
1687
|
-
_d.label = 13;
|
|
1688
|
-
case 13: return [2];
|
|
1689
|
-
}
|
|
1690
|
-
});
|
|
1691
|
-
}); };
|
|
1692
|
-
var deserializeAws_json1_1ClusterAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1693
|
-
var body, deserialized, exception;
|
|
1694
|
-
return __generator(this, function (_a) {
|
|
1695
|
-
body = parsedOutput.body;
|
|
1696
|
-
deserialized = deserializeAws_json1_1ClusterAlreadyExistsFault(body, context);
|
|
1697
|
-
exception = new ClusterAlreadyExistsFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1698
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1699
|
-
});
|
|
1700
|
-
}); };
|
|
1701
|
-
var deserializeAws_json1_1ClusterNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1702
|
-
var body, deserialized, exception;
|
|
1703
|
-
return __generator(this, function (_a) {
|
|
1704
|
-
body = parsedOutput.body;
|
|
1705
|
-
deserialized = deserializeAws_json1_1ClusterNotFoundFault(body, context);
|
|
1706
|
-
exception = new ClusterNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1707
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1708
|
-
});
|
|
1709
|
-
}); };
|
|
1710
|
-
var deserializeAws_json1_1ClusterQuotaForCustomerExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1711
|
-
var body, deserialized, exception;
|
|
1712
|
-
return __generator(this, function (_a) {
|
|
1713
|
-
body = parsedOutput.body;
|
|
1714
|
-
deserialized = deserializeAws_json1_1ClusterQuotaForCustomerExceededFault(body, context);
|
|
1715
|
-
exception = new ClusterQuotaForCustomerExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1716
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1717
|
-
});
|
|
1718
|
-
}); };
|
|
1719
|
-
var deserializeAws_json1_1InsufficientClusterCapacityFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1720
|
-
var body, deserialized, exception;
|
|
1721
|
-
return __generator(this, function (_a) {
|
|
1722
|
-
body = parsedOutput.body;
|
|
1723
|
-
deserialized = deserializeAws_json1_1InsufficientClusterCapacityFault(body, context);
|
|
1724
|
-
exception = new InsufficientClusterCapacityFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1725
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1726
|
-
});
|
|
1727
|
-
}); };
|
|
1728
|
-
var deserializeAws_json1_1InvalidARNFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1729
|
-
var body, deserialized, exception;
|
|
1730
|
-
return __generator(this, function (_a) {
|
|
1731
|
-
body = parsedOutput.body;
|
|
1732
|
-
deserialized = deserializeAws_json1_1InvalidARNFault(body, context);
|
|
1733
|
-
exception = new InvalidARNFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1734
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1735
|
-
});
|
|
1736
|
-
}); };
|
|
1737
|
-
var deserializeAws_json1_1InvalidClusterStateFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1738
|
-
var body, deserialized, exception;
|
|
1739
|
-
return __generator(this, function (_a) {
|
|
1740
|
-
body = parsedOutput.body;
|
|
1741
|
-
deserialized = deserializeAws_json1_1InvalidClusterStateFault(body, context);
|
|
1742
|
-
exception = new InvalidClusterStateFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1743
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1744
|
-
});
|
|
1745
|
-
}); };
|
|
1746
|
-
var deserializeAws_json1_1InvalidParameterCombinationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1747
|
-
var body, deserialized, exception;
|
|
1748
|
-
return __generator(this, function (_a) {
|
|
1749
|
-
body = parsedOutput.body;
|
|
1750
|
-
deserialized = deserializeAws_json1_1InvalidParameterCombinationException(body, context);
|
|
1751
|
-
exception = new InvalidParameterCombinationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1752
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1753
|
-
});
|
|
1754
|
-
}); };
|
|
1755
|
-
var deserializeAws_json1_1InvalidParameterGroupStateFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1756
|
-
var body, deserialized, exception;
|
|
1757
|
-
return __generator(this, function (_a) {
|
|
1758
|
-
body = parsedOutput.body;
|
|
1759
|
-
deserialized = deserializeAws_json1_1InvalidParameterGroupStateFault(body, context);
|
|
1760
|
-
exception = new InvalidParameterGroupStateFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1761
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1762
|
-
});
|
|
1763
|
-
}); };
|
|
1764
|
-
var deserializeAws_json1_1InvalidParameterValueExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1765
|
-
var body, deserialized, exception;
|
|
1766
|
-
return __generator(this, function (_a) {
|
|
1767
|
-
body = parsedOutput.body;
|
|
1768
|
-
deserialized = deserializeAws_json1_1InvalidParameterValueException(body, context);
|
|
1769
|
-
exception = new InvalidParameterValueException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1770
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1771
|
-
});
|
|
1772
|
-
}); };
|
|
1773
|
-
var deserializeAws_json1_1InvalidSubnetResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1774
|
-
var body, deserialized, exception;
|
|
1775
|
-
return __generator(this, function (_a) {
|
|
1776
|
-
body = parsedOutput.body;
|
|
1777
|
-
deserialized = deserializeAws_json1_1InvalidSubnet(body, context);
|
|
1778
|
-
exception = new InvalidSubnet(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1779
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1780
|
-
});
|
|
1781
|
-
}); };
|
|
1782
|
-
var deserializeAws_json1_1InvalidVPCNetworkStateFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1783
|
-
var body, deserialized, exception;
|
|
1784
|
-
return __generator(this, function (_a) {
|
|
1785
|
-
body = parsedOutput.body;
|
|
1786
|
-
deserialized = deserializeAws_json1_1InvalidVPCNetworkStateFault(body, context);
|
|
1787
|
-
exception = new InvalidVPCNetworkStateFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1788
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1789
|
-
});
|
|
1790
|
-
}); };
|
|
1791
|
-
var deserializeAws_json1_1NodeNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1792
|
-
var body, deserialized, exception;
|
|
1793
|
-
return __generator(this, function (_a) {
|
|
1794
|
-
body = parsedOutput.body;
|
|
1795
|
-
deserialized = deserializeAws_json1_1NodeNotFoundFault(body, context);
|
|
1796
|
-
exception = new NodeNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1797
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1798
|
-
});
|
|
1799
|
-
}); };
|
|
1800
|
-
var deserializeAws_json1_1NodeQuotaForClusterExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1801
|
-
var body, deserialized, exception;
|
|
1802
|
-
return __generator(this, function (_a) {
|
|
1803
|
-
body = parsedOutput.body;
|
|
1804
|
-
deserialized = deserializeAws_json1_1NodeQuotaForClusterExceededFault(body, context);
|
|
1805
|
-
exception = new NodeQuotaForClusterExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1806
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1807
|
-
});
|
|
1808
|
-
}); };
|
|
1809
|
-
var deserializeAws_json1_1NodeQuotaForCustomerExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1810
|
-
var body, deserialized, exception;
|
|
1811
|
-
return __generator(this, function (_a) {
|
|
1812
|
-
body = parsedOutput.body;
|
|
1813
|
-
deserialized = deserializeAws_json1_1NodeQuotaForCustomerExceededFault(body, context);
|
|
1814
|
-
exception = new NodeQuotaForCustomerExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1815
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1816
|
-
});
|
|
1817
|
-
}); };
|
|
1818
|
-
var deserializeAws_json1_1ParameterGroupAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1819
|
-
var body, deserialized, exception;
|
|
1820
|
-
return __generator(this, function (_a) {
|
|
1821
|
-
body = parsedOutput.body;
|
|
1822
|
-
deserialized = deserializeAws_json1_1ParameterGroupAlreadyExistsFault(body, context);
|
|
1823
|
-
exception = new ParameterGroupAlreadyExistsFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1824
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1825
|
-
});
|
|
1826
|
-
}); };
|
|
1827
|
-
var deserializeAws_json1_1ParameterGroupNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1828
|
-
var body, deserialized, exception;
|
|
1829
|
-
return __generator(this, function (_a) {
|
|
1830
|
-
body = parsedOutput.body;
|
|
1831
|
-
deserialized = deserializeAws_json1_1ParameterGroupNotFoundFault(body, context);
|
|
1832
|
-
exception = new ParameterGroupNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1833
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1834
|
-
});
|
|
1835
|
-
}); };
|
|
1836
|
-
var deserializeAws_json1_1ParameterGroupQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1837
|
-
var body, deserialized, exception;
|
|
1838
|
-
return __generator(this, function (_a) {
|
|
1839
|
-
body = parsedOutput.body;
|
|
1840
|
-
deserialized = deserializeAws_json1_1ParameterGroupQuotaExceededFault(body, context);
|
|
1841
|
-
exception = new ParameterGroupQuotaExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1842
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1843
|
-
});
|
|
1844
|
-
}); };
|
|
1845
|
-
var deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1846
|
-
var body, deserialized, exception;
|
|
1847
|
-
return __generator(this, function (_a) {
|
|
1848
|
-
body = parsedOutput.body;
|
|
1849
|
-
deserialized = deserializeAws_json1_1ServiceLinkedRoleNotFoundFault(body, context);
|
|
1850
|
-
exception = new ServiceLinkedRoleNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1851
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1852
|
-
});
|
|
1853
|
-
}); };
|
|
1854
|
-
var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1855
|
-
var body, deserialized, exception;
|
|
1856
|
-
return __generator(this, function (_a) {
|
|
1857
|
-
body = parsedOutput.body;
|
|
1858
|
-
deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
1859
|
-
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1860
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1861
|
-
});
|
|
1862
|
-
}); };
|
|
1863
|
-
var deserializeAws_json1_1SubnetGroupAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1864
|
-
var body, deserialized, exception;
|
|
1865
|
-
return __generator(this, function (_a) {
|
|
1866
|
-
body = parsedOutput.body;
|
|
1867
|
-
deserialized = deserializeAws_json1_1SubnetGroupAlreadyExistsFault(body, context);
|
|
1868
|
-
exception = new SubnetGroupAlreadyExistsFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1869
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1870
|
-
});
|
|
1871
|
-
}); };
|
|
1872
|
-
var deserializeAws_json1_1SubnetGroupInUseFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1873
|
-
var body, deserialized, exception;
|
|
1874
|
-
return __generator(this, function (_a) {
|
|
1875
|
-
body = parsedOutput.body;
|
|
1876
|
-
deserialized = deserializeAws_json1_1SubnetGroupInUseFault(body, context);
|
|
1877
|
-
exception = new SubnetGroupInUseFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1878
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1879
|
-
});
|
|
1880
|
-
}); };
|
|
1881
|
-
var deserializeAws_json1_1SubnetGroupNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1882
|
-
var body, deserialized, exception;
|
|
1883
|
-
return __generator(this, function (_a) {
|
|
1884
|
-
body = parsedOutput.body;
|
|
1885
|
-
deserialized = deserializeAws_json1_1SubnetGroupNotFoundFault(body, context);
|
|
1886
|
-
exception = new SubnetGroupNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1887
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1888
|
-
});
|
|
1889
|
-
}); };
|
|
1890
|
-
var deserializeAws_json1_1SubnetGroupQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1891
|
-
var body, deserialized, exception;
|
|
1892
|
-
return __generator(this, function (_a) {
|
|
1893
|
-
body = parsedOutput.body;
|
|
1894
|
-
deserialized = deserializeAws_json1_1SubnetGroupQuotaExceededFault(body, context);
|
|
1895
|
-
exception = new SubnetGroupQuotaExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1896
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1897
|
-
});
|
|
1898
|
-
}); };
|
|
1899
|
-
var deserializeAws_json1_1SubnetInUseResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1900
|
-
var body, deserialized, exception;
|
|
1901
|
-
return __generator(this, function (_a) {
|
|
1902
|
-
body = parsedOutput.body;
|
|
1903
|
-
deserialized = deserializeAws_json1_1SubnetInUse(body, context);
|
|
1904
|
-
exception = new SubnetInUse(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1905
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1906
|
-
});
|
|
1907
|
-
}); };
|
|
1908
|
-
var deserializeAws_json1_1SubnetQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1909
|
-
var body, deserialized, exception;
|
|
1910
|
-
return __generator(this, function (_a) {
|
|
1911
|
-
body = parsedOutput.body;
|
|
1912
|
-
deserialized = deserializeAws_json1_1SubnetQuotaExceededFault(body, context);
|
|
1913
|
-
exception = new SubnetQuotaExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1914
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1915
|
-
});
|
|
1916
|
-
}); };
|
|
1917
|
-
var deserializeAws_json1_1TagNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1918
|
-
var body, deserialized, exception;
|
|
1919
|
-
return __generator(this, function (_a) {
|
|
1920
|
-
body = parsedOutput.body;
|
|
1921
|
-
deserialized = deserializeAws_json1_1TagNotFoundFault(body, context);
|
|
1922
|
-
exception = new TagNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1923
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1924
|
-
});
|
|
1925
|
-
}); };
|
|
1926
|
-
var deserializeAws_json1_1TagQuotaPerResourceExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1927
|
-
var body, deserialized, exception;
|
|
1928
|
-
return __generator(this, function (_a) {
|
|
1929
|
-
body = parsedOutput.body;
|
|
1930
|
-
deserialized = deserializeAws_json1_1TagQuotaPerResourceExceeded(body, context);
|
|
1931
|
-
exception = new TagQuotaPerResourceExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1932
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1933
|
-
});
|
|
1934
|
-
}); };
|
|
1935
|
-
var serializeAws_json1_1AvailabilityZoneList = function (input, context) {
|
|
5
|
+
export const serializeAws_json1_1CreateClusterCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "AmazonDAXV3.CreateCluster",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1CreateClusterRequest(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1CreateParameterGroupCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "AmazonDAXV3.CreateParameterGroup",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1CreateParameterGroupRequest(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1CreateSubnetGroupCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "AmazonDAXV3.CreateSubnetGroup",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1CreateSubnetGroupRequest(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1DecreaseReplicationFactorCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "AmazonDAXV3.DecreaseReplicationFactor",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1DecreaseReplicationFactorRequest(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1DeleteClusterCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AmazonDAXV3.DeleteCluster",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1DeleteClusterRequest(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1DeleteParameterGroupCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "AmazonDAXV3.DeleteParameterGroup",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DeleteParameterGroupRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1DeleteSubnetGroupCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "AmazonDAXV3.DeleteSubnetGroup",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DeleteSubnetGroupRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1DescribeClustersCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "AmazonDAXV3.DescribeClusters",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1DescribeClustersRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1DescribeDefaultParametersCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "AmazonDAXV3.DescribeDefaultParameters",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1DescribeDefaultParametersRequest(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1DescribeEventsCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "AmazonDAXV3.DescribeEvents",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEventsRequest(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1DescribeParameterGroupsCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "AmazonDAXV3.DescribeParameterGroups",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1DescribeParameterGroupsRequest(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1DescribeParametersCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "AmazonDAXV3.DescribeParameters",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1DescribeParametersRequest(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1DescribeSubnetGroupsCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "AmazonDAXV3.DescribeSubnetGroups",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1DescribeSubnetGroupsRequest(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_json1_1IncreaseReplicationFactorCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.1",
|
|
125
|
+
"x-amz-target": "AmazonDAXV3.IncreaseReplicationFactor",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_1IncreaseReplicationFactorRequest(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
export const serializeAws_json1_1ListTagsCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.1",
|
|
134
|
+
"x-amz-target": "AmazonDAXV3.ListTags",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsRequest(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_1RebootNodeCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AmazonDAXV3.RebootNode",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1RebootNodeRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "AmazonDAXV3.TagResource",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.1",
|
|
161
|
+
"x-amz-target": "AmazonDAXV3.UntagResource",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_1UpdateClusterCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "AmazonDAXV3.UpdateCluster",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1UpdateClusterRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
export const serializeAws_json1_1UpdateParameterGroupCommand = async (input, context) => {
|
|
177
|
+
const headers = {
|
|
178
|
+
"content-type": "application/x-amz-json-1.1",
|
|
179
|
+
"x-amz-target": "AmazonDAXV3.UpdateParameterGroup",
|
|
180
|
+
};
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify(serializeAws_json1_1UpdateParameterGroupRequest(input, context));
|
|
183
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
+
};
|
|
185
|
+
export const serializeAws_json1_1UpdateSubnetGroupCommand = async (input, context) => {
|
|
186
|
+
const headers = {
|
|
187
|
+
"content-type": "application/x-amz-json-1.1",
|
|
188
|
+
"x-amz-target": "AmazonDAXV3.UpdateSubnetGroup",
|
|
189
|
+
};
|
|
190
|
+
let body;
|
|
191
|
+
body = JSON.stringify(serializeAws_json1_1UpdateSubnetGroupRequest(input, context));
|
|
192
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
+
};
|
|
194
|
+
export const deserializeAws_json1_1CreateClusterCommand = async (output, context) => {
|
|
195
|
+
if (output.statusCode >= 300) {
|
|
196
|
+
return deserializeAws_json1_1CreateClusterCommandError(output, context);
|
|
197
|
+
}
|
|
198
|
+
const data = await parseBody(output.body, context);
|
|
199
|
+
let contents = {};
|
|
200
|
+
contents = deserializeAws_json1_1CreateClusterResponse(data, context);
|
|
201
|
+
const response = {
|
|
202
|
+
$metadata: deserializeMetadata(output),
|
|
203
|
+
...contents,
|
|
204
|
+
};
|
|
205
|
+
return Promise.resolve(response);
|
|
206
|
+
};
|
|
207
|
+
const deserializeAws_json1_1CreateClusterCommandError = async (output, context) => {
|
|
208
|
+
const parsedOutput = {
|
|
209
|
+
...output,
|
|
210
|
+
body: await parseErrorBody(output.body, context),
|
|
211
|
+
};
|
|
212
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
213
|
+
switch (errorCode) {
|
|
214
|
+
case "ClusterAlreadyExistsFault":
|
|
215
|
+
case "com.amazonaws.dax#ClusterAlreadyExistsFault":
|
|
216
|
+
throw await deserializeAws_json1_1ClusterAlreadyExistsFaultResponse(parsedOutput, context);
|
|
217
|
+
case "ClusterQuotaForCustomerExceededFault":
|
|
218
|
+
case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
|
|
219
|
+
throw await deserializeAws_json1_1ClusterQuotaForCustomerExceededFaultResponse(parsedOutput, context);
|
|
220
|
+
case "InsufficientClusterCapacityFault":
|
|
221
|
+
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
222
|
+
throw await deserializeAws_json1_1InsufficientClusterCapacityFaultResponse(parsedOutput, context);
|
|
223
|
+
case "InvalidClusterStateFault":
|
|
224
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
225
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
226
|
+
case "InvalidParameterCombinationException":
|
|
227
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
228
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
229
|
+
case "InvalidParameterGroupStateFault":
|
|
230
|
+
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
231
|
+
throw await deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context);
|
|
232
|
+
case "InvalidParameterValueException":
|
|
233
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
234
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
235
|
+
case "InvalidVPCNetworkStateFault":
|
|
236
|
+
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
237
|
+
throw await deserializeAws_json1_1InvalidVPCNetworkStateFaultResponse(parsedOutput, context);
|
|
238
|
+
case "NodeQuotaForClusterExceededFault":
|
|
239
|
+
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
240
|
+
throw await deserializeAws_json1_1NodeQuotaForClusterExceededFaultResponse(parsedOutput, context);
|
|
241
|
+
case "NodeQuotaForCustomerExceededFault":
|
|
242
|
+
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
243
|
+
throw await deserializeAws_json1_1NodeQuotaForCustomerExceededFaultResponse(parsedOutput, context);
|
|
244
|
+
case "ParameterGroupNotFoundFault":
|
|
245
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
246
|
+
throw await deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
247
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
248
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
249
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
250
|
+
case "ServiceQuotaExceededException":
|
|
251
|
+
case "com.amazonaws.dax#ServiceQuotaExceededException":
|
|
252
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
253
|
+
case "SubnetGroupNotFoundFault":
|
|
254
|
+
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
255
|
+
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
256
|
+
case "TagQuotaPerResourceExceeded":
|
|
257
|
+
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
258
|
+
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
259
|
+
default:
|
|
260
|
+
const parsedBody = parsedOutput.body;
|
|
261
|
+
throwDefaultError({
|
|
262
|
+
output,
|
|
263
|
+
parsedBody,
|
|
264
|
+
exceptionCtor: __BaseException,
|
|
265
|
+
errorCode,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
export const deserializeAws_json1_1CreateParameterGroupCommand = async (output, context) => {
|
|
270
|
+
if (output.statusCode >= 300) {
|
|
271
|
+
return deserializeAws_json1_1CreateParameterGroupCommandError(output, context);
|
|
272
|
+
}
|
|
273
|
+
const data = await parseBody(output.body, context);
|
|
274
|
+
let contents = {};
|
|
275
|
+
contents = deserializeAws_json1_1CreateParameterGroupResponse(data, context);
|
|
276
|
+
const response = {
|
|
277
|
+
$metadata: deserializeMetadata(output),
|
|
278
|
+
...contents,
|
|
279
|
+
};
|
|
280
|
+
return Promise.resolve(response);
|
|
281
|
+
};
|
|
282
|
+
const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, context) => {
|
|
283
|
+
const parsedOutput = {
|
|
284
|
+
...output,
|
|
285
|
+
body: await parseErrorBody(output.body, context),
|
|
286
|
+
};
|
|
287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
|
+
switch (errorCode) {
|
|
289
|
+
case "InvalidParameterCombinationException":
|
|
290
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
291
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
292
|
+
case "InvalidParameterGroupStateFault":
|
|
293
|
+
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
294
|
+
throw await deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context);
|
|
295
|
+
case "InvalidParameterValueException":
|
|
296
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
297
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
298
|
+
case "ParameterGroupAlreadyExistsFault":
|
|
299
|
+
case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
|
|
300
|
+
throw await deserializeAws_json1_1ParameterGroupAlreadyExistsFaultResponse(parsedOutput, context);
|
|
301
|
+
case "ParameterGroupQuotaExceededFault":
|
|
302
|
+
case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
|
|
303
|
+
throw await deserializeAws_json1_1ParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
|
|
304
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
305
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
306
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
307
|
+
default:
|
|
308
|
+
const parsedBody = parsedOutput.body;
|
|
309
|
+
throwDefaultError({
|
|
310
|
+
output,
|
|
311
|
+
parsedBody,
|
|
312
|
+
exceptionCtor: __BaseException,
|
|
313
|
+
errorCode,
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
export const deserializeAws_json1_1CreateSubnetGroupCommand = async (output, context) => {
|
|
318
|
+
if (output.statusCode >= 300) {
|
|
319
|
+
return deserializeAws_json1_1CreateSubnetGroupCommandError(output, context);
|
|
320
|
+
}
|
|
321
|
+
const data = await parseBody(output.body, context);
|
|
322
|
+
let contents = {};
|
|
323
|
+
contents = deserializeAws_json1_1CreateSubnetGroupResponse(data, context);
|
|
324
|
+
const response = {
|
|
325
|
+
$metadata: deserializeMetadata(output),
|
|
326
|
+
...contents,
|
|
327
|
+
};
|
|
328
|
+
return Promise.resolve(response);
|
|
329
|
+
};
|
|
330
|
+
const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, context) => {
|
|
331
|
+
const parsedOutput = {
|
|
332
|
+
...output,
|
|
333
|
+
body: await parseErrorBody(output.body, context),
|
|
334
|
+
};
|
|
335
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
336
|
+
switch (errorCode) {
|
|
337
|
+
case "InvalidSubnet":
|
|
338
|
+
case "com.amazonaws.dax#InvalidSubnet":
|
|
339
|
+
throw await deserializeAws_json1_1InvalidSubnetResponse(parsedOutput, context);
|
|
340
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
341
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
342
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
343
|
+
case "SubnetGroupAlreadyExistsFault":
|
|
344
|
+
case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
|
|
345
|
+
throw await deserializeAws_json1_1SubnetGroupAlreadyExistsFaultResponse(parsedOutput, context);
|
|
346
|
+
case "SubnetGroupQuotaExceededFault":
|
|
347
|
+
case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
|
|
348
|
+
throw await deserializeAws_json1_1SubnetGroupQuotaExceededFaultResponse(parsedOutput, context);
|
|
349
|
+
case "SubnetQuotaExceededFault":
|
|
350
|
+
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
351
|
+
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
352
|
+
default:
|
|
353
|
+
const parsedBody = parsedOutput.body;
|
|
354
|
+
throwDefaultError({
|
|
355
|
+
output,
|
|
356
|
+
parsedBody,
|
|
357
|
+
exceptionCtor: __BaseException,
|
|
358
|
+
errorCode,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
export const deserializeAws_json1_1DecreaseReplicationFactorCommand = async (output, context) => {
|
|
363
|
+
if (output.statusCode >= 300) {
|
|
364
|
+
return deserializeAws_json1_1DecreaseReplicationFactorCommandError(output, context);
|
|
365
|
+
}
|
|
366
|
+
const data = await parseBody(output.body, context);
|
|
367
|
+
let contents = {};
|
|
368
|
+
contents = deserializeAws_json1_1DecreaseReplicationFactorResponse(data, context);
|
|
369
|
+
const response = {
|
|
370
|
+
$metadata: deserializeMetadata(output),
|
|
371
|
+
...contents,
|
|
372
|
+
};
|
|
373
|
+
return Promise.resolve(response);
|
|
374
|
+
};
|
|
375
|
+
const deserializeAws_json1_1DecreaseReplicationFactorCommandError = async (output, context) => {
|
|
376
|
+
const parsedOutput = {
|
|
377
|
+
...output,
|
|
378
|
+
body: await parseErrorBody(output.body, context),
|
|
379
|
+
};
|
|
380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
|
+
switch (errorCode) {
|
|
382
|
+
case "ClusterNotFoundFault":
|
|
383
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
384
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
385
|
+
case "InvalidClusterStateFault":
|
|
386
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
387
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
388
|
+
case "InvalidParameterCombinationException":
|
|
389
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
390
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
391
|
+
case "InvalidParameterValueException":
|
|
392
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
393
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
394
|
+
case "NodeNotFoundFault":
|
|
395
|
+
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
396
|
+
throw await deserializeAws_json1_1NodeNotFoundFaultResponse(parsedOutput, context);
|
|
397
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
398
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
399
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
400
|
+
default:
|
|
401
|
+
const parsedBody = parsedOutput.body;
|
|
402
|
+
throwDefaultError({
|
|
403
|
+
output,
|
|
404
|
+
parsedBody,
|
|
405
|
+
exceptionCtor: __BaseException,
|
|
406
|
+
errorCode,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
export const deserializeAws_json1_1DeleteClusterCommand = async (output, context) => {
|
|
411
|
+
if (output.statusCode >= 300) {
|
|
412
|
+
return deserializeAws_json1_1DeleteClusterCommandError(output, context);
|
|
413
|
+
}
|
|
414
|
+
const data = await parseBody(output.body, context);
|
|
415
|
+
let contents = {};
|
|
416
|
+
contents = deserializeAws_json1_1DeleteClusterResponse(data, context);
|
|
417
|
+
const response = {
|
|
418
|
+
$metadata: deserializeMetadata(output),
|
|
419
|
+
...contents,
|
|
420
|
+
};
|
|
421
|
+
return Promise.resolve(response);
|
|
422
|
+
};
|
|
423
|
+
const deserializeAws_json1_1DeleteClusterCommandError = async (output, context) => {
|
|
424
|
+
const parsedOutput = {
|
|
425
|
+
...output,
|
|
426
|
+
body: await parseErrorBody(output.body, context),
|
|
427
|
+
};
|
|
428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
+
switch (errorCode) {
|
|
430
|
+
case "ClusterNotFoundFault":
|
|
431
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
432
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
433
|
+
case "InvalidClusterStateFault":
|
|
434
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
435
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
436
|
+
case "InvalidParameterCombinationException":
|
|
437
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
438
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
439
|
+
case "InvalidParameterValueException":
|
|
440
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
441
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
443
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
444
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
445
|
+
default:
|
|
446
|
+
const parsedBody = parsedOutput.body;
|
|
447
|
+
throwDefaultError({
|
|
448
|
+
output,
|
|
449
|
+
parsedBody,
|
|
450
|
+
exceptionCtor: __BaseException,
|
|
451
|
+
errorCode,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
export const deserializeAws_json1_1DeleteParameterGroupCommand = async (output, context) => {
|
|
456
|
+
if (output.statusCode >= 300) {
|
|
457
|
+
return deserializeAws_json1_1DeleteParameterGroupCommandError(output, context);
|
|
458
|
+
}
|
|
459
|
+
const data = await parseBody(output.body, context);
|
|
460
|
+
let contents = {};
|
|
461
|
+
contents = deserializeAws_json1_1DeleteParameterGroupResponse(data, context);
|
|
462
|
+
const response = {
|
|
463
|
+
$metadata: deserializeMetadata(output),
|
|
464
|
+
...contents,
|
|
465
|
+
};
|
|
466
|
+
return Promise.resolve(response);
|
|
467
|
+
};
|
|
468
|
+
const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, context) => {
|
|
469
|
+
const parsedOutput = {
|
|
470
|
+
...output,
|
|
471
|
+
body: await parseErrorBody(output.body, context),
|
|
472
|
+
};
|
|
473
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
+
switch (errorCode) {
|
|
475
|
+
case "InvalidParameterCombinationException":
|
|
476
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
477
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
478
|
+
case "InvalidParameterGroupStateFault":
|
|
479
|
+
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
480
|
+
throw await deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context);
|
|
481
|
+
case "InvalidParameterValueException":
|
|
482
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
483
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
484
|
+
case "ParameterGroupNotFoundFault":
|
|
485
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
486
|
+
throw await deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
487
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
488
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
489
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
490
|
+
default:
|
|
491
|
+
const parsedBody = parsedOutput.body;
|
|
492
|
+
throwDefaultError({
|
|
493
|
+
output,
|
|
494
|
+
parsedBody,
|
|
495
|
+
exceptionCtor: __BaseException,
|
|
496
|
+
errorCode,
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
export const deserializeAws_json1_1DeleteSubnetGroupCommand = async (output, context) => {
|
|
501
|
+
if (output.statusCode >= 300) {
|
|
502
|
+
return deserializeAws_json1_1DeleteSubnetGroupCommandError(output, context);
|
|
503
|
+
}
|
|
504
|
+
const data = await parseBody(output.body, context);
|
|
505
|
+
let contents = {};
|
|
506
|
+
contents = deserializeAws_json1_1DeleteSubnetGroupResponse(data, context);
|
|
507
|
+
const response = {
|
|
508
|
+
$metadata: deserializeMetadata(output),
|
|
509
|
+
...contents,
|
|
510
|
+
};
|
|
511
|
+
return Promise.resolve(response);
|
|
512
|
+
};
|
|
513
|
+
const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, context) => {
|
|
514
|
+
const parsedOutput = {
|
|
515
|
+
...output,
|
|
516
|
+
body: await parseErrorBody(output.body, context),
|
|
517
|
+
};
|
|
518
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
|
+
switch (errorCode) {
|
|
520
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
521
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
522
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
523
|
+
case "SubnetGroupInUseFault":
|
|
524
|
+
case "com.amazonaws.dax#SubnetGroupInUseFault":
|
|
525
|
+
throw await deserializeAws_json1_1SubnetGroupInUseFaultResponse(parsedOutput, context);
|
|
526
|
+
case "SubnetGroupNotFoundFault":
|
|
527
|
+
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
528
|
+
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
529
|
+
default:
|
|
530
|
+
const parsedBody = parsedOutput.body;
|
|
531
|
+
throwDefaultError({
|
|
532
|
+
output,
|
|
533
|
+
parsedBody,
|
|
534
|
+
exceptionCtor: __BaseException,
|
|
535
|
+
errorCode,
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
export const deserializeAws_json1_1DescribeClustersCommand = async (output, context) => {
|
|
540
|
+
if (output.statusCode >= 300) {
|
|
541
|
+
return deserializeAws_json1_1DescribeClustersCommandError(output, context);
|
|
542
|
+
}
|
|
543
|
+
const data = await parseBody(output.body, context);
|
|
544
|
+
let contents = {};
|
|
545
|
+
contents = deserializeAws_json1_1DescribeClustersResponse(data, context);
|
|
546
|
+
const response = {
|
|
547
|
+
$metadata: deserializeMetadata(output),
|
|
548
|
+
...contents,
|
|
549
|
+
};
|
|
550
|
+
return Promise.resolve(response);
|
|
551
|
+
};
|
|
552
|
+
const deserializeAws_json1_1DescribeClustersCommandError = async (output, context) => {
|
|
553
|
+
const parsedOutput = {
|
|
554
|
+
...output,
|
|
555
|
+
body: await parseErrorBody(output.body, context),
|
|
556
|
+
};
|
|
557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
+
switch (errorCode) {
|
|
559
|
+
case "ClusterNotFoundFault":
|
|
560
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
561
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
562
|
+
case "InvalidParameterCombinationException":
|
|
563
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
564
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
565
|
+
case "InvalidParameterValueException":
|
|
566
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
567
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
569
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
570
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
571
|
+
default:
|
|
572
|
+
const parsedBody = parsedOutput.body;
|
|
573
|
+
throwDefaultError({
|
|
574
|
+
output,
|
|
575
|
+
parsedBody,
|
|
576
|
+
exceptionCtor: __BaseException,
|
|
577
|
+
errorCode,
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
export const deserializeAws_json1_1DescribeDefaultParametersCommand = async (output, context) => {
|
|
582
|
+
if (output.statusCode >= 300) {
|
|
583
|
+
return deserializeAws_json1_1DescribeDefaultParametersCommandError(output, context);
|
|
584
|
+
}
|
|
585
|
+
const data = await parseBody(output.body, context);
|
|
586
|
+
let contents = {};
|
|
587
|
+
contents = deserializeAws_json1_1DescribeDefaultParametersResponse(data, context);
|
|
588
|
+
const response = {
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
...contents,
|
|
591
|
+
};
|
|
592
|
+
return Promise.resolve(response);
|
|
593
|
+
};
|
|
594
|
+
const deserializeAws_json1_1DescribeDefaultParametersCommandError = async (output, context) => {
|
|
595
|
+
const parsedOutput = {
|
|
596
|
+
...output,
|
|
597
|
+
body: await parseErrorBody(output.body, context),
|
|
598
|
+
};
|
|
599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
+
switch (errorCode) {
|
|
601
|
+
case "InvalidParameterCombinationException":
|
|
602
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
603
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
604
|
+
case "InvalidParameterValueException":
|
|
605
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
606
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
607
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
608
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
609
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
610
|
+
default:
|
|
611
|
+
const parsedBody = parsedOutput.body;
|
|
612
|
+
throwDefaultError({
|
|
613
|
+
output,
|
|
614
|
+
parsedBody,
|
|
615
|
+
exceptionCtor: __BaseException,
|
|
616
|
+
errorCode,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
export const deserializeAws_json1_1DescribeEventsCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode >= 300) {
|
|
622
|
+
return deserializeAws_json1_1DescribeEventsCommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const data = await parseBody(output.body, context);
|
|
625
|
+
let contents = {};
|
|
626
|
+
contents = deserializeAws_json1_1DescribeEventsResponse(data, context);
|
|
627
|
+
const response = {
|
|
628
|
+
$metadata: deserializeMetadata(output),
|
|
629
|
+
...contents,
|
|
630
|
+
};
|
|
631
|
+
return Promise.resolve(response);
|
|
632
|
+
};
|
|
633
|
+
const deserializeAws_json1_1DescribeEventsCommandError = async (output, context) => {
|
|
634
|
+
const parsedOutput = {
|
|
635
|
+
...output,
|
|
636
|
+
body: await parseErrorBody(output.body, context),
|
|
637
|
+
};
|
|
638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
+
switch (errorCode) {
|
|
640
|
+
case "InvalidParameterCombinationException":
|
|
641
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
642
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
643
|
+
case "InvalidParameterValueException":
|
|
644
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
645
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
646
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
647
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
648
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
649
|
+
default:
|
|
650
|
+
const parsedBody = parsedOutput.body;
|
|
651
|
+
throwDefaultError({
|
|
652
|
+
output,
|
|
653
|
+
parsedBody,
|
|
654
|
+
exceptionCtor: __BaseException,
|
|
655
|
+
errorCode,
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
export const deserializeAws_json1_1DescribeParameterGroupsCommand = async (output, context) => {
|
|
660
|
+
if (output.statusCode >= 300) {
|
|
661
|
+
return deserializeAws_json1_1DescribeParameterGroupsCommandError(output, context);
|
|
662
|
+
}
|
|
663
|
+
const data = await parseBody(output.body, context);
|
|
664
|
+
let contents = {};
|
|
665
|
+
contents = deserializeAws_json1_1DescribeParameterGroupsResponse(data, context);
|
|
666
|
+
const response = {
|
|
667
|
+
$metadata: deserializeMetadata(output),
|
|
668
|
+
...contents,
|
|
669
|
+
};
|
|
670
|
+
return Promise.resolve(response);
|
|
671
|
+
};
|
|
672
|
+
const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output, context) => {
|
|
673
|
+
const parsedOutput = {
|
|
674
|
+
...output,
|
|
675
|
+
body: await parseErrorBody(output.body, context),
|
|
676
|
+
};
|
|
677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
|
+
switch (errorCode) {
|
|
679
|
+
case "InvalidParameterCombinationException":
|
|
680
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
681
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
682
|
+
case "InvalidParameterValueException":
|
|
683
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
684
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
685
|
+
case "ParameterGroupNotFoundFault":
|
|
686
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
687
|
+
throw await deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
688
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
689
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
690
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
691
|
+
default:
|
|
692
|
+
const parsedBody = parsedOutput.body;
|
|
693
|
+
throwDefaultError({
|
|
694
|
+
output,
|
|
695
|
+
parsedBody,
|
|
696
|
+
exceptionCtor: __BaseException,
|
|
697
|
+
errorCode,
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
export const deserializeAws_json1_1DescribeParametersCommand = async (output, context) => {
|
|
702
|
+
if (output.statusCode >= 300) {
|
|
703
|
+
return deserializeAws_json1_1DescribeParametersCommandError(output, context);
|
|
704
|
+
}
|
|
705
|
+
const data = await parseBody(output.body, context);
|
|
706
|
+
let contents = {};
|
|
707
|
+
contents = deserializeAws_json1_1DescribeParametersResponse(data, context);
|
|
708
|
+
const response = {
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
...contents,
|
|
711
|
+
};
|
|
712
|
+
return Promise.resolve(response);
|
|
713
|
+
};
|
|
714
|
+
const deserializeAws_json1_1DescribeParametersCommandError = async (output, context) => {
|
|
715
|
+
const parsedOutput = {
|
|
716
|
+
...output,
|
|
717
|
+
body: await parseErrorBody(output.body, context),
|
|
718
|
+
};
|
|
719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
|
+
switch (errorCode) {
|
|
721
|
+
case "InvalidParameterCombinationException":
|
|
722
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
723
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
724
|
+
case "InvalidParameterValueException":
|
|
725
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
726
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
727
|
+
case "ParameterGroupNotFoundFault":
|
|
728
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
729
|
+
throw await deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
730
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
731
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
732
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
733
|
+
default:
|
|
734
|
+
const parsedBody = parsedOutput.body;
|
|
735
|
+
throwDefaultError({
|
|
736
|
+
output,
|
|
737
|
+
parsedBody,
|
|
738
|
+
exceptionCtor: __BaseException,
|
|
739
|
+
errorCode,
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
};
|
|
743
|
+
export const deserializeAws_json1_1DescribeSubnetGroupsCommand = async (output, context) => {
|
|
744
|
+
if (output.statusCode >= 300) {
|
|
745
|
+
return deserializeAws_json1_1DescribeSubnetGroupsCommandError(output, context);
|
|
746
|
+
}
|
|
747
|
+
const data = await parseBody(output.body, context);
|
|
748
|
+
let contents = {};
|
|
749
|
+
contents = deserializeAws_json1_1DescribeSubnetGroupsResponse(data, context);
|
|
750
|
+
const response = {
|
|
751
|
+
$metadata: deserializeMetadata(output),
|
|
752
|
+
...contents,
|
|
753
|
+
};
|
|
754
|
+
return Promise.resolve(response);
|
|
755
|
+
};
|
|
756
|
+
const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, context) => {
|
|
757
|
+
const parsedOutput = {
|
|
758
|
+
...output,
|
|
759
|
+
body: await parseErrorBody(output.body, context),
|
|
760
|
+
};
|
|
761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
|
+
switch (errorCode) {
|
|
763
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
764
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
765
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
766
|
+
case "SubnetGroupNotFoundFault":
|
|
767
|
+
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
768
|
+
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
769
|
+
default:
|
|
770
|
+
const parsedBody = parsedOutput.body;
|
|
771
|
+
throwDefaultError({
|
|
772
|
+
output,
|
|
773
|
+
parsedBody,
|
|
774
|
+
exceptionCtor: __BaseException,
|
|
775
|
+
errorCode,
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
export const deserializeAws_json1_1IncreaseReplicationFactorCommand = async (output, context) => {
|
|
780
|
+
if (output.statusCode >= 300) {
|
|
781
|
+
return deserializeAws_json1_1IncreaseReplicationFactorCommandError(output, context);
|
|
782
|
+
}
|
|
783
|
+
const data = await parseBody(output.body, context);
|
|
784
|
+
let contents = {};
|
|
785
|
+
contents = deserializeAws_json1_1IncreaseReplicationFactorResponse(data, context);
|
|
786
|
+
const response = {
|
|
787
|
+
$metadata: deserializeMetadata(output),
|
|
788
|
+
...contents,
|
|
789
|
+
};
|
|
790
|
+
return Promise.resolve(response);
|
|
791
|
+
};
|
|
792
|
+
const deserializeAws_json1_1IncreaseReplicationFactorCommandError = async (output, context) => {
|
|
793
|
+
const parsedOutput = {
|
|
794
|
+
...output,
|
|
795
|
+
body: await parseErrorBody(output.body, context),
|
|
796
|
+
};
|
|
797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
switch (errorCode) {
|
|
799
|
+
case "ClusterNotFoundFault":
|
|
800
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
801
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
802
|
+
case "InsufficientClusterCapacityFault":
|
|
803
|
+
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
804
|
+
throw await deserializeAws_json1_1InsufficientClusterCapacityFaultResponse(parsedOutput, context);
|
|
805
|
+
case "InvalidClusterStateFault":
|
|
806
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
807
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
808
|
+
case "InvalidParameterCombinationException":
|
|
809
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
810
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
811
|
+
case "InvalidParameterValueException":
|
|
812
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
813
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
814
|
+
case "InvalidVPCNetworkStateFault":
|
|
815
|
+
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
816
|
+
throw await deserializeAws_json1_1InvalidVPCNetworkStateFaultResponse(parsedOutput, context);
|
|
817
|
+
case "NodeQuotaForClusterExceededFault":
|
|
818
|
+
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
819
|
+
throw await deserializeAws_json1_1NodeQuotaForClusterExceededFaultResponse(parsedOutput, context);
|
|
820
|
+
case "NodeQuotaForCustomerExceededFault":
|
|
821
|
+
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
822
|
+
throw await deserializeAws_json1_1NodeQuotaForCustomerExceededFaultResponse(parsedOutput, context);
|
|
823
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
824
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
825
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
826
|
+
default:
|
|
827
|
+
const parsedBody = parsedOutput.body;
|
|
828
|
+
throwDefaultError({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
exceptionCtor: __BaseException,
|
|
832
|
+
errorCode,
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
export const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
837
|
+
if (output.statusCode >= 300) {
|
|
838
|
+
return deserializeAws_json1_1ListTagsCommandError(output, context);
|
|
839
|
+
}
|
|
840
|
+
const data = await parseBody(output.body, context);
|
|
841
|
+
let contents = {};
|
|
842
|
+
contents = deserializeAws_json1_1ListTagsResponse(data, context);
|
|
843
|
+
const response = {
|
|
844
|
+
$metadata: deserializeMetadata(output),
|
|
845
|
+
...contents,
|
|
846
|
+
};
|
|
847
|
+
return Promise.resolve(response);
|
|
848
|
+
};
|
|
849
|
+
const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
850
|
+
const parsedOutput = {
|
|
851
|
+
...output,
|
|
852
|
+
body: await parseErrorBody(output.body, context),
|
|
853
|
+
};
|
|
854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
+
switch (errorCode) {
|
|
856
|
+
case "ClusterNotFoundFault":
|
|
857
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
858
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
859
|
+
case "InvalidARNFault":
|
|
860
|
+
case "com.amazonaws.dax#InvalidARNFault":
|
|
861
|
+
throw await deserializeAws_json1_1InvalidARNFaultResponse(parsedOutput, context);
|
|
862
|
+
case "InvalidClusterStateFault":
|
|
863
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
864
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
865
|
+
case "InvalidParameterCombinationException":
|
|
866
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
867
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
868
|
+
case "InvalidParameterValueException":
|
|
869
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
870
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
871
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
872
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
873
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
874
|
+
default:
|
|
875
|
+
const parsedBody = parsedOutput.body;
|
|
876
|
+
throwDefaultError({
|
|
877
|
+
output,
|
|
878
|
+
parsedBody,
|
|
879
|
+
exceptionCtor: __BaseException,
|
|
880
|
+
errorCode,
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
export const deserializeAws_json1_1RebootNodeCommand = async (output, context) => {
|
|
885
|
+
if (output.statusCode >= 300) {
|
|
886
|
+
return deserializeAws_json1_1RebootNodeCommandError(output, context);
|
|
887
|
+
}
|
|
888
|
+
const data = await parseBody(output.body, context);
|
|
889
|
+
let contents = {};
|
|
890
|
+
contents = deserializeAws_json1_1RebootNodeResponse(data, context);
|
|
891
|
+
const response = {
|
|
892
|
+
$metadata: deserializeMetadata(output),
|
|
893
|
+
...contents,
|
|
894
|
+
};
|
|
895
|
+
return Promise.resolve(response);
|
|
896
|
+
};
|
|
897
|
+
const deserializeAws_json1_1RebootNodeCommandError = async (output, context) => {
|
|
898
|
+
const parsedOutput = {
|
|
899
|
+
...output,
|
|
900
|
+
body: await parseErrorBody(output.body, context),
|
|
901
|
+
};
|
|
902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
|
+
switch (errorCode) {
|
|
904
|
+
case "ClusterNotFoundFault":
|
|
905
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
906
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
907
|
+
case "InvalidClusterStateFault":
|
|
908
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
909
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
910
|
+
case "InvalidParameterCombinationException":
|
|
911
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
912
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
913
|
+
case "InvalidParameterValueException":
|
|
914
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
915
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
916
|
+
case "NodeNotFoundFault":
|
|
917
|
+
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
918
|
+
throw await deserializeAws_json1_1NodeNotFoundFaultResponse(parsedOutput, context);
|
|
919
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
920
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
921
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
922
|
+
default:
|
|
923
|
+
const parsedBody = parsedOutput.body;
|
|
924
|
+
throwDefaultError({
|
|
925
|
+
output,
|
|
926
|
+
parsedBody,
|
|
927
|
+
exceptionCtor: __BaseException,
|
|
928
|
+
errorCode,
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
933
|
+
if (output.statusCode >= 300) {
|
|
934
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
935
|
+
}
|
|
936
|
+
const data = await parseBody(output.body, context);
|
|
937
|
+
let contents = {};
|
|
938
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
939
|
+
const response = {
|
|
940
|
+
$metadata: deserializeMetadata(output),
|
|
941
|
+
...contents,
|
|
942
|
+
};
|
|
943
|
+
return Promise.resolve(response);
|
|
944
|
+
};
|
|
945
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
946
|
+
const parsedOutput = {
|
|
947
|
+
...output,
|
|
948
|
+
body: await parseErrorBody(output.body, context),
|
|
949
|
+
};
|
|
950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
+
switch (errorCode) {
|
|
952
|
+
case "ClusterNotFoundFault":
|
|
953
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
954
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
955
|
+
case "InvalidARNFault":
|
|
956
|
+
case "com.amazonaws.dax#InvalidARNFault":
|
|
957
|
+
throw await deserializeAws_json1_1InvalidARNFaultResponse(parsedOutput, context);
|
|
958
|
+
case "InvalidClusterStateFault":
|
|
959
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
960
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
961
|
+
case "InvalidParameterCombinationException":
|
|
962
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
963
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
964
|
+
case "InvalidParameterValueException":
|
|
965
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
966
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
967
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
968
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
969
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
970
|
+
case "TagQuotaPerResourceExceeded":
|
|
971
|
+
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
972
|
+
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
973
|
+
default:
|
|
974
|
+
const parsedBody = parsedOutput.body;
|
|
975
|
+
throwDefaultError({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
exceptionCtor: __BaseException,
|
|
979
|
+
errorCode,
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
984
|
+
if (output.statusCode >= 300) {
|
|
985
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
const data = await parseBody(output.body, context);
|
|
988
|
+
let contents = {};
|
|
989
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
990
|
+
const response = {
|
|
991
|
+
$metadata: deserializeMetadata(output),
|
|
992
|
+
...contents,
|
|
993
|
+
};
|
|
994
|
+
return Promise.resolve(response);
|
|
995
|
+
};
|
|
996
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
997
|
+
const parsedOutput = {
|
|
998
|
+
...output,
|
|
999
|
+
body: await parseErrorBody(output.body, context),
|
|
1000
|
+
};
|
|
1001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
+
switch (errorCode) {
|
|
1003
|
+
case "ClusterNotFoundFault":
|
|
1004
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1005
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
1006
|
+
case "InvalidARNFault":
|
|
1007
|
+
case "com.amazonaws.dax#InvalidARNFault":
|
|
1008
|
+
throw await deserializeAws_json1_1InvalidARNFaultResponse(parsedOutput, context);
|
|
1009
|
+
case "InvalidClusterStateFault":
|
|
1010
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1011
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
1012
|
+
case "InvalidParameterCombinationException":
|
|
1013
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1014
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1015
|
+
case "InvalidParameterValueException":
|
|
1016
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1017
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1018
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1019
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1020
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1021
|
+
case "TagNotFoundFault":
|
|
1022
|
+
case "com.amazonaws.dax#TagNotFoundFault":
|
|
1023
|
+
throw await deserializeAws_json1_1TagNotFoundFaultResponse(parsedOutput, context);
|
|
1024
|
+
default:
|
|
1025
|
+
const parsedBody = parsedOutput.body;
|
|
1026
|
+
throwDefaultError({
|
|
1027
|
+
output,
|
|
1028
|
+
parsedBody,
|
|
1029
|
+
exceptionCtor: __BaseException,
|
|
1030
|
+
errorCode,
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
export const deserializeAws_json1_1UpdateClusterCommand = async (output, context) => {
|
|
1035
|
+
if (output.statusCode >= 300) {
|
|
1036
|
+
return deserializeAws_json1_1UpdateClusterCommandError(output, context);
|
|
1037
|
+
}
|
|
1038
|
+
const data = await parseBody(output.body, context);
|
|
1039
|
+
let contents = {};
|
|
1040
|
+
contents = deserializeAws_json1_1UpdateClusterResponse(data, context);
|
|
1041
|
+
const response = {
|
|
1042
|
+
$metadata: deserializeMetadata(output),
|
|
1043
|
+
...contents,
|
|
1044
|
+
};
|
|
1045
|
+
return Promise.resolve(response);
|
|
1046
|
+
};
|
|
1047
|
+
const deserializeAws_json1_1UpdateClusterCommandError = async (output, context) => {
|
|
1048
|
+
const parsedOutput = {
|
|
1049
|
+
...output,
|
|
1050
|
+
body: await parseErrorBody(output.body, context),
|
|
1051
|
+
};
|
|
1052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
+
switch (errorCode) {
|
|
1054
|
+
case "ClusterNotFoundFault":
|
|
1055
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1056
|
+
throw await deserializeAws_json1_1ClusterNotFoundFaultResponse(parsedOutput, context);
|
|
1057
|
+
case "InvalidClusterStateFault":
|
|
1058
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1059
|
+
throw await deserializeAws_json1_1InvalidClusterStateFaultResponse(parsedOutput, context);
|
|
1060
|
+
case "InvalidParameterCombinationException":
|
|
1061
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1062
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1063
|
+
case "InvalidParameterGroupStateFault":
|
|
1064
|
+
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1065
|
+
throw await deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context);
|
|
1066
|
+
case "InvalidParameterValueException":
|
|
1067
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1068
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1069
|
+
case "ParameterGroupNotFoundFault":
|
|
1070
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1071
|
+
throw await deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1072
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1073
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1074
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1075
|
+
default:
|
|
1076
|
+
const parsedBody = parsedOutput.body;
|
|
1077
|
+
throwDefaultError({
|
|
1078
|
+
output,
|
|
1079
|
+
parsedBody,
|
|
1080
|
+
exceptionCtor: __BaseException,
|
|
1081
|
+
errorCode,
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
export const deserializeAws_json1_1UpdateParameterGroupCommand = async (output, context) => {
|
|
1086
|
+
if (output.statusCode >= 300) {
|
|
1087
|
+
return deserializeAws_json1_1UpdateParameterGroupCommandError(output, context);
|
|
1088
|
+
}
|
|
1089
|
+
const data = await parseBody(output.body, context);
|
|
1090
|
+
let contents = {};
|
|
1091
|
+
contents = deserializeAws_json1_1UpdateParameterGroupResponse(data, context);
|
|
1092
|
+
const response = {
|
|
1093
|
+
$metadata: deserializeMetadata(output),
|
|
1094
|
+
...contents,
|
|
1095
|
+
};
|
|
1096
|
+
return Promise.resolve(response);
|
|
1097
|
+
};
|
|
1098
|
+
const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, context) => {
|
|
1099
|
+
const parsedOutput = {
|
|
1100
|
+
...output,
|
|
1101
|
+
body: await parseErrorBody(output.body, context),
|
|
1102
|
+
};
|
|
1103
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
+
switch (errorCode) {
|
|
1105
|
+
case "InvalidParameterCombinationException":
|
|
1106
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1107
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1108
|
+
case "InvalidParameterGroupStateFault":
|
|
1109
|
+
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1110
|
+
throw await deserializeAws_json1_1InvalidParameterGroupStateFaultResponse(parsedOutput, context);
|
|
1111
|
+
case "InvalidParameterValueException":
|
|
1112
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1113
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1114
|
+
case "ParameterGroupNotFoundFault":
|
|
1115
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1116
|
+
throw await deserializeAws_json1_1ParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1117
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1118
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1119
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1120
|
+
default:
|
|
1121
|
+
const parsedBody = parsedOutput.body;
|
|
1122
|
+
throwDefaultError({
|
|
1123
|
+
output,
|
|
1124
|
+
parsedBody,
|
|
1125
|
+
exceptionCtor: __BaseException,
|
|
1126
|
+
errorCode,
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
};
|
|
1130
|
+
export const deserializeAws_json1_1UpdateSubnetGroupCommand = async (output, context) => {
|
|
1131
|
+
if (output.statusCode >= 300) {
|
|
1132
|
+
return deserializeAws_json1_1UpdateSubnetGroupCommandError(output, context);
|
|
1133
|
+
}
|
|
1134
|
+
const data = await parseBody(output.body, context);
|
|
1135
|
+
let contents = {};
|
|
1136
|
+
contents = deserializeAws_json1_1UpdateSubnetGroupResponse(data, context);
|
|
1137
|
+
const response = {
|
|
1138
|
+
$metadata: deserializeMetadata(output),
|
|
1139
|
+
...contents,
|
|
1140
|
+
};
|
|
1141
|
+
return Promise.resolve(response);
|
|
1142
|
+
};
|
|
1143
|
+
const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, context) => {
|
|
1144
|
+
const parsedOutput = {
|
|
1145
|
+
...output,
|
|
1146
|
+
body: await parseErrorBody(output.body, context),
|
|
1147
|
+
};
|
|
1148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
+
switch (errorCode) {
|
|
1150
|
+
case "InvalidSubnet":
|
|
1151
|
+
case "com.amazonaws.dax#InvalidSubnet":
|
|
1152
|
+
throw await deserializeAws_json1_1InvalidSubnetResponse(parsedOutput, context);
|
|
1153
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1154
|
+
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1155
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1156
|
+
case "SubnetGroupNotFoundFault":
|
|
1157
|
+
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
1158
|
+
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1159
|
+
case "SubnetInUse":
|
|
1160
|
+
case "com.amazonaws.dax#SubnetInUse":
|
|
1161
|
+
throw await deserializeAws_json1_1SubnetInUseResponse(parsedOutput, context);
|
|
1162
|
+
case "SubnetQuotaExceededFault":
|
|
1163
|
+
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
1164
|
+
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
1165
|
+
default:
|
|
1166
|
+
const parsedBody = parsedOutput.body;
|
|
1167
|
+
throwDefaultError({
|
|
1168
|
+
output,
|
|
1169
|
+
parsedBody,
|
|
1170
|
+
exceptionCtor: __BaseException,
|
|
1171
|
+
errorCode,
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
const deserializeAws_json1_1ClusterAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
1176
|
+
const body = parsedOutput.body;
|
|
1177
|
+
const deserialized = deserializeAws_json1_1ClusterAlreadyExistsFault(body, context);
|
|
1178
|
+
const exception = new ClusterAlreadyExistsFault({
|
|
1179
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1180
|
+
...deserialized,
|
|
1181
|
+
});
|
|
1182
|
+
return __decorateServiceException(exception, body);
|
|
1183
|
+
};
|
|
1184
|
+
const deserializeAws_json1_1ClusterNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
1185
|
+
const body = parsedOutput.body;
|
|
1186
|
+
const deserialized = deserializeAws_json1_1ClusterNotFoundFault(body, context);
|
|
1187
|
+
const exception = new ClusterNotFoundFault({
|
|
1188
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
|
+
...deserialized,
|
|
1190
|
+
});
|
|
1191
|
+
return __decorateServiceException(exception, body);
|
|
1192
|
+
};
|
|
1193
|
+
const deserializeAws_json1_1ClusterQuotaForCustomerExceededFaultResponse = async (parsedOutput, context) => {
|
|
1194
|
+
const body = parsedOutput.body;
|
|
1195
|
+
const deserialized = deserializeAws_json1_1ClusterQuotaForCustomerExceededFault(body, context);
|
|
1196
|
+
const exception = new ClusterQuotaForCustomerExceededFault({
|
|
1197
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1198
|
+
...deserialized,
|
|
1199
|
+
});
|
|
1200
|
+
return __decorateServiceException(exception, body);
|
|
1201
|
+
};
|
|
1202
|
+
const deserializeAws_json1_1InsufficientClusterCapacityFaultResponse = async (parsedOutput, context) => {
|
|
1203
|
+
const body = parsedOutput.body;
|
|
1204
|
+
const deserialized = deserializeAws_json1_1InsufficientClusterCapacityFault(body, context);
|
|
1205
|
+
const exception = new InsufficientClusterCapacityFault({
|
|
1206
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
|
+
...deserialized,
|
|
1208
|
+
});
|
|
1209
|
+
return __decorateServiceException(exception, body);
|
|
1210
|
+
};
|
|
1211
|
+
const deserializeAws_json1_1InvalidARNFaultResponse = async (parsedOutput, context) => {
|
|
1212
|
+
const body = parsedOutput.body;
|
|
1213
|
+
const deserialized = deserializeAws_json1_1InvalidARNFault(body, context);
|
|
1214
|
+
const exception = new InvalidARNFault({
|
|
1215
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1216
|
+
...deserialized,
|
|
1217
|
+
});
|
|
1218
|
+
return __decorateServiceException(exception, body);
|
|
1219
|
+
};
|
|
1220
|
+
const deserializeAws_json1_1InvalidClusterStateFaultResponse = async (parsedOutput, context) => {
|
|
1221
|
+
const body = parsedOutput.body;
|
|
1222
|
+
const deserialized = deserializeAws_json1_1InvalidClusterStateFault(body, context);
|
|
1223
|
+
const exception = new InvalidClusterStateFault({
|
|
1224
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
|
+
...deserialized,
|
|
1226
|
+
});
|
|
1227
|
+
return __decorateServiceException(exception, body);
|
|
1228
|
+
};
|
|
1229
|
+
const deserializeAws_json1_1InvalidParameterCombinationExceptionResponse = async (parsedOutput, context) => {
|
|
1230
|
+
const body = parsedOutput.body;
|
|
1231
|
+
const deserialized = deserializeAws_json1_1InvalidParameterCombinationException(body, context);
|
|
1232
|
+
const exception = new InvalidParameterCombinationException({
|
|
1233
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1234
|
+
...deserialized,
|
|
1235
|
+
});
|
|
1236
|
+
return __decorateServiceException(exception, body);
|
|
1237
|
+
};
|
|
1238
|
+
const deserializeAws_json1_1InvalidParameterGroupStateFaultResponse = async (parsedOutput, context) => {
|
|
1239
|
+
const body = parsedOutput.body;
|
|
1240
|
+
const deserialized = deserializeAws_json1_1InvalidParameterGroupStateFault(body, context);
|
|
1241
|
+
const exception = new InvalidParameterGroupStateFault({
|
|
1242
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1243
|
+
...deserialized,
|
|
1244
|
+
});
|
|
1245
|
+
return __decorateServiceException(exception, body);
|
|
1246
|
+
};
|
|
1247
|
+
const deserializeAws_json1_1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
1248
|
+
const body = parsedOutput.body;
|
|
1249
|
+
const deserialized = deserializeAws_json1_1InvalidParameterValueException(body, context);
|
|
1250
|
+
const exception = new InvalidParameterValueException({
|
|
1251
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
|
+
...deserialized,
|
|
1253
|
+
});
|
|
1254
|
+
return __decorateServiceException(exception, body);
|
|
1255
|
+
};
|
|
1256
|
+
const deserializeAws_json1_1InvalidSubnetResponse = async (parsedOutput, context) => {
|
|
1257
|
+
const body = parsedOutput.body;
|
|
1258
|
+
const deserialized = deserializeAws_json1_1InvalidSubnet(body, context);
|
|
1259
|
+
const exception = new InvalidSubnet({
|
|
1260
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1261
|
+
...deserialized,
|
|
1262
|
+
});
|
|
1263
|
+
return __decorateServiceException(exception, body);
|
|
1264
|
+
};
|
|
1265
|
+
const deserializeAws_json1_1InvalidVPCNetworkStateFaultResponse = async (parsedOutput, context) => {
|
|
1266
|
+
const body = parsedOutput.body;
|
|
1267
|
+
const deserialized = deserializeAws_json1_1InvalidVPCNetworkStateFault(body, context);
|
|
1268
|
+
const exception = new InvalidVPCNetworkStateFault({
|
|
1269
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1270
|
+
...deserialized,
|
|
1271
|
+
});
|
|
1272
|
+
return __decorateServiceException(exception, body);
|
|
1273
|
+
};
|
|
1274
|
+
const deserializeAws_json1_1NodeNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
1275
|
+
const body = parsedOutput.body;
|
|
1276
|
+
const deserialized = deserializeAws_json1_1NodeNotFoundFault(body, context);
|
|
1277
|
+
const exception = new NodeNotFoundFault({
|
|
1278
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1279
|
+
...deserialized,
|
|
1280
|
+
});
|
|
1281
|
+
return __decorateServiceException(exception, body);
|
|
1282
|
+
};
|
|
1283
|
+
const deserializeAws_json1_1NodeQuotaForClusterExceededFaultResponse = async (parsedOutput, context) => {
|
|
1284
|
+
const body = parsedOutput.body;
|
|
1285
|
+
const deserialized = deserializeAws_json1_1NodeQuotaForClusterExceededFault(body, context);
|
|
1286
|
+
const exception = new NodeQuotaForClusterExceededFault({
|
|
1287
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1288
|
+
...deserialized,
|
|
1289
|
+
});
|
|
1290
|
+
return __decorateServiceException(exception, body);
|
|
1291
|
+
};
|
|
1292
|
+
const deserializeAws_json1_1NodeQuotaForCustomerExceededFaultResponse = async (parsedOutput, context) => {
|
|
1293
|
+
const body = parsedOutput.body;
|
|
1294
|
+
const deserialized = deserializeAws_json1_1NodeQuotaForCustomerExceededFault(body, context);
|
|
1295
|
+
const exception = new NodeQuotaForCustomerExceededFault({
|
|
1296
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1297
|
+
...deserialized,
|
|
1298
|
+
});
|
|
1299
|
+
return __decorateServiceException(exception, body);
|
|
1300
|
+
};
|
|
1301
|
+
const deserializeAws_json1_1ParameterGroupAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
1302
|
+
const body = parsedOutput.body;
|
|
1303
|
+
const deserialized = deserializeAws_json1_1ParameterGroupAlreadyExistsFault(body, context);
|
|
1304
|
+
const exception = new ParameterGroupAlreadyExistsFault({
|
|
1305
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1306
|
+
...deserialized,
|
|
1307
|
+
});
|
|
1308
|
+
return __decorateServiceException(exception, body);
|
|
1309
|
+
};
|
|
1310
|
+
const deserializeAws_json1_1ParameterGroupNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
1311
|
+
const body = parsedOutput.body;
|
|
1312
|
+
const deserialized = deserializeAws_json1_1ParameterGroupNotFoundFault(body, context);
|
|
1313
|
+
const exception = new ParameterGroupNotFoundFault({
|
|
1314
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1315
|
+
...deserialized,
|
|
1316
|
+
});
|
|
1317
|
+
return __decorateServiceException(exception, body);
|
|
1318
|
+
};
|
|
1319
|
+
const deserializeAws_json1_1ParameterGroupQuotaExceededFaultResponse = async (parsedOutput, context) => {
|
|
1320
|
+
const body = parsedOutput.body;
|
|
1321
|
+
const deserialized = deserializeAws_json1_1ParameterGroupQuotaExceededFault(body, context);
|
|
1322
|
+
const exception = new ParameterGroupQuotaExceededFault({
|
|
1323
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1324
|
+
...deserialized,
|
|
1325
|
+
});
|
|
1326
|
+
return __decorateServiceException(exception, body);
|
|
1327
|
+
};
|
|
1328
|
+
const deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
1329
|
+
const body = parsedOutput.body;
|
|
1330
|
+
const deserialized = deserializeAws_json1_1ServiceLinkedRoleNotFoundFault(body, context);
|
|
1331
|
+
const exception = new ServiceLinkedRoleNotFoundFault({
|
|
1332
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1333
|
+
...deserialized,
|
|
1334
|
+
});
|
|
1335
|
+
return __decorateServiceException(exception, body);
|
|
1336
|
+
};
|
|
1337
|
+
const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1338
|
+
const body = parsedOutput.body;
|
|
1339
|
+
const deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
1340
|
+
const exception = new ServiceQuotaExceededException({
|
|
1341
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
|
+
...deserialized,
|
|
1343
|
+
});
|
|
1344
|
+
return __decorateServiceException(exception, body);
|
|
1345
|
+
};
|
|
1346
|
+
const deserializeAws_json1_1SubnetGroupAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
1347
|
+
const body = parsedOutput.body;
|
|
1348
|
+
const deserialized = deserializeAws_json1_1SubnetGroupAlreadyExistsFault(body, context);
|
|
1349
|
+
const exception = new SubnetGroupAlreadyExistsFault({
|
|
1350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1351
|
+
...deserialized,
|
|
1352
|
+
});
|
|
1353
|
+
return __decorateServiceException(exception, body);
|
|
1354
|
+
};
|
|
1355
|
+
const deserializeAws_json1_1SubnetGroupInUseFaultResponse = async (parsedOutput, context) => {
|
|
1356
|
+
const body = parsedOutput.body;
|
|
1357
|
+
const deserialized = deserializeAws_json1_1SubnetGroupInUseFault(body, context);
|
|
1358
|
+
const exception = new SubnetGroupInUseFault({
|
|
1359
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1360
|
+
...deserialized,
|
|
1361
|
+
});
|
|
1362
|
+
return __decorateServiceException(exception, body);
|
|
1363
|
+
};
|
|
1364
|
+
const deserializeAws_json1_1SubnetGroupNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
1365
|
+
const body = parsedOutput.body;
|
|
1366
|
+
const deserialized = deserializeAws_json1_1SubnetGroupNotFoundFault(body, context);
|
|
1367
|
+
const exception = new SubnetGroupNotFoundFault({
|
|
1368
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1369
|
+
...deserialized,
|
|
1370
|
+
});
|
|
1371
|
+
return __decorateServiceException(exception, body);
|
|
1372
|
+
};
|
|
1373
|
+
const deserializeAws_json1_1SubnetGroupQuotaExceededFaultResponse = async (parsedOutput, context) => {
|
|
1374
|
+
const body = parsedOutput.body;
|
|
1375
|
+
const deserialized = deserializeAws_json1_1SubnetGroupQuotaExceededFault(body, context);
|
|
1376
|
+
const exception = new SubnetGroupQuotaExceededFault({
|
|
1377
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1378
|
+
...deserialized,
|
|
1379
|
+
});
|
|
1380
|
+
return __decorateServiceException(exception, body);
|
|
1381
|
+
};
|
|
1382
|
+
const deserializeAws_json1_1SubnetInUseResponse = async (parsedOutput, context) => {
|
|
1383
|
+
const body = parsedOutput.body;
|
|
1384
|
+
const deserialized = deserializeAws_json1_1SubnetInUse(body, context);
|
|
1385
|
+
const exception = new SubnetInUse({
|
|
1386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1387
|
+
...deserialized,
|
|
1388
|
+
});
|
|
1389
|
+
return __decorateServiceException(exception, body);
|
|
1390
|
+
};
|
|
1391
|
+
const deserializeAws_json1_1SubnetQuotaExceededFaultResponse = async (parsedOutput, context) => {
|
|
1392
|
+
const body = parsedOutput.body;
|
|
1393
|
+
const deserialized = deserializeAws_json1_1SubnetQuotaExceededFault(body, context);
|
|
1394
|
+
const exception = new SubnetQuotaExceededFault({
|
|
1395
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1396
|
+
...deserialized,
|
|
1397
|
+
});
|
|
1398
|
+
return __decorateServiceException(exception, body);
|
|
1399
|
+
};
|
|
1400
|
+
const deserializeAws_json1_1TagNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
1401
|
+
const body = parsedOutput.body;
|
|
1402
|
+
const deserialized = deserializeAws_json1_1TagNotFoundFault(body, context);
|
|
1403
|
+
const exception = new TagNotFoundFault({
|
|
1404
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1405
|
+
...deserialized,
|
|
1406
|
+
});
|
|
1407
|
+
return __decorateServiceException(exception, body);
|
|
1408
|
+
};
|
|
1409
|
+
const deserializeAws_json1_1TagQuotaPerResourceExceededResponse = async (parsedOutput, context) => {
|
|
1410
|
+
const body = parsedOutput.body;
|
|
1411
|
+
const deserialized = deserializeAws_json1_1TagQuotaPerResourceExceeded(body, context);
|
|
1412
|
+
const exception = new TagQuotaPerResourceExceeded({
|
|
1413
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1414
|
+
...deserialized,
|
|
1415
|
+
});
|
|
1416
|
+
return __decorateServiceException(exception, body);
|
|
1417
|
+
};
|
|
1418
|
+
const serializeAws_json1_1AvailabilityZoneList = (input, context) => {
|
|
1936
1419
|
return input
|
|
1937
|
-
.filter(
|
|
1938
|
-
.map(
|
|
1420
|
+
.filter((e) => e != null)
|
|
1421
|
+
.map((entry) => {
|
|
1939
1422
|
return entry;
|
|
1940
1423
|
});
|
|
1941
1424
|
};
|
|
1942
|
-
|
|
1425
|
+
const serializeAws_json1_1ClusterNameList = (input, context) => {
|
|
1943
1426
|
return input
|
|
1944
|
-
.filter(
|
|
1945
|
-
.map(
|
|
1427
|
+
.filter((e) => e != null)
|
|
1428
|
+
.map((entry) => {
|
|
1946
1429
|
return entry;
|
|
1947
1430
|
});
|
|
1948
1431
|
};
|
|
1949
|
-
|
|
1950
|
-
return
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
1432
|
+
const serializeAws_json1_1CreateClusterRequest = (input, context) => {
|
|
1433
|
+
return {
|
|
1434
|
+
...(input.AvailabilityZones != null && {
|
|
1435
|
+
AvailabilityZones: serializeAws_json1_1AvailabilityZoneList(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 && {
|
|
1449
|
+
SSESpecification: serializeAws_json1_1SSESpecification(input.SSESpecification, context),
|
|
1450
|
+
}),
|
|
1451
|
+
...(input.SecurityGroupIds != null && {
|
|
1452
|
+
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdentifierList(input.SecurityGroupIds, context),
|
|
1453
|
+
}),
|
|
1454
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1455
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
const serializeAws_json1_1CreateParameterGroupRequest = (input, context) => {
|
|
1459
|
+
return {
|
|
1460
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1461
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
const serializeAws_json1_1CreateSubnetGroupRequest = (input, context) => {
|
|
1465
|
+
return {
|
|
1466
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1467
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1468
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
const serializeAws_json1_1DecreaseReplicationFactorRequest = (input, context) => {
|
|
1472
|
+
return {
|
|
1473
|
+
...(input.AvailabilityZones != null && {
|
|
1474
|
+
AvailabilityZones: serializeAws_json1_1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
1475
|
+
}),
|
|
1476
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1477
|
+
...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
|
|
1478
|
+
...(input.NodeIdsToRemove != null && {
|
|
1479
|
+
NodeIdsToRemove: serializeAws_json1_1NodeIdentifierList(input.NodeIdsToRemove, context),
|
|
1480
|
+
}),
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
const serializeAws_json1_1DeleteClusterRequest = (input, context) => {
|
|
1484
|
+
return {
|
|
1485
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
const serializeAws_json1_1DeleteParameterGroupRequest = (input, context) => {
|
|
1489
|
+
return {
|
|
1490
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
const serializeAws_json1_1DeleteSubnetGroupRequest = (input, context) => {
|
|
1494
|
+
return {
|
|
1495
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
const serializeAws_json1_1DescribeClustersRequest = (input, context) => {
|
|
1499
|
+
return {
|
|
1500
|
+
...(input.ClusterNames != null && {
|
|
1501
|
+
ClusterNames: serializeAws_json1_1ClusterNameList(input.ClusterNames, context),
|
|
1502
|
+
}),
|
|
1503
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1504
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
const serializeAws_json1_1DescribeDefaultParametersRequest = (input, context) => {
|
|
1508
|
+
return {
|
|
1509
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1510
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
const serializeAws_json1_1DescribeEventsRequest = (input, context) => {
|
|
1514
|
+
return {
|
|
1515
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
1516
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1517
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1518
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1519
|
+
...(input.SourceName != null && { SourceName: input.SourceName }),
|
|
1520
|
+
...(input.SourceType != null && { SourceType: input.SourceType }),
|
|
1521
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
const serializeAws_json1_1DescribeParameterGroupsRequest = (input, context) => {
|
|
1525
|
+
return {
|
|
1526
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1527
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1528
|
+
...(input.ParameterGroupNames != null && {
|
|
1529
|
+
ParameterGroupNames: serializeAws_json1_1ParameterGroupNameList(input.ParameterGroupNames, context),
|
|
1530
|
+
}),
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
const serializeAws_json1_1DescribeParametersRequest = (input, context) => {
|
|
1534
|
+
return {
|
|
1535
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1536
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1537
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1538
|
+
...(input.Source != null && { Source: input.Source }),
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
const serializeAws_json1_1DescribeSubnetGroupsRequest = (input, context) => {
|
|
1542
|
+
return {
|
|
1543
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1544
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1545
|
+
...(input.SubnetGroupNames != null && {
|
|
1546
|
+
SubnetGroupNames: serializeAws_json1_1SubnetGroupNameList(input.SubnetGroupNames, context),
|
|
1547
|
+
}),
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
const serializeAws_json1_1IncreaseReplicationFactorRequest = (input, context) => {
|
|
1551
|
+
return {
|
|
1552
|
+
...(input.AvailabilityZones != null && {
|
|
1553
|
+
AvailabilityZones: serializeAws_json1_1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
1554
|
+
}),
|
|
1555
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1556
|
+
...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
const serializeAws_json1_1KeyList = (input, context) => {
|
|
2012
1560
|
return input
|
|
2013
|
-
.filter(
|
|
2014
|
-
.map(
|
|
1561
|
+
.filter((e) => e != null)
|
|
1562
|
+
.map((entry) => {
|
|
2015
1563
|
return entry;
|
|
2016
1564
|
});
|
|
2017
1565
|
};
|
|
2018
|
-
|
|
2019
|
-
return
|
|
1566
|
+
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
1567
|
+
return {
|
|
1568
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1569
|
+
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1570
|
+
};
|
|
2020
1571
|
};
|
|
2021
|
-
|
|
1572
|
+
const serializeAws_json1_1NodeIdentifierList = (input, context) => {
|
|
2022
1573
|
return input
|
|
2023
|
-
.filter(
|
|
2024
|
-
.map(
|
|
1574
|
+
.filter((e) => e != null)
|
|
1575
|
+
.map((entry) => {
|
|
2025
1576
|
return entry;
|
|
2026
1577
|
});
|
|
2027
1578
|
};
|
|
2028
|
-
|
|
1579
|
+
const serializeAws_json1_1ParameterGroupNameList = (input, context) => {
|
|
2029
1580
|
return input
|
|
2030
|
-
.filter(
|
|
2031
|
-
.map(
|
|
1581
|
+
.filter((e) => e != null)
|
|
1582
|
+
.map((entry) => {
|
|
2032
1583
|
return entry;
|
|
2033
1584
|
});
|
|
2034
1585
|
};
|
|
2035
|
-
|
|
2036
|
-
return
|
|
1586
|
+
const serializeAws_json1_1ParameterNameValue = (input, context) => {
|
|
1587
|
+
return {
|
|
1588
|
+
...(input.ParameterName != null && { ParameterName: input.ParameterName }),
|
|
1589
|
+
...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
|
|
1590
|
+
};
|
|
2037
1591
|
};
|
|
2038
|
-
|
|
1592
|
+
const serializeAws_json1_1ParameterNameValueList = (input, context) => {
|
|
2039
1593
|
return input
|
|
2040
|
-
.filter(
|
|
2041
|
-
.map(
|
|
1594
|
+
.filter((e) => e != null)
|
|
1595
|
+
.map((entry) => {
|
|
2042
1596
|
return serializeAws_json1_1ParameterNameValue(entry, context);
|
|
2043
1597
|
});
|
|
2044
1598
|
};
|
|
2045
|
-
|
|
2046
|
-
return
|
|
1599
|
+
const serializeAws_json1_1RebootNodeRequest = (input, context) => {
|
|
1600
|
+
return {
|
|
1601
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1602
|
+
...(input.NodeId != null && { NodeId: input.NodeId }),
|
|
1603
|
+
};
|
|
2047
1604
|
};
|
|
2048
|
-
|
|
1605
|
+
const serializeAws_json1_1SecurityGroupIdentifierList = (input, context) => {
|
|
2049
1606
|
return input
|
|
2050
|
-
.filter(
|
|
2051
|
-
.map(
|
|
1607
|
+
.filter((e) => e != null)
|
|
1608
|
+
.map((entry) => {
|
|
2052
1609
|
return entry;
|
|
2053
1610
|
});
|
|
2054
1611
|
};
|
|
2055
|
-
|
|
2056
|
-
return
|
|
1612
|
+
const serializeAws_json1_1SSESpecification = (input, context) => {
|
|
1613
|
+
return {
|
|
1614
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1615
|
+
};
|
|
2057
1616
|
};
|
|
2058
|
-
|
|
1617
|
+
const serializeAws_json1_1SubnetGroupNameList = (input, context) => {
|
|
2059
1618
|
return input
|
|
2060
|
-
.filter(
|
|
2061
|
-
.map(
|
|
1619
|
+
.filter((e) => e != null)
|
|
1620
|
+
.map((entry) => {
|
|
2062
1621
|
return entry;
|
|
2063
1622
|
});
|
|
2064
1623
|
};
|
|
2065
|
-
|
|
1624
|
+
const serializeAws_json1_1SubnetIdentifierList = (input, context) => {
|
|
2066
1625
|
return input
|
|
2067
|
-
.filter(
|
|
2068
|
-
.map(
|
|
1626
|
+
.filter((e) => e != null)
|
|
1627
|
+
.map((entry) => {
|
|
2069
1628
|
return entry;
|
|
2070
1629
|
});
|
|
2071
1630
|
};
|
|
2072
|
-
|
|
2073
|
-
return
|
|
1631
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1632
|
+
return {
|
|
1633
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1634
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1635
|
+
};
|
|
2074
1636
|
};
|
|
2075
|
-
|
|
1637
|
+
const serializeAws_json1_1TagList = (input, context) => {
|
|
2076
1638
|
return input
|
|
2077
|
-
.filter(
|
|
2078
|
-
.map(
|
|
1639
|
+
.filter((e) => e != null)
|
|
1640
|
+
.map((entry) => {
|
|
2079
1641
|
return serializeAws_json1_1Tag(entry, context);
|
|
2080
1642
|
});
|
|
2081
1643
|
};
|
|
2082
|
-
|
|
2083
|
-
return
|
|
1644
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1645
|
+
return {
|
|
1646
|
+
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1647
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1648
|
+
};
|
|
2084
1649
|
};
|
|
2085
|
-
|
|
2086
|
-
return
|
|
1650
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1651
|
+
return {
|
|
1652
|
+
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1653
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }),
|
|
1654
|
+
};
|
|
2087
1655
|
};
|
|
2088
|
-
|
|
2089
|
-
return
|
|
2090
|
-
|
|
2091
|
-
|
|
1656
|
+
const serializeAws_json1_1UpdateClusterRequest = (input, context) => {
|
|
1657
|
+
return {
|
|
1658
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1659
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1660
|
+
...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
|
|
1661
|
+
...(input.NotificationTopicStatus != null && { NotificationTopicStatus: input.NotificationTopicStatus }),
|
|
1662
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1663
|
+
...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
|
|
1664
|
+
...(input.SecurityGroupIds != null && {
|
|
1665
|
+
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdentifierList(input.SecurityGroupIds, context),
|
|
1666
|
+
}),
|
|
1667
|
+
};
|
|
2092
1668
|
};
|
|
2093
|
-
|
|
2094
|
-
return
|
|
2095
|
-
|
|
2096
|
-
|
|
1669
|
+
const serializeAws_json1_1UpdateParameterGroupRequest = (input, context) => {
|
|
1670
|
+
return {
|
|
1671
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1672
|
+
...(input.ParameterNameValues != null && {
|
|
1673
|
+
ParameterNameValues: serializeAws_json1_1ParameterNameValueList(input.ParameterNameValues, context),
|
|
1674
|
+
}),
|
|
1675
|
+
};
|
|
2097
1676
|
};
|
|
2098
|
-
|
|
2099
|
-
return
|
|
1677
|
+
const serializeAws_json1_1UpdateSubnetGroupRequest = (input, context) => {
|
|
1678
|
+
return {
|
|
1679
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1680
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1681
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
1682
|
+
};
|
|
2100
1683
|
};
|
|
2101
|
-
|
|
1684
|
+
const deserializeAws_json1_1Cluster = (output, context) => {
|
|
2102
1685
|
return {
|
|
2103
1686
|
ActiveNodes: __expectInt32(output.ActiveNodes),
|
|
2104
1687
|
ClusterArn: __expectString(output.ClusterArn),
|
|
@@ -2130,15 +1713,15 @@ var deserializeAws_json1_1Cluster = function (output, context) {
|
|
|
2130
1713
|
TotalNodes: __expectInt32(output.TotalNodes),
|
|
2131
1714
|
};
|
|
2132
1715
|
};
|
|
2133
|
-
|
|
1716
|
+
const deserializeAws_json1_1ClusterAlreadyExistsFault = (output, context) => {
|
|
2134
1717
|
return {
|
|
2135
1718
|
message: __expectString(output.message),
|
|
2136
1719
|
};
|
|
2137
1720
|
};
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
.filter(
|
|
2141
|
-
.map(
|
|
1721
|
+
const deserializeAws_json1_1ClusterList = (output, context) => {
|
|
1722
|
+
const retVal = (output || [])
|
|
1723
|
+
.filter((e) => e != null)
|
|
1724
|
+
.map((entry) => {
|
|
2142
1725
|
if (entry === null) {
|
|
2143
1726
|
return null;
|
|
2144
1727
|
}
|
|
@@ -2146,70 +1729,70 @@ var deserializeAws_json1_1ClusterList = function (output, context) {
|
|
|
2146
1729
|
});
|
|
2147
1730
|
return retVal;
|
|
2148
1731
|
};
|
|
2149
|
-
|
|
1732
|
+
const deserializeAws_json1_1ClusterNotFoundFault = (output, context) => {
|
|
2150
1733
|
return {
|
|
2151
1734
|
message: __expectString(output.message),
|
|
2152
1735
|
};
|
|
2153
1736
|
};
|
|
2154
|
-
|
|
1737
|
+
const deserializeAws_json1_1ClusterQuotaForCustomerExceededFault = (output, context) => {
|
|
2155
1738
|
return {
|
|
2156
1739
|
message: __expectString(output.message),
|
|
2157
1740
|
};
|
|
2158
1741
|
};
|
|
2159
|
-
|
|
1742
|
+
const deserializeAws_json1_1CreateClusterResponse = (output, context) => {
|
|
2160
1743
|
return {
|
|
2161
1744
|
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2162
1745
|
};
|
|
2163
1746
|
};
|
|
2164
|
-
|
|
1747
|
+
const deserializeAws_json1_1CreateParameterGroupResponse = (output, context) => {
|
|
2165
1748
|
return {
|
|
2166
1749
|
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
2167
1750
|
};
|
|
2168
1751
|
};
|
|
2169
|
-
|
|
1752
|
+
const deserializeAws_json1_1CreateSubnetGroupResponse = (output, context) => {
|
|
2170
1753
|
return {
|
|
2171
1754
|
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
2172
1755
|
};
|
|
2173
1756
|
};
|
|
2174
|
-
|
|
1757
|
+
const deserializeAws_json1_1DecreaseReplicationFactorResponse = (output, context) => {
|
|
2175
1758
|
return {
|
|
2176
1759
|
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2177
1760
|
};
|
|
2178
1761
|
};
|
|
2179
|
-
|
|
1762
|
+
const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
|
|
2180
1763
|
return {
|
|
2181
1764
|
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2182
1765
|
};
|
|
2183
1766
|
};
|
|
2184
|
-
|
|
1767
|
+
const deserializeAws_json1_1DeleteParameterGroupResponse = (output, context) => {
|
|
2185
1768
|
return {
|
|
2186
1769
|
DeletionMessage: __expectString(output.DeletionMessage),
|
|
2187
1770
|
};
|
|
2188
1771
|
};
|
|
2189
|
-
|
|
1772
|
+
const deserializeAws_json1_1DeleteSubnetGroupResponse = (output, context) => {
|
|
2190
1773
|
return {
|
|
2191
1774
|
DeletionMessage: __expectString(output.DeletionMessage),
|
|
2192
1775
|
};
|
|
2193
1776
|
};
|
|
2194
|
-
|
|
1777
|
+
const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
|
|
2195
1778
|
return {
|
|
2196
1779
|
Clusters: output.Clusters != null ? deserializeAws_json1_1ClusterList(output.Clusters, context) : undefined,
|
|
2197
1780
|
NextToken: __expectString(output.NextToken),
|
|
2198
1781
|
};
|
|
2199
1782
|
};
|
|
2200
|
-
|
|
1783
|
+
const deserializeAws_json1_1DescribeDefaultParametersResponse = (output, context) => {
|
|
2201
1784
|
return {
|
|
2202
1785
|
NextToken: __expectString(output.NextToken),
|
|
2203
1786
|
Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined,
|
|
2204
1787
|
};
|
|
2205
1788
|
};
|
|
2206
|
-
|
|
1789
|
+
const deserializeAws_json1_1DescribeEventsResponse = (output, context) => {
|
|
2207
1790
|
return {
|
|
2208
1791
|
Events: output.Events != null ? deserializeAws_json1_1EventList(output.Events, context) : undefined,
|
|
2209
1792
|
NextToken: __expectString(output.NextToken),
|
|
2210
1793
|
};
|
|
2211
1794
|
};
|
|
2212
|
-
|
|
1795
|
+
const deserializeAws_json1_1DescribeParameterGroupsResponse = (output, context) => {
|
|
2213
1796
|
return {
|
|
2214
1797
|
NextToken: __expectString(output.NextToken),
|
|
2215
1798
|
ParameterGroups: output.ParameterGroups != null
|
|
@@ -2217,26 +1800,26 @@ var deserializeAws_json1_1DescribeParameterGroupsResponse = function (output, co
|
|
|
2217
1800
|
: undefined,
|
|
2218
1801
|
};
|
|
2219
1802
|
};
|
|
2220
|
-
|
|
1803
|
+
const deserializeAws_json1_1DescribeParametersResponse = (output, context) => {
|
|
2221
1804
|
return {
|
|
2222
1805
|
NextToken: __expectString(output.NextToken),
|
|
2223
1806
|
Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined,
|
|
2224
1807
|
};
|
|
2225
1808
|
};
|
|
2226
|
-
|
|
1809
|
+
const deserializeAws_json1_1DescribeSubnetGroupsResponse = (output, context) => {
|
|
2227
1810
|
return {
|
|
2228
1811
|
NextToken: __expectString(output.NextToken),
|
|
2229
1812
|
SubnetGroups: output.SubnetGroups != null ? deserializeAws_json1_1SubnetGroupList(output.SubnetGroups, context) : undefined,
|
|
2230
1813
|
};
|
|
2231
1814
|
};
|
|
2232
|
-
|
|
1815
|
+
const deserializeAws_json1_1Endpoint = (output, context) => {
|
|
2233
1816
|
return {
|
|
2234
1817
|
Address: __expectString(output.Address),
|
|
2235
1818
|
Port: __expectInt32(output.Port),
|
|
2236
1819
|
URL: __expectString(output.URL),
|
|
2237
1820
|
};
|
|
2238
1821
|
};
|
|
2239
|
-
|
|
1822
|
+
const deserializeAws_json1_1Event = (output, context) => {
|
|
2240
1823
|
return {
|
|
2241
1824
|
Date: output.Date != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date))) : undefined,
|
|
2242
1825
|
Message: __expectString(output.Message),
|
|
@@ -2244,10 +1827,10 @@ var deserializeAws_json1_1Event = function (output, context) {
|
|
|
2244
1827
|
SourceType: __expectString(output.SourceType),
|
|
2245
1828
|
};
|
|
2246
1829
|
};
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
.filter(
|
|
2250
|
-
.map(
|
|
1830
|
+
const deserializeAws_json1_1EventList = (output, context) => {
|
|
1831
|
+
const retVal = (output || [])
|
|
1832
|
+
.filter((e) => e != null)
|
|
1833
|
+
.map((entry) => {
|
|
2251
1834
|
if (entry === null) {
|
|
2252
1835
|
return null;
|
|
2253
1836
|
}
|
|
@@ -2255,58 +1838,58 @@ var deserializeAws_json1_1EventList = function (output, context) {
|
|
|
2255
1838
|
});
|
|
2256
1839
|
return retVal;
|
|
2257
1840
|
};
|
|
2258
|
-
|
|
1841
|
+
const deserializeAws_json1_1IncreaseReplicationFactorResponse = (output, context) => {
|
|
2259
1842
|
return {
|
|
2260
1843
|
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2261
1844
|
};
|
|
2262
1845
|
};
|
|
2263
|
-
|
|
1846
|
+
const deserializeAws_json1_1InsufficientClusterCapacityFault = (output, context) => {
|
|
2264
1847
|
return {
|
|
2265
1848
|
message: __expectString(output.message),
|
|
2266
1849
|
};
|
|
2267
1850
|
};
|
|
2268
|
-
|
|
1851
|
+
const deserializeAws_json1_1InvalidARNFault = (output, context) => {
|
|
2269
1852
|
return {
|
|
2270
1853
|
message: __expectString(output.message),
|
|
2271
1854
|
};
|
|
2272
1855
|
};
|
|
2273
|
-
|
|
1856
|
+
const deserializeAws_json1_1InvalidClusterStateFault = (output, context) => {
|
|
2274
1857
|
return {
|
|
2275
1858
|
message: __expectString(output.message),
|
|
2276
1859
|
};
|
|
2277
1860
|
};
|
|
2278
|
-
|
|
1861
|
+
const deserializeAws_json1_1InvalidParameterCombinationException = (output, context) => {
|
|
2279
1862
|
return {
|
|
2280
1863
|
message: __expectString(output.message),
|
|
2281
1864
|
};
|
|
2282
1865
|
};
|
|
2283
|
-
|
|
1866
|
+
const deserializeAws_json1_1InvalidParameterGroupStateFault = (output, context) => {
|
|
2284
1867
|
return {
|
|
2285
1868
|
message: __expectString(output.message),
|
|
2286
1869
|
};
|
|
2287
1870
|
};
|
|
2288
|
-
|
|
1871
|
+
const deserializeAws_json1_1InvalidParameterValueException = (output, context) => {
|
|
2289
1872
|
return {
|
|
2290
1873
|
message: __expectString(output.message),
|
|
2291
1874
|
};
|
|
2292
1875
|
};
|
|
2293
|
-
|
|
1876
|
+
const deserializeAws_json1_1InvalidSubnet = (output, context) => {
|
|
2294
1877
|
return {
|
|
2295
1878
|
message: __expectString(output.message),
|
|
2296
1879
|
};
|
|
2297
1880
|
};
|
|
2298
|
-
|
|
1881
|
+
const deserializeAws_json1_1InvalidVPCNetworkStateFault = (output, context) => {
|
|
2299
1882
|
return {
|
|
2300
1883
|
message: __expectString(output.message),
|
|
2301
1884
|
};
|
|
2302
1885
|
};
|
|
2303
|
-
|
|
1886
|
+
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
2304
1887
|
return {
|
|
2305
1888
|
NextToken: __expectString(output.NextToken),
|
|
2306
1889
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2307
1890
|
};
|
|
2308
1891
|
};
|
|
2309
|
-
|
|
1892
|
+
const deserializeAws_json1_1Node = (output, context) => {
|
|
2310
1893
|
return {
|
|
2311
1894
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
2312
1895
|
Endpoint: output.Endpoint != null ? deserializeAws_json1_1Endpoint(output.Endpoint, context) : undefined,
|
|
@@ -2318,10 +1901,10 @@ var deserializeAws_json1_1Node = function (output, context) {
|
|
|
2318
1901
|
ParameterGroupStatus: __expectString(output.ParameterGroupStatus),
|
|
2319
1902
|
};
|
|
2320
1903
|
};
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
.filter(
|
|
2324
|
-
.map(
|
|
1904
|
+
const deserializeAws_json1_1NodeIdentifierList = (output, context) => {
|
|
1905
|
+
const retVal = (output || [])
|
|
1906
|
+
.filter((e) => e != null)
|
|
1907
|
+
.map((entry) => {
|
|
2325
1908
|
if (entry === null) {
|
|
2326
1909
|
return null;
|
|
2327
1910
|
}
|
|
@@ -2329,10 +1912,10 @@ var deserializeAws_json1_1NodeIdentifierList = function (output, context) {
|
|
|
2329
1912
|
});
|
|
2330
1913
|
return retVal;
|
|
2331
1914
|
};
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
.filter(
|
|
2335
|
-
.map(
|
|
1915
|
+
const deserializeAws_json1_1NodeList = (output, context) => {
|
|
1916
|
+
const retVal = (output || [])
|
|
1917
|
+
.filter((e) => e != null)
|
|
1918
|
+
.map((entry) => {
|
|
2336
1919
|
if (entry === null) {
|
|
2337
1920
|
return null;
|
|
2338
1921
|
}
|
|
@@ -2340,31 +1923,31 @@ var deserializeAws_json1_1NodeList = function (output, context) {
|
|
|
2340
1923
|
});
|
|
2341
1924
|
return retVal;
|
|
2342
1925
|
};
|
|
2343
|
-
|
|
1926
|
+
const deserializeAws_json1_1NodeNotFoundFault = (output, context) => {
|
|
2344
1927
|
return {
|
|
2345
1928
|
message: __expectString(output.message),
|
|
2346
1929
|
};
|
|
2347
1930
|
};
|
|
2348
|
-
|
|
1931
|
+
const deserializeAws_json1_1NodeQuotaForClusterExceededFault = (output, context) => {
|
|
2349
1932
|
return {
|
|
2350
1933
|
message: __expectString(output.message),
|
|
2351
1934
|
};
|
|
2352
1935
|
};
|
|
2353
|
-
|
|
1936
|
+
const deserializeAws_json1_1NodeQuotaForCustomerExceededFault = (output, context) => {
|
|
2354
1937
|
return {
|
|
2355
1938
|
message: __expectString(output.message),
|
|
2356
1939
|
};
|
|
2357
1940
|
};
|
|
2358
|
-
|
|
1941
|
+
const deserializeAws_json1_1NodeTypeSpecificValue = (output, context) => {
|
|
2359
1942
|
return {
|
|
2360
1943
|
NodeType: __expectString(output.NodeType),
|
|
2361
1944
|
Value: __expectString(output.Value),
|
|
2362
1945
|
};
|
|
2363
1946
|
};
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
.filter(
|
|
2367
|
-
.map(
|
|
1947
|
+
const deserializeAws_json1_1NodeTypeSpecificValueList = (output, context) => {
|
|
1948
|
+
const retVal = (output || [])
|
|
1949
|
+
.filter((e) => e != null)
|
|
1950
|
+
.map((entry) => {
|
|
2368
1951
|
if (entry === null) {
|
|
2369
1952
|
return null;
|
|
2370
1953
|
}
|
|
@@ -2372,13 +1955,13 @@ var deserializeAws_json1_1NodeTypeSpecificValueList = function (output, context)
|
|
|
2372
1955
|
});
|
|
2373
1956
|
return retVal;
|
|
2374
1957
|
};
|
|
2375
|
-
|
|
1958
|
+
const deserializeAws_json1_1NotificationConfiguration = (output, context) => {
|
|
2376
1959
|
return {
|
|
2377
1960
|
TopicArn: __expectString(output.TopicArn),
|
|
2378
1961
|
TopicStatus: __expectString(output.TopicStatus),
|
|
2379
1962
|
};
|
|
2380
1963
|
};
|
|
2381
|
-
|
|
1964
|
+
const deserializeAws_json1_1Parameter = (output, context) => {
|
|
2382
1965
|
return {
|
|
2383
1966
|
AllowedValues: __expectString(output.AllowedValues),
|
|
2384
1967
|
ChangeType: __expectString(output.ChangeType),
|
|
@@ -2394,21 +1977,21 @@ var deserializeAws_json1_1Parameter = function (output, context) {
|
|
|
2394
1977
|
Source: __expectString(output.Source),
|
|
2395
1978
|
};
|
|
2396
1979
|
};
|
|
2397
|
-
|
|
1980
|
+
const deserializeAws_json1_1ParameterGroup = (output, context) => {
|
|
2398
1981
|
return {
|
|
2399
1982
|
Description: __expectString(output.Description),
|
|
2400
1983
|
ParameterGroupName: __expectString(output.ParameterGroupName),
|
|
2401
1984
|
};
|
|
2402
1985
|
};
|
|
2403
|
-
|
|
1986
|
+
const deserializeAws_json1_1ParameterGroupAlreadyExistsFault = (output, context) => {
|
|
2404
1987
|
return {
|
|
2405
1988
|
message: __expectString(output.message),
|
|
2406
1989
|
};
|
|
2407
1990
|
};
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
.filter(
|
|
2411
|
-
.map(
|
|
1991
|
+
const deserializeAws_json1_1ParameterGroupList = (output, context) => {
|
|
1992
|
+
const retVal = (output || [])
|
|
1993
|
+
.filter((e) => e != null)
|
|
1994
|
+
.map((entry) => {
|
|
2412
1995
|
if (entry === null) {
|
|
2413
1996
|
return null;
|
|
2414
1997
|
}
|
|
@@ -2416,17 +1999,17 @@ var deserializeAws_json1_1ParameterGroupList = function (output, context) {
|
|
|
2416
1999
|
});
|
|
2417
2000
|
return retVal;
|
|
2418
2001
|
};
|
|
2419
|
-
|
|
2002
|
+
const deserializeAws_json1_1ParameterGroupNotFoundFault = (output, context) => {
|
|
2420
2003
|
return {
|
|
2421
2004
|
message: __expectString(output.message),
|
|
2422
2005
|
};
|
|
2423
2006
|
};
|
|
2424
|
-
|
|
2007
|
+
const deserializeAws_json1_1ParameterGroupQuotaExceededFault = (output, context) => {
|
|
2425
2008
|
return {
|
|
2426
2009
|
message: __expectString(output.message),
|
|
2427
2010
|
};
|
|
2428
2011
|
};
|
|
2429
|
-
|
|
2012
|
+
const deserializeAws_json1_1ParameterGroupStatus = (output, context) => {
|
|
2430
2013
|
return {
|
|
2431
2014
|
NodeIdsToReboot: output.NodeIdsToReboot != null
|
|
2432
2015
|
? deserializeAws_json1_1NodeIdentifierList(output.NodeIdsToReboot, context)
|
|
@@ -2435,10 +2018,10 @@ var deserializeAws_json1_1ParameterGroupStatus = function (output, context) {
|
|
|
2435
2018
|
ParameterGroupName: __expectString(output.ParameterGroupName),
|
|
2436
2019
|
};
|
|
2437
2020
|
};
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
.filter(
|
|
2441
|
-
.map(
|
|
2021
|
+
const deserializeAws_json1_1ParameterList = (output, context) => {
|
|
2022
|
+
const retVal = (output || [])
|
|
2023
|
+
.filter((e) => e != null)
|
|
2024
|
+
.map((entry) => {
|
|
2442
2025
|
if (entry === null) {
|
|
2443
2026
|
return null;
|
|
2444
2027
|
}
|
|
@@ -2446,21 +2029,21 @@ var deserializeAws_json1_1ParameterList = function (output, context) {
|
|
|
2446
2029
|
});
|
|
2447
2030
|
return retVal;
|
|
2448
2031
|
};
|
|
2449
|
-
|
|
2032
|
+
const deserializeAws_json1_1RebootNodeResponse = (output, context) => {
|
|
2450
2033
|
return {
|
|
2451
2034
|
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2452
2035
|
};
|
|
2453
2036
|
};
|
|
2454
|
-
|
|
2037
|
+
const deserializeAws_json1_1SecurityGroupMembership = (output, context) => {
|
|
2455
2038
|
return {
|
|
2456
2039
|
SecurityGroupIdentifier: __expectString(output.SecurityGroupIdentifier),
|
|
2457
2040
|
Status: __expectString(output.Status),
|
|
2458
2041
|
};
|
|
2459
2042
|
};
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
.filter(
|
|
2463
|
-
.map(
|
|
2043
|
+
const deserializeAws_json1_1SecurityGroupMembershipList = (output, context) => {
|
|
2044
|
+
const retVal = (output || [])
|
|
2045
|
+
.filter((e) => e != null)
|
|
2046
|
+
.map((entry) => {
|
|
2464
2047
|
if (entry === null) {
|
|
2465
2048
|
return null;
|
|
2466
2049
|
}
|
|
@@ -2468,26 +2051,26 @@ var deserializeAws_json1_1SecurityGroupMembershipList = function (output, contex
|
|
|
2468
2051
|
});
|
|
2469
2052
|
return retVal;
|
|
2470
2053
|
};
|
|
2471
|
-
|
|
2054
|
+
const deserializeAws_json1_1ServiceLinkedRoleNotFoundFault = (output, context) => {
|
|
2472
2055
|
return {
|
|
2473
2056
|
message: __expectString(output.message),
|
|
2474
2057
|
};
|
|
2475
2058
|
};
|
|
2476
|
-
|
|
2059
|
+
const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
|
|
2477
2060
|
return {};
|
|
2478
2061
|
};
|
|
2479
|
-
|
|
2062
|
+
const deserializeAws_json1_1SSEDescription = (output, context) => {
|
|
2480
2063
|
return {
|
|
2481
2064
|
Status: __expectString(output.Status),
|
|
2482
2065
|
};
|
|
2483
2066
|
};
|
|
2484
|
-
|
|
2067
|
+
const deserializeAws_json1_1Subnet = (output, context) => {
|
|
2485
2068
|
return {
|
|
2486
2069
|
SubnetAvailabilityZone: __expectString(output.SubnetAvailabilityZone),
|
|
2487
2070
|
SubnetIdentifier: __expectString(output.SubnetIdentifier),
|
|
2488
2071
|
};
|
|
2489
2072
|
};
|
|
2490
|
-
|
|
2073
|
+
const deserializeAws_json1_1SubnetGroup = (output, context) => {
|
|
2491
2074
|
return {
|
|
2492
2075
|
Description: __expectString(output.Description),
|
|
2493
2076
|
SubnetGroupName: __expectString(output.SubnetGroupName),
|
|
@@ -2495,20 +2078,20 @@ var deserializeAws_json1_1SubnetGroup = function (output, context) {
|
|
|
2495
2078
|
VpcId: __expectString(output.VpcId),
|
|
2496
2079
|
};
|
|
2497
2080
|
};
|
|
2498
|
-
|
|
2081
|
+
const deserializeAws_json1_1SubnetGroupAlreadyExistsFault = (output, context) => {
|
|
2499
2082
|
return {
|
|
2500
2083
|
message: __expectString(output.message),
|
|
2501
2084
|
};
|
|
2502
2085
|
};
|
|
2503
|
-
|
|
2086
|
+
const deserializeAws_json1_1SubnetGroupInUseFault = (output, context) => {
|
|
2504
2087
|
return {
|
|
2505
2088
|
message: __expectString(output.message),
|
|
2506
2089
|
};
|
|
2507
2090
|
};
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
.filter(
|
|
2511
|
-
.map(
|
|
2091
|
+
const deserializeAws_json1_1SubnetGroupList = (output, context) => {
|
|
2092
|
+
const retVal = (output || [])
|
|
2093
|
+
.filter((e) => e != null)
|
|
2094
|
+
.map((entry) => {
|
|
2512
2095
|
if (entry === null) {
|
|
2513
2096
|
return null;
|
|
2514
2097
|
}
|
|
@@ -2516,25 +2099,25 @@ var deserializeAws_json1_1SubnetGroupList = function (output, context) {
|
|
|
2516
2099
|
});
|
|
2517
2100
|
return retVal;
|
|
2518
2101
|
};
|
|
2519
|
-
|
|
2102
|
+
const deserializeAws_json1_1SubnetGroupNotFoundFault = (output, context) => {
|
|
2520
2103
|
return {
|
|
2521
2104
|
message: __expectString(output.message),
|
|
2522
2105
|
};
|
|
2523
2106
|
};
|
|
2524
|
-
|
|
2107
|
+
const deserializeAws_json1_1SubnetGroupQuotaExceededFault = (output, context) => {
|
|
2525
2108
|
return {
|
|
2526
2109
|
message: __expectString(output.message),
|
|
2527
2110
|
};
|
|
2528
2111
|
};
|
|
2529
|
-
|
|
2112
|
+
const deserializeAws_json1_1SubnetInUse = (output, context) => {
|
|
2530
2113
|
return {
|
|
2531
2114
|
message: __expectString(output.message),
|
|
2532
2115
|
};
|
|
2533
2116
|
};
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
.filter(
|
|
2537
|
-
.map(
|
|
2117
|
+
const deserializeAws_json1_1SubnetList = (output, context) => {
|
|
2118
|
+
const retVal = (output || [])
|
|
2119
|
+
.filter((e) => e != null)
|
|
2120
|
+
.map((entry) => {
|
|
2538
2121
|
if (entry === null) {
|
|
2539
2122
|
return null;
|
|
2540
2123
|
}
|
|
@@ -2542,21 +2125,21 @@ var deserializeAws_json1_1SubnetList = function (output, context) {
|
|
|
2542
2125
|
});
|
|
2543
2126
|
return retVal;
|
|
2544
2127
|
};
|
|
2545
|
-
|
|
2128
|
+
const deserializeAws_json1_1SubnetQuotaExceededFault = (output, context) => {
|
|
2546
2129
|
return {
|
|
2547
2130
|
message: __expectString(output.message),
|
|
2548
2131
|
};
|
|
2549
2132
|
};
|
|
2550
|
-
|
|
2133
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2551
2134
|
return {
|
|
2552
2135
|
Key: __expectString(output.Key),
|
|
2553
2136
|
Value: __expectString(output.Value),
|
|
2554
2137
|
};
|
|
2555
2138
|
};
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
.filter(
|
|
2559
|
-
.map(
|
|
2139
|
+
const deserializeAws_json1_1TagList = (output, context) => {
|
|
2140
|
+
const retVal = (output || [])
|
|
2141
|
+
.filter((e) => e != null)
|
|
2142
|
+
.map((entry) => {
|
|
2560
2143
|
if (entry === null) {
|
|
2561
2144
|
return null;
|
|
2562
2145
|
}
|
|
@@ -2564,97 +2147,87 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
2564
2147
|
});
|
|
2565
2148
|
return retVal;
|
|
2566
2149
|
};
|
|
2567
|
-
|
|
2150
|
+
const deserializeAws_json1_1TagNotFoundFault = (output, context) => {
|
|
2568
2151
|
return {
|
|
2569
2152
|
message: __expectString(output.message),
|
|
2570
2153
|
};
|
|
2571
2154
|
};
|
|
2572
|
-
|
|
2155
|
+
const deserializeAws_json1_1TagQuotaPerResourceExceeded = (output, context) => {
|
|
2573
2156
|
return {
|
|
2574
2157
|
message: __expectString(output.message),
|
|
2575
2158
|
};
|
|
2576
2159
|
};
|
|
2577
|
-
|
|
2160
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
2578
2161
|
return {
|
|
2579
2162
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2580
2163
|
};
|
|
2581
2164
|
};
|
|
2582
|
-
|
|
2165
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
2583
2166
|
return {
|
|
2584
2167
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2585
2168
|
};
|
|
2586
2169
|
};
|
|
2587
|
-
|
|
2170
|
+
const deserializeAws_json1_1UpdateClusterResponse = (output, context) => {
|
|
2588
2171
|
return {
|
|
2589
2172
|
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2590
2173
|
};
|
|
2591
2174
|
};
|
|
2592
|
-
|
|
2175
|
+
const deserializeAws_json1_1UpdateParameterGroupResponse = (output, context) => {
|
|
2593
2176
|
return {
|
|
2594
2177
|
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
2595
2178
|
};
|
|
2596
2179
|
};
|
|
2597
|
-
|
|
2180
|
+
const deserializeAws_json1_1UpdateSubnetGroupResponse = (output, context) => {
|
|
2598
2181
|
return {
|
|
2599
2182
|
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
2600
2183
|
};
|
|
2601
2184
|
};
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
});
|
|
2610
|
-
};
|
|
2611
|
-
var collectBody = function (streamBody, context) {
|
|
2612
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2185
|
+
const deserializeMetadata = (output) => ({
|
|
2186
|
+
httpStatusCode: output.statusCode,
|
|
2187
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
2188
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2189
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2190
|
+
});
|
|
2191
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2613
2192
|
if (streamBody instanceof Uint8Array) {
|
|
2614
2193
|
return Promise.resolve(streamBody);
|
|
2615
2194
|
}
|
|
2616
2195
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2617
2196
|
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
};
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
if (resolvedHostname !== undefined) {
|
|
2637
|
-
contents.hostname = resolvedHostname;
|
|
2638
|
-
}
|
|
2639
|
-
if (body !== undefined) {
|
|
2640
|
-
contents.body = body;
|
|
2641
|
-
}
|
|
2642
|
-
return [2, new __HttpRequest(contents)];
|
|
2643
|
-
}
|
|
2644
|
-
});
|
|
2645
|
-
}); };
|
|
2646
|
-
var parseBody = function (streamBody, context) {
|
|
2647
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2648
|
-
if (encoded.length) {
|
|
2649
|
-
return JSON.parse(encoded);
|
|
2650
|
-
}
|
|
2651
|
-
return {};
|
|
2652
|
-
});
|
|
2197
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2198
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2199
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2200
|
+
const contents = {
|
|
2201
|
+
protocol,
|
|
2202
|
+
hostname,
|
|
2203
|
+
port,
|
|
2204
|
+
method: "POST",
|
|
2205
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2206
|
+
headers,
|
|
2207
|
+
};
|
|
2208
|
+
if (resolvedHostname !== undefined) {
|
|
2209
|
+
contents.hostname = resolvedHostname;
|
|
2210
|
+
}
|
|
2211
|
+
if (body !== undefined) {
|
|
2212
|
+
contents.body = body;
|
|
2213
|
+
}
|
|
2214
|
+
return new __HttpRequest(contents);
|
|
2653
2215
|
};
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2216
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2217
|
+
if (encoded.length) {
|
|
2218
|
+
return JSON.parse(encoded);
|
|
2219
|
+
}
|
|
2220
|
+
return {};
|
|
2221
|
+
});
|
|
2222
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2223
|
+
const value = await parseBody(errorBody, context);
|
|
2224
|
+
value.message = value.message ?? value.Message;
|
|
2225
|
+
return value;
|
|
2226
|
+
};
|
|
2227
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2228
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2229
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2230
|
+
let cleanValue = rawValue;
|
|
2658
2231
|
if (typeof cleanValue === "number") {
|
|
2659
2232
|
cleanValue = cleanValue.toString();
|
|
2660
2233
|
}
|
|
@@ -2669,7 +2242,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2669
2242
|
}
|
|
2670
2243
|
return cleanValue;
|
|
2671
2244
|
};
|
|
2672
|
-
|
|
2245
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2673
2246
|
if (headerKey !== undefined) {
|
|
2674
2247
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2675
2248
|
}
|