@aws-sdk/client-redshift-serverless 3.503.1 → 3.507.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/dist-cjs/index.js +108 -1635
- package/dist-es/protocols/Aws_json1_1.js +82 -1609
- package/package.json +3 -3
|
@@ -335,7 +335,7 @@ export const se_UpdateWorkgroupCommand = async (input, context) => {
|
|
|
335
335
|
};
|
|
336
336
|
export const de_ConvertRecoveryPointToSnapshotCommand = async (output, context) => {
|
|
337
337
|
if (output.statusCode >= 300) {
|
|
338
|
-
return
|
|
338
|
+
return de_CommandError(output, context);
|
|
339
339
|
}
|
|
340
340
|
const data = await parseBody(output.body, context);
|
|
341
341
|
let contents = {};
|
|
@@ -346,43 +346,9 @@ export const de_ConvertRecoveryPointToSnapshotCommand = async (output, context)
|
|
|
346
346
|
};
|
|
347
347
|
return response;
|
|
348
348
|
};
|
|
349
|
-
const de_ConvertRecoveryPointToSnapshotCommandError = async (output, context) => {
|
|
350
|
-
const parsedOutput = {
|
|
351
|
-
...output,
|
|
352
|
-
body: await parseErrorBody(output.body, context),
|
|
353
|
-
};
|
|
354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
355
|
-
switch (errorCode) {
|
|
356
|
-
case "ConflictException":
|
|
357
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
358
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
359
|
-
case "InternalServerException":
|
|
360
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
362
|
-
case "ResourceNotFoundException":
|
|
363
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
365
|
-
case "ServiceQuotaExceededException":
|
|
366
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
367
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
368
|
-
case "TooManyTagsException":
|
|
369
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
370
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
371
|
-
case "ValidationException":
|
|
372
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
374
|
-
default:
|
|
375
|
-
const parsedBody = parsedOutput.body;
|
|
376
|
-
return throwDefaultError({
|
|
377
|
-
output,
|
|
378
|
-
parsedBody,
|
|
379
|
-
errorCode,
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
349
|
export const de_CreateCustomDomainAssociationCommand = async (output, context) => {
|
|
384
350
|
if (output.statusCode >= 300) {
|
|
385
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
386
352
|
}
|
|
387
353
|
const data = await parseBody(output.body, context);
|
|
388
354
|
let contents = {};
|
|
@@ -393,43 +359,9 @@ export const de_CreateCustomDomainAssociationCommand = async (output, context) =
|
|
|
393
359
|
};
|
|
394
360
|
return response;
|
|
395
361
|
};
|
|
396
|
-
const de_CreateCustomDomainAssociationCommandError = async (output, context) => {
|
|
397
|
-
const parsedOutput = {
|
|
398
|
-
...output,
|
|
399
|
-
body: await parseErrorBody(output.body, context),
|
|
400
|
-
};
|
|
401
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
402
|
-
switch (errorCode) {
|
|
403
|
-
case "AccessDeniedException":
|
|
404
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
405
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
406
|
-
case "ConflictException":
|
|
407
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
408
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
409
|
-
case "InternalServerException":
|
|
410
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
411
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
412
|
-
case "ResourceNotFoundException":
|
|
413
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
415
|
-
case "ThrottlingException":
|
|
416
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
417
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ValidationException":
|
|
419
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
420
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
421
|
-
default:
|
|
422
|
-
const parsedBody = parsedOutput.body;
|
|
423
|
-
return throwDefaultError({
|
|
424
|
-
output,
|
|
425
|
-
parsedBody,
|
|
426
|
-
errorCode,
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
362
|
export const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
431
363
|
if (output.statusCode >= 300) {
|
|
432
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
433
365
|
}
|
|
434
366
|
const data = await parseBody(output.body, context);
|
|
435
367
|
let contents = {};
|
|
@@ -440,43 +372,9 @@ export const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
|
440
372
|
};
|
|
441
373
|
return response;
|
|
442
374
|
};
|
|
443
|
-
const de_CreateEndpointAccessCommandError = async (output, context) => {
|
|
444
|
-
const parsedOutput = {
|
|
445
|
-
...output,
|
|
446
|
-
body: await parseErrorBody(output.body, context),
|
|
447
|
-
};
|
|
448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
|
-
switch (errorCode) {
|
|
450
|
-
case "AccessDeniedException":
|
|
451
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
452
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ConflictException":
|
|
454
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
455
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
456
|
-
case "InternalServerException":
|
|
457
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
458
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ResourceNotFoundException":
|
|
460
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
462
|
-
case "ServiceQuotaExceededException":
|
|
463
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
464
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ValidationException":
|
|
466
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
467
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
468
|
-
default:
|
|
469
|
-
const parsedBody = parsedOutput.body;
|
|
470
|
-
return throwDefaultError({
|
|
471
|
-
output,
|
|
472
|
-
parsedBody,
|
|
473
|
-
errorCode,
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
375
|
export const de_CreateNamespaceCommand = async (output, context) => {
|
|
478
376
|
if (output.statusCode >= 300) {
|
|
479
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
480
378
|
}
|
|
481
379
|
const data = await parseBody(output.body, context);
|
|
482
380
|
let contents = {};
|
|
@@ -487,37 +385,9 @@ export const de_CreateNamespaceCommand = async (output, context) => {
|
|
|
487
385
|
};
|
|
488
386
|
return response;
|
|
489
387
|
};
|
|
490
|
-
const de_CreateNamespaceCommandError = async (output, context) => {
|
|
491
|
-
const parsedOutput = {
|
|
492
|
-
...output,
|
|
493
|
-
body: await parseErrorBody(output.body, context),
|
|
494
|
-
};
|
|
495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
-
switch (errorCode) {
|
|
497
|
-
case "ConflictException":
|
|
498
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
499
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
500
|
-
case "InternalServerException":
|
|
501
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
503
|
-
case "TooManyTagsException":
|
|
504
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
505
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ValidationException":
|
|
507
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
509
|
-
default:
|
|
510
|
-
const parsedBody = parsedOutput.body;
|
|
511
|
-
return throwDefaultError({
|
|
512
|
-
output,
|
|
513
|
-
parsedBody,
|
|
514
|
-
errorCode,
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
388
|
export const de_CreateScheduledActionCommand = async (output, context) => {
|
|
519
389
|
if (output.statusCode >= 300) {
|
|
520
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
521
391
|
}
|
|
522
392
|
const data = await parseBody(output.body, context);
|
|
523
393
|
let contents = {};
|
|
@@ -528,37 +398,9 @@ export const de_CreateScheduledActionCommand = async (output, context) => {
|
|
|
528
398
|
};
|
|
529
399
|
return response;
|
|
530
400
|
};
|
|
531
|
-
const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
532
|
-
const parsedOutput = {
|
|
533
|
-
...output,
|
|
534
|
-
body: await parseErrorBody(output.body, context),
|
|
535
|
-
};
|
|
536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
-
switch (errorCode) {
|
|
538
|
-
case "ConflictException":
|
|
539
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
540
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
541
|
-
case "InternalServerException":
|
|
542
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
543
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ResourceNotFoundException":
|
|
545
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
546
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ValidationException":
|
|
548
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
549
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
550
|
-
default:
|
|
551
|
-
const parsedBody = parsedOutput.body;
|
|
552
|
-
return throwDefaultError({
|
|
553
|
-
output,
|
|
554
|
-
parsedBody,
|
|
555
|
-
errorCode,
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
401
|
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
560
402
|
if (output.statusCode >= 300) {
|
|
561
|
-
return
|
|
403
|
+
return de_CommandError(output, context);
|
|
562
404
|
}
|
|
563
405
|
const data = await parseBody(output.body, context);
|
|
564
406
|
let contents = {};
|
|
@@ -569,43 +411,9 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
569
411
|
};
|
|
570
412
|
return response;
|
|
571
413
|
};
|
|
572
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
573
|
-
const parsedOutput = {
|
|
574
|
-
...output,
|
|
575
|
-
body: await parseErrorBody(output.body, context),
|
|
576
|
-
};
|
|
577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
|
-
switch (errorCode) {
|
|
579
|
-
case "ConflictException":
|
|
580
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
581
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
582
|
-
case "InternalServerException":
|
|
583
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
584
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
585
|
-
case "ResourceNotFoundException":
|
|
586
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
587
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
588
|
-
case "ServiceQuotaExceededException":
|
|
589
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
590
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
591
|
-
case "TooManyTagsException":
|
|
592
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
593
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
594
|
-
case "ValidationException":
|
|
595
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
596
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
597
|
-
default:
|
|
598
|
-
const parsedBody = parsedOutput.body;
|
|
599
|
-
return throwDefaultError({
|
|
600
|
-
output,
|
|
601
|
-
parsedBody,
|
|
602
|
-
errorCode,
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
414
|
export const de_CreateSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
607
415
|
if (output.statusCode >= 300) {
|
|
608
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
609
417
|
}
|
|
610
418
|
const data = await parseBody(output.body, context);
|
|
611
419
|
let contents = {};
|
|
@@ -616,43 +424,9 @@ export const de_CreateSnapshotCopyConfigurationCommand = async (output, context)
|
|
|
616
424
|
};
|
|
617
425
|
return response;
|
|
618
426
|
};
|
|
619
|
-
const de_CreateSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
620
|
-
const parsedOutput = {
|
|
621
|
-
...output,
|
|
622
|
-
body: await parseErrorBody(output.body, context),
|
|
623
|
-
};
|
|
624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
-
switch (errorCode) {
|
|
626
|
-
case "AccessDeniedException":
|
|
627
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
628
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
629
|
-
case "ConflictException":
|
|
630
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
631
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
632
|
-
case "InternalServerException":
|
|
633
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ResourceNotFoundException":
|
|
636
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ServiceQuotaExceededException":
|
|
639
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
640
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ValidationException":
|
|
642
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
|
-
default:
|
|
645
|
-
const parsedBody = parsedOutput.body;
|
|
646
|
-
return throwDefaultError({
|
|
647
|
-
output,
|
|
648
|
-
parsedBody,
|
|
649
|
-
errorCode,
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
427
|
export const de_CreateUsageLimitCommand = async (output, context) => {
|
|
654
428
|
if (output.statusCode >= 300) {
|
|
655
|
-
return
|
|
429
|
+
return de_CommandError(output, context);
|
|
656
430
|
}
|
|
657
431
|
const data = await parseBody(output.body, context);
|
|
658
432
|
let contents = {};
|
|
@@ -663,40 +437,9 @@ export const de_CreateUsageLimitCommand = async (output, context) => {
|
|
|
663
437
|
};
|
|
664
438
|
return response;
|
|
665
439
|
};
|
|
666
|
-
const de_CreateUsageLimitCommandError = async (output, context) => {
|
|
667
|
-
const parsedOutput = {
|
|
668
|
-
...output,
|
|
669
|
-
body: await parseErrorBody(output.body, context),
|
|
670
|
-
};
|
|
671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
-
switch (errorCode) {
|
|
673
|
-
case "ConflictException":
|
|
674
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
675
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
676
|
-
case "InternalServerException":
|
|
677
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
678
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ResourceNotFoundException":
|
|
680
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
681
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ServiceQuotaExceededException":
|
|
683
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
684
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
685
|
-
case "ValidationException":
|
|
686
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
687
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
688
|
-
default:
|
|
689
|
-
const parsedBody = parsedOutput.body;
|
|
690
|
-
return throwDefaultError({
|
|
691
|
-
output,
|
|
692
|
-
parsedBody,
|
|
693
|
-
errorCode,
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
440
|
export const de_CreateWorkgroupCommand = async (output, context) => {
|
|
698
441
|
if (output.statusCode >= 300) {
|
|
699
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
700
443
|
}
|
|
701
444
|
const data = await parseBody(output.body, context);
|
|
702
445
|
let contents = {};
|
|
@@ -707,43 +450,9 @@ export const de_CreateWorkgroupCommand = async (output, context) => {
|
|
|
707
450
|
};
|
|
708
451
|
return response;
|
|
709
452
|
};
|
|
710
|
-
const de_CreateWorkgroupCommandError = async (output, context) => {
|
|
711
|
-
const parsedOutput = {
|
|
712
|
-
...output,
|
|
713
|
-
body: await parseErrorBody(output.body, context),
|
|
714
|
-
};
|
|
715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
|
-
switch (errorCode) {
|
|
717
|
-
case "ConflictException":
|
|
718
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
719
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
720
|
-
case "InsufficientCapacityException":
|
|
721
|
-
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
722
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
723
|
-
case "InternalServerException":
|
|
724
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
725
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
726
|
-
case "ResourceNotFoundException":
|
|
727
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
728
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
729
|
-
case "TooManyTagsException":
|
|
730
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
731
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ValidationException":
|
|
733
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
734
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
735
|
-
default:
|
|
736
|
-
const parsedBody = parsedOutput.body;
|
|
737
|
-
return throwDefaultError({
|
|
738
|
-
output,
|
|
739
|
-
parsedBody,
|
|
740
|
-
errorCode,
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
453
|
export const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
|
|
745
454
|
if (output.statusCode >= 300) {
|
|
746
|
-
return
|
|
455
|
+
return de_CommandError(output, context);
|
|
747
456
|
}
|
|
748
457
|
const data = await parseBody(output.body, context);
|
|
749
458
|
let contents = {};
|
|
@@ -754,43 +463,9 @@ export const de_DeleteCustomDomainAssociationCommand = async (output, context) =
|
|
|
754
463
|
};
|
|
755
464
|
return response;
|
|
756
465
|
};
|
|
757
|
-
const de_DeleteCustomDomainAssociationCommandError = async (output, context) => {
|
|
758
|
-
const parsedOutput = {
|
|
759
|
-
...output,
|
|
760
|
-
body: await parseErrorBody(output.body, context),
|
|
761
|
-
};
|
|
762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "AccessDeniedException":
|
|
765
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
766
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
|
-
case "ConflictException":
|
|
768
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
769
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
770
|
-
case "InternalServerException":
|
|
771
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ResourceNotFoundException":
|
|
774
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
775
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ThrottlingException":
|
|
777
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
466
|
export const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
792
467
|
if (output.statusCode >= 300) {
|
|
793
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
794
469
|
}
|
|
795
470
|
const data = await parseBody(output.body, context);
|
|
796
471
|
let contents = {};
|
|
@@ -801,37 +476,9 @@ export const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
|
801
476
|
};
|
|
802
477
|
return response;
|
|
803
478
|
};
|
|
804
|
-
const de_DeleteEndpointAccessCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "ConflictException":
|
|
812
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
813
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InternalServerException":
|
|
815
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ResourceNotFoundException":
|
|
818
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ValidationException":
|
|
821
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
823
|
-
default:
|
|
824
|
-
const parsedBody = parsedOutput.body;
|
|
825
|
-
return throwDefaultError({
|
|
826
|
-
output,
|
|
827
|
-
parsedBody,
|
|
828
|
-
errorCode,
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
479
|
export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
833
480
|
if (output.statusCode >= 300) {
|
|
834
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
835
482
|
}
|
|
836
483
|
const data = await parseBody(output.body, context);
|
|
837
484
|
let contents = {};
|
|
@@ -842,37 +489,9 @@ export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
|
842
489
|
};
|
|
843
490
|
return response;
|
|
844
491
|
};
|
|
845
|
-
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
846
|
-
const parsedOutput = {
|
|
847
|
-
...output,
|
|
848
|
-
body: await parseErrorBody(output.body, context),
|
|
849
|
-
};
|
|
850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
switch (errorCode) {
|
|
852
|
-
case "ConflictException":
|
|
853
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
854
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
855
|
-
case "InternalServerException":
|
|
856
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ResourceNotFoundException":
|
|
859
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ValidationException":
|
|
862
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
863
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
492
|
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
874
493
|
if (output.statusCode >= 300) {
|
|
875
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
876
495
|
}
|
|
877
496
|
const data = await parseBody(output.body, context);
|
|
878
497
|
let contents = {};
|
|
@@ -883,34 +502,9 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
883
502
|
};
|
|
884
503
|
return response;
|
|
885
504
|
};
|
|
886
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context),
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "InternalServerException":
|
|
894
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ResourceNotFoundException":
|
|
897
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ValidationException":
|
|
900
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
505
|
export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
912
506
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
507
|
+
return de_CommandError(output, context);
|
|
914
508
|
}
|
|
915
509
|
const data = await parseBody(output.body, context);
|
|
916
510
|
let contents = {};
|
|
@@ -921,34 +515,9 @@ export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
|
921
515
|
};
|
|
922
516
|
return response;
|
|
923
517
|
};
|
|
924
|
-
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "InternalServerException":
|
|
932
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ResourceNotFoundException":
|
|
935
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ValidationException":
|
|
938
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode,
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
518
|
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
950
519
|
if (output.statusCode >= 300) {
|
|
951
|
-
return
|
|
520
|
+
return de_CommandError(output, context);
|
|
952
521
|
}
|
|
953
522
|
const data = await parseBody(output.body, context);
|
|
954
523
|
let contents = {};
|
|
@@ -959,37 +528,9 @@ export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
|
959
528
|
};
|
|
960
529
|
return response;
|
|
961
530
|
};
|
|
962
|
-
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "ConflictException":
|
|
970
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
971
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerException":
|
|
973
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
974
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ValidationException":
|
|
979
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
531
|
export const de_DeleteSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
991
532
|
if (output.statusCode >= 300) {
|
|
992
|
-
return
|
|
533
|
+
return de_CommandError(output, context);
|
|
993
534
|
}
|
|
994
535
|
const data = await parseBody(output.body, context);
|
|
995
536
|
let contents = {};
|
|
@@ -1000,40 +541,9 @@ export const de_DeleteSnapshotCopyConfigurationCommand = async (output, context)
|
|
|
1000
541
|
};
|
|
1001
542
|
return response;
|
|
1002
543
|
};
|
|
1003
|
-
const de_DeleteSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "AccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ConflictException":
|
|
1014
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1015
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
544
|
export const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
1035
545
|
if (output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
1037
547
|
}
|
|
1038
548
|
const data = await parseBody(output.body, context);
|
|
1039
549
|
let contents = {};
|
|
@@ -1044,37 +554,9 @@ export const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
|
1044
554
|
};
|
|
1045
555
|
return response;
|
|
1046
556
|
};
|
|
1047
|
-
const de_DeleteUsageLimitCommandError = async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "ConflictException":
|
|
1055
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1056
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "InternalServerException":
|
|
1058
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ValidationException":
|
|
1064
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode,
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
557
|
export const de_DeleteWorkgroupCommand = async (output, context) => {
|
|
1076
558
|
if (output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
1078
560
|
}
|
|
1079
561
|
const data = await parseBody(output.body, context);
|
|
1080
562
|
let contents = {};
|
|
@@ -1085,37 +567,9 @@ export const de_DeleteWorkgroupCommand = async (output, context) => {
|
|
|
1085
567
|
};
|
|
1086
568
|
return response;
|
|
1087
569
|
};
|
|
1088
|
-
const de_DeleteWorkgroupCommandError = async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context),
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "ConflictException":
|
|
1096
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1097
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "InternalServerException":
|
|
1099
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1100
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ResourceNotFoundException":
|
|
1102
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1103
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
570
|
export const de_GetCredentialsCommand = async (output, context) => {
|
|
1117
571
|
if (output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
1119
573
|
}
|
|
1120
574
|
const data = await parseBody(output.body, context);
|
|
1121
575
|
let contents = {};
|
|
@@ -1126,34 +580,9 @@ export const de_GetCredentialsCommand = async (output, context) => {
|
|
|
1126
580
|
};
|
|
1127
581
|
return response;
|
|
1128
582
|
};
|
|
1129
|
-
const de_GetCredentialsCommandError = async (output, context) => {
|
|
1130
|
-
const parsedOutput = {
|
|
1131
|
-
...output,
|
|
1132
|
-
body: await parseErrorBody(output.body, context),
|
|
1133
|
-
};
|
|
1134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "InternalServerException":
|
|
1137
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1138
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ResourceNotFoundException":
|
|
1140
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1141
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "ValidationException":
|
|
1143
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1144
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
|
-
default:
|
|
1146
|
-
const parsedBody = parsedOutput.body;
|
|
1147
|
-
return throwDefaultError({
|
|
1148
|
-
output,
|
|
1149
|
-
parsedBody,
|
|
1150
|
-
errorCode,
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
};
|
|
1154
583
|
export const de_GetCustomDomainAssociationCommand = async (output, context) => {
|
|
1155
584
|
if (output.statusCode >= 300) {
|
|
1156
|
-
return
|
|
585
|
+
return de_CommandError(output, context);
|
|
1157
586
|
}
|
|
1158
587
|
const data = await parseBody(output.body, context);
|
|
1159
588
|
let contents = {};
|
|
@@ -1164,43 +593,9 @@ export const de_GetCustomDomainAssociationCommand = async (output, context) => {
|
|
|
1164
593
|
};
|
|
1165
594
|
return response;
|
|
1166
595
|
};
|
|
1167
|
-
const de_GetCustomDomainAssociationCommandError = async (output, context) => {
|
|
1168
|
-
const parsedOutput = {
|
|
1169
|
-
...output,
|
|
1170
|
-
body: await parseErrorBody(output.body, context),
|
|
1171
|
-
};
|
|
1172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
|
-
switch (errorCode) {
|
|
1174
|
-
case "AccessDeniedException":
|
|
1175
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1176
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ConflictException":
|
|
1178
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1179
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "InternalServerException":
|
|
1181
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1182
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "ResourceNotFoundException":
|
|
1184
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1185
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "ThrottlingException":
|
|
1187
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1188
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "ValidationException":
|
|
1190
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1191
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1192
|
-
default:
|
|
1193
|
-
const parsedBody = parsedOutput.body;
|
|
1194
|
-
return throwDefaultError({
|
|
1195
|
-
output,
|
|
1196
|
-
parsedBody,
|
|
1197
|
-
errorCode,
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
596
|
export const de_GetEndpointAccessCommand = async (output, context) => {
|
|
1202
597
|
if (output.statusCode >= 300) {
|
|
1203
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
1204
599
|
}
|
|
1205
600
|
const data = await parseBody(output.body, context);
|
|
1206
601
|
let contents = {};
|
|
@@ -1211,37 +606,9 @@ export const de_GetEndpointAccessCommand = async (output, context) => {
|
|
|
1211
606
|
};
|
|
1212
607
|
return response;
|
|
1213
608
|
};
|
|
1214
|
-
const de_GetEndpointAccessCommandError = async (output, context) => {
|
|
1215
|
-
const parsedOutput = {
|
|
1216
|
-
...output,
|
|
1217
|
-
body: await parseErrorBody(output.body, context),
|
|
1218
|
-
};
|
|
1219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
-
switch (errorCode) {
|
|
1221
|
-
case "ConflictException":
|
|
1222
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1223
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "InternalServerException":
|
|
1225
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1226
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ResourceNotFoundException":
|
|
1228
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ValidationException":
|
|
1231
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1232
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1233
|
-
default:
|
|
1234
|
-
const parsedBody = parsedOutput.body;
|
|
1235
|
-
return throwDefaultError({
|
|
1236
|
-
output,
|
|
1237
|
-
parsedBody,
|
|
1238
|
-
errorCode,
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
609
|
export const de_GetNamespaceCommand = async (output, context) => {
|
|
1243
610
|
if (output.statusCode >= 300) {
|
|
1244
|
-
return
|
|
611
|
+
return de_CommandError(output, context);
|
|
1245
612
|
}
|
|
1246
613
|
const data = await parseBody(output.body, context);
|
|
1247
614
|
let contents = {};
|
|
@@ -1252,34 +619,9 @@ export const de_GetNamespaceCommand = async (output, context) => {
|
|
|
1252
619
|
};
|
|
1253
620
|
return response;
|
|
1254
621
|
};
|
|
1255
|
-
const de_GetNamespaceCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "InternalServerException":
|
|
1263
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ResourceNotFoundException":
|
|
1266
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ValidationException":
|
|
1269
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1270
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode,
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
622
|
export const de_GetRecoveryPointCommand = async (output, context) => {
|
|
1281
623
|
if (output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
624
|
+
return de_CommandError(output, context);
|
|
1283
625
|
}
|
|
1284
626
|
const data = await parseBody(output.body, context);
|
|
1285
627
|
let contents = {};
|
|
@@ -1290,37 +632,9 @@ export const de_GetRecoveryPointCommand = async (output, context) => {
|
|
|
1290
632
|
};
|
|
1291
633
|
return response;
|
|
1292
634
|
};
|
|
1293
|
-
const de_GetRecoveryPointCommandError = async (output, context) => {
|
|
1294
|
-
const parsedOutput = {
|
|
1295
|
-
...output,
|
|
1296
|
-
body: await parseErrorBody(output.body, context),
|
|
1297
|
-
};
|
|
1298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
-
switch (errorCode) {
|
|
1300
|
-
case "ConflictException":
|
|
1301
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1302
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "InternalServerException":
|
|
1304
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ResourceNotFoundException":
|
|
1307
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ValidationException":
|
|
1310
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1311
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1312
|
-
default:
|
|
1313
|
-
const parsedBody = parsedOutput.body;
|
|
1314
|
-
return throwDefaultError({
|
|
1315
|
-
output,
|
|
1316
|
-
parsedBody,
|
|
1317
|
-
errorCode,
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
635
|
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1322
636
|
if (output.statusCode >= 300) {
|
|
1323
|
-
return
|
|
637
|
+
return de_CommandError(output, context);
|
|
1324
638
|
}
|
|
1325
639
|
const data = await parseBody(output.body, context);
|
|
1326
640
|
let contents = {};
|
|
@@ -1331,34 +645,9 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1331
645
|
};
|
|
1332
646
|
return response;
|
|
1333
647
|
};
|
|
1334
|
-
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1335
|
-
const parsedOutput = {
|
|
1336
|
-
...output,
|
|
1337
|
-
body: await parseErrorBody(output.body, context),
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "InternalServerException":
|
|
1342
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1343
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ResourceNotFoundException":
|
|
1345
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1346
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ValidationException":
|
|
1348
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1349
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1350
|
-
default:
|
|
1351
|
-
const parsedBody = parsedOutput.body;
|
|
1352
|
-
return throwDefaultError({
|
|
1353
|
-
output,
|
|
1354
|
-
parsedBody,
|
|
1355
|
-
errorCode,
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
};
|
|
1359
648
|
export const de_GetScheduledActionCommand = async (output, context) => {
|
|
1360
649
|
if (output.statusCode >= 300) {
|
|
1361
|
-
return
|
|
650
|
+
return de_CommandError(output, context);
|
|
1362
651
|
}
|
|
1363
652
|
const data = await parseBody(output.body, context);
|
|
1364
653
|
let contents = {};
|
|
@@ -1369,34 +658,9 @@ export const de_GetScheduledActionCommand = async (output, context) => {
|
|
|
1369
658
|
};
|
|
1370
659
|
return response;
|
|
1371
660
|
};
|
|
1372
|
-
const de_GetScheduledActionCommandError = async (output, context) => {
|
|
1373
|
-
const parsedOutput = {
|
|
1374
|
-
...output,
|
|
1375
|
-
body: await parseErrorBody(output.body, context),
|
|
1376
|
-
};
|
|
1377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
-
switch (errorCode) {
|
|
1379
|
-
case "InternalServerException":
|
|
1380
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceNotFoundException":
|
|
1383
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ValidationException":
|
|
1386
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1388
|
-
default:
|
|
1389
|
-
const parsedBody = parsedOutput.body;
|
|
1390
|
-
return throwDefaultError({
|
|
1391
|
-
output,
|
|
1392
|
-
parsedBody,
|
|
1393
|
-
errorCode,
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
};
|
|
1397
661
|
export const de_GetSnapshotCommand = async (output, context) => {
|
|
1398
662
|
if (output.statusCode >= 300) {
|
|
1399
|
-
return
|
|
663
|
+
return de_CommandError(output, context);
|
|
1400
664
|
}
|
|
1401
665
|
const data = await parseBody(output.body, context);
|
|
1402
666
|
let contents = {};
|
|
@@ -1407,34 +671,9 @@ export const de_GetSnapshotCommand = async (output, context) => {
|
|
|
1407
671
|
};
|
|
1408
672
|
return response;
|
|
1409
673
|
};
|
|
1410
|
-
const de_GetSnapshotCommandError = async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context),
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "InternalServerException":
|
|
1418
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ResourceNotFoundException":
|
|
1421
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ValidationException":
|
|
1424
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
|
-
default:
|
|
1427
|
-
const parsedBody = parsedOutput.body;
|
|
1428
|
-
return throwDefaultError({
|
|
1429
|
-
output,
|
|
1430
|
-
parsedBody,
|
|
1431
|
-
errorCode,
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
674
|
export const de_GetTableRestoreStatusCommand = async (output, context) => {
|
|
1436
675
|
if (output.statusCode >= 300) {
|
|
1437
|
-
return
|
|
676
|
+
return de_CommandError(output, context);
|
|
1438
677
|
}
|
|
1439
678
|
const data = await parseBody(output.body, context);
|
|
1440
679
|
let contents = {};
|
|
@@ -1443,33 +682,11 @@ export const de_GetTableRestoreStatusCommand = async (output, context) => {
|
|
|
1443
682
|
$metadata: deserializeMetadata(output),
|
|
1444
683
|
...contents,
|
|
1445
684
|
};
|
|
1446
|
-
return response;
|
|
1447
|
-
};
|
|
1448
|
-
const de_GetTableRestoreStatusCommandError = async (output, context) => {
|
|
1449
|
-
const parsedOutput = {
|
|
1450
|
-
...output,
|
|
1451
|
-
body: await parseErrorBody(output.body, context),
|
|
1452
|
-
};
|
|
1453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
-
switch (errorCode) {
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ValidationException":
|
|
1459
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
return throwDefaultError({
|
|
1464
|
-
output,
|
|
1465
|
-
parsedBody,
|
|
1466
|
-
errorCode,
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
685
|
+
return response;
|
|
1469
686
|
};
|
|
1470
687
|
export const de_GetUsageLimitCommand = async (output, context) => {
|
|
1471
688
|
if (output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
1473
690
|
}
|
|
1474
691
|
const data = await parseBody(output.body, context);
|
|
1475
692
|
let contents = {};
|
|
@@ -1480,37 +697,9 @@ export const de_GetUsageLimitCommand = async (output, context) => {
|
|
|
1480
697
|
};
|
|
1481
698
|
return response;
|
|
1482
699
|
};
|
|
1483
|
-
const de_GetUsageLimitCommandError = async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context),
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "ConflictException":
|
|
1491
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1492
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "InternalServerException":
|
|
1494
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1495
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ResourceNotFoundException":
|
|
1497
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ValidationException":
|
|
1500
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1501
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1502
|
-
default:
|
|
1503
|
-
const parsedBody = parsedOutput.body;
|
|
1504
|
-
return throwDefaultError({
|
|
1505
|
-
output,
|
|
1506
|
-
parsedBody,
|
|
1507
|
-
errorCode,
|
|
1508
|
-
});
|
|
1509
|
-
}
|
|
1510
|
-
};
|
|
1511
700
|
export const de_GetWorkgroupCommand = async (output, context) => {
|
|
1512
701
|
if (output.statusCode >= 300) {
|
|
1513
|
-
return
|
|
702
|
+
return de_CommandError(output, context);
|
|
1514
703
|
}
|
|
1515
704
|
const data = await parseBody(output.body, context);
|
|
1516
705
|
let contents = {};
|
|
@@ -1521,34 +710,9 @@ export const de_GetWorkgroupCommand = async (output, context) => {
|
|
|
1521
710
|
};
|
|
1522
711
|
return response;
|
|
1523
712
|
};
|
|
1524
|
-
const de_GetWorkgroupCommandError = async (output, context) => {
|
|
1525
|
-
const parsedOutput = {
|
|
1526
|
-
...output,
|
|
1527
|
-
body: await parseErrorBody(output.body, context),
|
|
1528
|
-
};
|
|
1529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
|
-
switch (errorCode) {
|
|
1531
|
-
case "InternalServerException":
|
|
1532
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1533
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "ResourceNotFoundException":
|
|
1535
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1536
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ValidationException":
|
|
1538
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1539
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1540
|
-
default:
|
|
1541
|
-
const parsedBody = parsedOutput.body;
|
|
1542
|
-
return throwDefaultError({
|
|
1543
|
-
output,
|
|
1544
|
-
parsedBody,
|
|
1545
|
-
errorCode,
|
|
1546
|
-
});
|
|
1547
|
-
}
|
|
1548
|
-
};
|
|
1549
713
|
export const de_ListCustomDomainAssociationsCommand = async (output, context) => {
|
|
1550
714
|
if (output.statusCode >= 300) {
|
|
1551
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
1552
716
|
}
|
|
1553
717
|
const data = await parseBody(output.body, context);
|
|
1554
718
|
let contents = {};
|
|
@@ -1559,40 +723,9 @@ export const de_ListCustomDomainAssociationsCommand = async (output, context) =>
|
|
|
1559
723
|
};
|
|
1560
724
|
return response;
|
|
1561
725
|
};
|
|
1562
|
-
const de_ListCustomDomainAssociationsCommandError = async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context),
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
switch (errorCode) {
|
|
1569
|
-
case "AccessDeniedException":
|
|
1570
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1571
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "InternalServerException":
|
|
1573
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1574
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "InvalidPaginationException":
|
|
1576
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1577
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ThrottlingException":
|
|
1579
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1580
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ValidationException":
|
|
1582
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1583
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
726
|
export const de_ListEndpointAccessCommand = async (output, context) => {
|
|
1594
727
|
if (output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
728
|
+
return de_CommandError(output, context);
|
|
1596
729
|
}
|
|
1597
730
|
const data = await parseBody(output.body, context);
|
|
1598
731
|
let contents = {};
|
|
@@ -1603,37 +736,9 @@ export const de_ListEndpointAccessCommand = async (output, context) => {
|
|
|
1603
736
|
};
|
|
1604
737
|
return response;
|
|
1605
738
|
};
|
|
1606
|
-
const de_ListEndpointAccessCommandError = async (output, context) => {
|
|
1607
|
-
const parsedOutput = {
|
|
1608
|
-
...output,
|
|
1609
|
-
body: await parseErrorBody(output.body, context),
|
|
1610
|
-
};
|
|
1611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
-
switch (errorCode) {
|
|
1613
|
-
case "ConflictException":
|
|
1614
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1615
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "InternalServerException":
|
|
1617
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1618
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "ResourceNotFoundException":
|
|
1620
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1621
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ValidationException":
|
|
1623
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1624
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1625
|
-
default:
|
|
1626
|
-
const parsedBody = parsedOutput.body;
|
|
1627
|
-
return throwDefaultError({
|
|
1628
|
-
output,
|
|
1629
|
-
parsedBody,
|
|
1630
|
-
errorCode,
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
};
|
|
1634
739
|
export const de_ListNamespacesCommand = async (output, context) => {
|
|
1635
740
|
if (output.statusCode >= 300) {
|
|
1636
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
1637
742
|
}
|
|
1638
743
|
const data = await parseBody(output.body, context);
|
|
1639
744
|
let contents = {};
|
|
@@ -1644,31 +749,9 @@ export const de_ListNamespacesCommand = async (output, context) => {
|
|
|
1644
749
|
};
|
|
1645
750
|
return response;
|
|
1646
751
|
};
|
|
1647
|
-
const de_ListNamespacesCommandError = async (output, context) => {
|
|
1648
|
-
const parsedOutput = {
|
|
1649
|
-
...output,
|
|
1650
|
-
body: await parseErrorBody(output.body, context),
|
|
1651
|
-
};
|
|
1652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
-
switch (errorCode) {
|
|
1654
|
-
case "InternalServerException":
|
|
1655
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1656
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ValidationException":
|
|
1658
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1660
|
-
default:
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody,
|
|
1665
|
-
errorCode,
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
752
|
export const de_ListRecoveryPointsCommand = async (output, context) => {
|
|
1670
753
|
if (output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
1672
755
|
}
|
|
1673
756
|
const data = await parseBody(output.body, context);
|
|
1674
757
|
let contents = {};
|
|
@@ -1679,31 +762,9 @@ export const de_ListRecoveryPointsCommand = async (output, context) => {
|
|
|
1679
762
|
};
|
|
1680
763
|
return response;
|
|
1681
764
|
};
|
|
1682
|
-
const de_ListRecoveryPointsCommandError = async (output, context) => {
|
|
1683
|
-
const parsedOutput = {
|
|
1684
|
-
...output,
|
|
1685
|
-
body: await parseErrorBody(output.body, context),
|
|
1686
|
-
};
|
|
1687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
-
switch (errorCode) {
|
|
1689
|
-
case "InternalServerException":
|
|
1690
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1691
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ValidationException":
|
|
1693
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1695
|
-
default:
|
|
1696
|
-
const parsedBody = parsedOutput.body;
|
|
1697
|
-
return throwDefaultError({
|
|
1698
|
-
output,
|
|
1699
|
-
parsedBody,
|
|
1700
|
-
errorCode,
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
765
|
export const de_ListScheduledActionsCommand = async (output, context) => {
|
|
1705
766
|
if (output.statusCode >= 300) {
|
|
1706
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1707
768
|
}
|
|
1708
769
|
const data = await parseBody(output.body, context);
|
|
1709
770
|
let contents = {};
|
|
@@ -1714,37 +775,9 @@ export const de_ListScheduledActionsCommand = async (output, context) => {
|
|
|
1714
775
|
};
|
|
1715
776
|
return response;
|
|
1716
777
|
};
|
|
1717
|
-
const de_ListScheduledActionsCommandError = async (output, context) => {
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context),
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "InternalServerException":
|
|
1725
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1726
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "InvalidPaginationException":
|
|
1728
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1729
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ResourceNotFoundException":
|
|
1731
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ValidationException":
|
|
1734
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode,
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
};
|
|
1745
778
|
export const de_ListSnapshotCopyConfigurationsCommand = async (output, context) => {
|
|
1746
779
|
if (output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
1748
781
|
}
|
|
1749
782
|
const data = await parseBody(output.body, context);
|
|
1750
783
|
let contents = {};
|
|
@@ -1755,40 +788,9 @@ export const de_ListSnapshotCopyConfigurationsCommand = async (output, context)
|
|
|
1755
788
|
};
|
|
1756
789
|
return response;
|
|
1757
790
|
};
|
|
1758
|
-
const de_ListSnapshotCopyConfigurationsCommandError = async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context),
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "ConflictException":
|
|
1766
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1767
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InternalServerException":
|
|
1769
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1770
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "InvalidPaginationException":
|
|
1772
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1773
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ResourceNotFoundException":
|
|
1775
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1776
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ValidationException":
|
|
1778
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1780
|
-
default:
|
|
1781
|
-
const parsedBody = parsedOutput.body;
|
|
1782
|
-
return throwDefaultError({
|
|
1783
|
-
output,
|
|
1784
|
-
parsedBody,
|
|
1785
|
-
errorCode,
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
};
|
|
1789
791
|
export const de_ListSnapshotsCommand = async (output, context) => {
|
|
1790
792
|
if (output.statusCode >= 300) {
|
|
1791
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
1792
794
|
}
|
|
1793
795
|
const data = await parseBody(output.body, context);
|
|
1794
796
|
let contents = {};
|
|
@@ -1799,34 +801,9 @@ export const de_ListSnapshotsCommand = async (output, context) => {
|
|
|
1799
801
|
};
|
|
1800
802
|
return response;
|
|
1801
803
|
};
|
|
1802
|
-
const de_ListSnapshotsCommandError = async (output, context) => {
|
|
1803
|
-
const parsedOutput = {
|
|
1804
|
-
...output,
|
|
1805
|
-
body: await parseErrorBody(output.body, context),
|
|
1806
|
-
};
|
|
1807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
-
switch (errorCode) {
|
|
1809
|
-
case "InternalServerException":
|
|
1810
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1811
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "ResourceNotFoundException":
|
|
1813
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1814
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "ValidationException":
|
|
1816
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1818
|
-
default:
|
|
1819
|
-
const parsedBody = parsedOutput.body;
|
|
1820
|
-
return throwDefaultError({
|
|
1821
|
-
output,
|
|
1822
|
-
parsedBody,
|
|
1823
|
-
errorCode,
|
|
1824
|
-
});
|
|
1825
|
-
}
|
|
1826
|
-
};
|
|
1827
804
|
export const de_ListTableRestoreStatusCommand = async (output, context) => {
|
|
1828
805
|
if (output.statusCode >= 300) {
|
|
1829
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
1830
807
|
}
|
|
1831
808
|
const data = await parseBody(output.body, context);
|
|
1832
809
|
let contents = {};
|
|
@@ -1837,34 +814,9 @@ export const de_ListTableRestoreStatusCommand = async (output, context) => {
|
|
|
1837
814
|
};
|
|
1838
815
|
return response;
|
|
1839
816
|
};
|
|
1840
|
-
const de_ListTableRestoreStatusCommandError = async (output, context) => {
|
|
1841
|
-
const parsedOutput = {
|
|
1842
|
-
...output,
|
|
1843
|
-
body: await parseErrorBody(output.body, context),
|
|
1844
|
-
};
|
|
1845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1846
|
-
switch (errorCode) {
|
|
1847
|
-
case "InvalidPaginationException":
|
|
1848
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1849
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1850
|
-
case "ResourceNotFoundException":
|
|
1851
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1852
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1853
|
-
case "ValidationException":
|
|
1854
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1855
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1856
|
-
default:
|
|
1857
|
-
const parsedBody = parsedOutput.body;
|
|
1858
|
-
return throwDefaultError({
|
|
1859
|
-
output,
|
|
1860
|
-
parsedBody,
|
|
1861
|
-
errorCode,
|
|
1862
|
-
});
|
|
1863
|
-
}
|
|
1864
|
-
};
|
|
1865
817
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1866
818
|
if (output.statusCode >= 300) {
|
|
1867
|
-
return
|
|
819
|
+
return de_CommandError(output, context);
|
|
1868
820
|
}
|
|
1869
821
|
const data = await parseBody(output.body, context);
|
|
1870
822
|
let contents = {};
|
|
@@ -1875,37 +827,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1875
827
|
};
|
|
1876
828
|
return response;
|
|
1877
829
|
};
|
|
1878
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1879
|
-
const parsedOutput = {
|
|
1880
|
-
...output,
|
|
1881
|
-
body: await parseErrorBody(output.body, context),
|
|
1882
|
-
};
|
|
1883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
|
-
switch (errorCode) {
|
|
1885
|
-
case "InternalServerException":
|
|
1886
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1887
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ResourceNotFoundException":
|
|
1889
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ThrottlingException":
|
|
1892
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1893
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "ValidationException":
|
|
1895
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1896
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1897
|
-
default:
|
|
1898
|
-
const parsedBody = parsedOutput.body;
|
|
1899
|
-
return throwDefaultError({
|
|
1900
|
-
output,
|
|
1901
|
-
parsedBody,
|
|
1902
|
-
errorCode,
|
|
1903
|
-
});
|
|
1904
|
-
}
|
|
1905
|
-
};
|
|
1906
830
|
export const de_ListUsageLimitsCommand = async (output, context) => {
|
|
1907
831
|
if (output.statusCode >= 300) {
|
|
1908
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1909
833
|
}
|
|
1910
834
|
const data = await parseBody(output.body, context);
|
|
1911
835
|
let contents = {};
|
|
@@ -1916,40 +840,9 @@ export const de_ListUsageLimitsCommand = async (output, context) => {
|
|
|
1916
840
|
};
|
|
1917
841
|
return response;
|
|
1918
842
|
};
|
|
1919
|
-
const de_ListUsageLimitsCommandError = async (output, context) => {
|
|
1920
|
-
const parsedOutput = {
|
|
1921
|
-
...output,
|
|
1922
|
-
body: await parseErrorBody(output.body, context),
|
|
1923
|
-
};
|
|
1924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
|
-
switch (errorCode) {
|
|
1926
|
-
case "ConflictException":
|
|
1927
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1928
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "InternalServerException":
|
|
1930
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1931
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "InvalidPaginationException":
|
|
1933
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1934
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1935
|
-
case "ResourceNotFoundException":
|
|
1936
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1937
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "ValidationException":
|
|
1939
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1940
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
|
-
default:
|
|
1942
|
-
const parsedBody = parsedOutput.body;
|
|
1943
|
-
return throwDefaultError({
|
|
1944
|
-
output,
|
|
1945
|
-
parsedBody,
|
|
1946
|
-
errorCode,
|
|
1947
|
-
});
|
|
1948
|
-
}
|
|
1949
|
-
};
|
|
1950
843
|
export const de_ListWorkgroupsCommand = async (output, context) => {
|
|
1951
844
|
if (output.statusCode >= 300) {
|
|
1952
|
-
return
|
|
845
|
+
return de_CommandError(output, context);
|
|
1953
846
|
}
|
|
1954
847
|
const data = await parseBody(output.body, context);
|
|
1955
848
|
let contents = {};
|
|
@@ -1960,31 +853,9 @@ export const de_ListWorkgroupsCommand = async (output, context) => {
|
|
|
1960
853
|
};
|
|
1961
854
|
return response;
|
|
1962
855
|
};
|
|
1963
|
-
const de_ListWorkgroupsCommandError = async (output, context) => {
|
|
1964
|
-
const parsedOutput = {
|
|
1965
|
-
...output,
|
|
1966
|
-
body: await parseErrorBody(output.body, context),
|
|
1967
|
-
};
|
|
1968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
|
-
switch (errorCode) {
|
|
1970
|
-
case "InternalServerException":
|
|
1971
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ValidationException":
|
|
1974
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1975
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1976
|
-
default:
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
return throwDefaultError({
|
|
1979
|
-
output,
|
|
1980
|
-
parsedBody,
|
|
1981
|
-
errorCode,
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
};
|
|
1985
856
|
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1986
857
|
if (output.statusCode >= 300) {
|
|
1987
|
-
return
|
|
858
|
+
return de_CommandError(output, context);
|
|
1988
859
|
}
|
|
1989
860
|
const data = await parseBody(output.body, context);
|
|
1990
861
|
let contents = {};
|
|
@@ -1995,40 +866,9 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1995
866
|
};
|
|
1996
867
|
return response;
|
|
1997
868
|
};
|
|
1998
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1999
|
-
const parsedOutput = {
|
|
2000
|
-
...output,
|
|
2001
|
-
body: await parseErrorBody(output.body, context),
|
|
2002
|
-
};
|
|
2003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
|
-
switch (errorCode) {
|
|
2005
|
-
case "ConflictException":
|
|
2006
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2007
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "InternalServerException":
|
|
2009
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2010
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "ResourceNotFoundException":
|
|
2012
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2013
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ServiceQuotaExceededException":
|
|
2015
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
2016
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ValidationException":
|
|
2018
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2019
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2020
|
-
default:
|
|
2021
|
-
const parsedBody = parsedOutput.body;
|
|
2022
|
-
return throwDefaultError({
|
|
2023
|
-
output,
|
|
2024
|
-
parsedBody,
|
|
2025
|
-
errorCode,
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
};
|
|
2029
869
|
export const de_RestoreFromRecoveryPointCommand = async (output, context) => {
|
|
2030
870
|
if (output.statusCode >= 300) {
|
|
2031
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
2032
872
|
}
|
|
2033
873
|
const data = await parseBody(output.body, context);
|
|
2034
874
|
let contents = {};
|
|
@@ -2039,37 +879,9 @@ export const de_RestoreFromRecoveryPointCommand = async (output, context) => {
|
|
|
2039
879
|
};
|
|
2040
880
|
return response;
|
|
2041
881
|
};
|
|
2042
|
-
const de_RestoreFromRecoveryPointCommandError = async (output, context) => {
|
|
2043
|
-
const parsedOutput = {
|
|
2044
|
-
...output,
|
|
2045
|
-
body: await parseErrorBody(output.body, context),
|
|
2046
|
-
};
|
|
2047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
|
-
switch (errorCode) {
|
|
2049
|
-
case "ConflictException":
|
|
2050
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2051
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "InternalServerException":
|
|
2053
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2054
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ResourceNotFoundException":
|
|
2056
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ValidationException":
|
|
2059
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode,
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
882
|
export const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
2071
883
|
if (output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
2073
885
|
}
|
|
2074
886
|
const data = await parseBody(output.body, context);
|
|
2075
887
|
let contents = {};
|
|
@@ -2080,40 +892,9 @@ export const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
|
2080
892
|
};
|
|
2081
893
|
return response;
|
|
2082
894
|
};
|
|
2083
|
-
const de_RestoreFromSnapshotCommandError = async (output, context) => {
|
|
2084
|
-
const parsedOutput = {
|
|
2085
|
-
...output,
|
|
2086
|
-
body: await parseErrorBody(output.body, context),
|
|
2087
|
-
};
|
|
2088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
-
switch (errorCode) {
|
|
2090
|
-
case "ConflictException":
|
|
2091
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2092
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "InternalServerException":
|
|
2094
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2095
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "ResourceNotFoundException":
|
|
2097
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2098
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "ServiceQuotaExceededException":
|
|
2100
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
2101
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "ValidationException":
|
|
2103
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2105
|
-
default:
|
|
2106
|
-
const parsedBody = parsedOutput.body;
|
|
2107
|
-
return throwDefaultError({
|
|
2108
|
-
output,
|
|
2109
|
-
parsedBody,
|
|
2110
|
-
errorCode,
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
|
-
};
|
|
2114
895
|
export const de_RestoreTableFromRecoveryPointCommand = async (output, context) => {
|
|
2115
896
|
if (output.statusCode >= 300) {
|
|
2116
|
-
return
|
|
897
|
+
return de_CommandError(output, context);
|
|
2117
898
|
}
|
|
2118
899
|
const data = await parseBody(output.body, context);
|
|
2119
900
|
let contents = {};
|
|
@@ -2124,37 +905,9 @@ export const de_RestoreTableFromRecoveryPointCommand = async (output, context) =
|
|
|
2124
905
|
};
|
|
2125
906
|
return response;
|
|
2126
907
|
};
|
|
2127
|
-
const de_RestoreTableFromRecoveryPointCommandError = async (output, context) => {
|
|
2128
|
-
const parsedOutput = {
|
|
2129
|
-
...output,
|
|
2130
|
-
body: await parseErrorBody(output.body, context),
|
|
2131
|
-
};
|
|
2132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
|
-
switch (errorCode) {
|
|
2134
|
-
case "ConflictException":
|
|
2135
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2136
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "InternalServerException":
|
|
2138
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2139
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "ResourceNotFoundException":
|
|
2141
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2142
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ValidationException":
|
|
2144
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2145
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2146
|
-
default:
|
|
2147
|
-
const parsedBody = parsedOutput.body;
|
|
2148
|
-
return throwDefaultError({
|
|
2149
|
-
output,
|
|
2150
|
-
parsedBody,
|
|
2151
|
-
errorCode,
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
};
|
|
2155
908
|
export const de_RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
2156
909
|
if (output.statusCode >= 300) {
|
|
2157
|
-
return
|
|
910
|
+
return de_CommandError(output, context);
|
|
2158
911
|
}
|
|
2159
912
|
const data = await parseBody(output.body, context);
|
|
2160
913
|
let contents = {};
|
|
@@ -2165,81 +918,22 @@ export const de_RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
|
2165
918
|
};
|
|
2166
919
|
return response;
|
|
2167
920
|
};
|
|
2168
|
-
const de_RestoreTableFromSnapshotCommandError = async (output, context) => {
|
|
2169
|
-
const parsedOutput = {
|
|
2170
|
-
...output,
|
|
2171
|
-
body: await parseErrorBody(output.body, context),
|
|
2172
|
-
};
|
|
2173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
|
-
switch (errorCode) {
|
|
2175
|
-
case "ConflictException":
|
|
2176
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "InternalServerException":
|
|
2179
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2181
|
-
case "ResourceNotFoundException":
|
|
2182
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "ValidationException":
|
|
2185
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2186
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2187
|
-
default:
|
|
2188
|
-
const parsedBody = parsedOutput.body;
|
|
2189
|
-
return throwDefaultError({
|
|
2190
|
-
output,
|
|
2191
|
-
parsedBody,
|
|
2192
|
-
errorCode,
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
};
|
|
2196
921
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2197
922
|
if (output.statusCode >= 300) {
|
|
2198
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
2199
924
|
}
|
|
2200
925
|
const data = await parseBody(output.body, context);
|
|
2201
|
-
let contents = {};
|
|
2202
|
-
contents = _json(data);
|
|
2203
|
-
const response = {
|
|
2204
|
-
$metadata: deserializeMetadata(output),
|
|
2205
|
-
...contents,
|
|
2206
|
-
};
|
|
2207
|
-
return response;
|
|
2208
|
-
};
|
|
2209
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2210
|
-
const parsedOutput = {
|
|
2211
|
-
...output,
|
|
2212
|
-
body: await parseErrorBody(output.body, context),
|
|
2213
|
-
};
|
|
2214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2215
|
-
switch (errorCode) {
|
|
2216
|
-
case "InternalServerException":
|
|
2217
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2218
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "ResourceNotFoundException":
|
|
2220
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "ThrottlingException":
|
|
2223
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2224
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "TooManyTagsException":
|
|
2226
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
2227
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ValidationException":
|
|
2229
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2230
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2231
|
-
default:
|
|
2232
|
-
const parsedBody = parsedOutput.body;
|
|
2233
|
-
return throwDefaultError({
|
|
2234
|
-
output,
|
|
2235
|
-
parsedBody,
|
|
2236
|
-
errorCode,
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
926
|
+
let contents = {};
|
|
927
|
+
contents = _json(data);
|
|
928
|
+
const response = {
|
|
929
|
+
$metadata: deserializeMetadata(output),
|
|
930
|
+
...contents,
|
|
931
|
+
};
|
|
932
|
+
return response;
|
|
2239
933
|
};
|
|
2240
934
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2241
935
|
if (output.statusCode >= 300) {
|
|
2242
|
-
return
|
|
936
|
+
return de_CommandError(output, context);
|
|
2243
937
|
}
|
|
2244
938
|
const data = await parseBody(output.body, context);
|
|
2245
939
|
let contents = {};
|
|
@@ -2250,37 +944,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2250
944
|
};
|
|
2251
945
|
return response;
|
|
2252
946
|
};
|
|
2253
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2254
|
-
const parsedOutput = {
|
|
2255
|
-
...output,
|
|
2256
|
-
body: await parseErrorBody(output.body, context),
|
|
2257
|
-
};
|
|
2258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
-
switch (errorCode) {
|
|
2260
|
-
case "InternalServerException":
|
|
2261
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2262
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "ResourceNotFoundException":
|
|
2264
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "ThrottlingException":
|
|
2267
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "ValidationException":
|
|
2270
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2272
|
-
default:
|
|
2273
|
-
const parsedBody = parsedOutput.body;
|
|
2274
|
-
return throwDefaultError({
|
|
2275
|
-
output,
|
|
2276
|
-
parsedBody,
|
|
2277
|
-
errorCode,
|
|
2278
|
-
});
|
|
2279
|
-
}
|
|
2280
|
-
};
|
|
2281
947
|
export const de_UpdateCustomDomainAssociationCommand = async (output, context) => {
|
|
2282
948
|
if (output.statusCode >= 300) {
|
|
2283
|
-
return
|
|
949
|
+
return de_CommandError(output, context);
|
|
2284
950
|
}
|
|
2285
951
|
const data = await parseBody(output.body, context);
|
|
2286
952
|
let contents = {};
|
|
@@ -2291,43 +957,9 @@ export const de_UpdateCustomDomainAssociationCommand = async (output, context) =
|
|
|
2291
957
|
};
|
|
2292
958
|
return response;
|
|
2293
959
|
};
|
|
2294
|
-
const de_UpdateCustomDomainAssociationCommandError = async (output, context) => {
|
|
2295
|
-
const parsedOutput = {
|
|
2296
|
-
...output,
|
|
2297
|
-
body: await parseErrorBody(output.body, context),
|
|
2298
|
-
};
|
|
2299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2300
|
-
switch (errorCode) {
|
|
2301
|
-
case "AccessDeniedException":
|
|
2302
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2303
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "ConflictException":
|
|
2305
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2306
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "InternalServerException":
|
|
2308
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2310
|
-
case "ResourceNotFoundException":
|
|
2311
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "ThrottlingException":
|
|
2314
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2315
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "ValidationException":
|
|
2317
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2318
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2319
|
-
default:
|
|
2320
|
-
const parsedBody = parsedOutput.body;
|
|
2321
|
-
return throwDefaultError({
|
|
2322
|
-
output,
|
|
2323
|
-
parsedBody,
|
|
2324
|
-
errorCode,
|
|
2325
|
-
});
|
|
2326
|
-
}
|
|
2327
|
-
};
|
|
2328
960
|
export const de_UpdateEndpointAccessCommand = async (output, context) => {
|
|
2329
961
|
if (output.statusCode >= 300) {
|
|
2330
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
2331
963
|
}
|
|
2332
964
|
const data = await parseBody(output.body, context);
|
|
2333
965
|
let contents = {};
|
|
@@ -2338,40 +970,9 @@ export const de_UpdateEndpointAccessCommand = async (output, context) => {
|
|
|
2338
970
|
};
|
|
2339
971
|
return response;
|
|
2340
972
|
};
|
|
2341
|
-
const de_UpdateEndpointAccessCommandError = async (output, context) => {
|
|
2342
|
-
const parsedOutput = {
|
|
2343
|
-
...output,
|
|
2344
|
-
body: await parseErrorBody(output.body, context),
|
|
2345
|
-
};
|
|
2346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2347
|
-
switch (errorCode) {
|
|
2348
|
-
case "AccessDeniedException":
|
|
2349
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "ConflictException":
|
|
2352
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2353
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "InternalServerException":
|
|
2355
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2356
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ResourceNotFoundException":
|
|
2358
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "ValidationException":
|
|
2361
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2363
|
-
default:
|
|
2364
|
-
const parsedBody = parsedOutput.body;
|
|
2365
|
-
return throwDefaultError({
|
|
2366
|
-
output,
|
|
2367
|
-
parsedBody,
|
|
2368
|
-
errorCode,
|
|
2369
|
-
});
|
|
2370
|
-
}
|
|
2371
|
-
};
|
|
2372
973
|
export const de_UpdateNamespaceCommand = async (output, context) => {
|
|
2373
974
|
if (output.statusCode >= 300) {
|
|
2374
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
2375
976
|
}
|
|
2376
977
|
const data = await parseBody(output.body, context);
|
|
2377
978
|
let contents = {};
|
|
@@ -2382,37 +983,9 @@ export const de_UpdateNamespaceCommand = async (output, context) => {
|
|
|
2382
983
|
};
|
|
2383
984
|
return response;
|
|
2384
985
|
};
|
|
2385
|
-
const de_UpdateNamespaceCommandError = async (output, context) => {
|
|
2386
|
-
const parsedOutput = {
|
|
2387
|
-
...output,
|
|
2388
|
-
body: await parseErrorBody(output.body, context),
|
|
2389
|
-
};
|
|
2390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
|
-
switch (errorCode) {
|
|
2392
|
-
case "ConflictException":
|
|
2393
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2394
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "InternalServerException":
|
|
2396
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2397
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "ResourceNotFoundException":
|
|
2399
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "ValidationException":
|
|
2402
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2404
|
-
default:
|
|
2405
|
-
const parsedBody = parsedOutput.body;
|
|
2406
|
-
return throwDefaultError({
|
|
2407
|
-
output,
|
|
2408
|
-
parsedBody,
|
|
2409
|
-
errorCode,
|
|
2410
|
-
});
|
|
2411
|
-
}
|
|
2412
|
-
};
|
|
2413
986
|
export const de_UpdateScheduledActionCommand = async (output, context) => {
|
|
2414
987
|
if (output.statusCode >= 300) {
|
|
2415
|
-
return
|
|
988
|
+
return de_CommandError(output, context);
|
|
2416
989
|
}
|
|
2417
990
|
const data = await parseBody(output.body, context);
|
|
2418
991
|
let contents = {};
|
|
@@ -2423,37 +996,9 @@ export const de_UpdateScheduledActionCommand = async (output, context) => {
|
|
|
2423
996
|
};
|
|
2424
997
|
return response;
|
|
2425
998
|
};
|
|
2426
|
-
const de_UpdateScheduledActionCommandError = async (output, context) => {
|
|
2427
|
-
const parsedOutput = {
|
|
2428
|
-
...output,
|
|
2429
|
-
body: await parseErrorBody(output.body, context),
|
|
2430
|
-
};
|
|
2431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
-
switch (errorCode) {
|
|
2433
|
-
case "ConflictException":
|
|
2434
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2435
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "InternalServerException":
|
|
2437
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ResourceNotFoundException":
|
|
2440
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ValidationException":
|
|
2443
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2444
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2445
|
-
default:
|
|
2446
|
-
const parsedBody = parsedOutput.body;
|
|
2447
|
-
return throwDefaultError({
|
|
2448
|
-
output,
|
|
2449
|
-
parsedBody,
|
|
2450
|
-
errorCode,
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
};
|
|
2454
999
|
export const de_UpdateSnapshotCommand = async (output, context) => {
|
|
2455
1000
|
if (output.statusCode >= 300) {
|
|
2456
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
2457
1002
|
}
|
|
2458
1003
|
const data = await parseBody(output.body, context);
|
|
2459
1004
|
let contents = {};
|
|
@@ -2464,37 +1009,9 @@ export const de_UpdateSnapshotCommand = async (output, context) => {
|
|
|
2464
1009
|
};
|
|
2465
1010
|
return response;
|
|
2466
1011
|
};
|
|
2467
|
-
const de_UpdateSnapshotCommandError = async (output, context) => {
|
|
2468
|
-
const parsedOutput = {
|
|
2469
|
-
...output,
|
|
2470
|
-
body: await parseErrorBody(output.body, context),
|
|
2471
|
-
};
|
|
2472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
|
-
switch (errorCode) {
|
|
2474
|
-
case "ConflictException":
|
|
2475
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2476
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "InternalServerException":
|
|
2478
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2479
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "ResourceNotFoundException":
|
|
2481
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2482
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "ValidationException":
|
|
2484
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2485
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2486
|
-
default:
|
|
2487
|
-
const parsedBody = parsedOutput.body;
|
|
2488
|
-
return throwDefaultError({
|
|
2489
|
-
output,
|
|
2490
|
-
parsedBody,
|
|
2491
|
-
errorCode,
|
|
2492
|
-
});
|
|
2493
|
-
}
|
|
2494
|
-
};
|
|
2495
1012
|
export const de_UpdateSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
2496
1013
|
if (output.statusCode >= 300) {
|
|
2497
|
-
return
|
|
1014
|
+
return de_CommandError(output, context);
|
|
2498
1015
|
}
|
|
2499
1016
|
const data = await parseBody(output.body, context);
|
|
2500
1017
|
let contents = {};
|
|
@@ -2505,40 +1022,9 @@ export const de_UpdateSnapshotCopyConfigurationCommand = async (output, context)
|
|
|
2505
1022
|
};
|
|
2506
1023
|
return response;
|
|
2507
1024
|
};
|
|
2508
|
-
const de_UpdateSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
2509
|
-
const parsedOutput = {
|
|
2510
|
-
...output,
|
|
2511
|
-
body: await parseErrorBody(output.body, context),
|
|
2512
|
-
};
|
|
2513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
|
-
switch (errorCode) {
|
|
2515
|
-
case "AccessDeniedException":
|
|
2516
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2517
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "ConflictException":
|
|
2519
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2520
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "InternalServerException":
|
|
2522
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2523
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "ResourceNotFoundException":
|
|
2525
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2527
|
-
case "ValidationException":
|
|
2528
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2530
|
-
default:
|
|
2531
|
-
const parsedBody = parsedOutput.body;
|
|
2532
|
-
return throwDefaultError({
|
|
2533
|
-
output,
|
|
2534
|
-
parsedBody,
|
|
2535
|
-
errorCode,
|
|
2536
|
-
});
|
|
2537
|
-
}
|
|
2538
|
-
};
|
|
2539
1025
|
export const de_UpdateUsageLimitCommand = async (output, context) => {
|
|
2540
1026
|
if (output.statusCode >= 300) {
|
|
2541
|
-
return
|
|
1027
|
+
return de_CommandError(output, context);
|
|
2542
1028
|
}
|
|
2543
1029
|
const data = await parseBody(output.body, context);
|
|
2544
1030
|
let contents = {};
|
|
@@ -2549,37 +1035,9 @@ export const de_UpdateUsageLimitCommand = async (output, context) => {
|
|
|
2549
1035
|
};
|
|
2550
1036
|
return response;
|
|
2551
1037
|
};
|
|
2552
|
-
const de_UpdateUsageLimitCommandError = async (output, context) => {
|
|
2553
|
-
const parsedOutput = {
|
|
2554
|
-
...output,
|
|
2555
|
-
body: await parseErrorBody(output.body, context),
|
|
2556
|
-
};
|
|
2557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
|
-
switch (errorCode) {
|
|
2559
|
-
case "ConflictException":
|
|
2560
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2561
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "InternalServerException":
|
|
2563
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2564
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ResourceNotFoundException":
|
|
2566
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ValidationException":
|
|
2569
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
return throwDefaultError({
|
|
2574
|
-
output,
|
|
2575
|
-
parsedBody,
|
|
2576
|
-
errorCode,
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
1038
|
export const de_UpdateWorkgroupCommand = async (output, context) => {
|
|
2581
1039
|
if (output.statusCode >= 300) {
|
|
2582
|
-
return
|
|
1040
|
+
return de_CommandError(output, context);
|
|
2583
1041
|
}
|
|
2584
1042
|
const data = await parseBody(output.body, context);
|
|
2585
1043
|
let contents = {};
|
|
@@ -2590,7 +1048,7 @@ export const de_UpdateWorkgroupCommand = async (output, context) => {
|
|
|
2590
1048
|
};
|
|
2591
1049
|
return response;
|
|
2592
1050
|
};
|
|
2593
|
-
const
|
|
1051
|
+
const de_CommandError = async (output, context) => {
|
|
2594
1052
|
const parsedOutput = {
|
|
2595
1053
|
...output,
|
|
2596
1054
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2600,18 +1058,33 @@ const de_UpdateWorkgroupCommandError = async (output, context) => {
|
|
|
2600
1058
|
case "ConflictException":
|
|
2601
1059
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2602
1060
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "InsufficientCapacityException":
|
|
2604
|
-
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
2605
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
2606
1061
|
case "InternalServerException":
|
|
2607
1062
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2608
1063
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2609
1064
|
case "ResourceNotFoundException":
|
|
2610
1065
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2611
1066
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "ServiceQuotaExceededException":
|
|
1068
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1069
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "TooManyTagsException":
|
|
1071
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1072
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2612
1073
|
case "ValidationException":
|
|
2613
1074
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2614
1075
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "AccessDeniedException":
|
|
1077
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1078
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "ThrottlingException":
|
|
1080
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1081
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "InsufficientCapacityException":
|
|
1083
|
+
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
1084
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "InvalidPaginationException":
|
|
1086
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1087
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2615
1088
|
default:
|
|
2616
1089
|
const parsedBody = parsedOutput.body;
|
|
2617
1090
|
return throwDefaultError({
|