@aws-sdk/client-elastic-beanstalk 3.504.0 → 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 +115 -947
- package/dist-es/protocols/Aws_query.js +121 -953
- package/package.json +3 -3
|
@@ -469,7 +469,7 @@ export const se_ValidateConfigurationSettingsCommand = async (input, context) =>
|
|
|
469
469
|
};
|
|
470
470
|
export const de_AbortEnvironmentUpdateCommand = async (output, context) => {
|
|
471
471
|
if (output.statusCode >= 300) {
|
|
472
|
-
return
|
|
472
|
+
return de_CommandError(output, context);
|
|
473
473
|
}
|
|
474
474
|
await collectBody(output.body, context);
|
|
475
475
|
const response = {
|
|
@@ -477,28 +477,9 @@ export const de_AbortEnvironmentUpdateCommand = async (output, context) => {
|
|
|
477
477
|
};
|
|
478
478
|
return response;
|
|
479
479
|
};
|
|
480
|
-
const de_AbortEnvironmentUpdateCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "InsufficientPrivilegesException":
|
|
488
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
489
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
490
|
-
default:
|
|
491
|
-
const parsedBody = parsedOutput.body;
|
|
492
|
-
return throwDefaultError({
|
|
493
|
-
output,
|
|
494
|
-
parsedBody: parsedBody.Error,
|
|
495
|
-
errorCode,
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
480
|
export const de_ApplyEnvironmentManagedActionCommand = async (output, context) => {
|
|
500
481
|
if (output.statusCode >= 300) {
|
|
501
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
502
483
|
}
|
|
503
484
|
const data = await parseBody(output.body, context);
|
|
504
485
|
let contents = {};
|
|
@@ -509,31 +490,9 @@ export const de_ApplyEnvironmentManagedActionCommand = async (output, context) =
|
|
|
509
490
|
};
|
|
510
491
|
return response;
|
|
511
492
|
};
|
|
512
|
-
const de_ApplyEnvironmentManagedActionCommandError = async (output, context) => {
|
|
513
|
-
const parsedOutput = {
|
|
514
|
-
...output,
|
|
515
|
-
body: await parseErrorBody(output.body, context),
|
|
516
|
-
};
|
|
517
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
518
|
-
switch (errorCode) {
|
|
519
|
-
case "ElasticBeanstalkServiceException":
|
|
520
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
521
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ManagedActionInvalidStateException":
|
|
523
|
-
case "com.amazonaws.elasticbeanstalk#ManagedActionInvalidStateException":
|
|
524
|
-
throw await de_ManagedActionInvalidStateExceptionRes(parsedOutput, context);
|
|
525
|
-
default:
|
|
526
|
-
const parsedBody = parsedOutput.body;
|
|
527
|
-
return throwDefaultError({
|
|
528
|
-
output,
|
|
529
|
-
parsedBody: parsedBody.Error,
|
|
530
|
-
errorCode,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
493
|
export const de_AssociateEnvironmentOperationsRoleCommand = async (output, context) => {
|
|
535
494
|
if (output.statusCode >= 300) {
|
|
536
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
537
496
|
}
|
|
538
497
|
await collectBody(output.body, context);
|
|
539
498
|
const response = {
|
|
@@ -541,28 +500,9 @@ export const de_AssociateEnvironmentOperationsRoleCommand = async (output, conte
|
|
|
541
500
|
};
|
|
542
501
|
return response;
|
|
543
502
|
};
|
|
544
|
-
const de_AssociateEnvironmentOperationsRoleCommandError = async (output, context) => {
|
|
545
|
-
const parsedOutput = {
|
|
546
|
-
...output,
|
|
547
|
-
body: await parseErrorBody(output.body, context),
|
|
548
|
-
};
|
|
549
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
550
|
-
switch (errorCode) {
|
|
551
|
-
case "InsufficientPrivilegesException":
|
|
552
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
553
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
554
|
-
default:
|
|
555
|
-
const parsedBody = parsedOutput.body;
|
|
556
|
-
return throwDefaultError({
|
|
557
|
-
output,
|
|
558
|
-
parsedBody: parsedBody.Error,
|
|
559
|
-
errorCode,
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
503
|
export const de_CheckDNSAvailabilityCommand = async (output, context) => {
|
|
564
504
|
if (output.statusCode >= 300) {
|
|
565
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
566
506
|
}
|
|
567
507
|
const data = await parseBody(output.body, context);
|
|
568
508
|
let contents = {};
|
|
@@ -573,22 +513,9 @@ export const de_CheckDNSAvailabilityCommand = async (output, context) => {
|
|
|
573
513
|
};
|
|
574
514
|
return response;
|
|
575
515
|
};
|
|
576
|
-
const de_CheckDNSAvailabilityCommandError = async (output, context) => {
|
|
577
|
-
const parsedOutput = {
|
|
578
|
-
...output,
|
|
579
|
-
body: await parseErrorBody(output.body, context),
|
|
580
|
-
};
|
|
581
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
582
|
-
const parsedBody = parsedOutput.body;
|
|
583
|
-
return throwDefaultError({
|
|
584
|
-
output,
|
|
585
|
-
parsedBody: parsedBody.Error,
|
|
586
|
-
errorCode,
|
|
587
|
-
});
|
|
588
|
-
};
|
|
589
516
|
export const de_ComposeEnvironmentsCommand = async (output, context) => {
|
|
590
517
|
if (output.statusCode >= 300) {
|
|
591
|
-
return
|
|
518
|
+
return de_CommandError(output, context);
|
|
592
519
|
}
|
|
593
520
|
const data = await parseBody(output.body, context);
|
|
594
521
|
let contents = {};
|
|
@@ -599,31 +526,9 @@ export const de_ComposeEnvironmentsCommand = async (output, context) => {
|
|
|
599
526
|
};
|
|
600
527
|
return response;
|
|
601
528
|
};
|
|
602
|
-
const de_ComposeEnvironmentsCommandError = async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context),
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "InsufficientPrivilegesException":
|
|
610
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
611
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
612
|
-
case "TooManyEnvironmentsException":
|
|
613
|
-
case "com.amazonaws.elasticbeanstalk#TooManyEnvironmentsException":
|
|
614
|
-
throw await de_TooManyEnvironmentsExceptionRes(parsedOutput, context);
|
|
615
|
-
default:
|
|
616
|
-
const parsedBody = parsedOutput.body;
|
|
617
|
-
return throwDefaultError({
|
|
618
|
-
output,
|
|
619
|
-
parsedBody: parsedBody.Error,
|
|
620
|
-
errorCode,
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
529
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
625
530
|
if (output.statusCode >= 300) {
|
|
626
|
-
return
|
|
531
|
+
return de_CommandError(output, context);
|
|
627
532
|
}
|
|
628
533
|
const data = await parseBody(output.body, context);
|
|
629
534
|
let contents = {};
|
|
@@ -634,28 +539,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
634
539
|
};
|
|
635
540
|
return response;
|
|
636
541
|
};
|
|
637
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
638
|
-
const parsedOutput = {
|
|
639
|
-
...output,
|
|
640
|
-
body: await parseErrorBody(output.body, context),
|
|
641
|
-
};
|
|
642
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
643
|
-
switch (errorCode) {
|
|
644
|
-
case "TooManyApplicationsException":
|
|
645
|
-
case "com.amazonaws.elasticbeanstalk#TooManyApplicationsException":
|
|
646
|
-
throw await de_TooManyApplicationsExceptionRes(parsedOutput, context);
|
|
647
|
-
default:
|
|
648
|
-
const parsedBody = parsedOutput.body;
|
|
649
|
-
return throwDefaultError({
|
|
650
|
-
output,
|
|
651
|
-
parsedBody: parsedBody.Error,
|
|
652
|
-
errorCode,
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
542
|
export const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
657
543
|
if (output.statusCode >= 300) {
|
|
658
|
-
return
|
|
544
|
+
return de_CommandError(output, context);
|
|
659
545
|
}
|
|
660
546
|
const data = await parseBody(output.body, context);
|
|
661
547
|
let contents = {};
|
|
@@ -666,40 +552,9 @@ export const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
|
666
552
|
};
|
|
667
553
|
return response;
|
|
668
554
|
};
|
|
669
|
-
const de_CreateApplicationVersionCommandError = async (output, context) => {
|
|
670
|
-
const parsedOutput = {
|
|
671
|
-
...output,
|
|
672
|
-
body: await parseErrorBody(output.body, context),
|
|
673
|
-
};
|
|
674
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
675
|
-
switch (errorCode) {
|
|
676
|
-
case "CodeBuildNotInServiceRegionException":
|
|
677
|
-
case "com.amazonaws.elasticbeanstalk#CodeBuildNotInServiceRegionException":
|
|
678
|
-
throw await de_CodeBuildNotInServiceRegionExceptionRes(parsedOutput, context);
|
|
679
|
-
case "InsufficientPrivilegesException":
|
|
680
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
681
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
682
|
-
case "S3LocationNotInServiceRegionException":
|
|
683
|
-
case "com.amazonaws.elasticbeanstalk#S3LocationNotInServiceRegionException":
|
|
684
|
-
throw await de_S3LocationNotInServiceRegionExceptionRes(parsedOutput, context);
|
|
685
|
-
case "TooManyApplicationVersionsException":
|
|
686
|
-
case "com.amazonaws.elasticbeanstalk#TooManyApplicationVersionsException":
|
|
687
|
-
throw await de_TooManyApplicationVersionsExceptionRes(parsedOutput, context);
|
|
688
|
-
case "TooManyApplicationsException":
|
|
689
|
-
case "com.amazonaws.elasticbeanstalk#TooManyApplicationsException":
|
|
690
|
-
throw await de_TooManyApplicationsExceptionRes(parsedOutput, context);
|
|
691
|
-
default:
|
|
692
|
-
const parsedBody = parsedOutput.body;
|
|
693
|
-
return throwDefaultError({
|
|
694
|
-
output,
|
|
695
|
-
parsedBody: parsedBody.Error,
|
|
696
|
-
errorCode,
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
555
|
export const de_CreateConfigurationTemplateCommand = async (output, context) => {
|
|
701
556
|
if (output.statusCode >= 300) {
|
|
702
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
703
558
|
}
|
|
704
559
|
const data = await parseBody(output.body, context);
|
|
705
560
|
let contents = {};
|
|
@@ -710,34 +565,9 @@ export const de_CreateConfigurationTemplateCommand = async (output, context) =>
|
|
|
710
565
|
};
|
|
711
566
|
return response;
|
|
712
567
|
};
|
|
713
|
-
const de_CreateConfigurationTemplateCommandError = async (output, context) => {
|
|
714
|
-
const parsedOutput = {
|
|
715
|
-
...output,
|
|
716
|
-
body: await parseErrorBody(output.body, context),
|
|
717
|
-
};
|
|
718
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
719
|
-
switch (errorCode) {
|
|
720
|
-
case "InsufficientPrivilegesException":
|
|
721
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
722
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
723
|
-
case "TooManyBucketsException":
|
|
724
|
-
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
725
|
-
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
726
|
-
case "TooManyConfigurationTemplatesException":
|
|
727
|
-
case "com.amazonaws.elasticbeanstalk#TooManyConfigurationTemplatesException":
|
|
728
|
-
throw await de_TooManyConfigurationTemplatesExceptionRes(parsedOutput, context);
|
|
729
|
-
default:
|
|
730
|
-
const parsedBody = parsedOutput.body;
|
|
731
|
-
return throwDefaultError({
|
|
732
|
-
output,
|
|
733
|
-
parsedBody: parsedBody.Error,
|
|
734
|
-
errorCode,
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
568
|
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
739
569
|
if (output.statusCode >= 300) {
|
|
740
|
-
return
|
|
570
|
+
return de_CommandError(output, context);
|
|
741
571
|
}
|
|
742
572
|
const data = await parseBody(output.body, context);
|
|
743
573
|
let contents = {};
|
|
@@ -748,31 +578,9 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
748
578
|
};
|
|
749
579
|
return response;
|
|
750
580
|
};
|
|
751
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
752
|
-
const parsedOutput = {
|
|
753
|
-
...output,
|
|
754
|
-
body: await parseErrorBody(output.body, context),
|
|
755
|
-
};
|
|
756
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
757
|
-
switch (errorCode) {
|
|
758
|
-
case "InsufficientPrivilegesException":
|
|
759
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
760
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
761
|
-
case "TooManyEnvironmentsException":
|
|
762
|
-
case "com.amazonaws.elasticbeanstalk#TooManyEnvironmentsException":
|
|
763
|
-
throw await de_TooManyEnvironmentsExceptionRes(parsedOutput, context);
|
|
764
|
-
default:
|
|
765
|
-
const parsedBody = parsedOutput.body;
|
|
766
|
-
return throwDefaultError({
|
|
767
|
-
output,
|
|
768
|
-
parsedBody: parsedBody.Error,
|
|
769
|
-
errorCode,
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
581
|
export const de_CreatePlatformVersionCommand = async (output, context) => {
|
|
774
582
|
if (output.statusCode >= 300) {
|
|
775
|
-
return
|
|
583
|
+
return de_CommandError(output, context);
|
|
776
584
|
}
|
|
777
585
|
const data = await parseBody(output.body, context);
|
|
778
586
|
let contents = {};
|
|
@@ -783,34 +591,9 @@ export const de_CreatePlatformVersionCommand = async (output, context) => {
|
|
|
783
591
|
};
|
|
784
592
|
return response;
|
|
785
593
|
};
|
|
786
|
-
const de_CreatePlatformVersionCommandError = async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context),
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "ElasticBeanstalkServiceException":
|
|
794
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
795
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InsufficientPrivilegesException":
|
|
797
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
798
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
799
|
-
case "TooManyPlatformsException":
|
|
800
|
-
case "com.amazonaws.elasticbeanstalk#TooManyPlatformsException":
|
|
801
|
-
throw await de_TooManyPlatformsExceptionRes(parsedOutput, context);
|
|
802
|
-
default:
|
|
803
|
-
const parsedBody = parsedOutput.body;
|
|
804
|
-
return throwDefaultError({
|
|
805
|
-
output,
|
|
806
|
-
parsedBody: parsedBody.Error,
|
|
807
|
-
errorCode,
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
594
|
export const de_CreateStorageLocationCommand = async (output, context) => {
|
|
812
595
|
if (output.statusCode >= 300) {
|
|
813
|
-
return
|
|
596
|
+
return de_CommandError(output, context);
|
|
814
597
|
}
|
|
815
598
|
const data = await parseBody(output.body, context);
|
|
816
599
|
let contents = {};
|
|
@@ -821,34 +604,9 @@ export const de_CreateStorageLocationCommand = async (output, context) => {
|
|
|
821
604
|
};
|
|
822
605
|
return response;
|
|
823
606
|
};
|
|
824
|
-
const de_CreateStorageLocationCommandError = async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context),
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "InsufficientPrivilegesException":
|
|
832
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
833
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
834
|
-
case "S3SubscriptionRequiredException":
|
|
835
|
-
case "com.amazonaws.elasticbeanstalk#S3SubscriptionRequiredException":
|
|
836
|
-
throw await de_S3SubscriptionRequiredExceptionRes(parsedOutput, context);
|
|
837
|
-
case "TooManyBucketsException":
|
|
838
|
-
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
839
|
-
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody: parsedBody.Error,
|
|
845
|
-
errorCode,
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
607
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
850
608
|
if (output.statusCode >= 300) {
|
|
851
|
-
return
|
|
609
|
+
return de_CommandError(output, context);
|
|
852
610
|
}
|
|
853
611
|
await collectBody(output.body, context);
|
|
854
612
|
const response = {
|
|
@@ -856,28 +614,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
856
614
|
};
|
|
857
615
|
return response;
|
|
858
616
|
};
|
|
859
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
860
|
-
const parsedOutput = {
|
|
861
|
-
...output,
|
|
862
|
-
body: await parseErrorBody(output.body, context),
|
|
863
|
-
};
|
|
864
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
865
|
-
switch (errorCode) {
|
|
866
|
-
case "OperationInProgressFailure":
|
|
867
|
-
case "com.amazonaws.elasticbeanstalk#OperationInProgressException":
|
|
868
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody: parsedBody.Error,
|
|
874
|
-
errorCode,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
617
|
export const de_DeleteApplicationVersionCommand = async (output, context) => {
|
|
879
618
|
if (output.statusCode >= 300) {
|
|
880
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
881
620
|
}
|
|
882
621
|
await collectBody(output.body, context);
|
|
883
622
|
const response = {
|
|
@@ -885,37 +624,9 @@ export const de_DeleteApplicationVersionCommand = async (output, context) => {
|
|
|
885
624
|
};
|
|
886
625
|
return response;
|
|
887
626
|
};
|
|
888
|
-
const de_DeleteApplicationVersionCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "InsufficientPrivilegesException":
|
|
896
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
897
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
898
|
-
case "OperationInProgressFailure":
|
|
899
|
-
case "com.amazonaws.elasticbeanstalk#OperationInProgressException":
|
|
900
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
901
|
-
case "S3LocationNotInServiceRegionException":
|
|
902
|
-
case "com.amazonaws.elasticbeanstalk#S3LocationNotInServiceRegionException":
|
|
903
|
-
throw await de_S3LocationNotInServiceRegionExceptionRes(parsedOutput, context);
|
|
904
|
-
case "SourceBundleDeletionFailure":
|
|
905
|
-
case "com.amazonaws.elasticbeanstalk#SourceBundleDeletionException":
|
|
906
|
-
throw await de_SourceBundleDeletionExceptionRes(parsedOutput, context);
|
|
907
|
-
default:
|
|
908
|
-
const parsedBody = parsedOutput.body;
|
|
909
|
-
return throwDefaultError({
|
|
910
|
-
output,
|
|
911
|
-
parsedBody: parsedBody.Error,
|
|
912
|
-
errorCode,
|
|
913
|
-
});
|
|
914
|
-
}
|
|
915
|
-
};
|
|
916
627
|
export const de_DeleteConfigurationTemplateCommand = async (output, context) => {
|
|
917
628
|
if (output.statusCode >= 300) {
|
|
918
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
919
630
|
}
|
|
920
631
|
await collectBody(output.body, context);
|
|
921
632
|
const response = {
|
|
@@ -923,28 +634,9 @@ export const de_DeleteConfigurationTemplateCommand = async (output, context) =>
|
|
|
923
634
|
};
|
|
924
635
|
return response;
|
|
925
636
|
};
|
|
926
|
-
const de_DeleteConfigurationTemplateCommandError = async (output, context) => {
|
|
927
|
-
const parsedOutput = {
|
|
928
|
-
...output,
|
|
929
|
-
body: await parseErrorBody(output.body, context),
|
|
930
|
-
};
|
|
931
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
932
|
-
switch (errorCode) {
|
|
933
|
-
case "OperationInProgressFailure":
|
|
934
|
-
case "com.amazonaws.elasticbeanstalk#OperationInProgressException":
|
|
935
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody: parsedBody.Error,
|
|
941
|
-
errorCode,
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
637
|
export const de_DeleteEnvironmentConfigurationCommand = async (output, context) => {
|
|
946
638
|
if (output.statusCode >= 300) {
|
|
947
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
948
640
|
}
|
|
949
641
|
await collectBody(output.body, context);
|
|
950
642
|
const response = {
|
|
@@ -952,22 +644,9 @@ export const de_DeleteEnvironmentConfigurationCommand = async (output, context)
|
|
|
952
644
|
};
|
|
953
645
|
return response;
|
|
954
646
|
};
|
|
955
|
-
const de_DeleteEnvironmentConfigurationCommandError = async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context),
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
961
|
-
const parsedBody = parsedOutput.body;
|
|
962
|
-
return throwDefaultError({
|
|
963
|
-
output,
|
|
964
|
-
parsedBody: parsedBody.Error,
|
|
965
|
-
errorCode,
|
|
966
|
-
});
|
|
967
|
-
};
|
|
968
647
|
export const de_DeletePlatformVersionCommand = async (output, context) => {
|
|
969
648
|
if (output.statusCode >= 300) {
|
|
970
|
-
return
|
|
649
|
+
return de_CommandError(output, context);
|
|
971
650
|
}
|
|
972
651
|
const data = await parseBody(output.body, context);
|
|
973
652
|
let contents = {};
|
|
@@ -978,69 +657,22 @@ export const de_DeletePlatformVersionCommand = async (output, context) => {
|
|
|
978
657
|
};
|
|
979
658
|
return response;
|
|
980
659
|
};
|
|
981
|
-
const de_DeletePlatformVersionCommandError = async (output, context) => {
|
|
982
|
-
const parsedOutput = {
|
|
983
|
-
...output,
|
|
984
|
-
body: await parseErrorBody(output.body, context),
|
|
985
|
-
};
|
|
986
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
987
|
-
switch (errorCode) {
|
|
988
|
-
case "ElasticBeanstalkServiceException":
|
|
989
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
990
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InsufficientPrivilegesException":
|
|
992
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
993
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
994
|
-
case "OperationInProgressFailure":
|
|
995
|
-
case "com.amazonaws.elasticbeanstalk#OperationInProgressException":
|
|
996
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
997
|
-
case "PlatformVersionStillReferencedException":
|
|
998
|
-
case "com.amazonaws.elasticbeanstalk#PlatformVersionStillReferencedException":
|
|
999
|
-
throw await de_PlatformVersionStillReferencedExceptionRes(parsedOutput, context);
|
|
1000
|
-
default:
|
|
1001
|
-
const parsedBody = parsedOutput.body;
|
|
1002
|
-
return throwDefaultError({
|
|
1003
|
-
output,
|
|
1004
|
-
parsedBody: parsedBody.Error,
|
|
1005
|
-
errorCode,
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
660
|
export const de_DescribeAccountAttributesCommand = async (output, context) => {
|
|
1010
|
-
if (output.statusCode >= 300) {
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
1013
|
-
const data = await parseBody(output.body, context);
|
|
1014
|
-
let contents = {};
|
|
1015
|
-
contents = de_DescribeAccountAttributesResult(data.DescribeAccountAttributesResult, context);
|
|
1016
|
-
const response = {
|
|
1017
|
-
$metadata: deserializeMetadata(output),
|
|
1018
|
-
...contents,
|
|
1019
|
-
};
|
|
1020
|
-
return response;
|
|
1021
|
-
};
|
|
1022
|
-
const de_DescribeAccountAttributesCommandError = async (output, context) => {
|
|
1023
|
-
const parsedOutput = {
|
|
1024
|
-
...output,
|
|
1025
|
-
body: await parseErrorBody(output.body, context),
|
|
1026
|
-
};
|
|
1027
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1028
|
-
switch (errorCode) {
|
|
1029
|
-
case "InsufficientPrivilegesException":
|
|
1030
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1031
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1032
|
-
default:
|
|
1033
|
-
const parsedBody = parsedOutput.body;
|
|
1034
|
-
return throwDefaultError({
|
|
1035
|
-
output,
|
|
1036
|
-
parsedBody: parsedBody.Error,
|
|
1037
|
-
errorCode,
|
|
1038
|
-
});
|
|
661
|
+
if (output.statusCode >= 300) {
|
|
662
|
+
return de_CommandError(output, context);
|
|
1039
663
|
}
|
|
664
|
+
const data = await parseBody(output.body, context);
|
|
665
|
+
let contents = {};
|
|
666
|
+
contents = de_DescribeAccountAttributesResult(data.DescribeAccountAttributesResult, context);
|
|
667
|
+
const response = {
|
|
668
|
+
$metadata: deserializeMetadata(output),
|
|
669
|
+
...contents,
|
|
670
|
+
};
|
|
671
|
+
return response;
|
|
1040
672
|
};
|
|
1041
673
|
export const de_DescribeApplicationsCommand = async (output, context) => {
|
|
1042
674
|
if (output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
675
|
+
return de_CommandError(output, context);
|
|
1044
676
|
}
|
|
1045
677
|
const data = await parseBody(output.body, context);
|
|
1046
678
|
let contents = {};
|
|
@@ -1051,22 +683,9 @@ export const de_DescribeApplicationsCommand = async (output, context) => {
|
|
|
1051
683
|
};
|
|
1052
684
|
return response;
|
|
1053
685
|
};
|
|
1054
|
-
const de_DescribeApplicationsCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1060
|
-
const parsedBody = parsedOutput.body;
|
|
1061
|
-
return throwDefaultError({
|
|
1062
|
-
output,
|
|
1063
|
-
parsedBody: parsedBody.Error,
|
|
1064
|
-
errorCode,
|
|
1065
|
-
});
|
|
1066
|
-
};
|
|
1067
686
|
export const de_DescribeApplicationVersionsCommand = async (output, context) => {
|
|
1068
687
|
if (output.statusCode >= 300) {
|
|
1069
|
-
return
|
|
688
|
+
return de_CommandError(output, context);
|
|
1070
689
|
}
|
|
1071
690
|
const data = await parseBody(output.body, context);
|
|
1072
691
|
let contents = {};
|
|
@@ -1077,22 +696,9 @@ export const de_DescribeApplicationVersionsCommand = async (output, context) =>
|
|
|
1077
696
|
};
|
|
1078
697
|
return response;
|
|
1079
698
|
};
|
|
1080
|
-
const de_DescribeApplicationVersionsCommandError = async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context),
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1086
|
-
const parsedBody = parsedOutput.body;
|
|
1087
|
-
return throwDefaultError({
|
|
1088
|
-
output,
|
|
1089
|
-
parsedBody: parsedBody.Error,
|
|
1090
|
-
errorCode,
|
|
1091
|
-
});
|
|
1092
|
-
};
|
|
1093
699
|
export const de_DescribeConfigurationOptionsCommand = async (output, context) => {
|
|
1094
700
|
if (output.statusCode >= 300) {
|
|
1095
|
-
return
|
|
701
|
+
return de_CommandError(output, context);
|
|
1096
702
|
}
|
|
1097
703
|
const data = await parseBody(output.body, context);
|
|
1098
704
|
let contents = {};
|
|
@@ -1103,28 +709,9 @@ export const de_DescribeConfigurationOptionsCommand = async (output, context) =>
|
|
|
1103
709
|
};
|
|
1104
710
|
return response;
|
|
1105
711
|
};
|
|
1106
|
-
const de_DescribeConfigurationOptionsCommandError = async (output, context) => {
|
|
1107
|
-
const parsedOutput = {
|
|
1108
|
-
...output,
|
|
1109
|
-
body: await parseErrorBody(output.body, context),
|
|
1110
|
-
};
|
|
1111
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1112
|
-
switch (errorCode) {
|
|
1113
|
-
case "TooManyBucketsException":
|
|
1114
|
-
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
1115
|
-
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody: parsedBody.Error,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
712
|
export const de_DescribeConfigurationSettingsCommand = async (output, context) => {
|
|
1126
713
|
if (output.statusCode >= 300) {
|
|
1127
|
-
return
|
|
714
|
+
return de_CommandError(output, context);
|
|
1128
715
|
}
|
|
1129
716
|
const data = await parseBody(output.body, context);
|
|
1130
717
|
let contents = {};
|
|
@@ -1135,28 +722,9 @@ export const de_DescribeConfigurationSettingsCommand = async (output, context) =
|
|
|
1135
722
|
};
|
|
1136
723
|
return response;
|
|
1137
724
|
};
|
|
1138
|
-
const de_DescribeConfigurationSettingsCommandError = async (output, context) => {
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "TooManyBucketsException":
|
|
1146
|
-
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
1147
|
-
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
1148
|
-
default:
|
|
1149
|
-
const parsedBody = parsedOutput.body;
|
|
1150
|
-
return throwDefaultError({
|
|
1151
|
-
output,
|
|
1152
|
-
parsedBody: parsedBody.Error,
|
|
1153
|
-
errorCode,
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
725
|
export const de_DescribeEnvironmentHealthCommand = async (output, context) => {
|
|
1158
726
|
if (output.statusCode >= 300) {
|
|
1159
|
-
return
|
|
727
|
+
return de_CommandError(output, context);
|
|
1160
728
|
}
|
|
1161
729
|
const data = await parseBody(output.body, context);
|
|
1162
730
|
let contents = {};
|
|
@@ -1167,31 +735,9 @@ export const de_DescribeEnvironmentHealthCommand = async (output, context) => {
|
|
|
1167
735
|
};
|
|
1168
736
|
return response;
|
|
1169
737
|
};
|
|
1170
|
-
const de_DescribeEnvironmentHealthCommandError = async (output, context) => {
|
|
1171
|
-
const parsedOutput = {
|
|
1172
|
-
...output,
|
|
1173
|
-
body: await parseErrorBody(output.body, context),
|
|
1174
|
-
};
|
|
1175
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1176
|
-
switch (errorCode) {
|
|
1177
|
-
case "ElasticBeanstalkServiceException":
|
|
1178
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1179
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "InvalidRequestException":
|
|
1181
|
-
case "com.amazonaws.elasticbeanstalk#InvalidRequestException":
|
|
1182
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1183
|
-
default:
|
|
1184
|
-
const parsedBody = parsedOutput.body;
|
|
1185
|
-
return throwDefaultError({
|
|
1186
|
-
output,
|
|
1187
|
-
parsedBody: parsedBody.Error,
|
|
1188
|
-
errorCode,
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
738
|
export const de_DescribeEnvironmentManagedActionHistoryCommand = async (output, context) => {
|
|
1193
739
|
if (output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
740
|
+
return de_CommandError(output, context);
|
|
1195
741
|
}
|
|
1196
742
|
const data = await parseBody(output.body, context);
|
|
1197
743
|
let contents = {};
|
|
@@ -1202,28 +748,9 @@ export const de_DescribeEnvironmentManagedActionHistoryCommand = async (output,
|
|
|
1202
748
|
};
|
|
1203
749
|
return response;
|
|
1204
750
|
};
|
|
1205
|
-
const de_DescribeEnvironmentManagedActionHistoryCommandError = async (output, context) => {
|
|
1206
|
-
const parsedOutput = {
|
|
1207
|
-
...output,
|
|
1208
|
-
body: await parseErrorBody(output.body, context),
|
|
1209
|
-
};
|
|
1210
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1211
|
-
switch (errorCode) {
|
|
1212
|
-
case "ElasticBeanstalkServiceException":
|
|
1213
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1214
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody: parsedBody.Error,
|
|
1220
|
-
errorCode,
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
751
|
export const de_DescribeEnvironmentManagedActionsCommand = async (output, context) => {
|
|
1225
752
|
if (output.statusCode >= 300) {
|
|
1226
|
-
return
|
|
753
|
+
return de_CommandError(output, context);
|
|
1227
754
|
}
|
|
1228
755
|
const data = await parseBody(output.body, context);
|
|
1229
756
|
let contents = {};
|
|
@@ -1234,28 +761,9 @@ export const de_DescribeEnvironmentManagedActionsCommand = async (output, contex
|
|
|
1234
761
|
};
|
|
1235
762
|
return response;
|
|
1236
763
|
};
|
|
1237
|
-
const de_DescribeEnvironmentManagedActionsCommandError = async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context),
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "ElasticBeanstalkServiceException":
|
|
1245
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1246
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1247
|
-
default:
|
|
1248
|
-
const parsedBody = parsedOutput.body;
|
|
1249
|
-
return throwDefaultError({
|
|
1250
|
-
output,
|
|
1251
|
-
parsedBody: parsedBody.Error,
|
|
1252
|
-
errorCode,
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
764
|
export const de_DescribeEnvironmentResourcesCommand = async (output, context) => {
|
|
1257
765
|
if (output.statusCode >= 300) {
|
|
1258
|
-
return
|
|
766
|
+
return de_CommandError(output, context);
|
|
1259
767
|
}
|
|
1260
768
|
const data = await parseBody(output.body, context);
|
|
1261
769
|
let contents = {};
|
|
@@ -1266,28 +774,9 @@ export const de_DescribeEnvironmentResourcesCommand = async (output, context) =>
|
|
|
1266
774
|
};
|
|
1267
775
|
return response;
|
|
1268
776
|
};
|
|
1269
|
-
const de_DescribeEnvironmentResourcesCommandError = async (output, context) => {
|
|
1270
|
-
const parsedOutput = {
|
|
1271
|
-
...output,
|
|
1272
|
-
body: await parseErrorBody(output.body, context),
|
|
1273
|
-
};
|
|
1274
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1275
|
-
switch (errorCode) {
|
|
1276
|
-
case "InsufficientPrivilegesException":
|
|
1277
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1278
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody: parsedBody.Error,
|
|
1284
|
-
errorCode,
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
777
|
export const de_DescribeEnvironmentsCommand = async (output, context) => {
|
|
1289
778
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
779
|
+
return de_CommandError(output, context);
|
|
1291
780
|
}
|
|
1292
781
|
const data = await parseBody(output.body, context);
|
|
1293
782
|
let contents = {};
|
|
@@ -1298,22 +787,9 @@ export const de_DescribeEnvironmentsCommand = async (output, context) => {
|
|
|
1298
787
|
};
|
|
1299
788
|
return response;
|
|
1300
789
|
};
|
|
1301
|
-
const de_DescribeEnvironmentsCommandError = async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1307
|
-
const parsedBody = parsedOutput.body;
|
|
1308
|
-
return throwDefaultError({
|
|
1309
|
-
output,
|
|
1310
|
-
parsedBody: parsedBody.Error,
|
|
1311
|
-
errorCode,
|
|
1312
|
-
});
|
|
1313
|
-
};
|
|
1314
790
|
export const de_DescribeEventsCommand = async (output, context) => {
|
|
1315
791
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
792
|
+
return de_CommandError(output, context);
|
|
1317
793
|
}
|
|
1318
794
|
const data = await parseBody(output.body, context);
|
|
1319
795
|
let contents = {};
|
|
@@ -1324,22 +800,9 @@ export const de_DescribeEventsCommand = async (output, context) => {
|
|
|
1324
800
|
};
|
|
1325
801
|
return response;
|
|
1326
802
|
};
|
|
1327
|
-
const de_DescribeEventsCommandError = async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context),
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1333
|
-
const parsedBody = parsedOutput.body;
|
|
1334
|
-
return throwDefaultError({
|
|
1335
|
-
output,
|
|
1336
|
-
parsedBody: parsedBody.Error,
|
|
1337
|
-
errorCode,
|
|
1338
|
-
});
|
|
1339
|
-
};
|
|
1340
803
|
export const de_DescribeInstancesHealthCommand = async (output, context) => {
|
|
1341
804
|
if (output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
805
|
+
return de_CommandError(output, context);
|
|
1343
806
|
}
|
|
1344
807
|
const data = await parseBody(output.body, context);
|
|
1345
808
|
let contents = {};
|
|
@@ -1350,31 +813,9 @@ export const de_DescribeInstancesHealthCommand = async (output, context) => {
|
|
|
1350
813
|
};
|
|
1351
814
|
return response;
|
|
1352
815
|
};
|
|
1353
|
-
const de_DescribeInstancesHealthCommandError = async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context),
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "ElasticBeanstalkServiceException":
|
|
1361
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1362
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "InvalidRequestException":
|
|
1364
|
-
case "com.amazonaws.elasticbeanstalk#InvalidRequestException":
|
|
1365
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1366
|
-
default:
|
|
1367
|
-
const parsedBody = parsedOutput.body;
|
|
1368
|
-
return throwDefaultError({
|
|
1369
|
-
output,
|
|
1370
|
-
parsedBody: parsedBody.Error,
|
|
1371
|
-
errorCode,
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
};
|
|
1375
816
|
export const de_DescribePlatformVersionCommand = async (output, context) => {
|
|
1376
817
|
if (output.statusCode >= 300) {
|
|
1377
|
-
return
|
|
818
|
+
return de_CommandError(output, context);
|
|
1378
819
|
}
|
|
1379
820
|
const data = await parseBody(output.body, context);
|
|
1380
821
|
let contents = {};
|
|
@@ -1385,31 +826,9 @@ export const de_DescribePlatformVersionCommand = async (output, context) => {
|
|
|
1385
826
|
};
|
|
1386
827
|
return response;
|
|
1387
828
|
};
|
|
1388
|
-
const de_DescribePlatformVersionCommandError = async (output, context) => {
|
|
1389
|
-
const parsedOutput = {
|
|
1390
|
-
...output,
|
|
1391
|
-
body: await parseErrorBody(output.body, context),
|
|
1392
|
-
};
|
|
1393
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1394
|
-
switch (errorCode) {
|
|
1395
|
-
case "ElasticBeanstalkServiceException":
|
|
1396
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1397
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "InsufficientPrivilegesException":
|
|
1399
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1400
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1401
|
-
default:
|
|
1402
|
-
const parsedBody = parsedOutput.body;
|
|
1403
|
-
return throwDefaultError({
|
|
1404
|
-
output,
|
|
1405
|
-
parsedBody: parsedBody.Error,
|
|
1406
|
-
errorCode,
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
829
|
export const de_DisassociateEnvironmentOperationsRoleCommand = async (output, context) => {
|
|
1411
830
|
if (output.statusCode >= 300) {
|
|
1412
|
-
return
|
|
831
|
+
return de_CommandError(output, context);
|
|
1413
832
|
}
|
|
1414
833
|
await collectBody(output.body, context);
|
|
1415
834
|
const response = {
|
|
@@ -1417,28 +836,9 @@ export const de_DisassociateEnvironmentOperationsRoleCommand = async (output, co
|
|
|
1417
836
|
};
|
|
1418
837
|
return response;
|
|
1419
838
|
};
|
|
1420
|
-
const de_DisassociateEnvironmentOperationsRoleCommandError = async (output, context) => {
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "InsufficientPrivilegesException":
|
|
1428
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1429
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody: parsedBody.Error,
|
|
1435
|
-
errorCode,
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
};
|
|
1439
839
|
export const de_ListAvailableSolutionStacksCommand = async (output, context) => {
|
|
1440
840
|
if (output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
841
|
+
return de_CommandError(output, context);
|
|
1442
842
|
}
|
|
1443
843
|
const data = await parseBody(output.body, context);
|
|
1444
844
|
let contents = {};
|
|
@@ -1449,22 +849,9 @@ export const de_ListAvailableSolutionStacksCommand = async (output, context) =>
|
|
|
1449
849
|
};
|
|
1450
850
|
return response;
|
|
1451
851
|
};
|
|
1452
|
-
const de_ListAvailableSolutionStacksCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1458
|
-
const parsedBody = parsedOutput.body;
|
|
1459
|
-
return throwDefaultError({
|
|
1460
|
-
output,
|
|
1461
|
-
parsedBody: parsedBody.Error,
|
|
1462
|
-
errorCode,
|
|
1463
|
-
});
|
|
1464
|
-
};
|
|
1465
852
|
export const de_ListPlatformBranchesCommand = async (output, context) => {
|
|
1466
853
|
if (output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
854
|
+
return de_CommandError(output, context);
|
|
1468
855
|
}
|
|
1469
856
|
const data = await parseBody(output.body, context);
|
|
1470
857
|
let contents = {};
|
|
@@ -1472,60 +859,25 @@ export const de_ListPlatformBranchesCommand = async (output, context) => {
|
|
|
1472
859
|
const response = {
|
|
1473
860
|
$metadata: deserializeMetadata(output),
|
|
1474
861
|
...contents,
|
|
1475
|
-
};
|
|
1476
|
-
return response;
|
|
1477
|
-
};
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
body: await parseErrorBody(output.body, context),
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1484
|
-
const parsedBody = parsedOutput.body;
|
|
1485
|
-
return throwDefaultError({
|
|
1486
|
-
output,
|
|
1487
|
-
parsedBody: parsedBody.Error,
|
|
1488
|
-
errorCode,
|
|
1489
|
-
});
|
|
1490
|
-
};
|
|
1491
|
-
export const de_ListPlatformVersionsCommand = async (output, context) => {
|
|
1492
|
-
if (output.statusCode >= 300) {
|
|
1493
|
-
return de_ListPlatformVersionsCommandError(output, context);
|
|
1494
|
-
}
|
|
1495
|
-
const data = await parseBody(output.body, context);
|
|
1496
|
-
let contents = {};
|
|
1497
|
-
contents = de_ListPlatformVersionsResult(data.ListPlatformVersionsResult, context);
|
|
1498
|
-
const response = {
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
...contents,
|
|
1501
|
-
};
|
|
1502
|
-
return response;
|
|
1503
|
-
};
|
|
1504
|
-
const de_ListPlatformVersionsCommandError = async (output, context) => {
|
|
1505
|
-
const parsedOutput = {
|
|
1506
|
-
...output,
|
|
1507
|
-
body: await parseErrorBody(output.body, context),
|
|
1508
|
-
};
|
|
1509
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1510
|
-
switch (errorCode) {
|
|
1511
|
-
case "ElasticBeanstalkServiceException":
|
|
1512
|
-
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1513
|
-
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "InsufficientPrivilegesException":
|
|
1515
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1516
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1517
|
-
default:
|
|
1518
|
-
const parsedBody = parsedOutput.body;
|
|
1519
|
-
return throwDefaultError({
|
|
1520
|
-
output,
|
|
1521
|
-
parsedBody: parsedBody.Error,
|
|
1522
|
-
errorCode,
|
|
1523
|
-
});
|
|
862
|
+
};
|
|
863
|
+
return response;
|
|
864
|
+
};
|
|
865
|
+
export const de_ListPlatformVersionsCommand = async (output, context) => {
|
|
866
|
+
if (output.statusCode >= 300) {
|
|
867
|
+
return de_CommandError(output, context);
|
|
1524
868
|
}
|
|
869
|
+
const data = await parseBody(output.body, context);
|
|
870
|
+
let contents = {};
|
|
871
|
+
contents = de_ListPlatformVersionsResult(data.ListPlatformVersionsResult, context);
|
|
872
|
+
const response = {
|
|
873
|
+
$metadata: deserializeMetadata(output),
|
|
874
|
+
...contents,
|
|
875
|
+
};
|
|
876
|
+
return response;
|
|
1525
877
|
};
|
|
1526
878
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1527
879
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1529
881
|
}
|
|
1530
882
|
const data = await parseBody(output.body, context);
|
|
1531
883
|
let contents = {};
|
|
@@ -1536,34 +888,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1536
888
|
};
|
|
1537
889
|
return response;
|
|
1538
890
|
};
|
|
1539
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1540
|
-
const parsedOutput = {
|
|
1541
|
-
...output,
|
|
1542
|
-
body: await parseErrorBody(output.body, context),
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "InsufficientPrivilegesException":
|
|
1547
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1548
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.elasticbeanstalk#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ResourceTypeNotSupportedException":
|
|
1553
|
-
case "com.amazonaws.elasticbeanstalk#ResourceTypeNotSupportedException":
|
|
1554
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody: parsedBody.Error,
|
|
1560
|
-
errorCode,
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
};
|
|
1564
891
|
export const de_RebuildEnvironmentCommand = async (output, context) => {
|
|
1565
892
|
if (output.statusCode >= 300) {
|
|
1566
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
1567
894
|
}
|
|
1568
895
|
await collectBody(output.body, context);
|
|
1569
896
|
const response = {
|
|
@@ -1571,28 +898,9 @@ export const de_RebuildEnvironmentCommand = async (output, context) => {
|
|
|
1571
898
|
};
|
|
1572
899
|
return response;
|
|
1573
900
|
};
|
|
1574
|
-
const de_RebuildEnvironmentCommandError = async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context),
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "InsufficientPrivilegesException":
|
|
1582
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1583
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody: parsedBody.Error,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
901
|
export const de_RequestEnvironmentInfoCommand = async (output, context) => {
|
|
1594
902
|
if (output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
1596
904
|
}
|
|
1597
905
|
await collectBody(output.body, context);
|
|
1598
906
|
const response = {
|
|
@@ -1600,22 +908,9 @@ export const de_RequestEnvironmentInfoCommand = async (output, context) => {
|
|
|
1600
908
|
};
|
|
1601
909
|
return response;
|
|
1602
910
|
};
|
|
1603
|
-
const de_RequestEnvironmentInfoCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody: parsedBody.Error,
|
|
1613
|
-
errorCode,
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
911
|
export const de_RestartAppServerCommand = async (output, context) => {
|
|
1617
912
|
if (output.statusCode >= 300) {
|
|
1618
|
-
return
|
|
913
|
+
return de_CommandError(output, context);
|
|
1619
914
|
}
|
|
1620
915
|
await collectBody(output.body, context);
|
|
1621
916
|
const response = {
|
|
@@ -1623,22 +918,9 @@ export const de_RestartAppServerCommand = async (output, context) => {
|
|
|
1623
918
|
};
|
|
1624
919
|
return response;
|
|
1625
920
|
};
|
|
1626
|
-
const de_RestartAppServerCommandError = async (output, context) => {
|
|
1627
|
-
const parsedOutput = {
|
|
1628
|
-
...output,
|
|
1629
|
-
body: await parseErrorBody(output.body, context),
|
|
1630
|
-
};
|
|
1631
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1632
|
-
const parsedBody = parsedOutput.body;
|
|
1633
|
-
return throwDefaultError({
|
|
1634
|
-
output,
|
|
1635
|
-
parsedBody: parsedBody.Error,
|
|
1636
|
-
errorCode,
|
|
1637
|
-
});
|
|
1638
|
-
};
|
|
1639
921
|
export const de_RetrieveEnvironmentInfoCommand = async (output, context) => {
|
|
1640
922
|
if (output.statusCode >= 300) {
|
|
1641
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
1642
924
|
}
|
|
1643
925
|
const data = await parseBody(output.body, context);
|
|
1644
926
|
let contents = {};
|
|
@@ -1649,22 +931,9 @@ export const de_RetrieveEnvironmentInfoCommand = async (output, context) => {
|
|
|
1649
931
|
};
|
|
1650
932
|
return response;
|
|
1651
933
|
};
|
|
1652
|
-
const de_RetrieveEnvironmentInfoCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1658
|
-
const parsedBody = parsedOutput.body;
|
|
1659
|
-
return throwDefaultError({
|
|
1660
|
-
output,
|
|
1661
|
-
parsedBody: parsedBody.Error,
|
|
1662
|
-
errorCode,
|
|
1663
|
-
});
|
|
1664
|
-
};
|
|
1665
934
|
export const de_SwapEnvironmentCNAMEsCommand = async (output, context) => {
|
|
1666
935
|
if (output.statusCode >= 300) {
|
|
1667
|
-
return
|
|
936
|
+
return de_CommandError(output, context);
|
|
1668
937
|
}
|
|
1669
938
|
await collectBody(output.body, context);
|
|
1670
939
|
const response = {
|
|
@@ -1672,22 +941,9 @@ export const de_SwapEnvironmentCNAMEsCommand = async (output, context) => {
|
|
|
1672
941
|
};
|
|
1673
942
|
return response;
|
|
1674
943
|
};
|
|
1675
|
-
const de_SwapEnvironmentCNAMEsCommandError = async (output, context) => {
|
|
1676
|
-
const parsedOutput = {
|
|
1677
|
-
...output,
|
|
1678
|
-
body: await parseErrorBody(output.body, context),
|
|
1679
|
-
};
|
|
1680
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1681
|
-
const parsedBody = parsedOutput.body;
|
|
1682
|
-
return throwDefaultError({
|
|
1683
|
-
output,
|
|
1684
|
-
parsedBody: parsedBody.Error,
|
|
1685
|
-
errorCode,
|
|
1686
|
-
});
|
|
1687
|
-
};
|
|
1688
944
|
export const de_TerminateEnvironmentCommand = async (output, context) => {
|
|
1689
945
|
if (output.statusCode >= 300) {
|
|
1690
|
-
return
|
|
946
|
+
return de_CommandError(output, context);
|
|
1691
947
|
}
|
|
1692
948
|
const data = await parseBody(output.body, context);
|
|
1693
949
|
let contents = {};
|
|
@@ -1698,28 +954,9 @@ export const de_TerminateEnvironmentCommand = async (output, context) => {
|
|
|
1698
954
|
};
|
|
1699
955
|
return response;
|
|
1700
956
|
};
|
|
1701
|
-
const de_TerminateEnvironmentCommandError = async (output, context) => {
|
|
1702
|
-
const parsedOutput = {
|
|
1703
|
-
...output,
|
|
1704
|
-
body: await parseErrorBody(output.body, context),
|
|
1705
|
-
};
|
|
1706
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1707
|
-
switch (errorCode) {
|
|
1708
|
-
case "InsufficientPrivilegesException":
|
|
1709
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1710
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1711
|
-
default:
|
|
1712
|
-
const parsedBody = parsedOutput.body;
|
|
1713
|
-
return throwDefaultError({
|
|
1714
|
-
output,
|
|
1715
|
-
parsedBody: parsedBody.Error,
|
|
1716
|
-
errorCode,
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
};
|
|
1720
957
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1721
958
|
if (output.statusCode >= 300) {
|
|
1722
|
-
return
|
|
959
|
+
return de_CommandError(output, context);
|
|
1723
960
|
}
|
|
1724
961
|
const data = await parseBody(output.body, context);
|
|
1725
962
|
let contents = {};
|
|
@@ -1730,22 +967,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1730
967
|
};
|
|
1731
968
|
return response;
|
|
1732
969
|
};
|
|
1733
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context),
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody: parsedBody.Error,
|
|
1743
|
-
errorCode,
|
|
1744
|
-
});
|
|
1745
|
-
};
|
|
1746
970
|
export const de_UpdateApplicationResourceLifecycleCommand = async (output, context) => {
|
|
1747
971
|
if (output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
972
|
+
return de_CommandError(output, context);
|
|
1749
973
|
}
|
|
1750
974
|
const data = await parseBody(output.body, context);
|
|
1751
975
|
let contents = {};
|
|
@@ -1756,28 +980,9 @@ export const de_UpdateApplicationResourceLifecycleCommand = async (output, conte
|
|
|
1756
980
|
};
|
|
1757
981
|
return response;
|
|
1758
982
|
};
|
|
1759
|
-
const de_UpdateApplicationResourceLifecycleCommandError = async (output, context) => {
|
|
1760
|
-
const parsedOutput = {
|
|
1761
|
-
...output,
|
|
1762
|
-
body: await parseErrorBody(output.body, context),
|
|
1763
|
-
};
|
|
1764
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1765
|
-
switch (errorCode) {
|
|
1766
|
-
case "InsufficientPrivilegesException":
|
|
1767
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1768
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
return throwDefaultError({
|
|
1772
|
-
output,
|
|
1773
|
-
parsedBody: parsedBody.Error,
|
|
1774
|
-
errorCode,
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
};
|
|
1778
983
|
export const de_UpdateApplicationVersionCommand = async (output, context) => {
|
|
1779
984
|
if (output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
985
|
+
return de_CommandError(output, context);
|
|
1781
986
|
}
|
|
1782
987
|
const data = await parseBody(output.body, context);
|
|
1783
988
|
let contents = {};
|
|
@@ -1788,22 +993,9 @@ export const de_UpdateApplicationVersionCommand = async (output, context) => {
|
|
|
1788
993
|
};
|
|
1789
994
|
return response;
|
|
1790
995
|
};
|
|
1791
|
-
const de_UpdateApplicationVersionCommandError = async (output, context) => {
|
|
1792
|
-
const parsedOutput = {
|
|
1793
|
-
...output,
|
|
1794
|
-
body: await parseErrorBody(output.body, context),
|
|
1795
|
-
};
|
|
1796
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody: parsedBody.Error,
|
|
1801
|
-
errorCode,
|
|
1802
|
-
});
|
|
1803
|
-
};
|
|
1804
996
|
export const de_UpdateConfigurationTemplateCommand = async (output, context) => {
|
|
1805
997
|
if (output.statusCode >= 300) {
|
|
1806
|
-
return
|
|
998
|
+
return de_CommandError(output, context);
|
|
1807
999
|
}
|
|
1808
1000
|
const data = await parseBody(output.body, context);
|
|
1809
1001
|
let contents = {};
|
|
@@ -1814,31 +1006,9 @@ export const de_UpdateConfigurationTemplateCommand = async (output, context) =>
|
|
|
1814
1006
|
};
|
|
1815
1007
|
return response;
|
|
1816
1008
|
};
|
|
1817
|
-
const de_UpdateConfigurationTemplateCommandError = async (output, context) => {
|
|
1818
|
-
const parsedOutput = {
|
|
1819
|
-
...output,
|
|
1820
|
-
body: await parseErrorBody(output.body, context),
|
|
1821
|
-
};
|
|
1822
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1823
|
-
switch (errorCode) {
|
|
1824
|
-
case "InsufficientPrivilegesException":
|
|
1825
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1826
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "TooManyBucketsException":
|
|
1828
|
-
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
1829
|
-
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
return throwDefaultError({
|
|
1833
|
-
output,
|
|
1834
|
-
parsedBody: parsedBody.Error,
|
|
1835
|
-
errorCode,
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
};
|
|
1839
1009
|
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
1840
1010
|
if (output.statusCode >= 300) {
|
|
1841
|
-
return
|
|
1011
|
+
return de_CommandError(output, context);
|
|
1842
1012
|
}
|
|
1843
1013
|
const data = await parseBody(output.body, context);
|
|
1844
1014
|
let contents = {};
|
|
@@ -1849,31 +1019,9 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
1849
1019
|
};
|
|
1850
1020
|
return response;
|
|
1851
1021
|
};
|
|
1852
|
-
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
1853
|
-
const parsedOutput = {
|
|
1854
|
-
...output,
|
|
1855
|
-
body: await parseErrorBody(output.body, context),
|
|
1856
|
-
};
|
|
1857
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1858
|
-
switch (errorCode) {
|
|
1859
|
-
case "InsufficientPrivilegesException":
|
|
1860
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1861
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "TooManyBucketsException":
|
|
1863
|
-
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
1864
|
-
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
1865
|
-
default:
|
|
1866
|
-
const parsedBody = parsedOutput.body;
|
|
1867
|
-
return throwDefaultError({
|
|
1868
|
-
output,
|
|
1869
|
-
parsedBody: parsedBody.Error,
|
|
1870
|
-
errorCode,
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
};
|
|
1874
1022
|
export const de_UpdateTagsForResourceCommand = async (output, context) => {
|
|
1875
1023
|
if (output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1024
|
+
return de_CommandError(output, context);
|
|
1877
1025
|
}
|
|
1878
1026
|
await collectBody(output.body, context);
|
|
1879
1027
|
const response = {
|
|
@@ -1881,40 +1029,9 @@ export const de_UpdateTagsForResourceCommand = async (output, context) => {
|
|
|
1881
1029
|
};
|
|
1882
1030
|
return response;
|
|
1883
1031
|
};
|
|
1884
|
-
const de_UpdateTagsForResourceCommandError = async (output, context) => {
|
|
1885
|
-
const parsedOutput = {
|
|
1886
|
-
...output,
|
|
1887
|
-
body: await parseErrorBody(output.body, context),
|
|
1888
|
-
};
|
|
1889
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1890
|
-
switch (errorCode) {
|
|
1891
|
-
case "InsufficientPrivilegesException":
|
|
1892
|
-
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1893
|
-
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "OperationInProgressFailure":
|
|
1895
|
-
case "com.amazonaws.elasticbeanstalk#OperationInProgressException":
|
|
1896
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ResourceNotFoundException":
|
|
1898
|
-
case "com.amazonaws.elasticbeanstalk#ResourceNotFoundException":
|
|
1899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceTypeNotSupportedException":
|
|
1901
|
-
case "com.amazonaws.elasticbeanstalk#ResourceTypeNotSupportedException":
|
|
1902
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "TooManyTagsException":
|
|
1904
|
-
case "com.amazonaws.elasticbeanstalk#TooManyTagsException":
|
|
1905
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody: parsedBody.Error,
|
|
1911
|
-
errorCode,
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
1032
|
export const de_ValidateConfigurationSettingsCommand = async (output, context) => {
|
|
1916
1033
|
if (output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1918
1035
|
}
|
|
1919
1036
|
const data = await parseBody(output.body, context);
|
|
1920
1037
|
let contents = {};
|
|
@@ -1925,7 +1042,7 @@ export const de_ValidateConfigurationSettingsCommand = async (output, context) =
|
|
|
1925
1042
|
};
|
|
1926
1043
|
return response;
|
|
1927
1044
|
};
|
|
1928
|
-
const
|
|
1045
|
+
const de_CommandError = async (output, context) => {
|
|
1929
1046
|
const parsedOutput = {
|
|
1930
1047
|
...output,
|
|
1931
1048
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1935,9 +1052,60 @@ const de_ValidateConfigurationSettingsCommandError = async (output, context) =>
|
|
|
1935
1052
|
case "InsufficientPrivilegesException":
|
|
1936
1053
|
case "com.amazonaws.elasticbeanstalk#InsufficientPrivilegesException":
|
|
1937
1054
|
throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "ElasticBeanstalkServiceException":
|
|
1056
|
+
case "com.amazonaws.elasticbeanstalk#ElasticBeanstalkServiceException":
|
|
1057
|
+
throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "ManagedActionInvalidStateException":
|
|
1059
|
+
case "com.amazonaws.elasticbeanstalk#ManagedActionInvalidStateException":
|
|
1060
|
+
throw await de_ManagedActionInvalidStateExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "TooManyEnvironmentsException":
|
|
1062
|
+
case "com.amazonaws.elasticbeanstalk#TooManyEnvironmentsException":
|
|
1063
|
+
throw await de_TooManyEnvironmentsExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "TooManyApplicationsException":
|
|
1065
|
+
case "com.amazonaws.elasticbeanstalk#TooManyApplicationsException":
|
|
1066
|
+
throw await de_TooManyApplicationsExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "CodeBuildNotInServiceRegionException":
|
|
1068
|
+
case "com.amazonaws.elasticbeanstalk#CodeBuildNotInServiceRegionException":
|
|
1069
|
+
throw await de_CodeBuildNotInServiceRegionExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "S3LocationNotInServiceRegionException":
|
|
1071
|
+
case "com.amazonaws.elasticbeanstalk#S3LocationNotInServiceRegionException":
|
|
1072
|
+
throw await de_S3LocationNotInServiceRegionExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "TooManyApplicationVersionsException":
|
|
1074
|
+
case "com.amazonaws.elasticbeanstalk#TooManyApplicationVersionsException":
|
|
1075
|
+
throw await de_TooManyApplicationVersionsExceptionRes(parsedOutput, context);
|
|
1938
1076
|
case "TooManyBucketsException":
|
|
1939
1077
|
case "com.amazonaws.elasticbeanstalk#TooManyBucketsException":
|
|
1940
1078
|
throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "TooManyConfigurationTemplatesException":
|
|
1080
|
+
case "com.amazonaws.elasticbeanstalk#TooManyConfigurationTemplatesException":
|
|
1081
|
+
throw await de_TooManyConfigurationTemplatesExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "TooManyPlatformsException":
|
|
1083
|
+
case "com.amazonaws.elasticbeanstalk#TooManyPlatformsException":
|
|
1084
|
+
throw await de_TooManyPlatformsExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "S3SubscriptionRequiredException":
|
|
1086
|
+
case "com.amazonaws.elasticbeanstalk#S3SubscriptionRequiredException":
|
|
1087
|
+
throw await de_S3SubscriptionRequiredExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "OperationInProgressFailure":
|
|
1089
|
+
case "com.amazonaws.elasticbeanstalk#OperationInProgressException":
|
|
1090
|
+
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "SourceBundleDeletionFailure":
|
|
1092
|
+
case "com.amazonaws.elasticbeanstalk#SourceBundleDeletionException":
|
|
1093
|
+
throw await de_SourceBundleDeletionExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "PlatformVersionStillReferencedException":
|
|
1095
|
+
case "com.amazonaws.elasticbeanstalk#PlatformVersionStillReferencedException":
|
|
1096
|
+
throw await de_PlatformVersionStillReferencedExceptionRes(parsedOutput, context);
|
|
1097
|
+
case "InvalidRequestException":
|
|
1098
|
+
case "com.amazonaws.elasticbeanstalk#InvalidRequestException":
|
|
1099
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "ResourceNotFoundException":
|
|
1101
|
+
case "com.amazonaws.elasticbeanstalk#ResourceNotFoundException":
|
|
1102
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1103
|
+
case "ResourceTypeNotSupportedException":
|
|
1104
|
+
case "com.amazonaws.elasticbeanstalk#ResourceTypeNotSupportedException":
|
|
1105
|
+
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
1106
|
+
case "TooManyTagsException":
|
|
1107
|
+
case "com.amazonaws.elasticbeanstalk#TooManyTagsException":
|
|
1108
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1941
1109
|
default:
|
|
1942
1110
|
const parsedBody = parsedOutput.body;
|
|
1943
1111
|
return throwDefaultError({
|