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