@aws-sdk/client-elastic-load-balancing 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ElasticLoadBalancingServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +312 -2
- package/dist-cjs/protocols/Aws_query.js +263 -874
- package/dist-es/index.js +1 -0
- package/dist-es/models/ElasticLoadBalancingServiceException.js +12 -0
- package/dist-es/models/models_0.js +288 -1
- package/dist-es/protocols/Aws_query.js +567 -933
- package/dist-types/ElasticLoadBalancingClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ElasticLoadBalancingServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +156 -67
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/ElasticLoadBalancingClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ElasticLoadBalancingServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +112 -67
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -6,6 +6,8 @@ const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const entities_1 = require("entities");
|
|
8
8
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
9
|
+
const ElasticLoadBalancingServiceException_1 = require("../models/ElasticLoadBalancingServiceException");
|
|
10
|
+
const models_0_1 = require("../models/models_0");
|
|
9
11
|
const serializeAws_queryAddTagsCommand = async (input, context) => {
|
|
10
12
|
const headers = {
|
|
11
13
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -408,43 +410,22 @@ const deserializeAws_queryAddTagsCommandError = async (output, context) => {
|
|
|
408
410
|
switch (errorCode) {
|
|
409
411
|
case "AccessPointNotFoundException":
|
|
410
412
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
411
|
-
|
|
412
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
413
|
-
name: errorCode,
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
};
|
|
416
|
-
break;
|
|
413
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
417
414
|
case "DuplicateTagKeysException":
|
|
418
415
|
case "com.amazonaws.elasticloadbalancing#DuplicateTagKeysException":
|
|
419
|
-
|
|
420
|
-
...(await deserializeAws_queryDuplicateTagKeysExceptionResponse(parsedOutput, context)),
|
|
421
|
-
name: errorCode,
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
};
|
|
424
|
-
break;
|
|
416
|
+
throw await deserializeAws_queryDuplicateTagKeysExceptionResponse(parsedOutput, context);
|
|
425
417
|
case "TooManyTagsException":
|
|
426
418
|
case "com.amazonaws.elasticloadbalancing#TooManyTagsException":
|
|
427
|
-
|
|
428
|
-
...(await deserializeAws_queryTooManyTagsExceptionResponse(parsedOutput, context)),
|
|
429
|
-
name: errorCode,
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
};
|
|
432
|
-
break;
|
|
419
|
+
throw await deserializeAws_queryTooManyTagsExceptionResponse(parsedOutput, context);
|
|
433
420
|
default:
|
|
434
421
|
const parsedBody = parsedOutput.body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
...parsedBody.Error,
|
|
438
|
-
name: `${errorCode}`,
|
|
439
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
422
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
423
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
440
424
|
$fault: "client",
|
|
441
425
|
$metadata: deserializeMetadata(output),
|
|
442
|
-
};
|
|
426
|
+
});
|
|
427
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
443
428
|
}
|
|
444
|
-
const message = response.message || response.Message || errorCode;
|
|
445
|
-
response.message = message;
|
|
446
|
-
delete response.Message;
|
|
447
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
448
429
|
};
|
|
449
430
|
const deserializeAws_queryApplySecurityGroupsToLoadBalancerCommand = async (output, context) => {
|
|
450
431
|
if (output.statusCode >= 300) {
|
|
@@ -471,43 +452,22 @@ const deserializeAws_queryApplySecurityGroupsToLoadBalancerCommandError = async
|
|
|
471
452
|
switch (errorCode) {
|
|
472
453
|
case "AccessPointNotFoundException":
|
|
473
454
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
474
|
-
|
|
475
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
476
|
-
name: errorCode,
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
};
|
|
479
|
-
break;
|
|
455
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
480
456
|
case "InvalidConfigurationRequestException":
|
|
481
457
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
482
|
-
|
|
483
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
484
|
-
name: errorCode,
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
};
|
|
487
|
-
break;
|
|
458
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
488
459
|
case "InvalidSecurityGroupException":
|
|
489
460
|
case "com.amazonaws.elasticloadbalancing#InvalidSecurityGroupException":
|
|
490
|
-
|
|
491
|
-
...(await deserializeAws_queryInvalidSecurityGroupExceptionResponse(parsedOutput, context)),
|
|
492
|
-
name: errorCode,
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
};
|
|
495
|
-
break;
|
|
461
|
+
throw await deserializeAws_queryInvalidSecurityGroupExceptionResponse(parsedOutput, context);
|
|
496
462
|
default:
|
|
497
463
|
const parsedBody = parsedOutput.body;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
...parsedBody.Error,
|
|
501
|
-
name: `${errorCode}`,
|
|
502
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
464
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
465
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
503
466
|
$fault: "client",
|
|
504
467
|
$metadata: deserializeMetadata(output),
|
|
505
|
-
};
|
|
468
|
+
});
|
|
469
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
506
470
|
}
|
|
507
|
-
const message = response.message || response.Message || errorCode;
|
|
508
|
-
response.message = message;
|
|
509
|
-
delete response.Message;
|
|
510
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
511
471
|
};
|
|
512
472
|
const deserializeAws_queryAttachLoadBalancerToSubnetsCommand = async (output, context) => {
|
|
513
473
|
if (output.statusCode >= 300) {
|
|
@@ -534,51 +494,25 @@ const deserializeAws_queryAttachLoadBalancerToSubnetsCommandError = async (outpu
|
|
|
534
494
|
switch (errorCode) {
|
|
535
495
|
case "AccessPointNotFoundException":
|
|
536
496
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
537
|
-
|
|
538
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
539
|
-
name: errorCode,
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
};
|
|
542
|
-
break;
|
|
497
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
543
498
|
case "InvalidConfigurationRequestException":
|
|
544
499
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
545
|
-
|
|
546
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
547
|
-
name: errorCode,
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
};
|
|
550
|
-
break;
|
|
500
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
551
501
|
case "InvalidSubnetException":
|
|
552
502
|
case "com.amazonaws.elasticloadbalancing#InvalidSubnetException":
|
|
553
|
-
|
|
554
|
-
...(await deserializeAws_queryInvalidSubnetExceptionResponse(parsedOutput, context)),
|
|
555
|
-
name: errorCode,
|
|
556
|
-
$metadata: deserializeMetadata(output),
|
|
557
|
-
};
|
|
558
|
-
break;
|
|
503
|
+
throw await deserializeAws_queryInvalidSubnetExceptionResponse(parsedOutput, context);
|
|
559
504
|
case "SubnetNotFoundException":
|
|
560
505
|
case "com.amazonaws.elasticloadbalancing#SubnetNotFoundException":
|
|
561
|
-
|
|
562
|
-
...(await deserializeAws_querySubnetNotFoundExceptionResponse(parsedOutput, context)),
|
|
563
|
-
name: errorCode,
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
};
|
|
566
|
-
break;
|
|
506
|
+
throw await deserializeAws_querySubnetNotFoundExceptionResponse(parsedOutput, context);
|
|
567
507
|
default:
|
|
568
508
|
const parsedBody = parsedOutput.body;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
...parsedBody.Error,
|
|
572
|
-
name: `${errorCode}`,
|
|
573
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
509
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
510
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
574
511
|
$fault: "client",
|
|
575
512
|
$metadata: deserializeMetadata(output),
|
|
576
|
-
};
|
|
513
|
+
});
|
|
514
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
577
515
|
}
|
|
578
|
-
const message = response.message || response.Message || errorCode;
|
|
579
|
-
response.message = message;
|
|
580
|
-
delete response.Message;
|
|
581
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
582
516
|
};
|
|
583
517
|
const deserializeAws_queryConfigureHealthCheckCommand = async (output, context) => {
|
|
584
518
|
if (output.statusCode >= 300) {
|
|
@@ -605,27 +539,16 @@ const deserializeAws_queryConfigureHealthCheckCommandError = async (output, cont
|
|
|
605
539
|
switch (errorCode) {
|
|
606
540
|
case "AccessPointNotFoundException":
|
|
607
541
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
608
|
-
|
|
609
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
610
|
-
name: errorCode,
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
};
|
|
613
|
-
break;
|
|
542
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
614
543
|
default:
|
|
615
544
|
const parsedBody = parsedOutput.body;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
...parsedBody.Error,
|
|
619
|
-
name: `${errorCode}`,
|
|
620
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
545
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
546
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
621
547
|
$fault: "client",
|
|
622
548
|
$metadata: deserializeMetadata(output),
|
|
623
|
-
};
|
|
549
|
+
});
|
|
550
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
624
551
|
}
|
|
625
|
-
const message = response.message || response.Message || errorCode;
|
|
626
|
-
response.message = message;
|
|
627
|
-
delete response.Message;
|
|
628
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
629
552
|
};
|
|
630
553
|
const deserializeAws_queryCreateAppCookieStickinessPolicyCommand = async (output, context) => {
|
|
631
554
|
if (output.statusCode >= 300) {
|
|
@@ -652,51 +575,25 @@ const deserializeAws_queryCreateAppCookieStickinessPolicyCommandError = async (o
|
|
|
652
575
|
switch (errorCode) {
|
|
653
576
|
case "AccessPointNotFoundException":
|
|
654
577
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
655
|
-
|
|
656
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
578
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
661
579
|
case "DuplicatePolicyNameException":
|
|
662
580
|
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
663
|
-
|
|
664
|
-
...(await deserializeAws_queryDuplicatePolicyNameExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
581
|
+
throw await deserializeAws_queryDuplicatePolicyNameExceptionResponse(parsedOutput, context);
|
|
669
582
|
case "InvalidConfigurationRequestException":
|
|
670
583
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
671
|
-
|
|
672
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
673
|
-
name: errorCode,
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
};
|
|
676
|
-
break;
|
|
584
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
677
585
|
case "TooManyPoliciesException":
|
|
678
586
|
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
679
|
-
|
|
680
|
-
...(await deserializeAws_queryTooManyPoliciesExceptionResponse(parsedOutput, context)),
|
|
681
|
-
name: errorCode,
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
};
|
|
684
|
-
break;
|
|
587
|
+
throw await deserializeAws_queryTooManyPoliciesExceptionResponse(parsedOutput, context);
|
|
685
588
|
default:
|
|
686
589
|
const parsedBody = parsedOutput.body;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
...parsedBody.Error,
|
|
690
|
-
name: `${errorCode}`,
|
|
691
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
590
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
591
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
692
592
|
$fault: "client",
|
|
693
593
|
$metadata: deserializeMetadata(output),
|
|
694
|
-
};
|
|
594
|
+
});
|
|
595
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
695
596
|
}
|
|
696
|
-
const message = response.message || response.Message || errorCode;
|
|
697
|
-
response.message = message;
|
|
698
|
-
delete response.Message;
|
|
699
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
700
597
|
};
|
|
701
598
|
const deserializeAws_queryCreateLBCookieStickinessPolicyCommand = async (output, context) => {
|
|
702
599
|
if (output.statusCode >= 300) {
|
|
@@ -723,51 +620,25 @@ const deserializeAws_queryCreateLBCookieStickinessPolicyCommandError = async (ou
|
|
|
723
620
|
switch (errorCode) {
|
|
724
621
|
case "AccessPointNotFoundException":
|
|
725
622
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
726
|
-
|
|
727
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
623
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
732
624
|
case "DuplicatePolicyNameException":
|
|
733
625
|
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
734
|
-
|
|
735
|
-
...(await deserializeAws_queryDuplicatePolicyNameExceptionResponse(parsedOutput, context)),
|
|
736
|
-
name: errorCode,
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
739
|
-
break;
|
|
626
|
+
throw await deserializeAws_queryDuplicatePolicyNameExceptionResponse(parsedOutput, context);
|
|
740
627
|
case "InvalidConfigurationRequestException":
|
|
741
628
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
742
|
-
|
|
743
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
744
|
-
name: errorCode,
|
|
745
|
-
$metadata: deserializeMetadata(output),
|
|
746
|
-
};
|
|
747
|
-
break;
|
|
629
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
748
630
|
case "TooManyPoliciesException":
|
|
749
631
|
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
750
|
-
|
|
751
|
-
...(await deserializeAws_queryTooManyPoliciesExceptionResponse(parsedOutput, context)),
|
|
752
|
-
name: errorCode,
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
};
|
|
755
|
-
break;
|
|
632
|
+
throw await deserializeAws_queryTooManyPoliciesExceptionResponse(parsedOutput, context);
|
|
756
633
|
default:
|
|
757
634
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
...parsedBody.Error,
|
|
761
|
-
name: `${errorCode}`,
|
|
762
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
635
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
636
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
763
637
|
$fault: "client",
|
|
764
638
|
$metadata: deserializeMetadata(output),
|
|
765
|
-
};
|
|
639
|
+
});
|
|
640
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
766
641
|
}
|
|
767
|
-
const message = response.message || response.Message || errorCode;
|
|
768
|
-
response.message = message;
|
|
769
|
-
delete response.Message;
|
|
770
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
771
642
|
};
|
|
772
643
|
const deserializeAws_queryCreateLoadBalancerCommand = async (output, context) => {
|
|
773
644
|
if (output.statusCode >= 300) {
|
|
@@ -794,115 +665,49 @@ const deserializeAws_queryCreateLoadBalancerCommandError = async (output, contex
|
|
|
794
665
|
switch (errorCode) {
|
|
795
666
|
case "CertificateNotFoundException":
|
|
796
667
|
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
797
|
-
|
|
798
|
-
...(await deserializeAws_queryCertificateNotFoundExceptionResponse(parsedOutput, context)),
|
|
799
|
-
name: errorCode,
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
};
|
|
802
|
-
break;
|
|
668
|
+
throw await deserializeAws_queryCertificateNotFoundExceptionResponse(parsedOutput, context);
|
|
803
669
|
case "DuplicateAccessPointNameException":
|
|
804
670
|
case "com.amazonaws.elasticloadbalancing#DuplicateAccessPointNameException":
|
|
805
|
-
|
|
806
|
-
...(await deserializeAws_queryDuplicateAccessPointNameExceptionResponse(parsedOutput, context)),
|
|
807
|
-
name: errorCode,
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
};
|
|
810
|
-
break;
|
|
671
|
+
throw await deserializeAws_queryDuplicateAccessPointNameExceptionResponse(parsedOutput, context);
|
|
811
672
|
case "DuplicateTagKeysException":
|
|
812
673
|
case "com.amazonaws.elasticloadbalancing#DuplicateTagKeysException":
|
|
813
|
-
|
|
814
|
-
...(await deserializeAws_queryDuplicateTagKeysExceptionResponse(parsedOutput, context)),
|
|
815
|
-
name: errorCode,
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
818
|
-
break;
|
|
674
|
+
throw await deserializeAws_queryDuplicateTagKeysExceptionResponse(parsedOutput, context);
|
|
819
675
|
case "InvalidConfigurationRequestException":
|
|
820
676
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
821
|
-
|
|
822
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
823
|
-
name: errorCode,
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
};
|
|
826
|
-
break;
|
|
677
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
827
678
|
case "InvalidSchemeException":
|
|
828
679
|
case "com.amazonaws.elasticloadbalancing#InvalidSchemeException":
|
|
829
|
-
|
|
830
|
-
...(await deserializeAws_queryInvalidSchemeExceptionResponse(parsedOutput, context)),
|
|
831
|
-
name: errorCode,
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
834
|
-
break;
|
|
680
|
+
throw await deserializeAws_queryInvalidSchemeExceptionResponse(parsedOutput, context);
|
|
835
681
|
case "InvalidSecurityGroupException":
|
|
836
682
|
case "com.amazonaws.elasticloadbalancing#InvalidSecurityGroupException":
|
|
837
|
-
|
|
838
|
-
...(await deserializeAws_queryInvalidSecurityGroupExceptionResponse(parsedOutput, context)),
|
|
839
|
-
name: errorCode,
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
};
|
|
842
|
-
break;
|
|
683
|
+
throw await deserializeAws_queryInvalidSecurityGroupExceptionResponse(parsedOutput, context);
|
|
843
684
|
case "InvalidSubnetException":
|
|
844
685
|
case "com.amazonaws.elasticloadbalancing#InvalidSubnetException":
|
|
845
|
-
|
|
846
|
-
...(await deserializeAws_queryInvalidSubnetExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
686
|
+
throw await deserializeAws_queryInvalidSubnetExceptionResponse(parsedOutput, context);
|
|
851
687
|
case "OperationNotPermittedException":
|
|
852
688
|
case "com.amazonaws.elasticloadbalancing#OperationNotPermittedException":
|
|
853
|
-
|
|
854
|
-
...(await deserializeAws_queryOperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
689
|
+
throw await deserializeAws_queryOperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
859
690
|
case "SubnetNotFoundException":
|
|
860
691
|
case "com.amazonaws.elasticloadbalancing#SubnetNotFoundException":
|
|
861
|
-
|
|
862
|
-
...(await deserializeAws_querySubnetNotFoundExceptionResponse(parsedOutput, context)),
|
|
863
|
-
name: errorCode,
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
};
|
|
866
|
-
break;
|
|
692
|
+
throw await deserializeAws_querySubnetNotFoundExceptionResponse(parsedOutput, context);
|
|
867
693
|
case "TooManyAccessPointsException":
|
|
868
694
|
case "com.amazonaws.elasticloadbalancing#TooManyAccessPointsException":
|
|
869
|
-
|
|
870
|
-
...(await deserializeAws_queryTooManyAccessPointsExceptionResponse(parsedOutput, context)),
|
|
871
|
-
name: errorCode,
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
};
|
|
874
|
-
break;
|
|
695
|
+
throw await deserializeAws_queryTooManyAccessPointsExceptionResponse(parsedOutput, context);
|
|
875
696
|
case "TooManyTagsException":
|
|
876
697
|
case "com.amazonaws.elasticloadbalancing#TooManyTagsException":
|
|
877
|
-
|
|
878
|
-
...(await deserializeAws_queryTooManyTagsExceptionResponse(parsedOutput, context)),
|
|
879
|
-
name: errorCode,
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
};
|
|
882
|
-
break;
|
|
698
|
+
throw await deserializeAws_queryTooManyTagsExceptionResponse(parsedOutput, context);
|
|
883
699
|
case "UnsupportedProtocolException":
|
|
884
700
|
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
885
|
-
|
|
886
|
-
...(await deserializeAws_queryUnsupportedProtocolExceptionResponse(parsedOutput, context)),
|
|
887
|
-
name: errorCode,
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
890
|
-
break;
|
|
701
|
+
throw await deserializeAws_queryUnsupportedProtocolExceptionResponse(parsedOutput, context);
|
|
891
702
|
default:
|
|
892
703
|
const parsedBody = parsedOutput.body;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
...parsedBody.Error,
|
|
896
|
-
name: `${errorCode}`,
|
|
897
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
704
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
705
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
898
706
|
$fault: "client",
|
|
899
707
|
$metadata: deserializeMetadata(output),
|
|
900
|
-
};
|
|
708
|
+
});
|
|
709
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
901
710
|
}
|
|
902
|
-
const message = response.message || response.Message || errorCode;
|
|
903
|
-
response.message = message;
|
|
904
|
-
delete response.Message;
|
|
905
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
906
711
|
};
|
|
907
712
|
const deserializeAws_queryCreateLoadBalancerListenersCommand = async (output, context) => {
|
|
908
713
|
if (output.statusCode >= 300) {
|
|
@@ -929,59 +734,28 @@ const deserializeAws_queryCreateLoadBalancerListenersCommandError = async (outpu
|
|
|
929
734
|
switch (errorCode) {
|
|
930
735
|
case "AccessPointNotFoundException":
|
|
931
736
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
932
|
-
|
|
933
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
934
|
-
name: errorCode,
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
};
|
|
937
|
-
break;
|
|
737
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
938
738
|
case "CertificateNotFoundException":
|
|
939
739
|
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
940
|
-
|
|
941
|
-
...(await deserializeAws_queryCertificateNotFoundExceptionResponse(parsedOutput, context)),
|
|
942
|
-
name: errorCode,
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
};
|
|
945
|
-
break;
|
|
740
|
+
throw await deserializeAws_queryCertificateNotFoundExceptionResponse(parsedOutput, context);
|
|
946
741
|
case "DuplicateListenerException":
|
|
947
742
|
case "com.amazonaws.elasticloadbalancing#DuplicateListenerException":
|
|
948
|
-
|
|
949
|
-
...(await deserializeAws_queryDuplicateListenerExceptionResponse(parsedOutput, context)),
|
|
950
|
-
name: errorCode,
|
|
951
|
-
$metadata: deserializeMetadata(output),
|
|
952
|
-
};
|
|
953
|
-
break;
|
|
743
|
+
throw await deserializeAws_queryDuplicateListenerExceptionResponse(parsedOutput, context);
|
|
954
744
|
case "InvalidConfigurationRequestException":
|
|
955
745
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
956
|
-
|
|
957
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
958
|
-
name: errorCode,
|
|
959
|
-
$metadata: deserializeMetadata(output),
|
|
960
|
-
};
|
|
961
|
-
break;
|
|
746
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
962
747
|
case "UnsupportedProtocolException":
|
|
963
748
|
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
964
|
-
|
|
965
|
-
...(await deserializeAws_queryUnsupportedProtocolExceptionResponse(parsedOutput, context)),
|
|
966
|
-
name: errorCode,
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
969
|
-
break;
|
|
749
|
+
throw await deserializeAws_queryUnsupportedProtocolExceptionResponse(parsedOutput, context);
|
|
970
750
|
default:
|
|
971
751
|
const parsedBody = parsedOutput.body;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
...parsedBody.Error,
|
|
975
|
-
name: `${errorCode}`,
|
|
976
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
752
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
753
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
977
754
|
$fault: "client",
|
|
978
755
|
$metadata: deserializeMetadata(output),
|
|
979
|
-
};
|
|
756
|
+
});
|
|
757
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
980
758
|
}
|
|
981
|
-
const message = response.message || response.Message || errorCode;
|
|
982
|
-
response.message = message;
|
|
983
|
-
delete response.Message;
|
|
984
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
985
759
|
};
|
|
986
760
|
const deserializeAws_queryCreateLoadBalancerPolicyCommand = async (output, context) => {
|
|
987
761
|
if (output.statusCode >= 300) {
|
|
@@ -1008,59 +782,28 @@ const deserializeAws_queryCreateLoadBalancerPolicyCommandError = async (output,
|
|
|
1008
782
|
switch (errorCode) {
|
|
1009
783
|
case "AccessPointNotFoundException":
|
|
1010
784
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1011
|
-
|
|
1012
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1013
|
-
name: errorCode,
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
1016
|
-
break;
|
|
785
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1017
786
|
case "DuplicatePolicyNameException":
|
|
1018
787
|
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
1019
|
-
|
|
1020
|
-
...(await deserializeAws_queryDuplicatePolicyNameExceptionResponse(parsedOutput, context)),
|
|
1021
|
-
name: errorCode,
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
1024
|
-
break;
|
|
788
|
+
throw await deserializeAws_queryDuplicatePolicyNameExceptionResponse(parsedOutput, context);
|
|
1025
789
|
case "InvalidConfigurationRequestException":
|
|
1026
790
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1027
|
-
|
|
1028
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
1029
|
-
name: errorCode,
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
1031
|
-
};
|
|
1032
|
-
break;
|
|
791
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
1033
792
|
case "PolicyTypeNotFoundException":
|
|
1034
793
|
case "com.amazonaws.elasticloadbalancing#PolicyTypeNotFoundException":
|
|
1035
|
-
|
|
1036
|
-
...(await deserializeAws_queryPolicyTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1037
|
-
name: errorCode,
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
break;
|
|
794
|
+
throw await deserializeAws_queryPolicyTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1041
795
|
case "TooManyPoliciesException":
|
|
1042
796
|
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
1043
|
-
|
|
1044
|
-
...(await deserializeAws_queryTooManyPoliciesExceptionResponse(parsedOutput, context)),
|
|
1045
|
-
name: errorCode,
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
1048
|
-
break;
|
|
797
|
+
throw await deserializeAws_queryTooManyPoliciesExceptionResponse(parsedOutput, context);
|
|
1049
798
|
default:
|
|
1050
799
|
const parsedBody = parsedOutput.body;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
...parsedBody.Error,
|
|
1054
|
-
name: `${errorCode}`,
|
|
1055
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
800
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
801
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1056
802
|
$fault: "client",
|
|
1057
803
|
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
804
|
+
});
|
|
805
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1059
806
|
}
|
|
1060
|
-
const message = response.message || response.Message || errorCode;
|
|
1061
|
-
response.message = message;
|
|
1062
|
-
delete response.Message;
|
|
1063
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1064
807
|
};
|
|
1065
808
|
const deserializeAws_queryDeleteLoadBalancerCommand = async (output, context) => {
|
|
1066
809
|
if (output.statusCode >= 300) {
|
|
@@ -1087,19 +830,13 @@ const deserializeAws_queryDeleteLoadBalancerCommandError = async (output, contex
|
|
|
1087
830
|
switch (errorCode) {
|
|
1088
831
|
default:
|
|
1089
832
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
...parsedBody.Error,
|
|
1093
|
-
name: `${errorCode}`,
|
|
1094
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
833
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
834
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1095
835
|
$fault: "client",
|
|
1096
836
|
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
837
|
+
});
|
|
838
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1098
839
|
}
|
|
1099
|
-
const message = response.message || response.Message || errorCode;
|
|
1100
|
-
response.message = message;
|
|
1101
|
-
delete response.Message;
|
|
1102
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1103
840
|
};
|
|
1104
841
|
const deserializeAws_queryDeleteLoadBalancerListenersCommand = async (output, context) => {
|
|
1105
842
|
if (output.statusCode >= 300) {
|
|
@@ -1126,27 +863,16 @@ const deserializeAws_queryDeleteLoadBalancerListenersCommandError = async (outpu
|
|
|
1126
863
|
switch (errorCode) {
|
|
1127
864
|
case "AccessPointNotFoundException":
|
|
1128
865
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1129
|
-
|
|
1130
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1131
|
-
name: errorCode,
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
};
|
|
1134
|
-
break;
|
|
866
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1135
867
|
default:
|
|
1136
868
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
...parsedBody.Error,
|
|
1140
|
-
name: `${errorCode}`,
|
|
1141
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
869
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
870
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1142
871
|
$fault: "client",
|
|
1143
872
|
$metadata: deserializeMetadata(output),
|
|
1144
|
-
};
|
|
873
|
+
});
|
|
874
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1145
875
|
}
|
|
1146
|
-
const message = response.message || response.Message || errorCode;
|
|
1147
|
-
response.message = message;
|
|
1148
|
-
delete response.Message;
|
|
1149
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1150
876
|
};
|
|
1151
877
|
const deserializeAws_queryDeleteLoadBalancerPolicyCommand = async (output, context) => {
|
|
1152
878
|
if (output.statusCode >= 300) {
|
|
@@ -1173,35 +899,19 @@ const deserializeAws_queryDeleteLoadBalancerPolicyCommandError = async (output,
|
|
|
1173
899
|
switch (errorCode) {
|
|
1174
900
|
case "AccessPointNotFoundException":
|
|
1175
901
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1176
|
-
|
|
1177
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1178
|
-
name: errorCode,
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
};
|
|
1181
|
-
break;
|
|
902
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1182
903
|
case "InvalidConfigurationRequestException":
|
|
1183
904
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1184
|
-
|
|
1185
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
1186
|
-
name: errorCode,
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
1189
|
-
break;
|
|
905
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
1190
906
|
default:
|
|
1191
907
|
const parsedBody = parsedOutput.body;
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
...parsedBody.Error,
|
|
1195
|
-
name: `${errorCode}`,
|
|
1196
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
908
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
909
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1197
910
|
$fault: "client",
|
|
1198
911
|
$metadata: deserializeMetadata(output),
|
|
1199
|
-
};
|
|
912
|
+
});
|
|
913
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1200
914
|
}
|
|
1201
|
-
const message = response.message || response.Message || errorCode;
|
|
1202
|
-
response.message = message;
|
|
1203
|
-
delete response.Message;
|
|
1204
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1205
915
|
};
|
|
1206
916
|
const deserializeAws_queryDeregisterInstancesFromLoadBalancerCommand = async (output, context) => {
|
|
1207
917
|
if (output.statusCode >= 300) {
|
|
@@ -1228,35 +938,19 @@ const deserializeAws_queryDeregisterInstancesFromLoadBalancerCommandError = asyn
|
|
|
1228
938
|
switch (errorCode) {
|
|
1229
939
|
case "AccessPointNotFoundException":
|
|
1230
940
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1231
|
-
|
|
1232
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1233
|
-
name: errorCode,
|
|
1234
|
-
$metadata: deserializeMetadata(output),
|
|
1235
|
-
};
|
|
1236
|
-
break;
|
|
941
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1237
942
|
case "InvalidEndPointException":
|
|
1238
943
|
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
1239
|
-
|
|
1240
|
-
...(await deserializeAws_queryInvalidEndPointExceptionResponse(parsedOutput, context)),
|
|
1241
|
-
name: errorCode,
|
|
1242
|
-
$metadata: deserializeMetadata(output),
|
|
1243
|
-
};
|
|
1244
|
-
break;
|
|
944
|
+
throw await deserializeAws_queryInvalidEndPointExceptionResponse(parsedOutput, context);
|
|
1245
945
|
default:
|
|
1246
946
|
const parsedBody = parsedOutput.body;
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
...parsedBody.Error,
|
|
1250
|
-
name: `${errorCode}`,
|
|
1251
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
947
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
948
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1252
949
|
$fault: "client",
|
|
1253
950
|
$metadata: deserializeMetadata(output),
|
|
1254
|
-
};
|
|
951
|
+
});
|
|
952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1255
953
|
}
|
|
1256
|
-
const message = response.message || response.Message || errorCode;
|
|
1257
|
-
response.message = message;
|
|
1258
|
-
delete response.Message;
|
|
1259
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1260
954
|
};
|
|
1261
955
|
const deserializeAws_queryDescribeAccountLimitsCommand = async (output, context) => {
|
|
1262
956
|
if (output.statusCode >= 300) {
|
|
@@ -1283,19 +977,13 @@ const deserializeAws_queryDescribeAccountLimitsCommandError = async (output, con
|
|
|
1283
977
|
switch (errorCode) {
|
|
1284
978
|
default:
|
|
1285
979
|
const parsedBody = parsedOutput.body;
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
...parsedBody.Error,
|
|
1289
|
-
name: `${errorCode}`,
|
|
1290
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
980
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
981
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1291
982
|
$fault: "client",
|
|
1292
983
|
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
984
|
+
});
|
|
985
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1294
986
|
}
|
|
1295
|
-
const message = response.message || response.Message || errorCode;
|
|
1296
|
-
response.message = message;
|
|
1297
|
-
delete response.Message;
|
|
1298
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1299
987
|
};
|
|
1300
988
|
const deserializeAws_queryDescribeInstanceHealthCommand = async (output, context) => {
|
|
1301
989
|
if (output.statusCode >= 300) {
|
|
@@ -1322,35 +1010,19 @@ const deserializeAws_queryDescribeInstanceHealthCommandError = async (output, co
|
|
|
1322
1010
|
switch (errorCode) {
|
|
1323
1011
|
case "AccessPointNotFoundException":
|
|
1324
1012
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1325
|
-
|
|
1326
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1327
|
-
name: errorCode,
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
};
|
|
1330
|
-
break;
|
|
1013
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1331
1014
|
case "InvalidEndPointException":
|
|
1332
1015
|
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
1333
|
-
|
|
1334
|
-
...(await deserializeAws_queryInvalidEndPointExceptionResponse(parsedOutput, context)),
|
|
1335
|
-
name: errorCode,
|
|
1336
|
-
$metadata: deserializeMetadata(output),
|
|
1337
|
-
};
|
|
1338
|
-
break;
|
|
1016
|
+
throw await deserializeAws_queryInvalidEndPointExceptionResponse(parsedOutput, context);
|
|
1339
1017
|
default:
|
|
1340
1018
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
...parsedBody.Error,
|
|
1344
|
-
name: `${errorCode}`,
|
|
1345
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1019
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1020
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1346
1021
|
$fault: "client",
|
|
1347
1022
|
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1023
|
+
});
|
|
1024
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1349
1025
|
}
|
|
1350
|
-
const message = response.message || response.Message || errorCode;
|
|
1351
|
-
response.message = message;
|
|
1352
|
-
delete response.Message;
|
|
1353
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1354
1026
|
};
|
|
1355
1027
|
const deserializeAws_queryDescribeLoadBalancerAttributesCommand = async (output, context) => {
|
|
1356
1028
|
if (output.statusCode >= 300) {
|
|
@@ -1377,35 +1049,19 @@ const deserializeAws_queryDescribeLoadBalancerAttributesCommandError = async (ou
|
|
|
1377
1049
|
switch (errorCode) {
|
|
1378
1050
|
case "AccessPointNotFoundException":
|
|
1379
1051
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1380
|
-
|
|
1381
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1382
|
-
name: errorCode,
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
};
|
|
1385
|
-
break;
|
|
1052
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1386
1053
|
case "LoadBalancerAttributeNotFoundException":
|
|
1387
1054
|
case "com.amazonaws.elasticloadbalancing#LoadBalancerAttributeNotFoundException":
|
|
1388
|
-
|
|
1389
|
-
...(await deserializeAws_queryLoadBalancerAttributeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1390
|
-
name: errorCode,
|
|
1391
|
-
$metadata: deserializeMetadata(output),
|
|
1392
|
-
};
|
|
1393
|
-
break;
|
|
1055
|
+
throw await deserializeAws_queryLoadBalancerAttributeNotFoundExceptionResponse(parsedOutput, context);
|
|
1394
1056
|
default:
|
|
1395
1057
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
...parsedBody.Error,
|
|
1399
|
-
name: `${errorCode}`,
|
|
1400
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1058
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1059
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1401
1060
|
$fault: "client",
|
|
1402
1061
|
$metadata: deserializeMetadata(output),
|
|
1403
|
-
};
|
|
1062
|
+
});
|
|
1063
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1404
1064
|
}
|
|
1405
|
-
const message = response.message || response.Message || errorCode;
|
|
1406
|
-
response.message = message;
|
|
1407
|
-
delete response.Message;
|
|
1408
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1409
1065
|
};
|
|
1410
1066
|
const deserializeAws_queryDescribeLoadBalancerPoliciesCommand = async (output, context) => {
|
|
1411
1067
|
if (output.statusCode >= 300) {
|
|
@@ -1432,35 +1088,19 @@ const deserializeAws_queryDescribeLoadBalancerPoliciesCommandError = async (outp
|
|
|
1432
1088
|
switch (errorCode) {
|
|
1433
1089
|
case "AccessPointNotFoundException":
|
|
1434
1090
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1435
|
-
|
|
1436
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1437
|
-
name: errorCode,
|
|
1438
|
-
$metadata: deserializeMetadata(output),
|
|
1439
|
-
};
|
|
1440
|
-
break;
|
|
1091
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1441
1092
|
case "PolicyNotFoundException":
|
|
1442
1093
|
case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
|
|
1443
|
-
|
|
1444
|
-
...(await deserializeAws_queryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1445
|
-
name: errorCode,
|
|
1446
|
-
$metadata: deserializeMetadata(output),
|
|
1447
|
-
};
|
|
1448
|
-
break;
|
|
1094
|
+
throw await deserializeAws_queryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1449
1095
|
default:
|
|
1450
1096
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
...parsedBody.Error,
|
|
1454
|
-
name: `${errorCode}`,
|
|
1455
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1097
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1098
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1456
1099
|
$fault: "client",
|
|
1457
1100
|
$metadata: deserializeMetadata(output),
|
|
1458
|
-
};
|
|
1101
|
+
});
|
|
1102
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1459
1103
|
}
|
|
1460
|
-
const message = response.message || response.Message || errorCode;
|
|
1461
|
-
response.message = message;
|
|
1462
|
-
delete response.Message;
|
|
1463
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1464
1104
|
};
|
|
1465
1105
|
const deserializeAws_queryDescribeLoadBalancerPolicyTypesCommand = async (output, context) => {
|
|
1466
1106
|
if (output.statusCode >= 300) {
|
|
@@ -1487,27 +1127,16 @@ const deserializeAws_queryDescribeLoadBalancerPolicyTypesCommandError = async (o
|
|
|
1487
1127
|
switch (errorCode) {
|
|
1488
1128
|
case "PolicyTypeNotFoundException":
|
|
1489
1129
|
case "com.amazonaws.elasticloadbalancing#PolicyTypeNotFoundException":
|
|
1490
|
-
|
|
1491
|
-
...(await deserializeAws_queryPolicyTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1492
|
-
name: errorCode,
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1495
|
-
break;
|
|
1130
|
+
throw await deserializeAws_queryPolicyTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1496
1131
|
default:
|
|
1497
1132
|
const parsedBody = parsedOutput.body;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
...parsedBody.Error,
|
|
1501
|
-
name: `${errorCode}`,
|
|
1502
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1133
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1134
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1503
1135
|
$fault: "client",
|
|
1504
1136
|
$metadata: deserializeMetadata(output),
|
|
1505
|
-
};
|
|
1137
|
+
});
|
|
1138
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1506
1139
|
}
|
|
1507
|
-
const message = response.message || response.Message || errorCode;
|
|
1508
|
-
response.message = message;
|
|
1509
|
-
delete response.Message;
|
|
1510
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1511
1140
|
};
|
|
1512
1141
|
const deserializeAws_queryDescribeLoadBalancersCommand = async (output, context) => {
|
|
1513
1142
|
if (output.statusCode >= 300) {
|
|
@@ -1534,35 +1163,19 @@ const deserializeAws_queryDescribeLoadBalancersCommandError = async (output, con
|
|
|
1534
1163
|
switch (errorCode) {
|
|
1535
1164
|
case "AccessPointNotFoundException":
|
|
1536
1165
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1537
|
-
|
|
1538
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1539
|
-
name: errorCode,
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
};
|
|
1542
|
-
break;
|
|
1166
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1543
1167
|
case "DependencyThrottleException":
|
|
1544
1168
|
case "com.amazonaws.elasticloadbalancing#DependencyThrottleException":
|
|
1545
|
-
|
|
1546
|
-
...(await deserializeAws_queryDependencyThrottleExceptionResponse(parsedOutput, context)),
|
|
1547
|
-
name: errorCode,
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
};
|
|
1550
|
-
break;
|
|
1169
|
+
throw await deserializeAws_queryDependencyThrottleExceptionResponse(parsedOutput, context);
|
|
1551
1170
|
default:
|
|
1552
1171
|
const parsedBody = parsedOutput.body;
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
...parsedBody.Error,
|
|
1556
|
-
name: `${errorCode}`,
|
|
1557
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1172
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1173
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1558
1174
|
$fault: "client",
|
|
1559
1175
|
$metadata: deserializeMetadata(output),
|
|
1560
|
-
};
|
|
1176
|
+
});
|
|
1177
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1561
1178
|
}
|
|
1562
|
-
const message = response.message || response.Message || errorCode;
|
|
1563
|
-
response.message = message;
|
|
1564
|
-
delete response.Message;
|
|
1565
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1566
1179
|
};
|
|
1567
1180
|
const deserializeAws_queryDescribeTagsCommand = async (output, context) => {
|
|
1568
1181
|
if (output.statusCode >= 300) {
|
|
@@ -1589,27 +1202,16 @@ const deserializeAws_queryDescribeTagsCommandError = async (output, context) =>
|
|
|
1589
1202
|
switch (errorCode) {
|
|
1590
1203
|
case "AccessPointNotFoundException":
|
|
1591
1204
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1592
|
-
|
|
1593
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1594
|
-
name: errorCode,
|
|
1595
|
-
$metadata: deserializeMetadata(output),
|
|
1596
|
-
};
|
|
1597
|
-
break;
|
|
1205
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1598
1206
|
default:
|
|
1599
1207
|
const parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
...parsedBody.Error,
|
|
1603
|
-
name: `${errorCode}`,
|
|
1604
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1208
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1209
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1605
1210
|
$fault: "client",
|
|
1606
1211
|
$metadata: deserializeMetadata(output),
|
|
1607
|
-
};
|
|
1212
|
+
});
|
|
1213
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1608
1214
|
}
|
|
1609
|
-
const message = response.message || response.Message || errorCode;
|
|
1610
|
-
response.message = message;
|
|
1611
|
-
delete response.Message;
|
|
1612
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1613
1215
|
};
|
|
1614
1216
|
const deserializeAws_queryDetachLoadBalancerFromSubnetsCommand = async (output, context) => {
|
|
1615
1217
|
if (output.statusCode >= 300) {
|
|
@@ -1636,35 +1238,19 @@ const deserializeAws_queryDetachLoadBalancerFromSubnetsCommandError = async (out
|
|
|
1636
1238
|
switch (errorCode) {
|
|
1637
1239
|
case "AccessPointNotFoundException":
|
|
1638
1240
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1639
|
-
|
|
1640
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1641
|
-
name: errorCode,
|
|
1642
|
-
$metadata: deserializeMetadata(output),
|
|
1643
|
-
};
|
|
1644
|
-
break;
|
|
1241
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1645
1242
|
case "InvalidConfigurationRequestException":
|
|
1646
1243
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1647
|
-
|
|
1648
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
1649
|
-
name: errorCode,
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
};
|
|
1652
|
-
break;
|
|
1244
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
1653
1245
|
default:
|
|
1654
1246
|
const parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
...parsedBody.Error,
|
|
1658
|
-
name: `${errorCode}`,
|
|
1659
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1247
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1248
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1660
1249
|
$fault: "client",
|
|
1661
1250
|
$metadata: deserializeMetadata(output),
|
|
1662
|
-
};
|
|
1251
|
+
});
|
|
1252
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1663
1253
|
}
|
|
1664
|
-
const message = response.message || response.Message || errorCode;
|
|
1665
|
-
response.message = message;
|
|
1666
|
-
delete response.Message;
|
|
1667
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1668
1254
|
};
|
|
1669
1255
|
const deserializeAws_queryDisableAvailabilityZonesForLoadBalancerCommand = async (output, context) => {
|
|
1670
1256
|
if (output.statusCode >= 300) {
|
|
@@ -1691,35 +1277,19 @@ const deserializeAws_queryDisableAvailabilityZonesForLoadBalancerCommandError =
|
|
|
1691
1277
|
switch (errorCode) {
|
|
1692
1278
|
case "AccessPointNotFoundException":
|
|
1693
1279
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1694
|
-
|
|
1695
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1696
|
-
name: errorCode,
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
};
|
|
1699
|
-
break;
|
|
1280
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1700
1281
|
case "InvalidConfigurationRequestException":
|
|
1701
1282
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1702
|
-
|
|
1703
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
1704
|
-
name: errorCode,
|
|
1705
|
-
$metadata: deserializeMetadata(output),
|
|
1706
|
-
};
|
|
1707
|
-
break;
|
|
1283
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
1708
1284
|
default:
|
|
1709
1285
|
const parsedBody = parsedOutput.body;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
...parsedBody.Error,
|
|
1713
|
-
name: `${errorCode}`,
|
|
1714
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1286
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1287
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1715
1288
|
$fault: "client",
|
|
1716
1289
|
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1290
|
+
});
|
|
1291
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1718
1292
|
}
|
|
1719
|
-
const message = response.message || response.Message || errorCode;
|
|
1720
|
-
response.message = message;
|
|
1721
|
-
delete response.Message;
|
|
1722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1723
1293
|
};
|
|
1724
1294
|
const deserializeAws_queryEnableAvailabilityZonesForLoadBalancerCommand = async (output, context) => {
|
|
1725
1295
|
if (output.statusCode >= 300) {
|
|
@@ -1746,27 +1316,16 @@ const deserializeAws_queryEnableAvailabilityZonesForLoadBalancerCommandError = a
|
|
|
1746
1316
|
switch (errorCode) {
|
|
1747
1317
|
case "AccessPointNotFoundException":
|
|
1748
1318
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1749
|
-
|
|
1750
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1751
|
-
name: errorCode,
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1319
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1755
1320
|
default:
|
|
1756
1321
|
const parsedBody = parsedOutput.body;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
...parsedBody.Error,
|
|
1760
|
-
name: `${errorCode}`,
|
|
1761
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1322
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1323
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1762
1324
|
$fault: "client",
|
|
1763
1325
|
$metadata: deserializeMetadata(output),
|
|
1764
|
-
};
|
|
1326
|
+
});
|
|
1327
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1765
1328
|
}
|
|
1766
|
-
const message = response.message || response.Message || errorCode;
|
|
1767
|
-
response.message = message;
|
|
1768
|
-
delete response.Message;
|
|
1769
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1770
1329
|
};
|
|
1771
1330
|
const deserializeAws_queryModifyLoadBalancerAttributesCommand = async (output, context) => {
|
|
1772
1331
|
if (output.statusCode >= 300) {
|
|
@@ -1793,43 +1352,22 @@ const deserializeAws_queryModifyLoadBalancerAttributesCommandError = async (outp
|
|
|
1793
1352
|
switch (errorCode) {
|
|
1794
1353
|
case "AccessPointNotFoundException":
|
|
1795
1354
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1796
|
-
|
|
1797
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1798
|
-
name: errorCode,
|
|
1799
|
-
$metadata: deserializeMetadata(output),
|
|
1800
|
-
};
|
|
1801
|
-
break;
|
|
1355
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1802
1356
|
case "InvalidConfigurationRequestException":
|
|
1803
1357
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1804
|
-
|
|
1805
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
1806
|
-
name: errorCode,
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
};
|
|
1809
|
-
break;
|
|
1358
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
1810
1359
|
case "LoadBalancerAttributeNotFoundException":
|
|
1811
1360
|
case "com.amazonaws.elasticloadbalancing#LoadBalancerAttributeNotFoundException":
|
|
1812
|
-
|
|
1813
|
-
...(await deserializeAws_queryLoadBalancerAttributeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1814
|
-
name: errorCode,
|
|
1815
|
-
$metadata: deserializeMetadata(output),
|
|
1816
|
-
};
|
|
1817
|
-
break;
|
|
1361
|
+
throw await deserializeAws_queryLoadBalancerAttributeNotFoundExceptionResponse(parsedOutput, context);
|
|
1818
1362
|
default:
|
|
1819
1363
|
const parsedBody = parsedOutput.body;
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
...parsedBody.Error,
|
|
1823
|
-
name: `${errorCode}`,
|
|
1824
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1364
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1365
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1825
1366
|
$fault: "client",
|
|
1826
1367
|
$metadata: deserializeMetadata(output),
|
|
1827
|
-
};
|
|
1368
|
+
});
|
|
1369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1828
1370
|
}
|
|
1829
|
-
const message = response.message || response.Message || errorCode;
|
|
1830
|
-
response.message = message;
|
|
1831
|
-
delete response.Message;
|
|
1832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1833
1371
|
};
|
|
1834
1372
|
const deserializeAws_queryRegisterInstancesWithLoadBalancerCommand = async (output, context) => {
|
|
1835
1373
|
if (output.statusCode >= 300) {
|
|
@@ -1856,35 +1394,19 @@ const deserializeAws_queryRegisterInstancesWithLoadBalancerCommandError = async
|
|
|
1856
1394
|
switch (errorCode) {
|
|
1857
1395
|
case "AccessPointNotFoundException":
|
|
1858
1396
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1397
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1865
1398
|
case "InvalidEndPointException":
|
|
1866
1399
|
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_queryInvalidEndPointExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1400
|
+
throw await deserializeAws_queryInvalidEndPointExceptionResponse(parsedOutput, context);
|
|
1873
1401
|
default:
|
|
1874
1402
|
const parsedBody = parsedOutput.body;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
...parsedBody.Error,
|
|
1878
|
-
name: `${errorCode}`,
|
|
1879
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1403
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1404
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1880
1405
|
$fault: "client",
|
|
1881
1406
|
$metadata: deserializeMetadata(output),
|
|
1882
|
-
};
|
|
1407
|
+
});
|
|
1408
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1883
1409
|
}
|
|
1884
|
-
const message = response.message || response.Message || errorCode;
|
|
1885
|
-
response.message = message;
|
|
1886
|
-
delete response.Message;
|
|
1887
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1888
1410
|
};
|
|
1889
1411
|
const deserializeAws_queryRemoveTagsCommand = async (output, context) => {
|
|
1890
1412
|
if (output.statusCode >= 300) {
|
|
@@ -1911,27 +1433,16 @@ const deserializeAws_queryRemoveTagsCommandError = async (output, context) => {
|
|
|
1911
1433
|
switch (errorCode) {
|
|
1912
1434
|
case "AccessPointNotFoundException":
|
|
1913
1435
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1914
|
-
|
|
1915
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1916
|
-
name: errorCode,
|
|
1917
|
-
$metadata: deserializeMetadata(output),
|
|
1918
|
-
};
|
|
1919
|
-
break;
|
|
1436
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1920
1437
|
default:
|
|
1921
1438
|
const parsedBody = parsedOutput.body;
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
...parsedBody.Error,
|
|
1925
|
-
name: `${errorCode}`,
|
|
1926
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1439
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1440
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1927
1441
|
$fault: "client",
|
|
1928
1442
|
$metadata: deserializeMetadata(output),
|
|
1929
|
-
};
|
|
1443
|
+
});
|
|
1444
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1930
1445
|
}
|
|
1931
|
-
const message = response.message || response.Message || errorCode;
|
|
1932
|
-
response.message = message;
|
|
1933
|
-
delete response.Message;
|
|
1934
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1935
1446
|
};
|
|
1936
1447
|
const deserializeAws_querySetLoadBalancerListenerSSLCertificateCommand = async (output, context) => {
|
|
1937
1448
|
if (output.statusCode >= 300) {
|
|
@@ -1958,59 +1469,28 @@ const deserializeAws_querySetLoadBalancerListenerSSLCertificateCommandError = as
|
|
|
1958
1469
|
switch (errorCode) {
|
|
1959
1470
|
case "AccessPointNotFoundException":
|
|
1960
1471
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1961
|
-
|
|
1962
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
1963
|
-
name: errorCode,
|
|
1964
|
-
$metadata: deserializeMetadata(output),
|
|
1965
|
-
};
|
|
1966
|
-
break;
|
|
1472
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
1967
1473
|
case "CertificateNotFoundException":
|
|
1968
1474
|
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
1969
|
-
|
|
1970
|
-
...(await deserializeAws_queryCertificateNotFoundExceptionResponse(parsedOutput, context)),
|
|
1971
|
-
name: errorCode,
|
|
1972
|
-
$metadata: deserializeMetadata(output),
|
|
1973
|
-
};
|
|
1974
|
-
break;
|
|
1475
|
+
throw await deserializeAws_queryCertificateNotFoundExceptionResponse(parsedOutput, context);
|
|
1975
1476
|
case "InvalidConfigurationRequestException":
|
|
1976
1477
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1977
|
-
|
|
1978
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
1979
|
-
name: errorCode,
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
};
|
|
1982
|
-
break;
|
|
1478
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
1983
1479
|
case "ListenerNotFoundException":
|
|
1984
1480
|
case "com.amazonaws.elasticloadbalancing#ListenerNotFoundException":
|
|
1985
|
-
|
|
1986
|
-
...(await deserializeAws_queryListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1987
|
-
name: errorCode,
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
};
|
|
1990
|
-
break;
|
|
1481
|
+
throw await deserializeAws_queryListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1991
1482
|
case "UnsupportedProtocolException":
|
|
1992
1483
|
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
1993
|
-
|
|
1994
|
-
...(await deserializeAws_queryUnsupportedProtocolExceptionResponse(parsedOutput, context)),
|
|
1995
|
-
name: errorCode,
|
|
1996
|
-
$metadata: deserializeMetadata(output),
|
|
1997
|
-
};
|
|
1998
|
-
break;
|
|
1484
|
+
throw await deserializeAws_queryUnsupportedProtocolExceptionResponse(parsedOutput, context);
|
|
1999
1485
|
default:
|
|
2000
1486
|
const parsedBody = parsedOutput.body;
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
...parsedBody.Error,
|
|
2004
|
-
name: `${errorCode}`,
|
|
2005
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1487
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1488
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2006
1489
|
$fault: "client",
|
|
2007
1490
|
$metadata: deserializeMetadata(output),
|
|
2008
|
-
};
|
|
1491
|
+
});
|
|
1492
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2009
1493
|
}
|
|
2010
|
-
const message = response.message || response.Message || errorCode;
|
|
2011
|
-
response.message = message;
|
|
2012
|
-
delete response.Message;
|
|
2013
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2014
1494
|
};
|
|
2015
1495
|
const deserializeAws_querySetLoadBalancerPoliciesForBackendServerCommand = async (output, context) => {
|
|
2016
1496
|
if (output.statusCode >= 300) {
|
|
@@ -2037,43 +1517,22 @@ const deserializeAws_querySetLoadBalancerPoliciesForBackendServerCommandError =
|
|
|
2037
1517
|
switch (errorCode) {
|
|
2038
1518
|
case "AccessPointNotFoundException":
|
|
2039
1519
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
2040
|
-
|
|
2041
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
2042
|
-
name: errorCode,
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
2045
|
-
break;
|
|
1520
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
2046
1521
|
case "InvalidConfigurationRequestException":
|
|
2047
1522
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
2048
|
-
|
|
2049
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
2050
|
-
name: errorCode,
|
|
2051
|
-
$metadata: deserializeMetadata(output),
|
|
2052
|
-
};
|
|
2053
|
-
break;
|
|
1523
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
2054
1524
|
case "PolicyNotFoundException":
|
|
2055
1525
|
case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
|
|
2056
|
-
|
|
2057
|
-
...(await deserializeAws_queryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
2058
|
-
name: errorCode,
|
|
2059
|
-
$metadata: deserializeMetadata(output),
|
|
2060
|
-
};
|
|
2061
|
-
break;
|
|
1526
|
+
throw await deserializeAws_queryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
2062
1527
|
default:
|
|
2063
1528
|
const parsedBody = parsedOutput.body;
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
...parsedBody.Error,
|
|
2067
|
-
name: `${errorCode}`,
|
|
2068
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1529
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1530
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2069
1531
|
$fault: "client",
|
|
2070
1532
|
$metadata: deserializeMetadata(output),
|
|
2071
|
-
};
|
|
1533
|
+
});
|
|
1534
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2072
1535
|
}
|
|
2073
|
-
const message = response.message || response.Message || errorCode;
|
|
2074
|
-
response.message = message;
|
|
2075
|
-
delete response.Message;
|
|
2076
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2077
1536
|
};
|
|
2078
1537
|
const deserializeAws_querySetLoadBalancerPoliciesOfListenerCommand = async (output, context) => {
|
|
2079
1538
|
if (output.statusCode >= 300) {
|
|
@@ -2100,293 +1559,223 @@ const deserializeAws_querySetLoadBalancerPoliciesOfListenerCommandError = async
|
|
|
2100
1559
|
switch (errorCode) {
|
|
2101
1560
|
case "AccessPointNotFoundException":
|
|
2102
1561
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
2103
|
-
|
|
2104
|
-
...(await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context)),
|
|
2105
|
-
name: errorCode,
|
|
2106
|
-
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
2108
|
-
break;
|
|
1562
|
+
throw await deserializeAws_queryAccessPointNotFoundExceptionResponse(parsedOutput, context);
|
|
2109
1563
|
case "InvalidConfigurationRequestException":
|
|
2110
1564
|
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
2111
|
-
|
|
2112
|
-
...(await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context)),
|
|
2113
|
-
name: errorCode,
|
|
2114
|
-
$metadata: deserializeMetadata(output),
|
|
2115
|
-
};
|
|
2116
|
-
break;
|
|
1565
|
+
throw await deserializeAws_queryInvalidConfigurationRequestExceptionResponse(parsedOutput, context);
|
|
2117
1566
|
case "ListenerNotFoundException":
|
|
2118
1567
|
case "com.amazonaws.elasticloadbalancing#ListenerNotFoundException":
|
|
2119
|
-
|
|
2120
|
-
...(await deserializeAws_queryListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
2121
|
-
name: errorCode,
|
|
2122
|
-
$metadata: deserializeMetadata(output),
|
|
2123
|
-
};
|
|
2124
|
-
break;
|
|
1568
|
+
throw await deserializeAws_queryListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2125
1569
|
case "PolicyNotFoundException":
|
|
2126
1570
|
case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
|
|
2127
|
-
|
|
2128
|
-
...(await deserializeAws_queryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
2129
|
-
name: errorCode,
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
};
|
|
2132
|
-
break;
|
|
1571
|
+
throw await deserializeAws_queryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
2133
1572
|
default:
|
|
2134
1573
|
const parsedBody = parsedOutput.body;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
...parsedBody.Error,
|
|
2138
|
-
name: `${errorCode}`,
|
|
2139
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1574
|
+
response = new ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException({
|
|
1575
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2140
1576
|
$fault: "client",
|
|
2141
1577
|
$metadata: deserializeMetadata(output),
|
|
2142
|
-
};
|
|
1578
|
+
});
|
|
1579
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2143
1580
|
}
|
|
2144
|
-
const message = response.message || response.Message || errorCode;
|
|
2145
|
-
response.message = message;
|
|
2146
|
-
delete response.Message;
|
|
2147
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2148
1581
|
};
|
|
2149
1582
|
const deserializeAws_queryAccessPointNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2150
1583
|
const body = parsedOutput.body;
|
|
2151
1584
|
const deserialized = deserializeAws_queryAccessPointNotFoundException(body.Error, context);
|
|
2152
|
-
const
|
|
2153
|
-
name: "AccessPointNotFoundException",
|
|
2154
|
-
$fault: "client",
|
|
1585
|
+
const exception = new models_0_1.AccessPointNotFoundException({
|
|
2155
1586
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2156
1587
|
...deserialized,
|
|
2157
|
-
};
|
|
2158
|
-
return
|
|
1588
|
+
});
|
|
1589
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2159
1590
|
};
|
|
2160
1591
|
const deserializeAws_queryCertificateNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2161
1592
|
const body = parsedOutput.body;
|
|
2162
1593
|
const deserialized = deserializeAws_queryCertificateNotFoundException(body.Error, context);
|
|
2163
|
-
const
|
|
2164
|
-
name: "CertificateNotFoundException",
|
|
2165
|
-
$fault: "client",
|
|
1594
|
+
const exception = new models_0_1.CertificateNotFoundException({
|
|
2166
1595
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2167
1596
|
...deserialized,
|
|
2168
|
-
};
|
|
2169
|
-
return
|
|
1597
|
+
});
|
|
1598
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2170
1599
|
};
|
|
2171
1600
|
const deserializeAws_queryDependencyThrottleExceptionResponse = async (parsedOutput, context) => {
|
|
2172
1601
|
const body = parsedOutput.body;
|
|
2173
1602
|
const deserialized = deserializeAws_queryDependencyThrottleException(body.Error, context);
|
|
2174
|
-
const
|
|
2175
|
-
name: "DependencyThrottleException",
|
|
2176
|
-
$fault: "client",
|
|
1603
|
+
const exception = new models_0_1.DependencyThrottleException({
|
|
2177
1604
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2178
1605
|
...deserialized,
|
|
2179
|
-
};
|
|
2180
|
-
return
|
|
1606
|
+
});
|
|
1607
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2181
1608
|
};
|
|
2182
1609
|
const deserializeAws_queryDuplicateAccessPointNameExceptionResponse = async (parsedOutput, context) => {
|
|
2183
1610
|
const body = parsedOutput.body;
|
|
2184
1611
|
const deserialized = deserializeAws_queryDuplicateAccessPointNameException(body.Error, context);
|
|
2185
|
-
const
|
|
2186
|
-
name: "DuplicateAccessPointNameException",
|
|
2187
|
-
$fault: "client",
|
|
1612
|
+
const exception = new models_0_1.DuplicateAccessPointNameException({
|
|
2188
1613
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2189
1614
|
...deserialized,
|
|
2190
|
-
};
|
|
2191
|
-
return
|
|
1615
|
+
});
|
|
1616
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2192
1617
|
};
|
|
2193
1618
|
const deserializeAws_queryDuplicateListenerExceptionResponse = async (parsedOutput, context) => {
|
|
2194
1619
|
const body = parsedOutput.body;
|
|
2195
1620
|
const deserialized = deserializeAws_queryDuplicateListenerException(body.Error, context);
|
|
2196
|
-
const
|
|
2197
|
-
name: "DuplicateListenerException",
|
|
2198
|
-
$fault: "client",
|
|
1621
|
+
const exception = new models_0_1.DuplicateListenerException({
|
|
2199
1622
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2200
1623
|
...deserialized,
|
|
2201
|
-
};
|
|
2202
|
-
return
|
|
1624
|
+
});
|
|
1625
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2203
1626
|
};
|
|
2204
1627
|
const deserializeAws_queryDuplicatePolicyNameExceptionResponse = async (parsedOutput, context) => {
|
|
2205
1628
|
const body = parsedOutput.body;
|
|
2206
1629
|
const deserialized = deserializeAws_queryDuplicatePolicyNameException(body.Error, context);
|
|
2207
|
-
const
|
|
2208
|
-
name: "DuplicatePolicyNameException",
|
|
2209
|
-
$fault: "client",
|
|
1630
|
+
const exception = new models_0_1.DuplicatePolicyNameException({
|
|
2210
1631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2211
1632
|
...deserialized,
|
|
2212
|
-
};
|
|
2213
|
-
return
|
|
1633
|
+
});
|
|
1634
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2214
1635
|
};
|
|
2215
1636
|
const deserializeAws_queryDuplicateTagKeysExceptionResponse = async (parsedOutput, context) => {
|
|
2216
1637
|
const body = parsedOutput.body;
|
|
2217
1638
|
const deserialized = deserializeAws_queryDuplicateTagKeysException(body.Error, context);
|
|
2218
|
-
const
|
|
2219
|
-
name: "DuplicateTagKeysException",
|
|
2220
|
-
$fault: "client",
|
|
1639
|
+
const exception = new models_0_1.DuplicateTagKeysException({
|
|
2221
1640
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2222
1641
|
...deserialized,
|
|
2223
|
-
};
|
|
2224
|
-
return
|
|
1642
|
+
});
|
|
1643
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2225
1644
|
};
|
|
2226
1645
|
const deserializeAws_queryInvalidConfigurationRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2227
1646
|
const body = parsedOutput.body;
|
|
2228
1647
|
const deserialized = deserializeAws_queryInvalidConfigurationRequestException(body.Error, context);
|
|
2229
|
-
const
|
|
2230
|
-
name: "InvalidConfigurationRequestException",
|
|
2231
|
-
$fault: "client",
|
|
1648
|
+
const exception = new models_0_1.InvalidConfigurationRequestException({
|
|
2232
1649
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2233
1650
|
...deserialized,
|
|
2234
|
-
};
|
|
2235
|
-
return
|
|
1651
|
+
});
|
|
1652
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2236
1653
|
};
|
|
2237
1654
|
const deserializeAws_queryInvalidEndPointExceptionResponse = async (parsedOutput, context) => {
|
|
2238
1655
|
const body = parsedOutput.body;
|
|
2239
1656
|
const deserialized = deserializeAws_queryInvalidEndPointException(body.Error, context);
|
|
2240
|
-
const
|
|
2241
|
-
name: "InvalidEndPointException",
|
|
2242
|
-
$fault: "client",
|
|
1657
|
+
const exception = new models_0_1.InvalidEndPointException({
|
|
2243
1658
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2244
1659
|
...deserialized,
|
|
2245
|
-
};
|
|
2246
|
-
return
|
|
1660
|
+
});
|
|
1661
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2247
1662
|
};
|
|
2248
1663
|
const deserializeAws_queryInvalidSchemeExceptionResponse = async (parsedOutput, context) => {
|
|
2249
1664
|
const body = parsedOutput.body;
|
|
2250
1665
|
const deserialized = deserializeAws_queryInvalidSchemeException(body.Error, context);
|
|
2251
|
-
const
|
|
2252
|
-
name: "InvalidSchemeException",
|
|
2253
|
-
$fault: "client",
|
|
1666
|
+
const exception = new models_0_1.InvalidSchemeException({
|
|
2254
1667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2255
1668
|
...deserialized,
|
|
2256
|
-
};
|
|
2257
|
-
return
|
|
1669
|
+
});
|
|
1670
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2258
1671
|
};
|
|
2259
1672
|
const deserializeAws_queryInvalidSecurityGroupExceptionResponse = async (parsedOutput, context) => {
|
|
2260
1673
|
const body = parsedOutput.body;
|
|
2261
1674
|
const deserialized = deserializeAws_queryInvalidSecurityGroupException(body.Error, context);
|
|
2262
|
-
const
|
|
2263
|
-
name: "InvalidSecurityGroupException",
|
|
2264
|
-
$fault: "client",
|
|
1675
|
+
const exception = new models_0_1.InvalidSecurityGroupException({
|
|
2265
1676
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2266
1677
|
...deserialized,
|
|
2267
|
-
};
|
|
2268
|
-
return
|
|
1678
|
+
});
|
|
1679
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2269
1680
|
};
|
|
2270
1681
|
const deserializeAws_queryInvalidSubnetExceptionResponse = async (parsedOutput, context) => {
|
|
2271
1682
|
const body = parsedOutput.body;
|
|
2272
1683
|
const deserialized = deserializeAws_queryInvalidSubnetException(body.Error, context);
|
|
2273
|
-
const
|
|
2274
|
-
name: "InvalidSubnetException",
|
|
2275
|
-
$fault: "client",
|
|
1684
|
+
const exception = new models_0_1.InvalidSubnetException({
|
|
2276
1685
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2277
1686
|
...deserialized,
|
|
2278
|
-
};
|
|
2279
|
-
return
|
|
1687
|
+
});
|
|
1688
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2280
1689
|
};
|
|
2281
1690
|
const deserializeAws_queryListenerNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2282
1691
|
const body = parsedOutput.body;
|
|
2283
1692
|
const deserialized = deserializeAws_queryListenerNotFoundException(body.Error, context);
|
|
2284
|
-
const
|
|
2285
|
-
name: "ListenerNotFoundException",
|
|
2286
|
-
$fault: "client",
|
|
1693
|
+
const exception = new models_0_1.ListenerNotFoundException({
|
|
2287
1694
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2288
1695
|
...deserialized,
|
|
2289
|
-
};
|
|
2290
|
-
return
|
|
1696
|
+
});
|
|
1697
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2291
1698
|
};
|
|
2292
1699
|
const deserializeAws_queryLoadBalancerAttributeNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2293
1700
|
const body = parsedOutput.body;
|
|
2294
1701
|
const deserialized = deserializeAws_queryLoadBalancerAttributeNotFoundException(body.Error, context);
|
|
2295
|
-
const
|
|
2296
|
-
name: "LoadBalancerAttributeNotFoundException",
|
|
2297
|
-
$fault: "client",
|
|
1702
|
+
const exception = new models_0_1.LoadBalancerAttributeNotFoundException({
|
|
2298
1703
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2299
1704
|
...deserialized,
|
|
2300
|
-
};
|
|
2301
|
-
return
|
|
1705
|
+
});
|
|
1706
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2302
1707
|
};
|
|
2303
1708
|
const deserializeAws_queryOperationNotPermittedExceptionResponse = async (parsedOutput, context) => {
|
|
2304
1709
|
const body = parsedOutput.body;
|
|
2305
1710
|
const deserialized = deserializeAws_queryOperationNotPermittedException(body.Error, context);
|
|
2306
|
-
const
|
|
2307
|
-
name: "OperationNotPermittedException",
|
|
2308
|
-
$fault: "client",
|
|
1711
|
+
const exception = new models_0_1.OperationNotPermittedException({
|
|
2309
1712
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2310
1713
|
...deserialized,
|
|
2311
|
-
};
|
|
2312
|
-
return
|
|
1714
|
+
});
|
|
1715
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2313
1716
|
};
|
|
2314
1717
|
const deserializeAws_queryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2315
1718
|
const body = parsedOutput.body;
|
|
2316
1719
|
const deserialized = deserializeAws_queryPolicyNotFoundException(body.Error, context);
|
|
2317
|
-
const
|
|
2318
|
-
name: "PolicyNotFoundException",
|
|
2319
|
-
$fault: "client",
|
|
1720
|
+
const exception = new models_0_1.PolicyNotFoundException({
|
|
2320
1721
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2321
1722
|
...deserialized,
|
|
2322
|
-
};
|
|
2323
|
-
return
|
|
1723
|
+
});
|
|
1724
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2324
1725
|
};
|
|
2325
1726
|
const deserializeAws_queryPolicyTypeNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2326
1727
|
const body = parsedOutput.body;
|
|
2327
1728
|
const deserialized = deserializeAws_queryPolicyTypeNotFoundException(body.Error, context);
|
|
2328
|
-
const
|
|
2329
|
-
name: "PolicyTypeNotFoundException",
|
|
2330
|
-
$fault: "client",
|
|
1729
|
+
const exception = new models_0_1.PolicyTypeNotFoundException({
|
|
2331
1730
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2332
1731
|
...deserialized,
|
|
2333
|
-
};
|
|
2334
|
-
return
|
|
1732
|
+
});
|
|
1733
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2335
1734
|
};
|
|
2336
1735
|
const deserializeAws_querySubnetNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2337
1736
|
const body = parsedOutput.body;
|
|
2338
1737
|
const deserialized = deserializeAws_querySubnetNotFoundException(body.Error, context);
|
|
2339
|
-
const
|
|
2340
|
-
name: "SubnetNotFoundException",
|
|
2341
|
-
$fault: "client",
|
|
1738
|
+
const exception = new models_0_1.SubnetNotFoundException({
|
|
2342
1739
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2343
1740
|
...deserialized,
|
|
2344
|
-
};
|
|
2345
|
-
return
|
|
1741
|
+
});
|
|
1742
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2346
1743
|
};
|
|
2347
1744
|
const deserializeAws_queryTooManyAccessPointsExceptionResponse = async (parsedOutput, context) => {
|
|
2348
1745
|
const body = parsedOutput.body;
|
|
2349
1746
|
const deserialized = deserializeAws_queryTooManyAccessPointsException(body.Error, context);
|
|
2350
|
-
const
|
|
2351
|
-
name: "TooManyAccessPointsException",
|
|
2352
|
-
$fault: "client",
|
|
1747
|
+
const exception = new models_0_1.TooManyAccessPointsException({
|
|
2353
1748
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2354
1749
|
...deserialized,
|
|
2355
|
-
};
|
|
2356
|
-
return
|
|
1750
|
+
});
|
|
1751
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2357
1752
|
};
|
|
2358
1753
|
const deserializeAws_queryTooManyPoliciesExceptionResponse = async (parsedOutput, context) => {
|
|
2359
1754
|
const body = parsedOutput.body;
|
|
2360
1755
|
const deserialized = deserializeAws_queryTooManyPoliciesException(body.Error, context);
|
|
2361
|
-
const
|
|
2362
|
-
name: "TooManyPoliciesException",
|
|
2363
|
-
$fault: "client",
|
|
1756
|
+
const exception = new models_0_1.TooManyPoliciesException({
|
|
2364
1757
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2365
1758
|
...deserialized,
|
|
2366
|
-
};
|
|
2367
|
-
return
|
|
1759
|
+
});
|
|
1760
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2368
1761
|
};
|
|
2369
1762
|
const deserializeAws_queryTooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
2370
1763
|
const body = parsedOutput.body;
|
|
2371
1764
|
const deserialized = deserializeAws_queryTooManyTagsException(body.Error, context);
|
|
2372
|
-
const
|
|
2373
|
-
name: "TooManyTagsException",
|
|
2374
|
-
$fault: "client",
|
|
1765
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
2375
1766
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2376
1767
|
...deserialized,
|
|
2377
|
-
};
|
|
2378
|
-
return
|
|
1768
|
+
});
|
|
1769
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2379
1770
|
};
|
|
2380
1771
|
const deserializeAws_queryUnsupportedProtocolExceptionResponse = async (parsedOutput, context) => {
|
|
2381
1772
|
const body = parsedOutput.body;
|
|
2382
1773
|
const deserialized = deserializeAws_queryUnsupportedProtocolException(body.Error, context);
|
|
2383
|
-
const
|
|
2384
|
-
name: "UnsupportedProtocolException",
|
|
2385
|
-
$fault: "client",
|
|
1774
|
+
const exception = new models_0_1.UnsupportedProtocolException({
|
|
2386
1775
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2387
1776
|
...deserialized,
|
|
2388
|
-
};
|
|
2389
|
-
return
|
|
1777
|
+
});
|
|
1778
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2390
1779
|
};
|
|
2391
1780
|
const serializeAws_queryAccessLog = (input, context) => {
|
|
2392
1781
|
const entries = {};
|