@aws-sdk/client-elastic-load-balancing-v2 3.504.0 → 3.509.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 +256 -1337
- package/dist-es/protocols/Aws_query.js +304 -1385
- package/package.json +3 -3
|
@@ -445,7 +445,7 @@ export const se_SetSubnetsCommand = async (input, context) => {
|
|
|
445
445
|
};
|
|
446
446
|
export const de_AddListenerCertificatesCommand = async (output, context) => {
|
|
447
447
|
if (output.statusCode >= 300) {
|
|
448
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
449
449
|
}
|
|
450
450
|
const data = await parseBody(output.body, context);
|
|
451
451
|
let contents = {};
|
|
@@ -456,34 +456,9 @@ export const de_AddListenerCertificatesCommand = async (output, context) => {
|
|
|
456
456
|
};
|
|
457
457
|
return response;
|
|
458
458
|
};
|
|
459
|
-
const de_AddListenerCertificatesCommandError = async (output, context) => {
|
|
460
|
-
const parsedOutput = {
|
|
461
|
-
...output,
|
|
462
|
-
body: await parseErrorBody(output.body, context),
|
|
463
|
-
};
|
|
464
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
465
|
-
switch (errorCode) {
|
|
466
|
-
case "CertificateNotFound":
|
|
467
|
-
case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException":
|
|
468
|
-
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
469
|
-
case "ListenerNotFound":
|
|
470
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
471
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
472
|
-
case "TooManyCertificates":
|
|
473
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException":
|
|
474
|
-
throw await de_TooManyCertificatesExceptionRes(parsedOutput, context);
|
|
475
|
-
default:
|
|
476
|
-
const parsedBody = parsedOutput.body;
|
|
477
|
-
return throwDefaultError({
|
|
478
|
-
output,
|
|
479
|
-
parsedBody: parsedBody.Error,
|
|
480
|
-
errorCode,
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
459
|
export const de_AddTagsCommand = async (output, context) => {
|
|
485
460
|
if (output.statusCode >= 300) {
|
|
486
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
487
462
|
}
|
|
488
463
|
const data = await parseBody(output.body, context);
|
|
489
464
|
let contents = {};
|
|
@@ -494,46 +469,9 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
494
469
|
};
|
|
495
470
|
return response;
|
|
496
471
|
};
|
|
497
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
498
|
-
const parsedOutput = {
|
|
499
|
-
...output,
|
|
500
|
-
body: await parseErrorBody(output.body, context),
|
|
501
|
-
};
|
|
502
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
503
|
-
switch (errorCode) {
|
|
504
|
-
case "DuplicateTagKeys":
|
|
505
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException":
|
|
506
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ListenerNotFound":
|
|
508
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
509
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
510
|
-
case "LoadBalancerNotFound":
|
|
511
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
512
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
513
|
-
case "RuleNotFound":
|
|
514
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
515
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
516
|
-
case "TargetGroupNotFound":
|
|
517
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
518
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
519
|
-
case "TooManyTags":
|
|
520
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
521
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
522
|
-
case "TrustStoreNotFound":
|
|
523
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
524
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
default:
|
|
526
|
-
const parsedBody = parsedOutput.body;
|
|
527
|
-
return throwDefaultError({
|
|
528
|
-
output,
|
|
529
|
-
parsedBody: parsedBody.Error,
|
|
530
|
-
errorCode,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
472
|
export const de_AddTrustStoreRevocationsCommand = async (output, context) => {
|
|
535
473
|
if (output.statusCode >= 300) {
|
|
536
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
537
475
|
}
|
|
538
476
|
const data = await parseBody(output.body, context);
|
|
539
477
|
let contents = {};
|
|
@@ -544,37 +482,9 @@ export const de_AddTrustStoreRevocationsCommand = async (output, context) => {
|
|
|
544
482
|
};
|
|
545
483
|
return response;
|
|
546
484
|
};
|
|
547
|
-
const de_AddTrustStoreRevocationsCommandError = async (output, context) => {
|
|
548
|
-
const parsedOutput = {
|
|
549
|
-
...output,
|
|
550
|
-
body: await parseErrorBody(output.body, context),
|
|
551
|
-
};
|
|
552
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
553
|
-
switch (errorCode) {
|
|
554
|
-
case "InvalidRevocationContent":
|
|
555
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidRevocationContentException":
|
|
556
|
-
throw await de_InvalidRevocationContentExceptionRes(parsedOutput, context);
|
|
557
|
-
case "RevocationContentNotFound":
|
|
558
|
-
case "com.amazonaws.elasticloadbalancingv2#RevocationContentNotFoundException":
|
|
559
|
-
throw await de_RevocationContentNotFoundExceptionRes(parsedOutput, context);
|
|
560
|
-
case "TooManyTrustStoreRevocationEntries":
|
|
561
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoreRevocationEntriesException":
|
|
562
|
-
throw await de_TooManyTrustStoreRevocationEntriesExceptionRes(parsedOutput, context);
|
|
563
|
-
case "TrustStoreNotFound":
|
|
564
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
565
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody: parsedBody.Error,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
485
|
export const de_CreateListenerCommand = async (output, context) => {
|
|
576
486
|
if (output.statusCode >= 300) {
|
|
577
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
578
488
|
}
|
|
579
489
|
const data = await parseBody(output.body, context);
|
|
580
490
|
let contents = {};
|
|
@@ -585,85 +495,9 @@ export const de_CreateListenerCommand = async (output, context) => {
|
|
|
585
495
|
};
|
|
586
496
|
return response;
|
|
587
497
|
};
|
|
588
|
-
const de_CreateListenerCommandError = async (output, context) => {
|
|
589
|
-
const parsedOutput = {
|
|
590
|
-
...output,
|
|
591
|
-
body: await parseErrorBody(output.body, context),
|
|
592
|
-
};
|
|
593
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
594
|
-
switch (errorCode) {
|
|
595
|
-
case "ALPNPolicyNotFound":
|
|
596
|
-
case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException":
|
|
597
|
-
throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context);
|
|
598
|
-
case "CertificateNotFound":
|
|
599
|
-
case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException":
|
|
600
|
-
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
601
|
-
case "DuplicateListener":
|
|
602
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException":
|
|
603
|
-
throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
|
|
604
|
-
case "IncompatibleProtocols":
|
|
605
|
-
case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException":
|
|
606
|
-
throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context);
|
|
607
|
-
case "InvalidConfigurationRequest":
|
|
608
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
609
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
610
|
-
case "InvalidLoadBalancerAction":
|
|
611
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException":
|
|
612
|
-
throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context);
|
|
613
|
-
case "LoadBalancerNotFound":
|
|
614
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
615
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
616
|
-
case "SSLPolicyNotFound":
|
|
617
|
-
case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException":
|
|
618
|
-
throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
619
|
-
case "TargetGroupAssociationLimit":
|
|
620
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException":
|
|
621
|
-
throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context);
|
|
622
|
-
case "TargetGroupNotFound":
|
|
623
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
624
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
625
|
-
case "TooManyActions":
|
|
626
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException":
|
|
627
|
-
throw await de_TooManyActionsExceptionRes(parsedOutput, context);
|
|
628
|
-
case "TooManyCertificates":
|
|
629
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException":
|
|
630
|
-
throw await de_TooManyCertificatesExceptionRes(parsedOutput, context);
|
|
631
|
-
case "TooManyListeners":
|
|
632
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException":
|
|
633
|
-
throw await de_TooManyListenersExceptionRes(parsedOutput, context);
|
|
634
|
-
case "TooManyRegistrationsForTargetId":
|
|
635
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
|
|
636
|
-
throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
|
|
637
|
-
case "TooManyTags":
|
|
638
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
639
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
640
|
-
case "TooManyTargets":
|
|
641
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
|
|
642
|
-
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
643
|
-
case "TooManyUniqueTargetGroupsPerLoadBalancer":
|
|
644
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
|
|
645
|
-
throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
|
|
646
|
-
case "TrustStoreNotFound":
|
|
647
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
648
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
649
|
-
case "TrustStoreNotReady":
|
|
650
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException":
|
|
651
|
-
throw await de_TrustStoreNotReadyExceptionRes(parsedOutput, context);
|
|
652
|
-
case "UnsupportedProtocol":
|
|
653
|
-
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
654
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody: parsedBody.Error,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
498
|
export const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
665
499
|
if (output.statusCode >= 300) {
|
|
666
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
667
501
|
}
|
|
668
502
|
const data = await parseBody(output.body, context);
|
|
669
503
|
let contents = {};
|
|
@@ -674,64 +508,9 @@ export const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
|
674
508
|
};
|
|
675
509
|
return response;
|
|
676
510
|
};
|
|
677
|
-
const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
678
|
-
const parsedOutput = {
|
|
679
|
-
...output,
|
|
680
|
-
body: await parseErrorBody(output.body, context),
|
|
681
|
-
};
|
|
682
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
683
|
-
switch (errorCode) {
|
|
684
|
-
case "AllocationIdNotFound":
|
|
685
|
-
case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException":
|
|
686
|
-
throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context);
|
|
687
|
-
case "AvailabilityZoneNotSupported":
|
|
688
|
-
case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException":
|
|
689
|
-
throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context);
|
|
690
|
-
case "DuplicateLoadBalancerName":
|
|
691
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateLoadBalancerNameException":
|
|
692
|
-
throw await de_DuplicateLoadBalancerNameExceptionRes(parsedOutput, context);
|
|
693
|
-
case "DuplicateTagKeys":
|
|
694
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException":
|
|
695
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InvalidConfigurationRequest":
|
|
697
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
698
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
699
|
-
case "InvalidScheme":
|
|
700
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidSchemeException":
|
|
701
|
-
throw await de_InvalidSchemeExceptionRes(parsedOutput, context);
|
|
702
|
-
case "InvalidSecurityGroup":
|
|
703
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException":
|
|
704
|
-
throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
|
|
705
|
-
case "InvalidSubnet":
|
|
706
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException":
|
|
707
|
-
throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
|
|
708
|
-
case "OperationNotPermitted":
|
|
709
|
-
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
710
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ResourceInUse":
|
|
712
|
-
case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException":
|
|
713
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
714
|
-
case "SubnetNotFound":
|
|
715
|
-
case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException":
|
|
716
|
-
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
717
|
-
case "TooManyLoadBalancers":
|
|
718
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyLoadBalancersException":
|
|
719
|
-
throw await de_TooManyLoadBalancersExceptionRes(parsedOutput, context);
|
|
720
|
-
case "TooManyTags":
|
|
721
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
722
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
723
|
-
default:
|
|
724
|
-
const parsedBody = parsedOutput.body;
|
|
725
|
-
return throwDefaultError({
|
|
726
|
-
output,
|
|
727
|
-
parsedBody: parsedBody.Error,
|
|
728
|
-
errorCode,
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
511
|
export const de_CreateRuleCommand = async (output, context) => {
|
|
733
512
|
if (output.statusCode >= 300) {
|
|
734
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
735
514
|
}
|
|
736
515
|
const data = await parseBody(output.body, context);
|
|
737
516
|
let contents = {};
|
|
@@ -739,1365 +518,454 @@ export const de_CreateRuleCommand = async (output, context) => {
|
|
|
739
518
|
const response = {
|
|
740
519
|
$metadata: deserializeMetadata(output),
|
|
741
520
|
...contents,
|
|
742
|
-
};
|
|
743
|
-
return response;
|
|
744
|
-
};
|
|
745
|
-
const de_CreateRuleCommandError = async (output, context) => {
|
|
746
|
-
const parsedOutput = {
|
|
747
|
-
...output,
|
|
748
|
-
body: await parseErrorBody(output.body, context),
|
|
749
|
-
};
|
|
750
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
751
|
-
switch (errorCode) {
|
|
752
|
-
case "IncompatibleProtocols":
|
|
753
|
-
case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException":
|
|
754
|
-
throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context);
|
|
755
|
-
case "InvalidConfigurationRequest":
|
|
756
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
757
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
758
|
-
case "InvalidLoadBalancerAction":
|
|
759
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException":
|
|
760
|
-
throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ListenerNotFound":
|
|
762
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
763
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
764
|
-
case "PriorityInUse":
|
|
765
|
-
case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException":
|
|
766
|
-
throw await de_PriorityInUseExceptionRes(parsedOutput, context);
|
|
767
|
-
case "TargetGroupAssociationLimit":
|
|
768
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException":
|
|
769
|
-
throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context);
|
|
770
|
-
case "TargetGroupNotFound":
|
|
771
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
772
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
773
|
-
case "TooManyActions":
|
|
774
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException":
|
|
775
|
-
throw await de_TooManyActionsExceptionRes(parsedOutput, context);
|
|
776
|
-
case "TooManyRegistrationsForTargetId":
|
|
777
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
|
|
778
|
-
throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
|
|
779
|
-
case "TooManyRules":
|
|
780
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyRulesException":
|
|
781
|
-
throw await de_TooManyRulesExceptionRes(parsedOutput, context);
|
|
782
|
-
case "TooManyTags":
|
|
783
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
784
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
785
|
-
case "TooManyTargetGroups":
|
|
786
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException":
|
|
787
|
-
throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context);
|
|
788
|
-
case "TooManyTargets":
|
|
789
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
|
|
790
|
-
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
791
|
-
case "TooManyUniqueTargetGroupsPerLoadBalancer":
|
|
792
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
|
|
793
|
-
throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
|
|
794
|
-
case "UnsupportedProtocol":
|
|
795
|
-
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
796
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
797
|
-
default:
|
|
798
|
-
const parsedBody = parsedOutput.body;
|
|
799
|
-
return throwDefaultError({
|
|
800
|
-
output,
|
|
801
|
-
parsedBody: parsedBody.Error,
|
|
802
|
-
errorCode,
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
export const de_CreateTargetGroupCommand = async (output, context) => {
|
|
807
|
-
if (output.statusCode >= 300) {
|
|
808
|
-
return de_CreateTargetGroupCommandError(output, context);
|
|
809
|
-
}
|
|
810
|
-
const data = await parseBody(output.body, context);
|
|
811
|
-
let contents = {};
|
|
812
|
-
contents = de_CreateTargetGroupOutput(data.CreateTargetGroupResult, context);
|
|
813
|
-
const response = {
|
|
814
|
-
$metadata: deserializeMetadata(output),
|
|
815
|
-
...contents,
|
|
816
|
-
};
|
|
817
|
-
return response;
|
|
818
|
-
};
|
|
819
|
-
const de_CreateTargetGroupCommandError = async (output, context) => {
|
|
820
|
-
const parsedOutput = {
|
|
821
|
-
...output,
|
|
822
|
-
body: await parseErrorBody(output.body, context),
|
|
823
|
-
};
|
|
824
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
825
|
-
switch (errorCode) {
|
|
826
|
-
case "DuplicateTargetGroupName":
|
|
827
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateTargetGroupNameException":
|
|
828
|
-
throw await de_DuplicateTargetGroupNameExceptionRes(parsedOutput, context);
|
|
829
|
-
case "InvalidConfigurationRequest":
|
|
830
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
831
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
832
|
-
case "TooManyTags":
|
|
833
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
834
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
835
|
-
case "TooManyTargetGroups":
|
|
836
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException":
|
|
837
|
-
throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context);
|
|
838
|
-
default:
|
|
839
|
-
const parsedBody = parsedOutput.body;
|
|
840
|
-
return throwDefaultError({
|
|
841
|
-
output,
|
|
842
|
-
parsedBody: parsedBody.Error,
|
|
843
|
-
errorCode,
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
|
-
export const de_CreateTrustStoreCommand = async (output, context) => {
|
|
848
|
-
if (output.statusCode >= 300) {
|
|
849
|
-
return de_CreateTrustStoreCommandError(output, context);
|
|
850
|
-
}
|
|
851
|
-
const data = await parseBody(output.body, context);
|
|
852
|
-
let contents = {};
|
|
853
|
-
contents = de_CreateTrustStoreOutput(data.CreateTrustStoreResult, context);
|
|
854
|
-
const response = {
|
|
855
|
-
$metadata: deserializeMetadata(output),
|
|
856
|
-
...contents,
|
|
857
|
-
};
|
|
858
|
-
return response;
|
|
859
|
-
};
|
|
860
|
-
const de_CreateTrustStoreCommandError = async (output, context) => {
|
|
861
|
-
const parsedOutput = {
|
|
862
|
-
...output,
|
|
863
|
-
body: await parseErrorBody(output.body, context),
|
|
864
|
-
};
|
|
865
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
866
|
-
switch (errorCode) {
|
|
867
|
-
case "CaCertificatesBundleNotFound":
|
|
868
|
-
case "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException":
|
|
869
|
-
throw await de_CaCertificatesBundleNotFoundExceptionRes(parsedOutput, context);
|
|
870
|
-
case "DuplicateTagKeys":
|
|
871
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException":
|
|
872
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
873
|
-
case "DuplicateTrustStoreName":
|
|
874
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateTrustStoreNameException":
|
|
875
|
-
throw await de_DuplicateTrustStoreNameExceptionRes(parsedOutput, context);
|
|
876
|
-
case "InvalidCaCertificatesBundle":
|
|
877
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException":
|
|
878
|
-
throw await de_InvalidCaCertificatesBundleExceptionRes(parsedOutput, context);
|
|
879
|
-
case "TooManyTags":
|
|
880
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
881
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
882
|
-
case "TooManyTrustStores":
|
|
883
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoresException":
|
|
884
|
-
throw await de_TooManyTrustStoresExceptionRes(parsedOutput, context);
|
|
885
|
-
default:
|
|
886
|
-
const parsedBody = parsedOutput.body;
|
|
887
|
-
return throwDefaultError({
|
|
888
|
-
output,
|
|
889
|
-
parsedBody: parsedBody.Error,
|
|
890
|
-
errorCode,
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
};
|
|
894
|
-
export const de_DeleteListenerCommand = async (output, context) => {
|
|
895
|
-
if (output.statusCode >= 300) {
|
|
896
|
-
return de_DeleteListenerCommandError(output, context);
|
|
897
|
-
}
|
|
898
|
-
const data = await parseBody(output.body, context);
|
|
899
|
-
let contents = {};
|
|
900
|
-
contents = de_DeleteListenerOutput(data.DeleteListenerResult, context);
|
|
901
|
-
const response = {
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
...contents,
|
|
904
|
-
};
|
|
905
|
-
return response;
|
|
906
|
-
};
|
|
907
|
-
const de_DeleteListenerCommandError = async (output, context) => {
|
|
908
|
-
const parsedOutput = {
|
|
909
|
-
...output,
|
|
910
|
-
body: await parseErrorBody(output.body, context),
|
|
911
|
-
};
|
|
912
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
913
|
-
switch (errorCode) {
|
|
914
|
-
case "ListenerNotFound":
|
|
915
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
916
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ResourceInUse":
|
|
918
|
-
case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException":
|
|
919
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody: parsedBody.Error,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
export const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode >= 300) {
|
|
931
|
-
return de_DeleteLoadBalancerCommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const data = await parseBody(output.body, context);
|
|
934
|
-
let contents = {};
|
|
935
|
-
contents = de_DeleteLoadBalancerOutput(data.DeleteLoadBalancerResult, context);
|
|
936
|
-
const response = {
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
...contents,
|
|
939
|
-
};
|
|
940
|
-
return response;
|
|
941
|
-
};
|
|
942
|
-
const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
943
|
-
const parsedOutput = {
|
|
944
|
-
...output,
|
|
945
|
-
body: await parseErrorBody(output.body, context),
|
|
946
|
-
};
|
|
947
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
948
|
-
switch (errorCode) {
|
|
949
|
-
case "LoadBalancerNotFound":
|
|
950
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
951
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "OperationNotPermitted":
|
|
953
|
-
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
954
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
955
|
-
case "ResourceInUse":
|
|
956
|
-
case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException":
|
|
957
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
958
|
-
default:
|
|
959
|
-
const parsedBody = parsedOutput.body;
|
|
960
|
-
return throwDefaultError({
|
|
961
|
-
output,
|
|
962
|
-
parsedBody: parsedBody.Error,
|
|
963
|
-
errorCode,
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
export const de_DeleteRuleCommand = async (output, context) => {
|
|
968
|
-
if (output.statusCode >= 300) {
|
|
969
|
-
return de_DeleteRuleCommandError(output, context);
|
|
970
|
-
}
|
|
971
|
-
const data = await parseBody(output.body, context);
|
|
972
|
-
let contents = {};
|
|
973
|
-
contents = de_DeleteRuleOutput(data.DeleteRuleResult, context);
|
|
974
|
-
const response = {
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
...contents,
|
|
977
|
-
};
|
|
978
|
-
return response;
|
|
979
|
-
};
|
|
980
|
-
const de_DeleteRuleCommandError = async (output, context) => {
|
|
981
|
-
const parsedOutput = {
|
|
982
|
-
...output,
|
|
983
|
-
body: await parseErrorBody(output.body, context),
|
|
984
|
-
};
|
|
985
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
986
|
-
switch (errorCode) {
|
|
987
|
-
case "OperationNotPermitted":
|
|
988
|
-
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
989
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
990
|
-
case "RuleNotFound":
|
|
991
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
992
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
993
|
-
default:
|
|
994
|
-
const parsedBody = parsedOutput.body;
|
|
995
|
-
return throwDefaultError({
|
|
996
|
-
output,
|
|
997
|
-
parsedBody: parsedBody.Error,
|
|
998
|
-
errorCode,
|
|
999
|
-
});
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
export const de_DeleteTargetGroupCommand = async (output, context) => {
|
|
1003
|
-
if (output.statusCode >= 300) {
|
|
1004
|
-
return de_DeleteTargetGroupCommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const data = await parseBody(output.body, context);
|
|
1007
|
-
let contents = {};
|
|
1008
|
-
contents = de_DeleteTargetGroupOutput(data.DeleteTargetGroupResult, context);
|
|
1009
|
-
const response = {
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
...contents,
|
|
1012
|
-
};
|
|
1013
|
-
return response;
|
|
1014
|
-
};
|
|
1015
|
-
const de_DeleteTargetGroupCommandError = async (output, context) => {
|
|
1016
|
-
const parsedOutput = {
|
|
1017
|
-
...output,
|
|
1018
|
-
body: await parseErrorBody(output.body, context),
|
|
1019
|
-
};
|
|
1020
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1021
|
-
switch (errorCode) {
|
|
1022
|
-
case "ResourceInUse":
|
|
1023
|
-
case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException":
|
|
1024
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody: parsedBody.Error,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
|
-
export const de_DeleteTrustStoreCommand = async (output, context) => {
|
|
1035
|
-
if (output.statusCode >= 300) {
|
|
1036
|
-
return de_DeleteTrustStoreCommandError(output, context);
|
|
1037
|
-
}
|
|
1038
|
-
const data = await parseBody(output.body, context);
|
|
1039
|
-
let contents = {};
|
|
1040
|
-
contents = de_DeleteTrustStoreOutput(data.DeleteTrustStoreResult, context);
|
|
1041
|
-
const response = {
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
...contents,
|
|
1044
|
-
};
|
|
1045
|
-
return response;
|
|
1046
|
-
};
|
|
1047
|
-
const de_DeleteTrustStoreCommandError = async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "TrustStoreInUse":
|
|
1055
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreInUseException":
|
|
1056
|
-
throw await de_TrustStoreInUseExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "TrustStoreNotFound":
|
|
1058
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1059
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
return throwDefaultError({
|
|
1063
|
-
output,
|
|
1064
|
-
parsedBody: parsedBody.Error,
|
|
1065
|
-
errorCode,
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
521
|
+
};
|
|
522
|
+
return response;
|
|
1068
523
|
};
|
|
1069
|
-
export const
|
|
524
|
+
export const de_CreateTargetGroupCommand = async (output, context) => {
|
|
1070
525
|
if (output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
1072
527
|
}
|
|
1073
528
|
const data = await parseBody(output.body, context);
|
|
1074
529
|
let contents = {};
|
|
1075
|
-
contents =
|
|
530
|
+
contents = de_CreateTargetGroupOutput(data.CreateTargetGroupResult, context);
|
|
1076
531
|
const response = {
|
|
1077
532
|
$metadata: deserializeMetadata(output),
|
|
1078
533
|
...contents,
|
|
1079
534
|
};
|
|
1080
535
|
return response;
|
|
1081
536
|
};
|
|
1082
|
-
const
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context),
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "InvalidTarget":
|
|
1090
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
|
|
1091
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "TargetGroupNotFound":
|
|
1093
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1094
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1095
|
-
default:
|
|
1096
|
-
const parsedBody = parsedOutput.body;
|
|
1097
|
-
return throwDefaultError({
|
|
1098
|
-
output,
|
|
1099
|
-
parsedBody: parsedBody.Error,
|
|
1100
|
-
errorCode,
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
};
|
|
1104
|
-
export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
537
|
+
export const de_CreateTrustStoreCommand = async (output, context) => {
|
|
1105
538
|
if (output.statusCode >= 300) {
|
|
1106
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
1107
540
|
}
|
|
1108
541
|
const data = await parseBody(output.body, context);
|
|
1109
542
|
let contents = {};
|
|
1110
|
-
contents =
|
|
543
|
+
contents = de_CreateTrustStoreOutput(data.CreateTrustStoreResult, context);
|
|
1111
544
|
const response = {
|
|
1112
545
|
$metadata: deserializeMetadata(output),
|
|
1113
546
|
...contents,
|
|
1114
547
|
};
|
|
1115
548
|
return response;
|
|
1116
549
|
};
|
|
1117
|
-
const
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context),
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody: parsedBody.Error,
|
|
1127
|
-
errorCode,
|
|
1128
|
-
});
|
|
1129
|
-
};
|
|
1130
|
-
export const de_DescribeListenerCertificatesCommand = async (output, context) => {
|
|
550
|
+
export const de_DeleteListenerCommand = async (output, context) => {
|
|
1131
551
|
if (output.statusCode >= 300) {
|
|
1132
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
1133
553
|
}
|
|
1134
554
|
const data = await parseBody(output.body, context);
|
|
1135
555
|
let contents = {};
|
|
1136
|
-
contents =
|
|
556
|
+
contents = de_DeleteListenerOutput(data.DeleteListenerResult, context);
|
|
1137
557
|
const response = {
|
|
1138
558
|
$metadata: deserializeMetadata(output),
|
|
1139
559
|
...contents,
|
|
1140
560
|
};
|
|
1141
561
|
return response;
|
|
1142
562
|
};
|
|
1143
|
-
const
|
|
1144
|
-
const parsedOutput = {
|
|
1145
|
-
...output,
|
|
1146
|
-
body: await parseErrorBody(output.body, context),
|
|
1147
|
-
};
|
|
1148
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1149
|
-
switch (errorCode) {
|
|
1150
|
-
case "ListenerNotFound":
|
|
1151
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
1152
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
-
default:
|
|
1154
|
-
const parsedBody = parsedOutput.body;
|
|
1155
|
-
return throwDefaultError({
|
|
1156
|
-
output,
|
|
1157
|
-
parsedBody: parsedBody.Error,
|
|
1158
|
-
errorCode,
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
|
-
export const de_DescribeListenersCommand = async (output, context) => {
|
|
563
|
+
export const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
1163
564
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
1165
566
|
}
|
|
1166
567
|
const data = await parseBody(output.body, context);
|
|
1167
568
|
let contents = {};
|
|
1168
|
-
contents =
|
|
569
|
+
contents = de_DeleteLoadBalancerOutput(data.DeleteLoadBalancerResult, context);
|
|
1169
570
|
const response = {
|
|
1170
571
|
$metadata: deserializeMetadata(output),
|
|
1171
572
|
...contents,
|
|
1172
573
|
};
|
|
1173
574
|
return response;
|
|
1174
575
|
};
|
|
1175
|
-
const
|
|
1176
|
-
const parsedOutput = {
|
|
1177
|
-
...output,
|
|
1178
|
-
body: await parseErrorBody(output.body, context),
|
|
1179
|
-
};
|
|
1180
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1181
|
-
switch (errorCode) {
|
|
1182
|
-
case "ListenerNotFound":
|
|
1183
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
1184
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "LoadBalancerNotFound":
|
|
1186
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1187
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "UnsupportedProtocol":
|
|
1189
|
-
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
1190
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody: parsedBody.Error,
|
|
1196
|
-
errorCode,
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1200
|
-
export const de_DescribeLoadBalancerAttributesCommand = async (output, context) => {
|
|
576
|
+
export const de_DeleteRuleCommand = async (output, context) => {
|
|
1201
577
|
if (output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
1203
579
|
}
|
|
1204
580
|
const data = await parseBody(output.body, context);
|
|
1205
581
|
let contents = {};
|
|
1206
|
-
contents =
|
|
582
|
+
contents = de_DeleteRuleOutput(data.DeleteRuleResult, context);
|
|
1207
583
|
const response = {
|
|
1208
584
|
$metadata: deserializeMetadata(output),
|
|
1209
585
|
...contents,
|
|
1210
586
|
};
|
|
1211
587
|
return response;
|
|
1212
588
|
};
|
|
1213
|
-
const
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context),
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "LoadBalancerNotFound":
|
|
1221
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1222
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1223
|
-
default:
|
|
1224
|
-
const parsedBody = parsedOutput.body;
|
|
1225
|
-
return throwDefaultError({
|
|
1226
|
-
output,
|
|
1227
|
-
parsedBody: parsedBody.Error,
|
|
1228
|
-
errorCode,
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
export const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
589
|
+
export const de_DeleteTargetGroupCommand = async (output, context) => {
|
|
1233
590
|
if (output.statusCode >= 300) {
|
|
1234
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
1235
592
|
}
|
|
1236
593
|
const data = await parseBody(output.body, context);
|
|
1237
594
|
let contents = {};
|
|
1238
|
-
contents =
|
|
595
|
+
contents = de_DeleteTargetGroupOutput(data.DeleteTargetGroupResult, context);
|
|
1239
596
|
const response = {
|
|
1240
597
|
$metadata: deserializeMetadata(output),
|
|
1241
598
|
...contents,
|
|
1242
599
|
};
|
|
1243
600
|
return response;
|
|
1244
601
|
};
|
|
1245
|
-
const
|
|
1246
|
-
const parsedOutput = {
|
|
1247
|
-
...output,
|
|
1248
|
-
body: await parseErrorBody(output.body, context),
|
|
1249
|
-
};
|
|
1250
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1251
|
-
switch (errorCode) {
|
|
1252
|
-
case "LoadBalancerNotFound":
|
|
1253
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1254
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1255
|
-
default:
|
|
1256
|
-
const parsedBody = parsedOutput.body;
|
|
1257
|
-
return throwDefaultError({
|
|
1258
|
-
output,
|
|
1259
|
-
parsedBody: parsedBody.Error,
|
|
1260
|
-
errorCode,
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
};
|
|
1264
|
-
export const de_DescribeRulesCommand = async (output, context) => {
|
|
602
|
+
export const de_DeleteTrustStoreCommand = async (output, context) => {
|
|
1265
603
|
if (output.statusCode >= 300) {
|
|
1266
|
-
return
|
|
604
|
+
return de_CommandError(output, context);
|
|
1267
605
|
}
|
|
1268
606
|
const data = await parseBody(output.body, context);
|
|
1269
607
|
let contents = {};
|
|
1270
|
-
contents =
|
|
608
|
+
contents = de_DeleteTrustStoreOutput(data.DeleteTrustStoreResult, context);
|
|
1271
609
|
const response = {
|
|
1272
610
|
$metadata: deserializeMetadata(output),
|
|
1273
611
|
...contents,
|
|
1274
612
|
};
|
|
1275
613
|
return response;
|
|
1276
614
|
};
|
|
1277
|
-
const
|
|
1278
|
-
const parsedOutput = {
|
|
1279
|
-
...output,
|
|
1280
|
-
body: await parseErrorBody(output.body, context),
|
|
1281
|
-
};
|
|
1282
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1283
|
-
switch (errorCode) {
|
|
1284
|
-
case "ListenerNotFound":
|
|
1285
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
1286
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "RuleNotFound":
|
|
1288
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
1289
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "UnsupportedProtocol":
|
|
1291
|
-
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
1292
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1293
|
-
default:
|
|
1294
|
-
const parsedBody = parsedOutput.body;
|
|
1295
|
-
return throwDefaultError({
|
|
1296
|
-
output,
|
|
1297
|
-
parsedBody: parsedBody.Error,
|
|
1298
|
-
errorCode,
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
};
|
|
1302
|
-
export const de_DescribeSSLPoliciesCommand = async (output, context) => {
|
|
615
|
+
export const de_DeregisterTargetsCommand = async (output, context) => {
|
|
1303
616
|
if (output.statusCode >= 300) {
|
|
1304
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
1305
618
|
}
|
|
1306
619
|
const data = await parseBody(output.body, context);
|
|
1307
620
|
let contents = {};
|
|
1308
|
-
contents =
|
|
621
|
+
contents = de_DeregisterTargetsOutput(data.DeregisterTargetsResult, context);
|
|
1309
622
|
const response = {
|
|
1310
623
|
$metadata: deserializeMetadata(output),
|
|
1311
624
|
...contents,
|
|
1312
625
|
};
|
|
1313
626
|
return response;
|
|
1314
627
|
};
|
|
1315
|
-
const
|
|
1316
|
-
const parsedOutput = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseErrorBody(output.body, context),
|
|
1319
|
-
};
|
|
1320
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1321
|
-
switch (errorCode) {
|
|
1322
|
-
case "SSLPolicyNotFound":
|
|
1323
|
-
case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException":
|
|
1324
|
-
throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1325
|
-
default:
|
|
1326
|
-
const parsedBody = parsedOutput.body;
|
|
1327
|
-
return throwDefaultError({
|
|
1328
|
-
output,
|
|
1329
|
-
parsedBody: parsedBody.Error,
|
|
1330
|
-
errorCode,
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
};
|
|
1334
|
-
export const de_DescribeTagsCommand = async (output, context) => {
|
|
628
|
+
export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
1335
629
|
if (output.statusCode >= 300) {
|
|
1336
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
1337
631
|
}
|
|
1338
632
|
const data = await parseBody(output.body, context);
|
|
1339
633
|
let contents = {};
|
|
1340
|
-
contents =
|
|
634
|
+
contents = de_DescribeAccountLimitsOutput(data.DescribeAccountLimitsResult, context);
|
|
1341
635
|
const response = {
|
|
1342
636
|
$metadata: deserializeMetadata(output),
|
|
1343
637
|
...contents,
|
|
1344
638
|
};
|
|
1345
639
|
return response;
|
|
1346
640
|
};
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
body: await parseErrorBody(output.body, context),
|
|
1351
|
-
};
|
|
1352
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1353
|
-
switch (errorCode) {
|
|
1354
|
-
case "ListenerNotFound":
|
|
1355
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
1356
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "LoadBalancerNotFound":
|
|
1358
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1359
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "RuleNotFound":
|
|
1361
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
1362
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "TargetGroupNotFound":
|
|
1364
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1365
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "TrustStoreNotFound":
|
|
1367
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1368
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody: parsedBody.Error,
|
|
1374
|
-
errorCode,
|
|
1375
|
-
});
|
|
641
|
+
export const de_DescribeListenerCertificatesCommand = async (output, context) => {
|
|
642
|
+
if (output.statusCode >= 300) {
|
|
643
|
+
return de_CommandError(output, context);
|
|
1376
644
|
}
|
|
645
|
+
const data = await parseBody(output.body, context);
|
|
646
|
+
let contents = {};
|
|
647
|
+
contents = de_DescribeListenerCertificatesOutput(data.DescribeListenerCertificatesResult, context);
|
|
648
|
+
const response = {
|
|
649
|
+
$metadata: deserializeMetadata(output),
|
|
650
|
+
...contents,
|
|
651
|
+
};
|
|
652
|
+
return response;
|
|
1377
653
|
};
|
|
1378
|
-
export const
|
|
654
|
+
export const de_DescribeListenersCommand = async (output, context) => {
|
|
1379
655
|
if (output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
1381
657
|
}
|
|
1382
658
|
const data = await parseBody(output.body, context);
|
|
1383
659
|
let contents = {};
|
|
1384
|
-
contents =
|
|
660
|
+
contents = de_DescribeListenersOutput(data.DescribeListenersResult, context);
|
|
1385
661
|
const response = {
|
|
1386
662
|
$metadata: deserializeMetadata(output),
|
|
1387
663
|
...contents,
|
|
1388
664
|
};
|
|
1389
665
|
return response;
|
|
1390
666
|
};
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
body: await parseErrorBody(output.body, context),
|
|
1395
|
-
};
|
|
1396
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1397
|
-
switch (errorCode) {
|
|
1398
|
-
case "TargetGroupNotFound":
|
|
1399
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1400
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1401
|
-
default:
|
|
1402
|
-
const parsedBody = parsedOutput.body;
|
|
1403
|
-
return throwDefaultError({
|
|
1404
|
-
output,
|
|
1405
|
-
parsedBody: parsedBody.Error,
|
|
1406
|
-
errorCode,
|
|
1407
|
-
});
|
|
667
|
+
export const de_DescribeLoadBalancerAttributesCommand = async (output, context) => {
|
|
668
|
+
if (output.statusCode >= 300) {
|
|
669
|
+
return de_CommandError(output, context);
|
|
1408
670
|
}
|
|
671
|
+
const data = await parseBody(output.body, context);
|
|
672
|
+
let contents = {};
|
|
673
|
+
contents = de_DescribeLoadBalancerAttributesOutput(data.DescribeLoadBalancerAttributesResult, context);
|
|
674
|
+
const response = {
|
|
675
|
+
$metadata: deserializeMetadata(output),
|
|
676
|
+
...contents,
|
|
677
|
+
};
|
|
678
|
+
return response;
|
|
1409
679
|
};
|
|
1410
|
-
export const
|
|
680
|
+
export const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
1411
681
|
if (output.statusCode >= 300) {
|
|
1412
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1413
683
|
}
|
|
1414
684
|
const data = await parseBody(output.body, context);
|
|
1415
685
|
let contents = {};
|
|
1416
|
-
contents =
|
|
686
|
+
contents = de_DescribeLoadBalancersOutput(data.DescribeLoadBalancersResult, context);
|
|
1417
687
|
const response = {
|
|
1418
688
|
$metadata: deserializeMetadata(output),
|
|
1419
689
|
...contents,
|
|
1420
690
|
};
|
|
1421
691
|
return response;
|
|
1422
692
|
};
|
|
1423
|
-
const
|
|
1424
|
-
const parsedOutput = {
|
|
1425
|
-
...output,
|
|
1426
|
-
body: await parseErrorBody(output.body, context),
|
|
1427
|
-
};
|
|
1428
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1429
|
-
switch (errorCode) {
|
|
1430
|
-
case "LoadBalancerNotFound":
|
|
1431
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1432
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "TargetGroupNotFound":
|
|
1434
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1435
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody: parsedBody.Error,
|
|
1441
|
-
errorCode,
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
export const de_DescribeTargetHealthCommand = async (output, context) => {
|
|
693
|
+
export const de_DescribeRulesCommand = async (output, context) => {
|
|
1446
694
|
if (output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
1448
696
|
}
|
|
1449
697
|
const data = await parseBody(output.body, context);
|
|
1450
698
|
let contents = {};
|
|
1451
|
-
contents =
|
|
699
|
+
contents = de_DescribeRulesOutput(data.DescribeRulesResult, context);
|
|
1452
700
|
const response = {
|
|
1453
701
|
$metadata: deserializeMetadata(output),
|
|
1454
702
|
...contents,
|
|
1455
703
|
};
|
|
1456
704
|
return response;
|
|
1457
705
|
};
|
|
1458
|
-
const
|
|
1459
|
-
const parsedOutput = {
|
|
1460
|
-
...output,
|
|
1461
|
-
body: await parseErrorBody(output.body, context),
|
|
1462
|
-
};
|
|
1463
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1464
|
-
switch (errorCode) {
|
|
1465
|
-
case "HealthUnavailable":
|
|
1466
|
-
case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException":
|
|
1467
|
-
throw await de_HealthUnavailableExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "InvalidTarget":
|
|
1469
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
|
|
1470
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "TargetGroupNotFound":
|
|
1472
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1473
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1474
|
-
default:
|
|
1475
|
-
const parsedBody = parsedOutput.body;
|
|
1476
|
-
return throwDefaultError({
|
|
1477
|
-
output,
|
|
1478
|
-
parsedBody: parsedBody.Error,
|
|
1479
|
-
errorCode,
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
};
|
|
1483
|
-
export const de_DescribeTrustStoreAssociationsCommand = async (output, context) => {
|
|
706
|
+
export const de_DescribeSSLPoliciesCommand = async (output, context) => {
|
|
1484
707
|
if (output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
708
|
+
return de_CommandError(output, context);
|
|
1486
709
|
}
|
|
1487
710
|
const data = await parseBody(output.body, context);
|
|
1488
711
|
let contents = {};
|
|
1489
|
-
contents =
|
|
712
|
+
contents = de_DescribeSSLPoliciesOutput(data.DescribeSSLPoliciesResult, context);
|
|
1490
713
|
const response = {
|
|
1491
714
|
$metadata: deserializeMetadata(output),
|
|
1492
715
|
...contents,
|
|
1493
716
|
};
|
|
1494
717
|
return response;
|
|
1495
718
|
};
|
|
1496
|
-
const
|
|
1497
|
-
const parsedOutput = {
|
|
1498
|
-
...output,
|
|
1499
|
-
body: await parseErrorBody(output.body, context),
|
|
1500
|
-
};
|
|
1501
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "TrustStoreNotFound":
|
|
1504
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1505
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
default:
|
|
1507
|
-
const parsedBody = parsedOutput.body;
|
|
1508
|
-
return throwDefaultError({
|
|
1509
|
-
output,
|
|
1510
|
-
parsedBody: parsedBody.Error,
|
|
1511
|
-
errorCode,
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
};
|
|
1515
|
-
export const de_DescribeTrustStoreRevocationsCommand = async (output, context) => {
|
|
719
|
+
export const de_DescribeTagsCommand = async (output, context) => {
|
|
1516
720
|
if (output.statusCode >= 300) {
|
|
1517
|
-
return
|
|
721
|
+
return de_CommandError(output, context);
|
|
1518
722
|
}
|
|
1519
723
|
const data = await parseBody(output.body, context);
|
|
1520
724
|
let contents = {};
|
|
1521
|
-
contents =
|
|
725
|
+
contents = de_DescribeTagsOutput(data.DescribeTagsResult, context);
|
|
1522
726
|
const response = {
|
|
1523
727
|
$metadata: deserializeMetadata(output),
|
|
1524
728
|
...contents,
|
|
1525
729
|
};
|
|
1526
730
|
return response;
|
|
1527
731
|
};
|
|
1528
|
-
const
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context),
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "RevocationIdNotFound":
|
|
1536
|
-
case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
|
|
1537
|
-
throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "TrustStoreNotFound":
|
|
1539
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1540
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1541
|
-
default:
|
|
1542
|
-
const parsedBody = parsedOutput.body;
|
|
1543
|
-
return throwDefaultError({
|
|
1544
|
-
output,
|
|
1545
|
-
parsedBody: parsedBody.Error,
|
|
1546
|
-
errorCode,
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1550
|
-
export const de_DescribeTrustStoresCommand = async (output, context) => {
|
|
732
|
+
export const de_DescribeTargetGroupAttributesCommand = async (output, context) => {
|
|
1551
733
|
if (output.statusCode >= 300) {
|
|
1552
|
-
return
|
|
734
|
+
return de_CommandError(output, context);
|
|
1553
735
|
}
|
|
1554
736
|
const data = await parseBody(output.body, context);
|
|
1555
737
|
let contents = {};
|
|
1556
|
-
contents =
|
|
738
|
+
contents = de_DescribeTargetGroupAttributesOutput(data.DescribeTargetGroupAttributesResult, context);
|
|
1557
739
|
const response = {
|
|
1558
740
|
$metadata: deserializeMetadata(output),
|
|
1559
741
|
...contents,
|
|
1560
742
|
};
|
|
1561
743
|
return response;
|
|
1562
744
|
};
|
|
1563
|
-
const
|
|
1564
|
-
const parsedOutput = {
|
|
1565
|
-
...output,
|
|
1566
|
-
body: await parseErrorBody(output.body, context),
|
|
1567
|
-
};
|
|
1568
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1569
|
-
switch (errorCode) {
|
|
1570
|
-
case "TrustStoreNotFound":
|
|
1571
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1572
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1573
|
-
default:
|
|
1574
|
-
const parsedBody = parsedOutput.body;
|
|
1575
|
-
return throwDefaultError({
|
|
1576
|
-
output,
|
|
1577
|
-
parsedBody: parsedBody.Error,
|
|
1578
|
-
errorCode,
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
export const de_GetTrustStoreCaCertificatesBundleCommand = async (output, context) => {
|
|
745
|
+
export const de_DescribeTargetGroupsCommand = async (output, context) => {
|
|
1583
746
|
if (output.statusCode >= 300) {
|
|
1584
|
-
return
|
|
747
|
+
return de_CommandError(output, context);
|
|
1585
748
|
}
|
|
1586
749
|
const data = await parseBody(output.body, context);
|
|
1587
750
|
let contents = {};
|
|
1588
|
-
contents =
|
|
751
|
+
contents = de_DescribeTargetGroupsOutput(data.DescribeTargetGroupsResult, context);
|
|
1589
752
|
const response = {
|
|
1590
753
|
$metadata: deserializeMetadata(output),
|
|
1591
754
|
...contents,
|
|
1592
755
|
};
|
|
1593
756
|
return response;
|
|
1594
757
|
};
|
|
1595
|
-
const
|
|
1596
|
-
const parsedOutput = {
|
|
1597
|
-
...output,
|
|
1598
|
-
body: await parseErrorBody(output.body, context),
|
|
1599
|
-
};
|
|
1600
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1601
|
-
switch (errorCode) {
|
|
1602
|
-
case "TrustStoreNotFound":
|
|
1603
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1604
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1605
|
-
default:
|
|
1606
|
-
const parsedBody = parsedOutput.body;
|
|
1607
|
-
return throwDefaultError({
|
|
1608
|
-
output,
|
|
1609
|
-
parsedBody: parsedBody.Error,
|
|
1610
|
-
errorCode,
|
|
1611
|
-
});
|
|
1612
|
-
}
|
|
1613
|
-
};
|
|
1614
|
-
export const de_GetTrustStoreRevocationContentCommand = async (output, context) => {
|
|
758
|
+
export const de_DescribeTargetHealthCommand = async (output, context) => {
|
|
1615
759
|
if (output.statusCode >= 300) {
|
|
1616
|
-
return
|
|
760
|
+
return de_CommandError(output, context);
|
|
1617
761
|
}
|
|
1618
762
|
const data = await parseBody(output.body, context);
|
|
1619
763
|
let contents = {};
|
|
1620
|
-
contents =
|
|
764
|
+
contents = de_DescribeTargetHealthOutput(data.DescribeTargetHealthResult, context);
|
|
1621
765
|
const response = {
|
|
1622
766
|
$metadata: deserializeMetadata(output),
|
|
1623
767
|
...contents,
|
|
1624
768
|
};
|
|
1625
769
|
return response;
|
|
1626
770
|
};
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
body: await parseErrorBody(output.body, context),
|
|
1631
|
-
};
|
|
1632
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1633
|
-
switch (errorCode) {
|
|
1634
|
-
case "RevocationIdNotFound":
|
|
1635
|
-
case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
|
|
1636
|
-
throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "TrustStoreNotFound":
|
|
1638
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1639
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
default:
|
|
1641
|
-
const parsedBody = parsedOutput.body;
|
|
1642
|
-
return throwDefaultError({
|
|
1643
|
-
output,
|
|
1644
|
-
parsedBody: parsedBody.Error,
|
|
1645
|
-
errorCode,
|
|
1646
|
-
});
|
|
771
|
+
export const de_DescribeTrustStoreAssociationsCommand = async (output, context) => {
|
|
772
|
+
if (output.statusCode >= 300) {
|
|
773
|
+
return de_CommandError(output, context);
|
|
1647
774
|
}
|
|
775
|
+
const data = await parseBody(output.body, context);
|
|
776
|
+
let contents = {};
|
|
777
|
+
contents = de_DescribeTrustStoreAssociationsOutput(data.DescribeTrustStoreAssociationsResult, context);
|
|
778
|
+
const response = {
|
|
779
|
+
$metadata: deserializeMetadata(output),
|
|
780
|
+
...contents,
|
|
781
|
+
};
|
|
782
|
+
return response;
|
|
1648
783
|
};
|
|
1649
|
-
export const
|
|
784
|
+
export const de_DescribeTrustStoreRevocationsCommand = async (output, context) => {
|
|
1650
785
|
if (output.statusCode >= 300) {
|
|
1651
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1652
787
|
}
|
|
1653
788
|
const data = await parseBody(output.body, context);
|
|
1654
789
|
let contents = {};
|
|
1655
|
-
contents =
|
|
790
|
+
contents = de_DescribeTrustStoreRevocationsOutput(data.DescribeTrustStoreRevocationsResult, context);
|
|
1656
791
|
const response = {
|
|
1657
792
|
$metadata: deserializeMetadata(output),
|
|
1658
793
|
...contents,
|
|
1659
794
|
};
|
|
1660
795
|
return response;
|
|
1661
796
|
};
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
body: await parseErrorBody(output.body, context),
|
|
1666
|
-
};
|
|
1667
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1668
|
-
switch (errorCode) {
|
|
1669
|
-
case "ALPNPolicyNotFound":
|
|
1670
|
-
case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException":
|
|
1671
|
-
throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "CertificateNotFound":
|
|
1673
|
-
case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException":
|
|
1674
|
-
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "DuplicateListener":
|
|
1676
|
-
case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException":
|
|
1677
|
-
throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "IncompatibleProtocols":
|
|
1679
|
-
case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException":
|
|
1680
|
-
throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "InvalidConfigurationRequest":
|
|
1682
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
1683
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "InvalidLoadBalancerAction":
|
|
1685
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException":
|
|
1686
|
-
throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ListenerNotFound":
|
|
1688
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
1689
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "SSLPolicyNotFound":
|
|
1691
|
-
case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException":
|
|
1692
|
-
throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "TargetGroupAssociationLimit":
|
|
1694
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException":
|
|
1695
|
-
throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "TargetGroupNotFound":
|
|
1697
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1698
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "TooManyActions":
|
|
1700
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException":
|
|
1701
|
-
throw await de_TooManyActionsExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "TooManyCertificates":
|
|
1703
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException":
|
|
1704
|
-
throw await de_TooManyCertificatesExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "TooManyListeners":
|
|
1706
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException":
|
|
1707
|
-
throw await de_TooManyListenersExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "TooManyRegistrationsForTargetId":
|
|
1709
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
|
|
1710
|
-
throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "TooManyTargets":
|
|
1712
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
|
|
1713
|
-
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "TooManyUniqueTargetGroupsPerLoadBalancer":
|
|
1715
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
|
|
1716
|
-
throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "TrustStoreNotFound":
|
|
1718
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1719
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "TrustStoreNotReady":
|
|
1721
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException":
|
|
1722
|
-
throw await de_TrustStoreNotReadyExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "UnsupportedProtocol":
|
|
1724
|
-
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
1725
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody: parsedBody.Error,
|
|
1731
|
-
errorCode,
|
|
1732
|
-
});
|
|
797
|
+
export const de_DescribeTrustStoresCommand = async (output, context) => {
|
|
798
|
+
if (output.statusCode >= 300) {
|
|
799
|
+
return de_CommandError(output, context);
|
|
1733
800
|
}
|
|
801
|
+
const data = await parseBody(output.body, context);
|
|
802
|
+
let contents = {};
|
|
803
|
+
contents = de_DescribeTrustStoresOutput(data.DescribeTrustStoresResult, context);
|
|
804
|
+
const response = {
|
|
805
|
+
$metadata: deserializeMetadata(output),
|
|
806
|
+
...contents,
|
|
807
|
+
};
|
|
808
|
+
return response;
|
|
1734
809
|
};
|
|
1735
|
-
export const
|
|
810
|
+
export const de_GetTrustStoreCaCertificatesBundleCommand = async (output, context) => {
|
|
1736
811
|
if (output.statusCode >= 300) {
|
|
1737
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1738
813
|
}
|
|
1739
814
|
const data = await parseBody(output.body, context);
|
|
1740
815
|
let contents = {};
|
|
1741
|
-
contents =
|
|
816
|
+
contents = de_GetTrustStoreCaCertificatesBundleOutput(data.GetTrustStoreCaCertificatesBundleResult, context);
|
|
1742
817
|
const response = {
|
|
1743
818
|
$metadata: deserializeMetadata(output),
|
|
1744
819
|
...contents,
|
|
1745
820
|
};
|
|
1746
821
|
return response;
|
|
1747
822
|
};
|
|
1748
|
-
const
|
|
1749
|
-
const parsedOutput = {
|
|
1750
|
-
...output,
|
|
1751
|
-
body: await parseErrorBody(output.body, context),
|
|
1752
|
-
};
|
|
1753
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1754
|
-
switch (errorCode) {
|
|
1755
|
-
case "InvalidConfigurationRequest":
|
|
1756
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
1757
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "LoadBalancerNotFound":
|
|
1759
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1760
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1761
|
-
default:
|
|
1762
|
-
const parsedBody = parsedOutput.body;
|
|
1763
|
-
return throwDefaultError({
|
|
1764
|
-
output,
|
|
1765
|
-
parsedBody: parsedBody.Error,
|
|
1766
|
-
errorCode,
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
|
-
export const de_ModifyRuleCommand = async (output, context) => {
|
|
823
|
+
export const de_GetTrustStoreRevocationContentCommand = async (output, context) => {
|
|
1771
824
|
if (output.statusCode >= 300) {
|
|
1772
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
1773
826
|
}
|
|
1774
827
|
const data = await parseBody(output.body, context);
|
|
1775
828
|
let contents = {};
|
|
1776
|
-
contents =
|
|
829
|
+
contents = de_GetTrustStoreRevocationContentOutput(data.GetTrustStoreRevocationContentResult, context);
|
|
1777
830
|
const response = {
|
|
1778
831
|
$metadata: deserializeMetadata(output),
|
|
1779
832
|
...contents,
|
|
1780
833
|
};
|
|
1781
834
|
return response;
|
|
1782
835
|
};
|
|
1783
|
-
const
|
|
1784
|
-
const parsedOutput = {
|
|
1785
|
-
...output,
|
|
1786
|
-
body: await parseErrorBody(output.body, context),
|
|
1787
|
-
};
|
|
1788
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1789
|
-
switch (errorCode) {
|
|
1790
|
-
case "IncompatibleProtocols":
|
|
1791
|
-
case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException":
|
|
1792
|
-
throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "InvalidLoadBalancerAction":
|
|
1794
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException":
|
|
1795
|
-
throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "OperationNotPermitted":
|
|
1797
|
-
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
1798
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "RuleNotFound":
|
|
1800
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
1801
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "TargetGroupAssociationLimit":
|
|
1803
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException":
|
|
1804
|
-
throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "TargetGroupNotFound":
|
|
1806
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1807
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "TooManyActions":
|
|
1809
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException":
|
|
1810
|
-
throw await de_TooManyActionsExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "TooManyRegistrationsForTargetId":
|
|
1812
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
|
|
1813
|
-
throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "TooManyTargets":
|
|
1815
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
|
|
1816
|
-
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "TooManyUniqueTargetGroupsPerLoadBalancer":
|
|
1818
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
|
|
1819
|
-
throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "UnsupportedProtocol":
|
|
1821
|
-
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
1822
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1823
|
-
default:
|
|
1824
|
-
const parsedBody = parsedOutput.body;
|
|
1825
|
-
return throwDefaultError({
|
|
1826
|
-
output,
|
|
1827
|
-
parsedBody: parsedBody.Error,
|
|
1828
|
-
errorCode,
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
};
|
|
1832
|
-
export const de_ModifyTargetGroupCommand = async (output, context) => {
|
|
836
|
+
export const de_ModifyListenerCommand = async (output, context) => {
|
|
1833
837
|
if (output.statusCode >= 300) {
|
|
1834
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
1835
839
|
}
|
|
1836
840
|
const data = await parseBody(output.body, context);
|
|
1837
841
|
let contents = {};
|
|
1838
|
-
contents =
|
|
842
|
+
contents = de_ModifyListenerOutput(data.ModifyListenerResult, context);
|
|
1839
843
|
const response = {
|
|
1840
844
|
$metadata: deserializeMetadata(output),
|
|
1841
845
|
...contents,
|
|
1842
846
|
};
|
|
1843
847
|
return response;
|
|
1844
848
|
};
|
|
1845
|
-
const
|
|
1846
|
-
const parsedOutput = {
|
|
1847
|
-
...output,
|
|
1848
|
-
body: await parseErrorBody(output.body, context),
|
|
1849
|
-
};
|
|
1850
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1851
|
-
switch (errorCode) {
|
|
1852
|
-
case "InvalidConfigurationRequest":
|
|
1853
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
1854
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "TargetGroupNotFound":
|
|
1856
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1857
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody: parsedBody.Error,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
|
-
export const de_ModifyTargetGroupAttributesCommand = async (output, context) => {
|
|
849
|
+
export const de_ModifyLoadBalancerAttributesCommand = async (output, context) => {
|
|
1868
850
|
if (output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
851
|
+
return de_CommandError(output, context);
|
|
1870
852
|
}
|
|
1871
853
|
const data = await parseBody(output.body, context);
|
|
1872
854
|
let contents = {};
|
|
1873
|
-
contents =
|
|
855
|
+
contents = de_ModifyLoadBalancerAttributesOutput(data.ModifyLoadBalancerAttributesResult, context);
|
|
1874
856
|
const response = {
|
|
1875
857
|
$metadata: deserializeMetadata(output),
|
|
1876
858
|
...contents,
|
|
1877
859
|
};
|
|
1878
860
|
return response;
|
|
1879
861
|
};
|
|
1880
|
-
const
|
|
1881
|
-
const parsedOutput = {
|
|
1882
|
-
...output,
|
|
1883
|
-
body: await parseErrorBody(output.body, context),
|
|
1884
|
-
};
|
|
1885
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1886
|
-
switch (errorCode) {
|
|
1887
|
-
case "InvalidConfigurationRequest":
|
|
1888
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
1889
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "TargetGroupNotFound":
|
|
1891
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1892
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1893
|
-
default:
|
|
1894
|
-
const parsedBody = parsedOutput.body;
|
|
1895
|
-
return throwDefaultError({
|
|
1896
|
-
output,
|
|
1897
|
-
parsedBody: parsedBody.Error,
|
|
1898
|
-
errorCode,
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
};
|
|
1902
|
-
export const de_ModifyTrustStoreCommand = async (output, context) => {
|
|
862
|
+
export const de_ModifyRuleCommand = async (output, context) => {
|
|
1903
863
|
if (output.statusCode >= 300) {
|
|
1904
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
1905
865
|
}
|
|
1906
866
|
const data = await parseBody(output.body, context);
|
|
1907
867
|
let contents = {};
|
|
1908
|
-
contents =
|
|
868
|
+
contents = de_ModifyRuleOutput(data.ModifyRuleResult, context);
|
|
1909
869
|
const response = {
|
|
1910
870
|
$metadata: deserializeMetadata(output),
|
|
1911
871
|
...contents,
|
|
1912
872
|
};
|
|
1913
873
|
return response;
|
|
1914
874
|
};
|
|
1915
|
-
const
|
|
1916
|
-
const parsedOutput = {
|
|
1917
|
-
...output,
|
|
1918
|
-
body: await parseErrorBody(output.body, context),
|
|
1919
|
-
};
|
|
1920
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1921
|
-
switch (errorCode) {
|
|
1922
|
-
case "CaCertificatesBundleNotFound":
|
|
1923
|
-
case "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException":
|
|
1924
|
-
throw await de_CaCertificatesBundleNotFoundExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "InvalidCaCertificatesBundle":
|
|
1926
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException":
|
|
1927
|
-
throw await de_InvalidCaCertificatesBundleExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "TrustStoreNotFound":
|
|
1929
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1930
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1931
|
-
default:
|
|
1932
|
-
const parsedBody = parsedOutput.body;
|
|
1933
|
-
return throwDefaultError({
|
|
1934
|
-
output,
|
|
1935
|
-
parsedBody: parsedBody.Error,
|
|
1936
|
-
errorCode,
|
|
1937
|
-
});
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1940
|
-
export const de_RegisterTargetsCommand = async (output, context) => {
|
|
875
|
+
export const de_ModifyTargetGroupCommand = async (output, context) => {
|
|
1941
876
|
if (output.statusCode >= 300) {
|
|
1942
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
1943
878
|
}
|
|
1944
879
|
const data = await parseBody(output.body, context);
|
|
1945
880
|
let contents = {};
|
|
1946
|
-
contents =
|
|
881
|
+
contents = de_ModifyTargetGroupOutput(data.ModifyTargetGroupResult, context);
|
|
1947
882
|
const response = {
|
|
1948
883
|
$metadata: deserializeMetadata(output),
|
|
1949
884
|
...contents,
|
|
1950
885
|
};
|
|
1951
886
|
return response;
|
|
1952
887
|
};
|
|
1953
|
-
const
|
|
1954
|
-
const parsedOutput = {
|
|
1955
|
-
...output,
|
|
1956
|
-
body: await parseErrorBody(output.body, context),
|
|
1957
|
-
};
|
|
1958
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1959
|
-
switch (errorCode) {
|
|
1960
|
-
case "InvalidTarget":
|
|
1961
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
|
|
1962
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "TargetGroupNotFound":
|
|
1964
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1965
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "TooManyRegistrationsForTargetId":
|
|
1967
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
|
|
1968
|
-
throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "TooManyTargets":
|
|
1970
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
|
|
1971
|
-
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
1972
|
-
default:
|
|
1973
|
-
const parsedBody = parsedOutput.body;
|
|
1974
|
-
return throwDefaultError({
|
|
1975
|
-
output,
|
|
1976
|
-
parsedBody: parsedBody.Error,
|
|
1977
|
-
errorCode,
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
};
|
|
1981
|
-
export const de_RemoveListenerCertificatesCommand = async (output, context) => {
|
|
888
|
+
export const de_ModifyTargetGroupAttributesCommand = async (output, context) => {
|
|
1982
889
|
if (output.statusCode >= 300) {
|
|
1983
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
1984
891
|
}
|
|
1985
892
|
const data = await parseBody(output.body, context);
|
|
1986
893
|
let contents = {};
|
|
1987
|
-
contents =
|
|
894
|
+
contents = de_ModifyTargetGroupAttributesOutput(data.ModifyTargetGroupAttributesResult, context);
|
|
1988
895
|
const response = {
|
|
1989
896
|
$metadata: deserializeMetadata(output),
|
|
1990
897
|
...contents,
|
|
1991
898
|
};
|
|
1992
899
|
return response;
|
|
1993
900
|
};
|
|
1994
|
-
const
|
|
1995
|
-
const parsedOutput = {
|
|
1996
|
-
...output,
|
|
1997
|
-
body: await parseErrorBody(output.body, context),
|
|
1998
|
-
};
|
|
1999
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2000
|
-
switch (errorCode) {
|
|
2001
|
-
case "ListenerNotFound":
|
|
2002
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
2003
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "OperationNotPermitted":
|
|
2005
|
-
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
2006
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2007
|
-
default:
|
|
2008
|
-
const parsedBody = parsedOutput.body;
|
|
2009
|
-
return throwDefaultError({
|
|
2010
|
-
output,
|
|
2011
|
-
parsedBody: parsedBody.Error,
|
|
2012
|
-
errorCode,
|
|
2013
|
-
});
|
|
2014
|
-
}
|
|
2015
|
-
};
|
|
2016
|
-
export const de_RemoveTagsCommand = async (output, context) => {
|
|
901
|
+
export const de_ModifyTrustStoreCommand = async (output, context) => {
|
|
2017
902
|
if (output.statusCode >= 300) {
|
|
2018
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
2019
904
|
}
|
|
2020
905
|
const data = await parseBody(output.body, context);
|
|
2021
906
|
let contents = {};
|
|
2022
|
-
contents =
|
|
907
|
+
contents = de_ModifyTrustStoreOutput(data.ModifyTrustStoreResult, context);
|
|
2023
908
|
const response = {
|
|
2024
909
|
$metadata: deserializeMetadata(output),
|
|
2025
910
|
...contents,
|
|
2026
911
|
};
|
|
2027
912
|
return response;
|
|
2028
913
|
};
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
body: await parseErrorBody(output.body, context),
|
|
2033
|
-
};
|
|
2034
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2035
|
-
switch (errorCode) {
|
|
2036
|
-
case "ListenerNotFound":
|
|
2037
|
-
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
2038
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
2039
|
-
case "LoadBalancerNotFound":
|
|
2040
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
2041
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "RuleNotFound":
|
|
2043
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
2044
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "TargetGroupNotFound":
|
|
2046
|
-
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
2047
|
-
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "TooManyTags":
|
|
2049
|
-
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
2050
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "TrustStoreNotFound":
|
|
2052
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
2053
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2054
|
-
default:
|
|
2055
|
-
const parsedBody = parsedOutput.body;
|
|
2056
|
-
return throwDefaultError({
|
|
2057
|
-
output,
|
|
2058
|
-
parsedBody: parsedBody.Error,
|
|
2059
|
-
errorCode,
|
|
2060
|
-
});
|
|
914
|
+
export const de_RegisterTargetsCommand = async (output, context) => {
|
|
915
|
+
if (output.statusCode >= 300) {
|
|
916
|
+
return de_CommandError(output, context);
|
|
2061
917
|
}
|
|
918
|
+
const data = await parseBody(output.body, context);
|
|
919
|
+
let contents = {};
|
|
920
|
+
contents = de_RegisterTargetsOutput(data.RegisterTargetsResult, context);
|
|
921
|
+
const response = {
|
|
922
|
+
$metadata: deserializeMetadata(output),
|
|
923
|
+
...contents,
|
|
924
|
+
};
|
|
925
|
+
return response;
|
|
2062
926
|
};
|
|
2063
|
-
export const
|
|
927
|
+
export const de_RemoveListenerCertificatesCommand = async (output, context) => {
|
|
2064
928
|
if (output.statusCode >= 300) {
|
|
2065
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
2066
930
|
}
|
|
2067
931
|
const data = await parseBody(output.body, context);
|
|
2068
932
|
let contents = {};
|
|
2069
|
-
contents =
|
|
933
|
+
contents = de_RemoveListenerCertificatesOutput(data.RemoveListenerCertificatesResult, context);
|
|
2070
934
|
const response = {
|
|
2071
935
|
$metadata: deserializeMetadata(output),
|
|
2072
936
|
...contents,
|
|
2073
937
|
};
|
|
2074
938
|
return response;
|
|
2075
939
|
};
|
|
2076
|
-
const
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
940
|
+
export const de_RemoveTagsCommand = async (output, context) => {
|
|
941
|
+
if (output.statusCode >= 300) {
|
|
942
|
+
return de_CommandError(output, context);
|
|
943
|
+
}
|
|
944
|
+
const data = await parseBody(output.body, context);
|
|
945
|
+
let contents = {};
|
|
946
|
+
contents = de_RemoveTagsOutput(data.RemoveTagsResult, context);
|
|
947
|
+
const response = {
|
|
948
|
+
$metadata: deserializeMetadata(output),
|
|
949
|
+
...contents,
|
|
2080
950
|
};
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
case "TrustStoreNotFound":
|
|
2087
|
-
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
2088
|
-
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2089
|
-
default:
|
|
2090
|
-
const parsedBody = parsedOutput.body;
|
|
2091
|
-
return throwDefaultError({
|
|
2092
|
-
output,
|
|
2093
|
-
parsedBody: parsedBody.Error,
|
|
2094
|
-
errorCode,
|
|
2095
|
-
});
|
|
951
|
+
return response;
|
|
952
|
+
};
|
|
953
|
+
export const de_RemoveTrustStoreRevocationsCommand = async (output, context) => {
|
|
954
|
+
if (output.statusCode >= 300) {
|
|
955
|
+
return de_CommandError(output, context);
|
|
2096
956
|
}
|
|
957
|
+
const data = await parseBody(output.body, context);
|
|
958
|
+
let contents = {};
|
|
959
|
+
contents = de_RemoveTrustStoreRevocationsOutput(data.RemoveTrustStoreRevocationsResult, context);
|
|
960
|
+
const response = {
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
...contents,
|
|
963
|
+
};
|
|
964
|
+
return response;
|
|
2097
965
|
};
|
|
2098
966
|
export const de_SetIpAddressTypeCommand = async (output, context) => {
|
|
2099
967
|
if (output.statusCode >= 300) {
|
|
2100
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
2101
969
|
}
|
|
2102
970
|
const data = await parseBody(output.body, context);
|
|
2103
971
|
let contents = {};
|
|
@@ -2108,34 +976,9 @@ export const de_SetIpAddressTypeCommand = async (output, context) => {
|
|
|
2108
976
|
};
|
|
2109
977
|
return response;
|
|
2110
978
|
};
|
|
2111
|
-
const de_SetIpAddressTypeCommandError = async (output, context) => {
|
|
2112
|
-
const parsedOutput = {
|
|
2113
|
-
...output,
|
|
2114
|
-
body: await parseErrorBody(output.body, context),
|
|
2115
|
-
};
|
|
2116
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2117
|
-
switch (errorCode) {
|
|
2118
|
-
case "InvalidConfigurationRequest":
|
|
2119
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
2120
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "InvalidSubnet":
|
|
2122
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException":
|
|
2123
|
-
throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "LoadBalancerNotFound":
|
|
2125
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
2126
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
2127
|
-
default:
|
|
2128
|
-
const parsedBody = parsedOutput.body;
|
|
2129
|
-
return throwDefaultError({
|
|
2130
|
-
output,
|
|
2131
|
-
parsedBody: parsedBody.Error,
|
|
2132
|
-
errorCode,
|
|
2133
|
-
});
|
|
2134
|
-
}
|
|
2135
|
-
};
|
|
2136
979
|
export const de_SetRulePrioritiesCommand = async (output, context) => {
|
|
2137
980
|
if (output.statusCode >= 300) {
|
|
2138
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
2139
982
|
}
|
|
2140
983
|
const data = await parseBody(output.body, context);
|
|
2141
984
|
let contents = {};
|
|
@@ -2146,34 +989,9 @@ export const de_SetRulePrioritiesCommand = async (output, context) => {
|
|
|
2146
989
|
};
|
|
2147
990
|
return response;
|
|
2148
991
|
};
|
|
2149
|
-
const de_SetRulePrioritiesCommandError = async (output, context) => {
|
|
2150
|
-
const parsedOutput = {
|
|
2151
|
-
...output,
|
|
2152
|
-
body: await parseErrorBody(output.body, context),
|
|
2153
|
-
};
|
|
2154
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2155
|
-
switch (errorCode) {
|
|
2156
|
-
case "OperationNotPermitted":
|
|
2157
|
-
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
2158
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "PriorityInUse":
|
|
2160
|
-
case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException":
|
|
2161
|
-
throw await de_PriorityInUseExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "RuleNotFound":
|
|
2163
|
-
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
2164
|
-
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
2165
|
-
default:
|
|
2166
|
-
const parsedBody = parsedOutput.body;
|
|
2167
|
-
return throwDefaultError({
|
|
2168
|
-
output,
|
|
2169
|
-
parsedBody: parsedBody.Error,
|
|
2170
|
-
errorCode,
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
};
|
|
2174
992
|
export const de_SetSecurityGroupsCommand = async (output, context) => {
|
|
2175
993
|
if (output.statusCode >= 300) {
|
|
2176
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
2177
995
|
}
|
|
2178
996
|
const data = await parseBody(output.body, context);
|
|
2179
997
|
let contents = {};
|
|
@@ -2184,34 +1002,9 @@ export const de_SetSecurityGroupsCommand = async (output, context) => {
|
|
|
2184
1002
|
};
|
|
2185
1003
|
return response;
|
|
2186
1004
|
};
|
|
2187
|
-
const de_SetSecurityGroupsCommandError = async (output, context) => {
|
|
2188
|
-
const parsedOutput = {
|
|
2189
|
-
...output,
|
|
2190
|
-
body: await parseErrorBody(output.body, context),
|
|
2191
|
-
};
|
|
2192
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2193
|
-
switch (errorCode) {
|
|
2194
|
-
case "InvalidConfigurationRequest":
|
|
2195
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
2196
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "InvalidSecurityGroup":
|
|
2198
|
-
case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException":
|
|
2199
|
-
throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "LoadBalancerNotFound":
|
|
2201
|
-
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
2202
|
-
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
2203
|
-
default:
|
|
2204
|
-
const parsedBody = parsedOutput.body;
|
|
2205
|
-
return throwDefaultError({
|
|
2206
|
-
output,
|
|
2207
|
-
parsedBody: parsedBody.Error,
|
|
2208
|
-
errorCode,
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
};
|
|
2212
1005
|
export const de_SetSubnetsCommand = async (output, context) => {
|
|
2213
1006
|
if (output.statusCode >= 300) {
|
|
2214
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
2215
1008
|
}
|
|
2216
1009
|
const data = await parseBody(output.body, context);
|
|
2217
1010
|
let contents = {};
|
|
@@ -2222,31 +1015,157 @@ export const de_SetSubnetsCommand = async (output, context) => {
|
|
|
2222
1015
|
};
|
|
2223
1016
|
return response;
|
|
2224
1017
|
};
|
|
2225
|
-
const
|
|
1018
|
+
const de_CommandError = async (output, context) => {
|
|
2226
1019
|
const parsedOutput = {
|
|
2227
1020
|
...output,
|
|
2228
1021
|
body: await parseErrorBody(output.body, context),
|
|
2229
1022
|
};
|
|
2230
1023
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2231
1024
|
switch (errorCode) {
|
|
1025
|
+
case "CertificateNotFound":
|
|
1026
|
+
case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException":
|
|
1027
|
+
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
1028
|
+
case "ListenerNotFound":
|
|
1029
|
+
case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
|
|
1030
|
+
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
+
case "TooManyCertificates":
|
|
1032
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException":
|
|
1033
|
+
throw await de_TooManyCertificatesExceptionRes(parsedOutput, context);
|
|
1034
|
+
case "DuplicateTagKeys":
|
|
1035
|
+
case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException":
|
|
1036
|
+
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1037
|
+
case "LoadBalancerNotFound":
|
|
1038
|
+
case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
|
|
1039
|
+
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1040
|
+
case "RuleNotFound":
|
|
1041
|
+
case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
|
|
1042
|
+
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
1043
|
+
case "TargetGroupNotFound":
|
|
1044
|
+
case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
|
|
1045
|
+
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1046
|
+
case "TooManyTags":
|
|
1047
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
|
|
1048
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1049
|
+
case "TrustStoreNotFound":
|
|
1050
|
+
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
|
|
1051
|
+
throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1052
|
+
case "InvalidRevocationContent":
|
|
1053
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidRevocationContentException":
|
|
1054
|
+
throw await de_InvalidRevocationContentExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "RevocationContentNotFound":
|
|
1056
|
+
case "com.amazonaws.elasticloadbalancingv2#RevocationContentNotFoundException":
|
|
1057
|
+
throw await de_RevocationContentNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "TooManyTrustStoreRevocationEntries":
|
|
1059
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoreRevocationEntriesException":
|
|
1060
|
+
throw await de_TooManyTrustStoreRevocationEntriesExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "ALPNPolicyNotFound":
|
|
1062
|
+
case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException":
|
|
1063
|
+
throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "DuplicateListener":
|
|
1065
|
+
case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException":
|
|
1066
|
+
throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "IncompatibleProtocols":
|
|
1068
|
+
case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException":
|
|
1069
|
+
throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "InvalidConfigurationRequest":
|
|
1071
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
|
|
1072
|
+
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "InvalidLoadBalancerAction":
|
|
1074
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException":
|
|
1075
|
+
throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "SSLPolicyNotFound":
|
|
1077
|
+
case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException":
|
|
1078
|
+
throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "TargetGroupAssociationLimit":
|
|
1080
|
+
case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException":
|
|
1081
|
+
throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "TooManyActions":
|
|
1083
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException":
|
|
1084
|
+
throw await de_TooManyActionsExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "TooManyListeners":
|
|
1086
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException":
|
|
1087
|
+
throw await de_TooManyListenersExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "TooManyRegistrationsForTargetId":
|
|
1089
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
|
|
1090
|
+
throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "TooManyTargets":
|
|
1092
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
|
|
1093
|
+
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "TooManyUniqueTargetGroupsPerLoadBalancer":
|
|
1095
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
|
|
1096
|
+
throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
|
|
1097
|
+
case "TrustStoreNotReady":
|
|
1098
|
+
case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException":
|
|
1099
|
+
throw await de_TrustStoreNotReadyExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "UnsupportedProtocol":
|
|
1101
|
+
case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
|
|
1102
|
+
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
2232
1103
|
case "AllocationIdNotFound":
|
|
2233
1104
|
case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException":
|
|
2234
1105
|
throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context);
|
|
2235
1106
|
case "AvailabilityZoneNotSupported":
|
|
2236
1107
|
case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException":
|
|
2237
1108
|
throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "
|
|
2239
|
-
case "com.amazonaws.elasticloadbalancingv2#
|
|
2240
|
-
throw await
|
|
1109
|
+
case "DuplicateLoadBalancerName":
|
|
1110
|
+
case "com.amazonaws.elasticloadbalancingv2#DuplicateLoadBalancerNameException":
|
|
1111
|
+
throw await de_DuplicateLoadBalancerNameExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "InvalidScheme":
|
|
1113
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidSchemeException":
|
|
1114
|
+
throw await de_InvalidSchemeExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "InvalidSecurityGroup":
|
|
1116
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException":
|
|
1117
|
+
throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
|
|
2241
1118
|
case "InvalidSubnet":
|
|
2242
1119
|
case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException":
|
|
2243
1120
|
throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "
|
|
2245
|
-
case "com.amazonaws.elasticloadbalancingv2#
|
|
2246
|
-
throw await
|
|
1121
|
+
case "OperationNotPermitted":
|
|
1122
|
+
case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
|
|
1123
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "ResourceInUse":
|
|
1125
|
+
case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException":
|
|
1126
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2247
1127
|
case "SubnetNotFound":
|
|
2248
1128
|
case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException":
|
|
2249
1129
|
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "TooManyLoadBalancers":
|
|
1131
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyLoadBalancersException":
|
|
1132
|
+
throw await de_TooManyLoadBalancersExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "PriorityInUse":
|
|
1134
|
+
case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException":
|
|
1135
|
+
throw await de_PriorityInUseExceptionRes(parsedOutput, context);
|
|
1136
|
+
case "TooManyRules":
|
|
1137
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyRulesException":
|
|
1138
|
+
throw await de_TooManyRulesExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "TooManyTargetGroups":
|
|
1140
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException":
|
|
1141
|
+
throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context);
|
|
1142
|
+
case "DuplicateTargetGroupName":
|
|
1143
|
+
case "com.amazonaws.elasticloadbalancingv2#DuplicateTargetGroupNameException":
|
|
1144
|
+
throw await de_DuplicateTargetGroupNameExceptionRes(parsedOutput, context);
|
|
1145
|
+
case "CaCertificatesBundleNotFound":
|
|
1146
|
+
case "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException":
|
|
1147
|
+
throw await de_CaCertificatesBundleNotFoundExceptionRes(parsedOutput, context);
|
|
1148
|
+
case "DuplicateTrustStoreName":
|
|
1149
|
+
case "com.amazonaws.elasticloadbalancingv2#DuplicateTrustStoreNameException":
|
|
1150
|
+
throw await de_DuplicateTrustStoreNameExceptionRes(parsedOutput, context);
|
|
1151
|
+
case "InvalidCaCertificatesBundle":
|
|
1152
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException":
|
|
1153
|
+
throw await de_InvalidCaCertificatesBundleExceptionRes(parsedOutput, context);
|
|
1154
|
+
case "TooManyTrustStores":
|
|
1155
|
+
case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoresException":
|
|
1156
|
+
throw await de_TooManyTrustStoresExceptionRes(parsedOutput, context);
|
|
1157
|
+
case "TrustStoreInUse":
|
|
1158
|
+
case "com.amazonaws.elasticloadbalancingv2#TrustStoreInUseException":
|
|
1159
|
+
throw await de_TrustStoreInUseExceptionRes(parsedOutput, context);
|
|
1160
|
+
case "InvalidTarget":
|
|
1161
|
+
case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
|
|
1162
|
+
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
1163
|
+
case "HealthUnavailable":
|
|
1164
|
+
case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException":
|
|
1165
|
+
throw await de_HealthUnavailableExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "RevocationIdNotFound":
|
|
1167
|
+
case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
|
|
1168
|
+
throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
|
|
2250
1169
|
default:
|
|
2251
1170
|
const parsedBody = parsedOutput.body;
|
|
2252
1171
|
return throwDefaultError({
|