@aws-sdk/client-route53resolver 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +180 -2356
- package/dist-es/protocols/Aws_json1_1.js +227 -2403
- package/package.json +3 -3
|
@@ -413,7 +413,7 @@ export const se_UpdateResolverRuleCommand = async (input, context) => {
|
|
|
413
413
|
};
|
|
414
414
|
export const de_AssociateFirewallRuleGroupCommand = async (output, context) => {
|
|
415
415
|
if (output.statusCode >= 300) {
|
|
416
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
417
|
}
|
|
418
418
|
const data = await parseBody(output.body, context);
|
|
419
419
|
let contents = {};
|
|
@@ -424,46 +424,9 @@ export const de_AssociateFirewallRuleGroupCommand = async (output, context) => {
|
|
|
424
424
|
};
|
|
425
425
|
return response;
|
|
426
426
|
};
|
|
427
|
-
const de_AssociateFirewallRuleGroupCommandError = async (output, context) => {
|
|
428
|
-
const parsedOutput = {
|
|
429
|
-
...output,
|
|
430
|
-
body: await parseErrorBody(output.body, context),
|
|
431
|
-
};
|
|
432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
|
-
switch (errorCode) {
|
|
434
|
-
case "AccessDeniedException":
|
|
435
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ConflictException":
|
|
438
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
440
|
-
case "InternalServiceErrorException":
|
|
441
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
442
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
443
|
-
case "LimitExceededException":
|
|
444
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
445
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ResourceNotFoundException":
|
|
447
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ThrottlingException":
|
|
450
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
451
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ValidationException":
|
|
453
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
454
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
455
|
-
default:
|
|
456
|
-
const parsedBody = parsedOutput.body;
|
|
457
|
-
return throwDefaultError({
|
|
458
|
-
output,
|
|
459
|
-
parsedBody,
|
|
460
|
-
errorCode,
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
427
|
export const de_AssociateResolverEndpointIpAddressCommand = async (output, context) => {
|
|
465
428
|
if (output.statusCode >= 300) {
|
|
466
|
-
return
|
|
429
|
+
return de_CommandError(output, context);
|
|
467
430
|
}
|
|
468
431
|
const data = await parseBody(output.body, context);
|
|
469
432
|
let contents = {};
|
|
@@ -474,46 +437,9 @@ export const de_AssociateResolverEndpointIpAddressCommand = async (output, conte
|
|
|
474
437
|
};
|
|
475
438
|
return response;
|
|
476
439
|
};
|
|
477
|
-
const de_AssociateResolverEndpointIpAddressCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "InternalServiceErrorException":
|
|
485
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
486
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
487
|
-
case "InvalidParameterException":
|
|
488
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
489
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
490
|
-
case "InvalidRequestException":
|
|
491
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
492
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
493
|
-
case "LimitExceededException":
|
|
494
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
495
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ResourceExistsException":
|
|
497
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
498
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
499
|
-
case "ResourceNotFoundException":
|
|
500
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
502
|
-
case "ThrottlingException":
|
|
503
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
505
|
-
default:
|
|
506
|
-
const parsedBody = parsedOutput.body;
|
|
507
|
-
return throwDefaultError({
|
|
508
|
-
output,
|
|
509
|
-
parsedBody,
|
|
510
|
-
errorCode,
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
440
|
export const de_AssociateResolverQueryLogConfigCommand = async (output, context) => {
|
|
515
441
|
if (output.statusCode >= 300) {
|
|
516
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
517
443
|
}
|
|
518
444
|
const data = await parseBody(output.body, context);
|
|
519
445
|
let contents = {};
|
|
@@ -524,49 +450,9 @@ export const de_AssociateResolverQueryLogConfigCommand = async (output, context)
|
|
|
524
450
|
};
|
|
525
451
|
return response;
|
|
526
452
|
};
|
|
527
|
-
const de_AssociateResolverQueryLogConfigCommandError = async (output, context) => {
|
|
528
|
-
const parsedOutput = {
|
|
529
|
-
...output,
|
|
530
|
-
body: await parseErrorBody(output.body, context),
|
|
531
|
-
};
|
|
532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
|
-
switch (errorCode) {
|
|
534
|
-
case "AccessDeniedException":
|
|
535
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
536
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
537
|
-
case "InternalServiceErrorException":
|
|
538
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
539
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
540
|
-
case "InvalidParameterException":
|
|
541
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
542
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
543
|
-
case "InvalidRequestException":
|
|
544
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
545
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
546
|
-
case "LimitExceededException":
|
|
547
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
548
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ResourceExistsException":
|
|
550
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
551
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ResourceNotFoundException":
|
|
553
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ThrottlingException":
|
|
556
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
557
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
558
|
-
default:
|
|
559
|
-
const parsedBody = parsedOutput.body;
|
|
560
|
-
return throwDefaultError({
|
|
561
|
-
output,
|
|
562
|
-
parsedBody,
|
|
563
|
-
errorCode,
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
453
|
export const de_AssociateResolverRuleCommand = async (output, context) => {
|
|
568
454
|
if (output.statusCode >= 300) {
|
|
569
|
-
return
|
|
455
|
+
return de_CommandError(output, context);
|
|
570
456
|
}
|
|
571
457
|
const data = await parseBody(output.body, context);
|
|
572
458
|
let contents = {};
|
|
@@ -577,49 +463,9 @@ export const de_AssociateResolverRuleCommand = async (output, context) => {
|
|
|
577
463
|
};
|
|
578
464
|
return response;
|
|
579
465
|
};
|
|
580
|
-
const de_AssociateResolverRuleCommandError = async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await parseErrorBody(output.body, context),
|
|
584
|
-
};
|
|
585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "InternalServiceErrorException":
|
|
588
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
589
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
590
|
-
case "InvalidParameterException":
|
|
591
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
592
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
593
|
-
case "InvalidRequestException":
|
|
594
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
595
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
596
|
-
case "LimitExceededException":
|
|
597
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
598
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ResourceExistsException":
|
|
600
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
601
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ResourceNotFoundException":
|
|
603
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
605
|
-
case "ResourceUnavailableException":
|
|
606
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
607
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ThrottlingException":
|
|
609
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
610
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
611
|
-
default:
|
|
612
|
-
const parsedBody = parsedOutput.body;
|
|
613
|
-
return throwDefaultError({
|
|
614
|
-
output,
|
|
615
|
-
parsedBody,
|
|
616
|
-
errorCode,
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
466
|
export const de_CreateFirewallDomainListCommand = async (output, context) => {
|
|
621
467
|
if (output.statusCode >= 300) {
|
|
622
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
623
469
|
}
|
|
624
470
|
const data = await parseBody(output.body, context);
|
|
625
471
|
let contents = {};
|
|
@@ -630,40 +476,9 @@ export const de_CreateFirewallDomainListCommand = async (output, context) => {
|
|
|
630
476
|
};
|
|
631
477
|
return response;
|
|
632
478
|
};
|
|
633
|
-
const de_CreateFirewallDomainListCommandError = async (output, context) => {
|
|
634
|
-
const parsedOutput = {
|
|
635
|
-
...output,
|
|
636
|
-
body: await parseErrorBody(output.body, context),
|
|
637
|
-
};
|
|
638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
-
switch (errorCode) {
|
|
640
|
-
case "AccessDeniedException":
|
|
641
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
642
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
643
|
-
case "InternalServiceErrorException":
|
|
644
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
645
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
646
|
-
case "LimitExceededException":
|
|
647
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
648
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ThrottlingException":
|
|
650
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
651
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ValidationException":
|
|
653
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
654
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
479
|
export const de_CreateFirewallRuleCommand = async (output, context) => {
|
|
665
480
|
if (output.statusCode >= 300) {
|
|
666
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
667
482
|
}
|
|
668
483
|
const data = await parseBody(output.body, context);
|
|
669
484
|
let contents = {};
|
|
@@ -674,43 +489,9 @@ export const de_CreateFirewallRuleCommand = async (output, context) => {
|
|
|
674
489
|
};
|
|
675
490
|
return response;
|
|
676
491
|
};
|
|
677
|
-
const de_CreateFirewallRuleCommandError = async (output, context) => {
|
|
678
|
-
const parsedOutput = {
|
|
679
|
-
...output,
|
|
680
|
-
body: await parseErrorBody(output.body, context),
|
|
681
|
-
};
|
|
682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
-
switch (errorCode) {
|
|
684
|
-
case "AccessDeniedException":
|
|
685
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
686
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
687
|
-
case "InternalServiceErrorException":
|
|
688
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
689
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
690
|
-
case "LimitExceededException":
|
|
691
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
692
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ResourceNotFoundException":
|
|
694
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
695
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ThrottlingException":
|
|
697
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
698
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ValidationException":
|
|
700
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
701
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
702
|
-
default:
|
|
703
|
-
const parsedBody = parsedOutput.body;
|
|
704
|
-
return throwDefaultError({
|
|
705
|
-
output,
|
|
706
|
-
parsedBody,
|
|
707
|
-
errorCode,
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
492
|
export const de_CreateFirewallRuleGroupCommand = async (output, context) => {
|
|
712
493
|
if (output.statusCode >= 300) {
|
|
713
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
714
495
|
}
|
|
715
496
|
const data = await parseBody(output.body, context);
|
|
716
497
|
let contents = {};
|
|
@@ -721,40 +502,9 @@ export const de_CreateFirewallRuleGroupCommand = async (output, context) => {
|
|
|
721
502
|
};
|
|
722
503
|
return response;
|
|
723
504
|
};
|
|
724
|
-
const de_CreateFirewallRuleGroupCommandError = async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context),
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "AccessDeniedException":
|
|
732
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
733
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
734
|
-
case "InternalServiceErrorException":
|
|
735
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
736
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
737
|
-
case "LimitExceededException":
|
|
738
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
739
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ThrottlingException":
|
|
741
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
742
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ValidationException":
|
|
744
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
745
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
505
|
export const de_CreateOutpostResolverCommand = async (output, context) => {
|
|
756
506
|
if (output.statusCode >= 300) {
|
|
757
|
-
return
|
|
507
|
+
return de_CommandError(output, context);
|
|
758
508
|
}
|
|
759
509
|
const data = await parseBody(output.body, context);
|
|
760
510
|
let contents = {};
|
|
@@ -765,428 +515,22 @@ export const de_CreateOutpostResolverCommand = async (output, context) => {
|
|
|
765
515
|
};
|
|
766
516
|
return response;
|
|
767
517
|
};
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
518
|
+
export const de_CreateResolverEndpointCommand = async (output, context) => {
|
|
519
|
+
if (output.statusCode >= 300) {
|
|
520
|
+
return de_CommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const data = await parseBody(output.body, context);
|
|
523
|
+
let contents = {};
|
|
524
|
+
contents = _json(data);
|
|
525
|
+
const response = {
|
|
526
|
+
$metadata: deserializeMetadata(output),
|
|
527
|
+
...contents,
|
|
772
528
|
};
|
|
773
|
-
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "AccessDeniedException":
|
|
776
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
778
|
-
case "InternalServiceErrorException":
|
|
779
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
780
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ResourceNotFoundException":
|
|
782
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ServiceQuotaExceededException":
|
|
785
|
-
case "com.amazonaws.route53resolver#ServiceQuotaExceededException":
|
|
786
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ThrottlingException":
|
|
788
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
789
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
790
|
-
case "ValidationException":
|
|
791
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
792
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
793
|
-
default:
|
|
794
|
-
const parsedBody = parsedOutput.body;
|
|
795
|
-
return throwDefaultError({
|
|
796
|
-
output,
|
|
797
|
-
parsedBody,
|
|
798
|
-
errorCode,
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
export const de_CreateResolverEndpointCommand = async (output, context) => {
|
|
803
|
-
if (output.statusCode >= 300) {
|
|
804
|
-
return de_CreateResolverEndpointCommandError(output, context);
|
|
805
|
-
}
|
|
806
|
-
const data = await parseBody(output.body, context);
|
|
807
|
-
let contents = {};
|
|
808
|
-
contents = _json(data);
|
|
809
|
-
const response = {
|
|
810
|
-
$metadata: deserializeMetadata(output),
|
|
811
|
-
...contents,
|
|
812
|
-
};
|
|
813
|
-
return response;
|
|
814
|
-
};
|
|
815
|
-
const de_CreateResolverEndpointCommandError = async (output, context) => {
|
|
816
|
-
const parsedOutput = {
|
|
817
|
-
...output,
|
|
818
|
-
body: await parseErrorBody(output.body, context),
|
|
819
|
-
};
|
|
820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
-
switch (errorCode) {
|
|
822
|
-
case "AccessDeniedException":
|
|
823
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
824
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InternalServiceErrorException":
|
|
826
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
827
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
828
|
-
case "InvalidParameterException":
|
|
829
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
830
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
831
|
-
case "InvalidRequestException":
|
|
832
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
833
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
834
|
-
case "LimitExceededException":
|
|
835
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
836
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ResourceExistsException":
|
|
838
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
839
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ResourceNotFoundException":
|
|
841
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ThrottlingException":
|
|
844
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
845
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
846
|
-
default:
|
|
847
|
-
const parsedBody = parsedOutput.body;
|
|
848
|
-
return throwDefaultError({
|
|
849
|
-
output,
|
|
850
|
-
parsedBody,
|
|
851
|
-
errorCode,
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
|
-
export const de_CreateResolverQueryLogConfigCommand = async (output, context) => {
|
|
856
|
-
if (output.statusCode >= 300) {
|
|
857
|
-
return de_CreateResolverQueryLogConfigCommandError(output, context);
|
|
858
|
-
}
|
|
859
|
-
const data = await parseBody(output.body, context);
|
|
860
|
-
let contents = {};
|
|
861
|
-
contents = _json(data);
|
|
862
|
-
const response = {
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
...contents,
|
|
865
|
-
};
|
|
866
|
-
return response;
|
|
867
|
-
};
|
|
868
|
-
const de_CreateResolverQueryLogConfigCommandError = async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context),
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "AccessDeniedException":
|
|
876
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
|
-
case "InternalServiceErrorException":
|
|
879
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
880
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InvalidParameterException":
|
|
882
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
883
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InvalidRequestException":
|
|
885
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
886
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
887
|
-
case "LimitExceededException":
|
|
888
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
889
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ResourceExistsException":
|
|
891
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
892
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ResourceNotFoundException":
|
|
894
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ThrottlingException":
|
|
897
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode,
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
export const de_CreateResolverRuleCommand = async (output, context) => {
|
|
909
|
-
if (output.statusCode >= 300) {
|
|
910
|
-
return de_CreateResolverRuleCommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const data = await parseBody(output.body, context);
|
|
913
|
-
let contents = {};
|
|
914
|
-
contents = _json(data);
|
|
915
|
-
const response = {
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
...contents,
|
|
918
|
-
};
|
|
919
|
-
return response;
|
|
920
|
-
};
|
|
921
|
-
const de_CreateResolverRuleCommandError = async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context),
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "AccessDeniedException":
|
|
929
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServiceErrorException":
|
|
932
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
933
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
934
|
-
case "InvalidParameterException":
|
|
935
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
936
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InvalidRequestException":
|
|
938
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
939
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
940
|
-
case "LimitExceededException":
|
|
941
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
942
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ResourceExistsException":
|
|
944
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
945
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ResourceNotFoundException":
|
|
947
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
948
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ResourceUnavailableException":
|
|
950
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
951
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ThrottlingException":
|
|
953
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
954
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
955
|
-
default:
|
|
956
|
-
const parsedBody = parsedOutput.body;
|
|
957
|
-
return throwDefaultError({
|
|
958
|
-
output,
|
|
959
|
-
parsedBody,
|
|
960
|
-
errorCode,
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
export const de_DeleteFirewallDomainListCommand = async (output, context) => {
|
|
965
|
-
if (output.statusCode >= 300) {
|
|
966
|
-
return de_DeleteFirewallDomainListCommandError(output, context);
|
|
967
|
-
}
|
|
968
|
-
const data = await parseBody(output.body, context);
|
|
969
|
-
let contents = {};
|
|
970
|
-
contents = _json(data);
|
|
971
|
-
const response = {
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
...contents,
|
|
974
|
-
};
|
|
975
|
-
return response;
|
|
976
|
-
};
|
|
977
|
-
const de_DeleteFirewallDomainListCommandError = async (output, context) => {
|
|
978
|
-
const parsedOutput = {
|
|
979
|
-
...output,
|
|
980
|
-
body: await parseErrorBody(output.body, context),
|
|
981
|
-
};
|
|
982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
-
switch (errorCode) {
|
|
984
|
-
case "AccessDeniedException":
|
|
985
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
986
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ConflictException":
|
|
988
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
989
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
990
|
-
case "InternalServiceErrorException":
|
|
991
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
992
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ResourceNotFoundException":
|
|
994
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
995
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ThrottlingException":
|
|
997
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
998
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode,
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
export const de_DeleteFirewallRuleCommand = async (output, context) => {
|
|
1009
|
-
if (output.statusCode >= 300) {
|
|
1010
|
-
return de_DeleteFirewallRuleCommandError(output, context);
|
|
1011
|
-
}
|
|
1012
|
-
const data = await parseBody(output.body, context);
|
|
1013
|
-
let contents = {};
|
|
1014
|
-
contents = _json(data);
|
|
1015
|
-
const response = {
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
...contents,
|
|
1018
|
-
};
|
|
1019
|
-
return response;
|
|
1020
|
-
};
|
|
1021
|
-
const de_DeleteFirewallRuleCommandError = async (output, context) => {
|
|
1022
|
-
const parsedOutput = {
|
|
1023
|
-
...output,
|
|
1024
|
-
body: await parseErrorBody(output.body, context),
|
|
1025
|
-
};
|
|
1026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
-
switch (errorCode) {
|
|
1028
|
-
case "AccessDeniedException":
|
|
1029
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1030
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "InternalServiceErrorException":
|
|
1032
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1033
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ResourceNotFoundException":
|
|
1035
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1036
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ThrottlingException":
|
|
1038
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1039
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1040
|
-
default:
|
|
1041
|
-
const parsedBody = parsedOutput.body;
|
|
1042
|
-
return throwDefaultError({
|
|
1043
|
-
output,
|
|
1044
|
-
parsedBody,
|
|
1045
|
-
errorCode,
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
|
-
export const de_DeleteFirewallRuleGroupCommand = async (output, context) => {
|
|
1050
|
-
if (output.statusCode >= 300) {
|
|
1051
|
-
return de_DeleteFirewallRuleGroupCommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const data = await parseBody(output.body, context);
|
|
1054
|
-
let contents = {};
|
|
1055
|
-
contents = _json(data);
|
|
1056
|
-
const response = {
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
...contents,
|
|
1059
|
-
};
|
|
1060
|
-
return response;
|
|
1061
|
-
};
|
|
1062
|
-
const de_DeleteFirewallRuleGroupCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "AccessDeniedException":
|
|
1070
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1071
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ConflictException":
|
|
1073
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1074
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "InternalServiceErrorException":
|
|
1076
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1077
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ResourceNotFoundException":
|
|
1079
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ThrottlingException":
|
|
1082
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ValidationException":
|
|
1085
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1086
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1087
|
-
default:
|
|
1088
|
-
const parsedBody = parsedOutput.body;
|
|
1089
|
-
return throwDefaultError({
|
|
1090
|
-
output,
|
|
1091
|
-
parsedBody,
|
|
1092
|
-
errorCode,
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
};
|
|
1096
|
-
export const de_DeleteOutpostResolverCommand = async (output, context) => {
|
|
1097
|
-
if (output.statusCode >= 300) {
|
|
1098
|
-
return de_DeleteOutpostResolverCommandError(output, context);
|
|
1099
|
-
}
|
|
1100
|
-
const data = await parseBody(output.body, context);
|
|
1101
|
-
let contents = {};
|
|
1102
|
-
contents = _json(data);
|
|
1103
|
-
const response = {
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
...contents,
|
|
1106
|
-
};
|
|
1107
|
-
return response;
|
|
1108
|
-
};
|
|
1109
|
-
const de_DeleteOutpostResolverCommandError = async (output, context) => {
|
|
1110
|
-
const parsedOutput = {
|
|
1111
|
-
...output,
|
|
1112
|
-
body: await parseErrorBody(output.body, context),
|
|
1113
|
-
};
|
|
1114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
|
-
switch (errorCode) {
|
|
1116
|
-
case "AccessDeniedException":
|
|
1117
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1118
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ConflictException":
|
|
1120
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1121
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "InternalServiceErrorException":
|
|
1123
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1124
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ResourceNotFoundException":
|
|
1126
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ThrottlingException":
|
|
1129
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1130
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ValidationException":
|
|
1132
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody,
|
|
1139
|
-
errorCode,
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
|
-
export const de_DeleteResolverEndpointCommand = async (output, context) => {
|
|
1144
|
-
if (output.statusCode >= 300) {
|
|
1145
|
-
return de_DeleteResolverEndpointCommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const data = await parseBody(output.body, context);
|
|
1148
|
-
let contents = {};
|
|
1149
|
-
contents = _json(data);
|
|
1150
|
-
const response = {
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
...contents,
|
|
1153
|
-
};
|
|
1154
|
-
return response;
|
|
1155
|
-
};
|
|
1156
|
-
const de_DeleteResolverEndpointCommandError = async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context),
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "InternalServiceErrorException":
|
|
1164
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1165
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "InvalidParameterException":
|
|
1167
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1168
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "InvalidRequestException":
|
|
1170
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1171
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ResourceNotFoundException":
|
|
1173
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ThrottlingException":
|
|
1176
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1177
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1178
|
-
default:
|
|
1179
|
-
const parsedBody = parsedOutput.body;
|
|
1180
|
-
return throwDefaultError({
|
|
1181
|
-
output,
|
|
1182
|
-
parsedBody,
|
|
1183
|
-
errorCode,
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
529
|
+
return response;
|
|
1186
530
|
};
|
|
1187
|
-
export const
|
|
531
|
+
export const de_CreateResolverQueryLogConfigCommand = async (output, context) => {
|
|
1188
532
|
if (output.statusCode >= 300) {
|
|
1189
|
-
return
|
|
533
|
+
return de_CommandError(output, context);
|
|
1190
534
|
}
|
|
1191
535
|
const data = await parseBody(output.body, context);
|
|
1192
536
|
let contents = {};
|
|
@@ -1197,43 +541,9 @@ export const de_DeleteResolverQueryLogConfigCommand = async (output, context) =>
|
|
|
1197
541
|
};
|
|
1198
542
|
return response;
|
|
1199
543
|
};
|
|
1200
|
-
const
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context),
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "AccessDeniedException":
|
|
1208
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "InternalServiceErrorException":
|
|
1211
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1212
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "InvalidParameterException":
|
|
1214
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1215
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "InvalidRequestException":
|
|
1217
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1218
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ResourceNotFoundException":
|
|
1220
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ThrottlingException":
|
|
1223
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1224
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode,
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
|
-
export const de_DeleteResolverRuleCommand = async (output, context) => {
|
|
544
|
+
export const de_CreateResolverRuleCommand = async (output, context) => {
|
|
1235
545
|
if (output.statusCode >= 300) {
|
|
1236
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
1237
547
|
}
|
|
1238
548
|
const data = await parseBody(output.body, context);
|
|
1239
549
|
let contents = {};
|
|
@@ -1244,40 +554,9 @@ export const de_DeleteResolverRuleCommand = async (output, context) => {
|
|
|
1244
554
|
};
|
|
1245
555
|
return response;
|
|
1246
556
|
};
|
|
1247
|
-
const
|
|
1248
|
-
const parsedOutput = {
|
|
1249
|
-
...output,
|
|
1250
|
-
body: await parseErrorBody(output.body, context),
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "InternalServiceErrorException":
|
|
1255
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1256
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "InvalidParameterException":
|
|
1258
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1259
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ResourceInUseException":
|
|
1261
|
-
case "com.amazonaws.route53resolver#ResourceInUseException":
|
|
1262
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "ResourceNotFoundException":
|
|
1264
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ThrottlingException":
|
|
1267
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1269
|
-
default:
|
|
1270
|
-
const parsedBody = parsedOutput.body;
|
|
1271
|
-
return throwDefaultError({
|
|
1272
|
-
output,
|
|
1273
|
-
parsedBody,
|
|
1274
|
-
errorCode,
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
export const de_DisassociateFirewallRuleGroupCommand = async (output, context) => {
|
|
557
|
+
export const de_DeleteFirewallDomainListCommand = async (output, context) => {
|
|
1279
558
|
if (output.statusCode >= 300) {
|
|
1280
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
1281
560
|
}
|
|
1282
561
|
const data = await parseBody(output.body, context);
|
|
1283
562
|
let contents = {};
|
|
@@ -1288,43 +567,9 @@ export const de_DisassociateFirewallRuleGroupCommand = async (output, context) =
|
|
|
1288
567
|
};
|
|
1289
568
|
return response;
|
|
1290
569
|
};
|
|
1291
|
-
const
|
|
1292
|
-
const parsedOutput = {
|
|
1293
|
-
...output,
|
|
1294
|
-
body: await parseErrorBody(output.body, context),
|
|
1295
|
-
};
|
|
1296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
|
-
switch (errorCode) {
|
|
1298
|
-
case "AccessDeniedException":
|
|
1299
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1300
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ConflictException":
|
|
1302
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1303
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "InternalServiceErrorException":
|
|
1305
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1306
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ResourceNotFoundException":
|
|
1308
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1309
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ThrottlingException":
|
|
1311
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1312
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ValidationException":
|
|
1314
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1315
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
export const de_DisassociateResolverEndpointIpAddressCommand = async (output, context) => {
|
|
570
|
+
export const de_DeleteFirewallRuleCommand = async (output, context) => {
|
|
1326
571
|
if (output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
1328
573
|
}
|
|
1329
574
|
const data = await parseBody(output.body, context);
|
|
1330
575
|
let contents = {};
|
|
@@ -1335,43 +580,9 @@ export const de_DisassociateResolverEndpointIpAddressCommand = async (output, co
|
|
|
1335
580
|
};
|
|
1336
581
|
return response;
|
|
1337
582
|
};
|
|
1338
|
-
const
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context),
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InternalServiceErrorException":
|
|
1346
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1347
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "InvalidParameterException":
|
|
1349
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1350
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InvalidRequestException":
|
|
1352
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1353
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceExistsException":
|
|
1355
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
1356
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ResourceNotFoundException":
|
|
1358
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "ThrottlingException":
|
|
1361
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1362
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1363
|
-
default:
|
|
1364
|
-
const parsedBody = parsedOutput.body;
|
|
1365
|
-
return throwDefaultError({
|
|
1366
|
-
output,
|
|
1367
|
-
parsedBody,
|
|
1368
|
-
errorCode,
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
};
|
|
1372
|
-
export const de_DisassociateResolverQueryLogConfigCommand = async (output, context) => {
|
|
583
|
+
export const de_DeleteFirewallRuleGroupCommand = async (output, context) => {
|
|
1373
584
|
if (output.statusCode >= 300) {
|
|
1374
|
-
return
|
|
585
|
+
return de_CommandError(output, context);
|
|
1375
586
|
}
|
|
1376
587
|
const data = await parseBody(output.body, context);
|
|
1377
588
|
let contents = {};
|
|
@@ -1382,43 +593,9 @@ export const de_DisassociateResolverQueryLogConfigCommand = async (output, conte
|
|
|
1382
593
|
};
|
|
1383
594
|
return response;
|
|
1384
595
|
};
|
|
1385
|
-
const
|
|
1386
|
-
const parsedOutput = {
|
|
1387
|
-
...output,
|
|
1388
|
-
body: await parseErrorBody(output.body, context),
|
|
1389
|
-
};
|
|
1390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
-
switch (errorCode) {
|
|
1392
|
-
case "AccessDeniedException":
|
|
1393
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1394
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "InternalServiceErrorException":
|
|
1396
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1397
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "InvalidParameterException":
|
|
1399
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1400
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "InvalidRequestException":
|
|
1402
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1403
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ResourceNotFoundException":
|
|
1405
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ThrottlingException":
|
|
1408
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1409
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1410
|
-
default:
|
|
1411
|
-
const parsedBody = parsedOutput.body;
|
|
1412
|
-
return throwDefaultError({
|
|
1413
|
-
output,
|
|
1414
|
-
parsedBody,
|
|
1415
|
-
errorCode,
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
export const de_DisassociateResolverRuleCommand = async (output, context) => {
|
|
596
|
+
export const de_DeleteOutpostResolverCommand = async (output, context) => {
|
|
1420
597
|
if (output.statusCode >= 300) {
|
|
1421
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
1422
599
|
}
|
|
1423
600
|
const data = await parseBody(output.body, context);
|
|
1424
601
|
let contents = {};
|
|
@@ -1429,37 +606,9 @@ export const de_DisassociateResolverRuleCommand = async (output, context) => {
|
|
|
1429
606
|
};
|
|
1430
607
|
return response;
|
|
1431
608
|
};
|
|
1432
|
-
const
|
|
1433
|
-
const parsedOutput = {
|
|
1434
|
-
...output,
|
|
1435
|
-
body: await parseErrorBody(output.body, context),
|
|
1436
|
-
};
|
|
1437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
-
switch (errorCode) {
|
|
1439
|
-
case "InternalServiceErrorException":
|
|
1440
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1441
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "InvalidParameterException":
|
|
1443
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1444
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ResourceNotFoundException":
|
|
1446
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "ThrottlingException":
|
|
1449
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1450
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1451
|
-
default:
|
|
1452
|
-
const parsedBody = parsedOutput.body;
|
|
1453
|
-
return throwDefaultError({
|
|
1454
|
-
output,
|
|
1455
|
-
parsedBody,
|
|
1456
|
-
errorCode,
|
|
1457
|
-
});
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
|
-
export const de_GetFirewallConfigCommand = async (output, context) => {
|
|
609
|
+
export const de_DeleteResolverEndpointCommand = async (output, context) => {
|
|
1461
610
|
if (output.statusCode >= 300) {
|
|
1462
|
-
return
|
|
611
|
+
return de_CommandError(output, context);
|
|
1463
612
|
}
|
|
1464
613
|
const data = await parseBody(output.body, context);
|
|
1465
614
|
let contents = {};
|
|
@@ -1470,40 +619,22 @@ export const de_GetFirewallConfigCommand = async (output, context) => {
|
|
|
1470
619
|
};
|
|
1471
620
|
return response;
|
|
1472
621
|
};
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
body: await parseErrorBody(output.body, context),
|
|
1477
|
-
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
-
switch (errorCode) {
|
|
1480
|
-
case "AccessDeniedException":
|
|
1481
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1482
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "InternalServiceErrorException":
|
|
1484
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1485
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ResourceNotFoundException":
|
|
1487
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ThrottlingException":
|
|
1490
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1491
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ValidationException":
|
|
1493
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1494
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1495
|
-
default:
|
|
1496
|
-
const parsedBody = parsedOutput.body;
|
|
1497
|
-
return throwDefaultError({
|
|
1498
|
-
output,
|
|
1499
|
-
parsedBody,
|
|
1500
|
-
errorCode,
|
|
1501
|
-
});
|
|
622
|
+
export const de_DeleteResolverQueryLogConfigCommand = async (output, context) => {
|
|
623
|
+
if (output.statusCode >= 300) {
|
|
624
|
+
return de_CommandError(output, context);
|
|
1502
625
|
}
|
|
626
|
+
const data = await parseBody(output.body, context);
|
|
627
|
+
let contents = {};
|
|
628
|
+
contents = _json(data);
|
|
629
|
+
const response = {
|
|
630
|
+
$metadata: deserializeMetadata(output),
|
|
631
|
+
...contents,
|
|
632
|
+
};
|
|
633
|
+
return response;
|
|
1503
634
|
};
|
|
1504
|
-
export const
|
|
635
|
+
export const de_DeleteResolverRuleCommand = async (output, context) => {
|
|
1505
636
|
if (output.statusCode >= 300) {
|
|
1506
|
-
return
|
|
637
|
+
return de_CommandError(output, context);
|
|
1507
638
|
}
|
|
1508
639
|
const data = await parseBody(output.body, context);
|
|
1509
640
|
let contents = {};
|
|
@@ -1514,37 +645,9 @@ export const de_GetFirewallDomainListCommand = async (output, context) => {
|
|
|
1514
645
|
};
|
|
1515
646
|
return response;
|
|
1516
647
|
};
|
|
1517
|
-
const
|
|
1518
|
-
const parsedOutput = {
|
|
1519
|
-
...output,
|
|
1520
|
-
body: await parseErrorBody(output.body, context),
|
|
1521
|
-
};
|
|
1522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
-
switch (errorCode) {
|
|
1524
|
-
case "AccessDeniedException":
|
|
1525
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1526
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "InternalServiceErrorException":
|
|
1528
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1529
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "ResourceNotFoundException":
|
|
1531
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1532
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "ThrottlingException":
|
|
1534
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1535
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1536
|
-
default:
|
|
1537
|
-
const parsedBody = parsedOutput.body;
|
|
1538
|
-
return throwDefaultError({
|
|
1539
|
-
output,
|
|
1540
|
-
parsedBody,
|
|
1541
|
-
errorCode,
|
|
1542
|
-
});
|
|
1543
|
-
}
|
|
1544
|
-
};
|
|
1545
|
-
export const de_GetFirewallRuleGroupCommand = async (output, context) => {
|
|
648
|
+
export const de_DisassociateFirewallRuleGroupCommand = async (output, context) => {
|
|
1546
649
|
if (output.statusCode >= 300) {
|
|
1547
|
-
return
|
|
650
|
+
return de_CommandError(output, context);
|
|
1548
651
|
}
|
|
1549
652
|
const data = await parseBody(output.body, context);
|
|
1550
653
|
let contents = {};
|
|
@@ -1555,37 +658,9 @@ export const de_GetFirewallRuleGroupCommand = async (output, context) => {
|
|
|
1555
658
|
};
|
|
1556
659
|
return response;
|
|
1557
660
|
};
|
|
1558
|
-
const
|
|
1559
|
-
const parsedOutput = {
|
|
1560
|
-
...output,
|
|
1561
|
-
body: await parseErrorBody(output.body, context),
|
|
1562
|
-
};
|
|
1563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
-
switch (errorCode) {
|
|
1565
|
-
case "AccessDeniedException":
|
|
1566
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1567
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "InternalServiceErrorException":
|
|
1569
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1570
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "ResourceNotFoundException":
|
|
1572
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1573
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ThrottlingException":
|
|
1575
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1576
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1577
|
-
default:
|
|
1578
|
-
const parsedBody = parsedOutput.body;
|
|
1579
|
-
return throwDefaultError({
|
|
1580
|
-
output,
|
|
1581
|
-
parsedBody,
|
|
1582
|
-
errorCode,
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
};
|
|
1586
|
-
export const de_GetFirewallRuleGroupAssociationCommand = async (output, context) => {
|
|
661
|
+
export const de_DisassociateResolverEndpointIpAddressCommand = async (output, context) => {
|
|
1587
662
|
if (output.statusCode >= 300) {
|
|
1588
|
-
return
|
|
663
|
+
return de_CommandError(output, context);
|
|
1589
664
|
}
|
|
1590
665
|
const data = await parseBody(output.body, context);
|
|
1591
666
|
let contents = {};
|
|
@@ -1596,37 +671,9 @@ export const de_GetFirewallRuleGroupAssociationCommand = async (output, context)
|
|
|
1596
671
|
};
|
|
1597
672
|
return response;
|
|
1598
673
|
};
|
|
1599
|
-
const
|
|
1600
|
-
const parsedOutput = {
|
|
1601
|
-
...output,
|
|
1602
|
-
body: await parseErrorBody(output.body, context),
|
|
1603
|
-
};
|
|
1604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
|
-
switch (errorCode) {
|
|
1606
|
-
case "AccessDeniedException":
|
|
1607
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1608
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "InternalServiceErrorException":
|
|
1610
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1611
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "ResourceNotFoundException":
|
|
1613
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1614
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1615
|
-
case "ThrottlingException":
|
|
1616
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1617
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1618
|
-
default:
|
|
1619
|
-
const parsedBody = parsedOutput.body;
|
|
1620
|
-
return throwDefaultError({
|
|
1621
|
-
output,
|
|
1622
|
-
parsedBody,
|
|
1623
|
-
errorCode,
|
|
1624
|
-
});
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
|
-
export const de_GetFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
674
|
+
export const de_DisassociateResolverQueryLogConfigCommand = async (output, context) => {
|
|
1628
675
|
if (output.statusCode >= 300) {
|
|
1629
|
-
return
|
|
676
|
+
return de_CommandError(output, context);
|
|
1630
677
|
}
|
|
1631
678
|
const data = await parseBody(output.body, context);
|
|
1632
679
|
let contents = {};
|
|
@@ -1637,40 +684,9 @@ export const de_GetFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
|
1637
684
|
};
|
|
1638
685
|
return response;
|
|
1639
686
|
};
|
|
1640
|
-
const
|
|
1641
|
-
const parsedOutput = {
|
|
1642
|
-
...output,
|
|
1643
|
-
body: await parseErrorBody(output.body, context),
|
|
1644
|
-
};
|
|
1645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1646
|
-
switch (errorCode) {
|
|
1647
|
-
case "AccessDeniedException":
|
|
1648
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "InternalServiceErrorException":
|
|
1651
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1652
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ResourceNotFoundException":
|
|
1654
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1655
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ThrottlingException":
|
|
1657
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1658
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ValidationException":
|
|
1660
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1661
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1662
|
-
default:
|
|
1663
|
-
const parsedBody = parsedOutput.body;
|
|
1664
|
-
return throwDefaultError({
|
|
1665
|
-
output,
|
|
1666
|
-
parsedBody,
|
|
1667
|
-
errorCode,
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
|
-
export const de_GetOutpostResolverCommand = async (output, context) => {
|
|
687
|
+
export const de_DisassociateResolverRuleCommand = async (output, context) => {
|
|
1672
688
|
if (output.statusCode >= 300) {
|
|
1673
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
1674
690
|
}
|
|
1675
691
|
const data = await parseBody(output.body, context);
|
|
1676
692
|
let contents = {};
|
|
@@ -1681,40 +697,9 @@ export const de_GetOutpostResolverCommand = async (output, context) => {
|
|
|
1681
697
|
};
|
|
1682
698
|
return response;
|
|
1683
699
|
};
|
|
1684
|
-
const
|
|
1685
|
-
const parsedOutput = {
|
|
1686
|
-
...output,
|
|
1687
|
-
body: await parseErrorBody(output.body, context),
|
|
1688
|
-
};
|
|
1689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
-
switch (errorCode) {
|
|
1691
|
-
case "AccessDeniedException":
|
|
1692
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1693
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "InternalServiceErrorException":
|
|
1695
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1696
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "ResourceNotFoundException":
|
|
1698
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ThrottlingException":
|
|
1701
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1702
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "ValidationException":
|
|
1704
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1705
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1706
|
-
default:
|
|
1707
|
-
const parsedBody = parsedOutput.body;
|
|
1708
|
-
return throwDefaultError({
|
|
1709
|
-
output,
|
|
1710
|
-
parsedBody,
|
|
1711
|
-
errorCode,
|
|
1712
|
-
});
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
|
-
export const de_GetResolverConfigCommand = async (output, context) => {
|
|
700
|
+
export const de_GetFirewallConfigCommand = async (output, context) => {
|
|
1716
701
|
if (output.statusCode >= 300) {
|
|
1717
|
-
return
|
|
702
|
+
return de_CommandError(output, context);
|
|
1718
703
|
}
|
|
1719
704
|
const data = await parseBody(output.body, context);
|
|
1720
705
|
let contents = {};
|
|
@@ -1725,43 +710,9 @@ export const de_GetResolverConfigCommand = async (output, context) => {
|
|
|
1725
710
|
};
|
|
1726
711
|
return response;
|
|
1727
712
|
};
|
|
1728
|
-
const
|
|
1729
|
-
const parsedOutput = {
|
|
1730
|
-
...output,
|
|
1731
|
-
body: await parseErrorBody(output.body, context),
|
|
1732
|
-
};
|
|
1733
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1734
|
-
switch (errorCode) {
|
|
1735
|
-
case "AccessDeniedException":
|
|
1736
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1737
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "InternalServiceErrorException":
|
|
1739
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1740
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "InvalidParameterException":
|
|
1742
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1743
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "ResourceNotFoundException":
|
|
1745
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1746
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ThrottlingException":
|
|
1748
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1749
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "ValidationException":
|
|
1751
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1753
|
-
default:
|
|
1754
|
-
const parsedBody = parsedOutput.body;
|
|
1755
|
-
return throwDefaultError({
|
|
1756
|
-
output,
|
|
1757
|
-
parsedBody,
|
|
1758
|
-
errorCode,
|
|
1759
|
-
});
|
|
1760
|
-
}
|
|
1761
|
-
};
|
|
1762
|
-
export const de_GetResolverDnssecConfigCommand = async (output, context) => {
|
|
713
|
+
export const de_GetFirewallDomainListCommand = async (output, context) => {
|
|
1763
714
|
if (output.statusCode >= 300) {
|
|
1764
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
1765
716
|
}
|
|
1766
717
|
const data = await parseBody(output.body, context);
|
|
1767
718
|
let contents = {};
|
|
@@ -1772,43 +723,9 @@ export const de_GetResolverDnssecConfigCommand = async (output, context) => {
|
|
|
1772
723
|
};
|
|
1773
724
|
return response;
|
|
1774
725
|
};
|
|
1775
|
-
const
|
|
1776
|
-
const parsedOutput = {
|
|
1777
|
-
...output,
|
|
1778
|
-
body: await parseErrorBody(output.body, context),
|
|
1779
|
-
};
|
|
1780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
-
switch (errorCode) {
|
|
1782
|
-
case "AccessDeniedException":
|
|
1783
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1784
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "InternalServiceErrorException":
|
|
1786
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1787
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "InvalidParameterException":
|
|
1789
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1790
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "InvalidRequestException":
|
|
1792
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1793
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "ResourceNotFoundException":
|
|
1795
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1796
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ThrottlingException":
|
|
1798
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1799
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1800
|
-
default:
|
|
1801
|
-
const parsedBody = parsedOutput.body;
|
|
1802
|
-
return throwDefaultError({
|
|
1803
|
-
output,
|
|
1804
|
-
parsedBody,
|
|
1805
|
-
errorCode,
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
};
|
|
1809
|
-
export const de_GetResolverEndpointCommand = async (output, context) => {
|
|
726
|
+
export const de_GetFirewallRuleGroupCommand = async (output, context) => {
|
|
1810
727
|
if (output.statusCode >= 300) {
|
|
1811
|
-
return
|
|
728
|
+
return de_CommandError(output, context);
|
|
1812
729
|
}
|
|
1813
730
|
const data = await parseBody(output.body, context);
|
|
1814
731
|
let contents = {};
|
|
@@ -1819,37 +736,9 @@ export const de_GetResolverEndpointCommand = async (output, context) => {
|
|
|
1819
736
|
};
|
|
1820
737
|
return response;
|
|
1821
738
|
};
|
|
1822
|
-
const
|
|
1823
|
-
const parsedOutput = {
|
|
1824
|
-
...output,
|
|
1825
|
-
body: await parseErrorBody(output.body, context),
|
|
1826
|
-
};
|
|
1827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1828
|
-
switch (errorCode) {
|
|
1829
|
-
case "InternalServiceErrorException":
|
|
1830
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1831
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "InvalidParameterException":
|
|
1833
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1834
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ResourceNotFoundException":
|
|
1836
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "ThrottlingException":
|
|
1839
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1840
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1841
|
-
default:
|
|
1842
|
-
const parsedBody = parsedOutput.body;
|
|
1843
|
-
return throwDefaultError({
|
|
1844
|
-
output,
|
|
1845
|
-
parsedBody,
|
|
1846
|
-
errorCode,
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
};
|
|
1850
|
-
export const de_GetResolverQueryLogConfigCommand = async (output, context) => {
|
|
739
|
+
export const de_GetFirewallRuleGroupAssociationCommand = async (output, context) => {
|
|
1851
740
|
if (output.statusCode >= 300) {
|
|
1852
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
1853
742
|
}
|
|
1854
743
|
const data = await parseBody(output.body, context);
|
|
1855
744
|
let contents = {};
|
|
@@ -1860,43 +749,9 @@ export const de_GetResolverQueryLogConfigCommand = async (output, context) => {
|
|
|
1860
749
|
};
|
|
1861
750
|
return response;
|
|
1862
751
|
};
|
|
1863
|
-
const
|
|
1864
|
-
const parsedOutput = {
|
|
1865
|
-
...output,
|
|
1866
|
-
body: await parseErrorBody(output.body, context),
|
|
1867
|
-
};
|
|
1868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
-
switch (errorCode) {
|
|
1870
|
-
case "AccessDeniedException":
|
|
1871
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1872
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "InternalServiceErrorException":
|
|
1874
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1875
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "InvalidParameterException":
|
|
1877
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1878
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "InvalidRequestException":
|
|
1880
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1881
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ResourceNotFoundException":
|
|
1883
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ThrottlingException":
|
|
1886
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1887
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1888
|
-
default:
|
|
1889
|
-
const parsedBody = parsedOutput.body;
|
|
1890
|
-
return throwDefaultError({
|
|
1891
|
-
output,
|
|
1892
|
-
parsedBody,
|
|
1893
|
-
errorCode,
|
|
1894
|
-
});
|
|
1895
|
-
}
|
|
1896
|
-
};
|
|
1897
|
-
export const de_GetResolverQueryLogConfigAssociationCommand = async (output, context) => {
|
|
752
|
+
export const de_GetFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
1898
753
|
if (output.statusCode >= 300) {
|
|
1899
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
1900
755
|
}
|
|
1901
756
|
const data = await parseBody(output.body, context);
|
|
1902
757
|
let contents = {};
|
|
@@ -1907,43 +762,9 @@ export const de_GetResolverQueryLogConfigAssociationCommand = async (output, con
|
|
|
1907
762
|
};
|
|
1908
763
|
return response;
|
|
1909
764
|
};
|
|
1910
|
-
const
|
|
1911
|
-
const parsedOutput = {
|
|
1912
|
-
...output,
|
|
1913
|
-
body: await parseErrorBody(output.body, context),
|
|
1914
|
-
};
|
|
1915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
|
-
switch (errorCode) {
|
|
1917
|
-
case "AccessDeniedException":
|
|
1918
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1919
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "InternalServiceErrorException":
|
|
1921
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1922
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "InvalidParameterException":
|
|
1924
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1925
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "InvalidRequestException":
|
|
1927
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1928
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ResourceNotFoundException":
|
|
1930
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "ThrottlingException":
|
|
1933
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1934
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1935
|
-
default:
|
|
1936
|
-
const parsedBody = parsedOutput.body;
|
|
1937
|
-
return throwDefaultError({
|
|
1938
|
-
output,
|
|
1939
|
-
parsedBody,
|
|
1940
|
-
errorCode,
|
|
1941
|
-
});
|
|
1942
|
-
}
|
|
1943
|
-
};
|
|
1944
|
-
export const de_GetResolverQueryLogConfigPolicyCommand = async (output, context) => {
|
|
765
|
+
export const de_GetOutpostResolverCommand = async (output, context) => {
|
|
1945
766
|
if (output.statusCode >= 300) {
|
|
1946
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1947
768
|
}
|
|
1948
769
|
const data = await parseBody(output.body, context);
|
|
1949
770
|
let contents = {};
|
|
@@ -1954,40 +775,9 @@ export const de_GetResolverQueryLogConfigPolicyCommand = async (output, context)
|
|
|
1954
775
|
};
|
|
1955
776
|
return response;
|
|
1956
777
|
};
|
|
1957
|
-
const
|
|
1958
|
-
const parsedOutput = {
|
|
1959
|
-
...output,
|
|
1960
|
-
body: await parseErrorBody(output.body, context),
|
|
1961
|
-
};
|
|
1962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
|
-
switch (errorCode) {
|
|
1964
|
-
case "AccessDeniedException":
|
|
1965
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "InternalServiceErrorException":
|
|
1968
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1969
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "InvalidParameterException":
|
|
1971
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1972
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "InvalidRequestException":
|
|
1974
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1975
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "UnknownResourceException":
|
|
1977
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
1978
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1979
|
-
default:
|
|
1980
|
-
const parsedBody = parsedOutput.body;
|
|
1981
|
-
return throwDefaultError({
|
|
1982
|
-
output,
|
|
1983
|
-
parsedBody,
|
|
1984
|
-
errorCode,
|
|
1985
|
-
});
|
|
1986
|
-
}
|
|
1987
|
-
};
|
|
1988
|
-
export const de_GetResolverRuleCommand = async (output, context) => {
|
|
778
|
+
export const de_GetResolverConfigCommand = async (output, context) => {
|
|
1989
779
|
if (output.statusCode >= 300) {
|
|
1990
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
1991
781
|
}
|
|
1992
782
|
const data = await parseBody(output.body, context);
|
|
1993
783
|
let contents = {};
|
|
@@ -1998,37 +788,9 @@ export const de_GetResolverRuleCommand = async (output, context) => {
|
|
|
1998
788
|
};
|
|
1999
789
|
return response;
|
|
2000
790
|
};
|
|
2001
|
-
const
|
|
2002
|
-
const parsedOutput = {
|
|
2003
|
-
...output,
|
|
2004
|
-
body: await parseErrorBody(output.body, context),
|
|
2005
|
-
};
|
|
2006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
-
switch (errorCode) {
|
|
2008
|
-
case "InternalServiceErrorException":
|
|
2009
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2010
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "InvalidParameterException":
|
|
2012
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2013
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ResourceNotFoundException":
|
|
2015
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ThrottlingException":
|
|
2018
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2019
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2020
|
-
default:
|
|
2021
|
-
const parsedBody = parsedOutput.body;
|
|
2022
|
-
return throwDefaultError({
|
|
2023
|
-
output,
|
|
2024
|
-
parsedBody,
|
|
2025
|
-
errorCode,
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
};
|
|
2029
|
-
export const de_GetResolverRuleAssociationCommand = async (output, context) => {
|
|
791
|
+
export const de_GetResolverDnssecConfigCommand = async (output, context) => {
|
|
2030
792
|
if (output.statusCode >= 300) {
|
|
2031
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
2032
794
|
}
|
|
2033
795
|
const data = await parseBody(output.body, context);
|
|
2034
796
|
let contents = {};
|
|
@@ -2039,37 +801,9 @@ export const de_GetResolverRuleAssociationCommand = async (output, context) => {
|
|
|
2039
801
|
};
|
|
2040
802
|
return response;
|
|
2041
803
|
};
|
|
2042
|
-
const
|
|
2043
|
-
const parsedOutput = {
|
|
2044
|
-
...output,
|
|
2045
|
-
body: await parseErrorBody(output.body, context),
|
|
2046
|
-
};
|
|
2047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
|
-
switch (errorCode) {
|
|
2049
|
-
case "InternalServiceErrorException":
|
|
2050
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2051
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "InvalidParameterException":
|
|
2053
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2054
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ResourceNotFoundException":
|
|
2056
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ThrottlingException":
|
|
2059
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2060
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode,
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
|
-
export const de_GetResolverRulePolicyCommand = async (output, context) => {
|
|
804
|
+
export const de_GetResolverEndpointCommand = async (output, context) => {
|
|
2071
805
|
if (output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
2073
807
|
}
|
|
2074
808
|
const data = await parseBody(output.body, context);
|
|
2075
809
|
let contents = {};
|
|
@@ -2080,37 +814,9 @@ export const de_GetResolverRulePolicyCommand = async (output, context) => {
|
|
|
2080
814
|
};
|
|
2081
815
|
return response;
|
|
2082
816
|
};
|
|
2083
|
-
const
|
|
2084
|
-
const parsedOutput = {
|
|
2085
|
-
...output,
|
|
2086
|
-
body: await parseErrorBody(output.body, context),
|
|
2087
|
-
};
|
|
2088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
-
switch (errorCode) {
|
|
2090
|
-
case "AccessDeniedException":
|
|
2091
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "InternalServiceErrorException":
|
|
2094
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2095
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "InvalidParameterException":
|
|
2097
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2098
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "UnknownResourceException":
|
|
2100
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
2101
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2102
|
-
default:
|
|
2103
|
-
const parsedBody = parsedOutput.body;
|
|
2104
|
-
return throwDefaultError({
|
|
2105
|
-
output,
|
|
2106
|
-
parsedBody,
|
|
2107
|
-
errorCode,
|
|
2108
|
-
});
|
|
2109
|
-
}
|
|
2110
|
-
};
|
|
2111
|
-
export const de_ImportFirewallDomainsCommand = async (output, context) => {
|
|
817
|
+
export const de_GetResolverQueryLogConfigCommand = async (output, context) => {
|
|
2112
818
|
if (output.statusCode >= 300) {
|
|
2113
|
-
return
|
|
819
|
+
return de_CommandError(output, context);
|
|
2114
820
|
}
|
|
2115
821
|
const data = await parseBody(output.body, context);
|
|
2116
822
|
let contents = {};
|
|
@@ -2121,46 +827,9 @@ export const de_ImportFirewallDomainsCommand = async (output, context) => {
|
|
|
2121
827
|
};
|
|
2122
828
|
return response;
|
|
2123
829
|
};
|
|
2124
|
-
const
|
|
2125
|
-
const parsedOutput = {
|
|
2126
|
-
...output,
|
|
2127
|
-
body: await parseErrorBody(output.body, context),
|
|
2128
|
-
};
|
|
2129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
|
-
switch (errorCode) {
|
|
2131
|
-
case "AccessDeniedException":
|
|
2132
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2133
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2134
|
-
case "ConflictException":
|
|
2135
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
2136
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "InternalServiceErrorException":
|
|
2138
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2139
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "LimitExceededException":
|
|
2141
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
2142
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ThrottlingException":
|
|
2147
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2148
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ValidationException":
|
|
2150
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2151
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2152
|
-
default:
|
|
2153
|
-
const parsedBody = parsedOutput.body;
|
|
2154
|
-
return throwDefaultError({
|
|
2155
|
-
output,
|
|
2156
|
-
parsedBody,
|
|
2157
|
-
errorCode,
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
};
|
|
2161
|
-
export const de_ListFirewallConfigsCommand = async (output, context) => {
|
|
830
|
+
export const de_GetResolverQueryLogConfigAssociationCommand = async (output, context) => {
|
|
2162
831
|
if (output.statusCode >= 300) {
|
|
2163
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
2164
833
|
}
|
|
2165
834
|
const data = await parseBody(output.body, context);
|
|
2166
835
|
let contents = {};
|
|
@@ -2171,37 +840,9 @@ export const de_ListFirewallConfigsCommand = async (output, context) => {
|
|
|
2171
840
|
};
|
|
2172
841
|
return response;
|
|
2173
842
|
};
|
|
2174
|
-
const
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context),
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "AccessDeniedException":
|
|
2182
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2183
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "InternalServiceErrorException":
|
|
2185
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2186
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "ThrottlingException":
|
|
2188
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2189
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "ValidationException":
|
|
2191
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2192
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2193
|
-
default:
|
|
2194
|
-
const parsedBody = parsedOutput.body;
|
|
2195
|
-
return throwDefaultError({
|
|
2196
|
-
output,
|
|
2197
|
-
parsedBody,
|
|
2198
|
-
errorCode,
|
|
2199
|
-
});
|
|
2200
|
-
}
|
|
2201
|
-
};
|
|
2202
|
-
export const de_ListFirewallDomainListsCommand = async (output, context) => {
|
|
843
|
+
export const de_GetResolverQueryLogConfigPolicyCommand = async (output, context) => {
|
|
2203
844
|
if (output.statusCode >= 300) {
|
|
2204
|
-
return
|
|
845
|
+
return de_CommandError(output, context);
|
|
2205
846
|
}
|
|
2206
847
|
const data = await parseBody(output.body, context);
|
|
2207
848
|
let contents = {};
|
|
@@ -2212,37 +853,9 @@ export const de_ListFirewallDomainListsCommand = async (output, context) => {
|
|
|
2212
853
|
};
|
|
2213
854
|
return response;
|
|
2214
855
|
};
|
|
2215
|
-
const
|
|
2216
|
-
const parsedOutput = {
|
|
2217
|
-
...output,
|
|
2218
|
-
body: await parseErrorBody(output.body, context),
|
|
2219
|
-
};
|
|
2220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
|
-
switch (errorCode) {
|
|
2222
|
-
case "AccessDeniedException":
|
|
2223
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2224
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "InternalServiceErrorException":
|
|
2226
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2227
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ThrottlingException":
|
|
2229
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2230
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "ValidationException":
|
|
2232
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2233
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2234
|
-
default:
|
|
2235
|
-
const parsedBody = parsedOutput.body;
|
|
2236
|
-
return throwDefaultError({
|
|
2237
|
-
output,
|
|
2238
|
-
parsedBody,
|
|
2239
|
-
errorCode,
|
|
2240
|
-
});
|
|
2241
|
-
}
|
|
2242
|
-
};
|
|
2243
|
-
export const de_ListFirewallDomainsCommand = async (output, context) => {
|
|
856
|
+
export const de_GetResolverRuleCommand = async (output, context) => {
|
|
2244
857
|
if (output.statusCode >= 300) {
|
|
2245
|
-
return
|
|
858
|
+
return de_CommandError(output, context);
|
|
2246
859
|
}
|
|
2247
860
|
const data = await parseBody(output.body, context);
|
|
2248
861
|
let contents = {};
|
|
@@ -2253,40 +866,9 @@ export const de_ListFirewallDomainsCommand = async (output, context) => {
|
|
|
2253
866
|
};
|
|
2254
867
|
return response;
|
|
2255
868
|
};
|
|
2256
|
-
const
|
|
2257
|
-
const parsedOutput = {
|
|
2258
|
-
...output,
|
|
2259
|
-
body: await parseErrorBody(output.body, context),
|
|
2260
|
-
};
|
|
2261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
|
-
switch (errorCode) {
|
|
2263
|
-
case "AccessDeniedException":
|
|
2264
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2265
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "InternalServiceErrorException":
|
|
2267
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2268
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "ResourceNotFoundException":
|
|
2270
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2271
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "ThrottlingException":
|
|
2273
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2274
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "ValidationException":
|
|
2276
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2277
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2278
|
-
default:
|
|
2279
|
-
const parsedBody = parsedOutput.body;
|
|
2280
|
-
return throwDefaultError({
|
|
2281
|
-
output,
|
|
2282
|
-
parsedBody,
|
|
2283
|
-
errorCode,
|
|
2284
|
-
});
|
|
2285
|
-
}
|
|
2286
|
-
};
|
|
2287
|
-
export const de_ListFirewallRuleGroupAssociationsCommand = async (output, context) => {
|
|
869
|
+
export const de_GetResolverRuleAssociationCommand = async (output, context) => {
|
|
2288
870
|
if (output.statusCode >= 300) {
|
|
2289
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
2290
872
|
}
|
|
2291
873
|
const data = await parseBody(output.body, context);
|
|
2292
874
|
let contents = {};
|
|
@@ -2297,37 +879,9 @@ export const de_ListFirewallRuleGroupAssociationsCommand = async (output, contex
|
|
|
2297
879
|
};
|
|
2298
880
|
return response;
|
|
2299
881
|
};
|
|
2300
|
-
const
|
|
2301
|
-
const parsedOutput = {
|
|
2302
|
-
...output,
|
|
2303
|
-
body: await parseErrorBody(output.body, context),
|
|
2304
|
-
};
|
|
2305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
|
-
switch (errorCode) {
|
|
2307
|
-
case "AccessDeniedException":
|
|
2308
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2309
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2310
|
-
case "InternalServiceErrorException":
|
|
2311
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2312
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "ThrottlingException":
|
|
2314
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2315
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "ValidationException":
|
|
2317
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2318
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2319
|
-
default:
|
|
2320
|
-
const parsedBody = parsedOutput.body;
|
|
2321
|
-
return throwDefaultError({
|
|
2322
|
-
output,
|
|
2323
|
-
parsedBody,
|
|
2324
|
-
errorCode,
|
|
2325
|
-
});
|
|
2326
|
-
}
|
|
2327
|
-
};
|
|
2328
|
-
export const de_ListFirewallRuleGroupsCommand = async (output, context) => {
|
|
882
|
+
export const de_GetResolverRulePolicyCommand = async (output, context) => {
|
|
2329
883
|
if (output.statusCode >= 300) {
|
|
2330
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
2331
885
|
}
|
|
2332
886
|
const data = await parseBody(output.body, context);
|
|
2333
887
|
let contents = {};
|
|
@@ -2338,37 +892,9 @@ export const de_ListFirewallRuleGroupsCommand = async (output, context) => {
|
|
|
2338
892
|
};
|
|
2339
893
|
return response;
|
|
2340
894
|
};
|
|
2341
|
-
const
|
|
2342
|
-
const parsedOutput = {
|
|
2343
|
-
...output,
|
|
2344
|
-
body: await parseErrorBody(output.body, context),
|
|
2345
|
-
};
|
|
2346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2347
|
-
switch (errorCode) {
|
|
2348
|
-
case "AccessDeniedException":
|
|
2349
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "InternalServiceErrorException":
|
|
2352
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2353
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "ThrottlingException":
|
|
2355
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2356
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ValidationException":
|
|
2358
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2359
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2360
|
-
default:
|
|
2361
|
-
const parsedBody = parsedOutput.body;
|
|
2362
|
-
return throwDefaultError({
|
|
2363
|
-
output,
|
|
2364
|
-
parsedBody,
|
|
2365
|
-
errorCode,
|
|
2366
|
-
});
|
|
2367
|
-
}
|
|
2368
|
-
};
|
|
2369
|
-
export const de_ListFirewallRulesCommand = async (output, context) => {
|
|
895
|
+
export const de_ImportFirewallDomainsCommand = async (output, context) => {
|
|
2370
896
|
if (output.statusCode >= 300) {
|
|
2371
|
-
return
|
|
897
|
+
return de_CommandError(output, context);
|
|
2372
898
|
}
|
|
2373
899
|
const data = await parseBody(output.body, context);
|
|
2374
900
|
let contents = {};
|
|
@@ -2379,40 +905,9 @@ export const de_ListFirewallRulesCommand = async (output, context) => {
|
|
|
2379
905
|
};
|
|
2380
906
|
return response;
|
|
2381
907
|
};
|
|
2382
|
-
const
|
|
2383
|
-
const parsedOutput = {
|
|
2384
|
-
...output,
|
|
2385
|
-
body: await parseErrorBody(output.body, context),
|
|
2386
|
-
};
|
|
2387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
-
switch (errorCode) {
|
|
2389
|
-
case "AccessDeniedException":
|
|
2390
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "InternalServiceErrorException":
|
|
2393
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2394
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "ResourceNotFoundException":
|
|
2396
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "ThrottlingException":
|
|
2399
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "ValidationException":
|
|
2402
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2404
|
-
default:
|
|
2405
|
-
const parsedBody = parsedOutput.body;
|
|
2406
|
-
return throwDefaultError({
|
|
2407
|
-
output,
|
|
2408
|
-
parsedBody,
|
|
2409
|
-
errorCode,
|
|
2410
|
-
});
|
|
2411
|
-
}
|
|
2412
|
-
};
|
|
2413
|
-
export const de_ListOutpostResolversCommand = async (output, context) => {
|
|
908
|
+
export const de_ListFirewallConfigsCommand = async (output, context) => {
|
|
2414
909
|
if (output.statusCode >= 300) {
|
|
2415
|
-
return
|
|
910
|
+
return de_CommandError(output, context);
|
|
2416
911
|
}
|
|
2417
912
|
const data = await parseBody(output.body, context);
|
|
2418
913
|
let contents = {};
|
|
@@ -2423,40 +918,9 @@ export const de_ListOutpostResolversCommand = async (output, context) => {
|
|
|
2423
918
|
};
|
|
2424
919
|
return response;
|
|
2425
920
|
};
|
|
2426
|
-
const
|
|
2427
|
-
const parsedOutput = {
|
|
2428
|
-
...output,
|
|
2429
|
-
body: await parseErrorBody(output.body, context),
|
|
2430
|
-
};
|
|
2431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
-
switch (errorCode) {
|
|
2433
|
-
case "AccessDeniedException":
|
|
2434
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2435
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "InternalServiceErrorException":
|
|
2437
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2438
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ResourceNotFoundException":
|
|
2440
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ThrottlingException":
|
|
2443
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "ValidationException":
|
|
2446
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2448
|
-
default:
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
return throwDefaultError({
|
|
2451
|
-
output,
|
|
2452
|
-
parsedBody,
|
|
2453
|
-
errorCode,
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
};
|
|
2457
|
-
export const de_ListResolverConfigsCommand = async (output, context) => {
|
|
921
|
+
export const de_ListFirewallDomainListsCommand = async (output, context) => {
|
|
2458
922
|
if (output.statusCode >= 300) {
|
|
2459
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
2460
924
|
}
|
|
2461
925
|
const data = await parseBody(output.body, context);
|
|
2462
926
|
let contents = {};
|
|
@@ -2467,46 +931,9 @@ export const de_ListResolverConfigsCommand = async (output, context) => {
|
|
|
2467
931
|
};
|
|
2468
932
|
return response;
|
|
2469
933
|
};
|
|
2470
|
-
const
|
|
2471
|
-
const parsedOutput = {
|
|
2472
|
-
...output,
|
|
2473
|
-
body: await parseErrorBody(output.body, context),
|
|
2474
|
-
};
|
|
2475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
-
switch (errorCode) {
|
|
2477
|
-
case "AccessDeniedException":
|
|
2478
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "InternalServiceErrorException":
|
|
2481
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2482
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "InvalidNextTokenException":
|
|
2484
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2485
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "InvalidParameterException":
|
|
2487
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2488
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "InvalidRequestException":
|
|
2490
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2491
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "ThrottlingException":
|
|
2493
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "ValidationException":
|
|
2496
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2497
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode,
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
};
|
|
2507
|
-
export const de_ListResolverDnssecConfigsCommand = async (output, context) => {
|
|
934
|
+
export const de_ListFirewallDomainsCommand = async (output, context) => {
|
|
2508
935
|
if (output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
936
|
+
return de_CommandError(output, context);
|
|
2510
937
|
}
|
|
2511
938
|
const data = await parseBody(output.body, context);
|
|
2512
939
|
let contents = {};
|
|
@@ -2517,43 +944,9 @@ export const de_ListResolverDnssecConfigsCommand = async (output, context) => {
|
|
|
2517
944
|
};
|
|
2518
945
|
return response;
|
|
2519
946
|
};
|
|
2520
|
-
const
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context),
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "AccessDeniedException":
|
|
2528
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2529
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "InternalServiceErrorException":
|
|
2531
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2532
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "InvalidNextTokenException":
|
|
2534
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2535
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "InvalidParameterException":
|
|
2537
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2538
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "InvalidRequestException":
|
|
2540
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2541
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ThrottlingException":
|
|
2543
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2544
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody,
|
|
2550
|
-
errorCode,
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
};
|
|
2554
|
-
export const de_ListResolverEndpointIpAddressesCommand = async (output, context) => {
|
|
947
|
+
export const de_ListFirewallRuleGroupAssociationsCommand = async (output, context) => {
|
|
2555
948
|
if (output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
949
|
+
return de_CommandError(output, context);
|
|
2557
950
|
}
|
|
2558
951
|
const data = await parseBody(output.body, context);
|
|
2559
952
|
let contents = {};
|
|
@@ -2564,40 +957,9 @@ export const de_ListResolverEndpointIpAddressesCommand = async (output, context)
|
|
|
2564
957
|
};
|
|
2565
958
|
return response;
|
|
2566
959
|
};
|
|
2567
|
-
const
|
|
2568
|
-
const parsedOutput = {
|
|
2569
|
-
...output,
|
|
2570
|
-
body: await parseErrorBody(output.body, context),
|
|
2571
|
-
};
|
|
2572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
|
-
switch (errorCode) {
|
|
2574
|
-
case "InternalServiceErrorException":
|
|
2575
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2576
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "InvalidNextTokenException":
|
|
2578
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2579
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "InvalidParameterException":
|
|
2581
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2582
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "ResourceNotFoundException":
|
|
2584
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2585
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "ThrottlingException":
|
|
2587
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2588
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2589
|
-
default:
|
|
2590
|
-
const parsedBody = parsedOutput.body;
|
|
2591
|
-
return throwDefaultError({
|
|
2592
|
-
output,
|
|
2593
|
-
parsedBody,
|
|
2594
|
-
errorCode,
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
};
|
|
2598
|
-
export const de_ListResolverEndpointsCommand = async (output, context) => {
|
|
960
|
+
export const de_ListFirewallRuleGroupsCommand = async (output, context) => {
|
|
2599
961
|
if (output.statusCode >= 300) {
|
|
2600
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
2601
963
|
}
|
|
2602
964
|
const data = await parseBody(output.body, context);
|
|
2603
965
|
let contents = {};
|
|
@@ -2608,40 +970,9 @@ export const de_ListResolverEndpointsCommand = async (output, context) => {
|
|
|
2608
970
|
};
|
|
2609
971
|
return response;
|
|
2610
972
|
};
|
|
2611
|
-
const
|
|
2612
|
-
const parsedOutput = {
|
|
2613
|
-
...output,
|
|
2614
|
-
body: await parseErrorBody(output.body, context),
|
|
2615
|
-
};
|
|
2616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
|
-
switch (errorCode) {
|
|
2618
|
-
case "InternalServiceErrorException":
|
|
2619
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2620
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "InvalidNextTokenException":
|
|
2622
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2623
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "InvalidParameterException":
|
|
2625
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2626
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "InvalidRequestException":
|
|
2628
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2629
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ThrottlingException":
|
|
2631
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2632
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2633
|
-
default:
|
|
2634
|
-
const parsedBody = parsedOutput.body;
|
|
2635
|
-
return throwDefaultError({
|
|
2636
|
-
output,
|
|
2637
|
-
parsedBody,
|
|
2638
|
-
errorCode,
|
|
2639
|
-
});
|
|
2640
|
-
}
|
|
2641
|
-
};
|
|
2642
|
-
export const de_ListResolverQueryLogConfigAssociationsCommand = async (output, context) => {
|
|
973
|
+
export const de_ListFirewallRulesCommand = async (output, context) => {
|
|
2643
974
|
if (output.statusCode >= 300) {
|
|
2644
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
2645
976
|
}
|
|
2646
977
|
const data = await parseBody(output.body, context);
|
|
2647
978
|
let contents = {};
|
|
@@ -2652,43 +983,9 @@ export const de_ListResolverQueryLogConfigAssociationsCommand = async (output, c
|
|
|
2652
983
|
};
|
|
2653
984
|
return response;
|
|
2654
985
|
};
|
|
2655
|
-
const
|
|
2656
|
-
const parsedOutput = {
|
|
2657
|
-
...output,
|
|
2658
|
-
body: await parseErrorBody(output.body, context),
|
|
2659
|
-
};
|
|
2660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2661
|
-
switch (errorCode) {
|
|
2662
|
-
case "AccessDeniedException":
|
|
2663
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2664
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "InternalServiceErrorException":
|
|
2666
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2667
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "InvalidParameterException":
|
|
2669
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2670
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "InvalidRequestException":
|
|
2672
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2673
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "LimitExceededException":
|
|
2675
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
2676
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ThrottlingException":
|
|
2678
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2679
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode,
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
};
|
|
2689
|
-
export const de_ListResolverQueryLogConfigsCommand = async (output, context) => {
|
|
986
|
+
export const de_ListOutpostResolversCommand = async (output, context) => {
|
|
2690
987
|
if (output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
988
|
+
return de_CommandError(output, context);
|
|
2692
989
|
}
|
|
2693
990
|
const data = await parseBody(output.body, context);
|
|
2694
991
|
let contents = {};
|
|
@@ -2699,43 +996,9 @@ export const de_ListResolverQueryLogConfigsCommand = async (output, context) =>
|
|
|
2699
996
|
};
|
|
2700
997
|
return response;
|
|
2701
998
|
};
|
|
2702
|
-
const
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context),
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "AccessDeniedException":
|
|
2710
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "InternalServiceErrorException":
|
|
2713
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2714
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "InvalidNextTokenException":
|
|
2716
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2717
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "InvalidParameterException":
|
|
2719
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2720
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "InvalidRequestException":
|
|
2722
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2723
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ThrottlingException":
|
|
2725
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2727
|
-
default:
|
|
2728
|
-
const parsedBody = parsedOutput.body;
|
|
2729
|
-
return throwDefaultError({
|
|
2730
|
-
output,
|
|
2731
|
-
parsedBody,
|
|
2732
|
-
errorCode,
|
|
2733
|
-
});
|
|
2734
|
-
}
|
|
2735
|
-
};
|
|
2736
|
-
export const de_ListResolverRuleAssociationsCommand = async (output, context) => {
|
|
999
|
+
export const de_ListResolverConfigsCommand = async (output, context) => {
|
|
2737
1000
|
if (output.statusCode >= 300) {
|
|
2738
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
2739
1002
|
}
|
|
2740
1003
|
const data = await parseBody(output.body, context);
|
|
2741
1004
|
let contents = {};
|
|
@@ -2746,40 +1009,22 @@ export const de_ListResolverRuleAssociationsCommand = async (output, context) =>
|
|
|
2746
1009
|
};
|
|
2747
1010
|
return response;
|
|
2748
1011
|
};
|
|
2749
|
-
const
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
body: await parseErrorBody(output.body, context),
|
|
2753
|
-
};
|
|
2754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
|
-
switch (errorCode) {
|
|
2756
|
-
case "InternalServiceErrorException":
|
|
2757
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2758
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "InvalidNextTokenException":
|
|
2760
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2761
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "InvalidParameterException":
|
|
2763
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2764
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "InvalidRequestException":
|
|
2766
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2767
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "ThrottlingException":
|
|
2769
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2770
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2771
|
-
default:
|
|
2772
|
-
const parsedBody = parsedOutput.body;
|
|
2773
|
-
return throwDefaultError({
|
|
2774
|
-
output,
|
|
2775
|
-
parsedBody,
|
|
2776
|
-
errorCode,
|
|
2777
|
-
});
|
|
1012
|
+
export const de_ListResolverDnssecConfigsCommand = async (output, context) => {
|
|
1013
|
+
if (output.statusCode >= 300) {
|
|
1014
|
+
return de_CommandError(output, context);
|
|
2778
1015
|
}
|
|
1016
|
+
const data = await parseBody(output.body, context);
|
|
1017
|
+
let contents = {};
|
|
1018
|
+
contents = _json(data);
|
|
1019
|
+
const response = {
|
|
1020
|
+
$metadata: deserializeMetadata(output),
|
|
1021
|
+
...contents,
|
|
1022
|
+
};
|
|
1023
|
+
return response;
|
|
2779
1024
|
};
|
|
2780
|
-
export const
|
|
1025
|
+
export const de_ListResolverEndpointIpAddressesCommand = async (output, context) => {
|
|
2781
1026
|
if (output.statusCode >= 300) {
|
|
2782
|
-
return
|
|
1027
|
+
return de_CommandError(output, context);
|
|
2783
1028
|
}
|
|
2784
1029
|
const data = await parseBody(output.body, context);
|
|
2785
1030
|
let contents = {};
|
|
@@ -2790,40 +1035,22 @@ export const de_ListResolverRulesCommand = async (output, context) => {
|
|
|
2790
1035
|
};
|
|
2791
1036
|
return response;
|
|
2792
1037
|
};
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
body: await parseErrorBody(output.body, context),
|
|
2797
|
-
};
|
|
2798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2799
|
-
switch (errorCode) {
|
|
2800
|
-
case "InternalServiceErrorException":
|
|
2801
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2802
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "InvalidNextTokenException":
|
|
2804
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2805
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "InvalidParameterException":
|
|
2807
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2808
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "InvalidRequestException":
|
|
2810
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2811
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2812
|
-
case "ThrottlingException":
|
|
2813
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2814
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2815
|
-
default:
|
|
2816
|
-
const parsedBody = parsedOutput.body;
|
|
2817
|
-
return throwDefaultError({
|
|
2818
|
-
output,
|
|
2819
|
-
parsedBody,
|
|
2820
|
-
errorCode,
|
|
2821
|
-
});
|
|
1038
|
+
export const de_ListResolverEndpointsCommand = async (output, context) => {
|
|
1039
|
+
if (output.statusCode >= 300) {
|
|
1040
|
+
return de_CommandError(output, context);
|
|
2822
1041
|
}
|
|
1042
|
+
const data = await parseBody(output.body, context);
|
|
1043
|
+
let contents = {};
|
|
1044
|
+
contents = _json(data);
|
|
1045
|
+
const response = {
|
|
1046
|
+
$metadata: deserializeMetadata(output),
|
|
1047
|
+
...contents,
|
|
1048
|
+
};
|
|
1049
|
+
return response;
|
|
2823
1050
|
};
|
|
2824
|
-
export const
|
|
1051
|
+
export const de_ListResolverQueryLogConfigAssociationsCommand = async (output, context) => {
|
|
2825
1052
|
if (output.statusCode >= 300) {
|
|
2826
|
-
return
|
|
1053
|
+
return de_CommandError(output, context);
|
|
2827
1054
|
}
|
|
2828
1055
|
const data = await parseBody(output.body, context);
|
|
2829
1056
|
let contents = {};
|
|
@@ -2834,43 +1061,22 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2834
1061
|
};
|
|
2835
1062
|
return response;
|
|
2836
1063
|
};
|
|
2837
|
-
const
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
body: await parseErrorBody(output.body, context),
|
|
2841
|
-
};
|
|
2842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
|
-
switch (errorCode) {
|
|
2844
|
-
case "InternalServiceErrorException":
|
|
2845
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2846
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "InvalidNextTokenException":
|
|
2848
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2849
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "InvalidParameterException":
|
|
2851
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2852
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "InvalidRequestException":
|
|
2854
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2855
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2856
|
-
case "ResourceNotFoundException":
|
|
2857
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2858
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2859
|
-
case "ThrottlingException":
|
|
2860
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2861
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2862
|
-
default:
|
|
2863
|
-
const parsedBody = parsedOutput.body;
|
|
2864
|
-
return throwDefaultError({
|
|
2865
|
-
output,
|
|
2866
|
-
parsedBody,
|
|
2867
|
-
errorCode,
|
|
2868
|
-
});
|
|
1064
|
+
export const de_ListResolverQueryLogConfigsCommand = async (output, context) => {
|
|
1065
|
+
if (output.statusCode >= 300) {
|
|
1066
|
+
return de_CommandError(output, context);
|
|
2869
1067
|
}
|
|
1068
|
+
const data = await parseBody(output.body, context);
|
|
1069
|
+
let contents = {};
|
|
1070
|
+
contents = _json(data);
|
|
1071
|
+
const response = {
|
|
1072
|
+
$metadata: deserializeMetadata(output),
|
|
1073
|
+
...contents,
|
|
1074
|
+
};
|
|
1075
|
+
return response;
|
|
2870
1076
|
};
|
|
2871
|
-
export const
|
|
1077
|
+
export const de_ListResolverRuleAssociationsCommand = async (output, context) => {
|
|
2872
1078
|
if (output.statusCode >= 300) {
|
|
2873
|
-
return
|
|
1079
|
+
return de_CommandError(output, context);
|
|
2874
1080
|
}
|
|
2875
1081
|
const data = await parseBody(output.body, context);
|
|
2876
1082
|
let contents = {};
|
|
@@ -2881,40 +1087,22 @@ export const de_PutFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
|
2881
1087
|
};
|
|
2882
1088
|
return response;
|
|
2883
1089
|
};
|
|
2884
|
-
const
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
body: await parseErrorBody(output.body, context),
|
|
2888
|
-
};
|
|
2889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2890
|
-
switch (errorCode) {
|
|
2891
|
-
case "AccessDeniedException":
|
|
2892
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2893
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2894
|
-
case "InternalServiceErrorException":
|
|
2895
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2896
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2897
|
-
case "ResourceNotFoundException":
|
|
2898
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2900
|
-
case "ThrottlingException":
|
|
2901
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2903
|
-
case "ValidationException":
|
|
2904
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2906
|
-
default:
|
|
2907
|
-
const parsedBody = parsedOutput.body;
|
|
2908
|
-
return throwDefaultError({
|
|
2909
|
-
output,
|
|
2910
|
-
parsedBody,
|
|
2911
|
-
errorCode,
|
|
2912
|
-
});
|
|
1090
|
+
export const de_ListResolverRulesCommand = async (output, context) => {
|
|
1091
|
+
if (output.statusCode >= 300) {
|
|
1092
|
+
return de_CommandError(output, context);
|
|
2913
1093
|
}
|
|
1094
|
+
const data = await parseBody(output.body, context);
|
|
1095
|
+
let contents = {};
|
|
1096
|
+
contents = _json(data);
|
|
1097
|
+
const response = {
|
|
1098
|
+
$metadata: deserializeMetadata(output),
|
|
1099
|
+
...contents,
|
|
1100
|
+
};
|
|
1101
|
+
return response;
|
|
2914
1102
|
};
|
|
2915
|
-
export const
|
|
1103
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2916
1104
|
if (output.statusCode >= 300) {
|
|
2917
|
-
return
|
|
1105
|
+
return de_CommandError(output, context);
|
|
2918
1106
|
}
|
|
2919
1107
|
const data = await parseBody(output.body, context);
|
|
2920
1108
|
let contents = {};
|
|
@@ -2925,43 +1113,22 @@ export const de_PutResolverQueryLogConfigPolicyCommand = async (output, context)
|
|
|
2925
1113
|
};
|
|
2926
1114
|
return response;
|
|
2927
1115
|
};
|
|
2928
|
-
const
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
body: await parseErrorBody(output.body, context),
|
|
2932
|
-
};
|
|
2933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
|
-
switch (errorCode) {
|
|
2935
|
-
case "AccessDeniedException":
|
|
2936
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2937
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "InternalServiceErrorException":
|
|
2939
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2940
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "InvalidParameterException":
|
|
2942
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2943
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2944
|
-
case "InvalidPolicyDocument":
|
|
2945
|
-
case "com.amazonaws.route53resolver#InvalidPolicyDocument":
|
|
2946
|
-
throw await de_InvalidPolicyDocumentRes(parsedOutput, context);
|
|
2947
|
-
case "InvalidRequestException":
|
|
2948
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2949
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "UnknownResourceException":
|
|
2951
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
2952
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2953
|
-
default:
|
|
2954
|
-
const parsedBody = parsedOutput.body;
|
|
2955
|
-
return throwDefaultError({
|
|
2956
|
-
output,
|
|
2957
|
-
parsedBody,
|
|
2958
|
-
errorCode,
|
|
2959
|
-
});
|
|
1116
|
+
export const de_PutFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
1117
|
+
if (output.statusCode >= 300) {
|
|
1118
|
+
return de_CommandError(output, context);
|
|
2960
1119
|
}
|
|
1120
|
+
const data = await parseBody(output.body, context);
|
|
1121
|
+
let contents = {};
|
|
1122
|
+
contents = _json(data);
|
|
1123
|
+
const response = {
|
|
1124
|
+
$metadata: deserializeMetadata(output),
|
|
1125
|
+
...contents,
|
|
1126
|
+
};
|
|
1127
|
+
return response;
|
|
2961
1128
|
};
|
|
2962
|
-
export const
|
|
1129
|
+
export const de_PutResolverQueryLogConfigPolicyCommand = async (output, context) => {
|
|
2963
1130
|
if (output.statusCode >= 300) {
|
|
2964
|
-
return
|
|
1131
|
+
return de_CommandError(output, context);
|
|
2965
1132
|
}
|
|
2966
1133
|
const data = await parseBody(output.body, context);
|
|
2967
1134
|
let contents = {};
|
|
@@ -2972,40 +1139,22 @@ export const de_PutResolverRulePolicyCommand = async (output, context) => {
|
|
|
2972
1139
|
};
|
|
2973
1140
|
return response;
|
|
2974
1141
|
};
|
|
2975
|
-
const
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
body: await parseErrorBody(output.body, context),
|
|
2979
|
-
};
|
|
2980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2981
|
-
switch (errorCode) {
|
|
2982
|
-
case "AccessDeniedException":
|
|
2983
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2984
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "InternalServiceErrorException":
|
|
2986
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2987
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "InvalidParameterException":
|
|
2989
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2990
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "InvalidPolicyDocument":
|
|
2992
|
-
case "com.amazonaws.route53resolver#InvalidPolicyDocument":
|
|
2993
|
-
throw await de_InvalidPolicyDocumentRes(parsedOutput, context);
|
|
2994
|
-
case "UnknownResourceException":
|
|
2995
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
2996
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2997
|
-
default:
|
|
2998
|
-
const parsedBody = parsedOutput.body;
|
|
2999
|
-
return throwDefaultError({
|
|
3000
|
-
output,
|
|
3001
|
-
parsedBody,
|
|
3002
|
-
errorCode,
|
|
3003
|
-
});
|
|
1142
|
+
export const de_PutResolverRulePolicyCommand = async (output, context) => {
|
|
1143
|
+
if (output.statusCode >= 300) {
|
|
1144
|
+
return de_CommandError(output, context);
|
|
3004
1145
|
}
|
|
1146
|
+
const data = await parseBody(output.body, context);
|
|
1147
|
+
let contents = {};
|
|
1148
|
+
contents = _json(data);
|
|
1149
|
+
const response = {
|
|
1150
|
+
$metadata: deserializeMetadata(output),
|
|
1151
|
+
...contents,
|
|
1152
|
+
};
|
|
1153
|
+
return response;
|
|
3005
1154
|
};
|
|
3006
1155
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3007
1156
|
if (output.statusCode >= 300) {
|
|
3008
|
-
return
|
|
1157
|
+
return de_CommandError(output, context);
|
|
3009
1158
|
}
|
|
3010
1159
|
const data = await parseBody(output.body, context);
|
|
3011
1160
|
let contents = {};
|
|
@@ -3016,46 +1165,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3016
1165
|
};
|
|
3017
1166
|
return response;
|
|
3018
1167
|
};
|
|
3019
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3020
|
-
const parsedOutput = {
|
|
3021
|
-
...output,
|
|
3022
|
-
body: await parseErrorBody(output.body, context),
|
|
3023
|
-
};
|
|
3024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3025
|
-
switch (errorCode) {
|
|
3026
|
-
case "InternalServiceErrorException":
|
|
3027
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3028
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "InvalidParameterException":
|
|
3030
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3031
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "InvalidRequestException":
|
|
3033
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3034
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3035
|
-
case "InvalidTagException":
|
|
3036
|
-
case "com.amazonaws.route53resolver#InvalidTagException":
|
|
3037
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "LimitExceededException":
|
|
3039
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3040
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3041
|
-
case "ResourceNotFoundException":
|
|
3042
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3043
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "ThrottlingException":
|
|
3045
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3047
|
-
default:
|
|
3048
|
-
const parsedBody = parsedOutput.body;
|
|
3049
|
-
return throwDefaultError({
|
|
3050
|
-
output,
|
|
3051
|
-
parsedBody,
|
|
3052
|
-
errorCode,
|
|
3053
|
-
});
|
|
3054
|
-
}
|
|
3055
|
-
};
|
|
3056
1168
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3057
1169
|
if (output.statusCode >= 300) {
|
|
3058
|
-
return
|
|
1170
|
+
return de_CommandError(output, context);
|
|
3059
1171
|
}
|
|
3060
1172
|
const data = await parseBody(output.body, context);
|
|
3061
1173
|
let contents = {};
|
|
@@ -3066,40 +1178,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3066
1178
|
};
|
|
3067
1179
|
return response;
|
|
3068
1180
|
};
|
|
3069
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3070
|
-
const parsedOutput = {
|
|
3071
|
-
...output,
|
|
3072
|
-
body: await parseErrorBody(output.body, context),
|
|
3073
|
-
};
|
|
3074
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3075
|
-
switch (errorCode) {
|
|
3076
|
-
case "InternalServiceErrorException":
|
|
3077
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3078
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3079
|
-
case "InvalidParameterException":
|
|
3080
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3081
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "InvalidRequestException":
|
|
3083
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3084
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "ResourceNotFoundException":
|
|
3086
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3088
|
-
case "ThrottlingException":
|
|
3089
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3090
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3091
|
-
default:
|
|
3092
|
-
const parsedBody = parsedOutput.body;
|
|
3093
|
-
return throwDefaultError({
|
|
3094
|
-
output,
|
|
3095
|
-
parsedBody,
|
|
3096
|
-
errorCode,
|
|
3097
|
-
});
|
|
3098
|
-
}
|
|
3099
|
-
};
|
|
3100
1181
|
export const de_UpdateFirewallConfigCommand = async (output, context) => {
|
|
3101
1182
|
if (output.statusCode >= 300) {
|
|
3102
|
-
return
|
|
1183
|
+
return de_CommandError(output, context);
|
|
3103
1184
|
}
|
|
3104
1185
|
const data = await parseBody(output.body, context);
|
|
3105
1186
|
let contents = {};
|
|
@@ -3110,40 +1191,9 @@ export const de_UpdateFirewallConfigCommand = async (output, context) => {
|
|
|
3110
1191
|
};
|
|
3111
1192
|
return response;
|
|
3112
1193
|
};
|
|
3113
|
-
const de_UpdateFirewallConfigCommandError = async (output, context) => {
|
|
3114
|
-
const parsedOutput = {
|
|
3115
|
-
...output,
|
|
3116
|
-
body: await parseErrorBody(output.body, context),
|
|
3117
|
-
};
|
|
3118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
|
-
switch (errorCode) {
|
|
3120
|
-
case "AccessDeniedException":
|
|
3121
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3122
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "InternalServiceErrorException":
|
|
3124
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3125
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ResourceNotFoundException":
|
|
3127
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "ThrottlingException":
|
|
3130
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3131
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "ValidationException":
|
|
3133
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3134
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3135
|
-
default:
|
|
3136
|
-
const parsedBody = parsedOutput.body;
|
|
3137
|
-
return throwDefaultError({
|
|
3138
|
-
output,
|
|
3139
|
-
parsedBody,
|
|
3140
|
-
errorCode,
|
|
3141
|
-
});
|
|
3142
|
-
}
|
|
3143
|
-
};
|
|
3144
1194
|
export const de_UpdateFirewallDomainsCommand = async (output, context) => {
|
|
3145
1195
|
if (output.statusCode >= 300) {
|
|
3146
|
-
return
|
|
1196
|
+
return de_CommandError(output, context);
|
|
3147
1197
|
}
|
|
3148
1198
|
const data = await parseBody(output.body, context);
|
|
3149
1199
|
let contents = {};
|
|
@@ -3152,48 +1202,11 @@ export const de_UpdateFirewallDomainsCommand = async (output, context) => {
|
|
|
3152
1202
|
$metadata: deserializeMetadata(output),
|
|
3153
1203
|
...contents,
|
|
3154
1204
|
};
|
|
3155
|
-
return response;
|
|
3156
|
-
};
|
|
3157
|
-
const de_UpdateFirewallDomainsCommandError = async (output, context) => {
|
|
3158
|
-
const parsedOutput = {
|
|
3159
|
-
...output,
|
|
3160
|
-
body: await parseErrorBody(output.body, context),
|
|
3161
|
-
};
|
|
3162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3163
|
-
switch (errorCode) {
|
|
3164
|
-
case "AccessDeniedException":
|
|
3165
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3166
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3167
|
-
case "ConflictException":
|
|
3168
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3169
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "InternalServiceErrorException":
|
|
3171
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3172
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3173
|
-
case "LimitExceededException":
|
|
3174
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3175
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3176
|
-
case "ResourceNotFoundException":
|
|
3177
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3179
|
-
case "ThrottlingException":
|
|
3180
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3182
|
-
case "ValidationException":
|
|
3183
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3185
|
-
default:
|
|
3186
|
-
const parsedBody = parsedOutput.body;
|
|
3187
|
-
return throwDefaultError({
|
|
3188
|
-
output,
|
|
3189
|
-
parsedBody,
|
|
3190
|
-
errorCode,
|
|
3191
|
-
});
|
|
3192
|
-
}
|
|
1205
|
+
return response;
|
|
3193
1206
|
};
|
|
3194
1207
|
export const de_UpdateFirewallRuleCommand = async (output, context) => {
|
|
3195
1208
|
if (output.statusCode >= 300) {
|
|
3196
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
3197
1210
|
}
|
|
3198
1211
|
const data = await parseBody(output.body, context);
|
|
3199
1212
|
let contents = {};
|
|
@@ -3204,43 +1217,9 @@ export const de_UpdateFirewallRuleCommand = async (output, context) => {
|
|
|
3204
1217
|
};
|
|
3205
1218
|
return response;
|
|
3206
1219
|
};
|
|
3207
|
-
const de_UpdateFirewallRuleCommandError = async (output, context) => {
|
|
3208
|
-
const parsedOutput = {
|
|
3209
|
-
...output,
|
|
3210
|
-
body: await parseErrorBody(output.body, context),
|
|
3211
|
-
};
|
|
3212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3213
|
-
switch (errorCode) {
|
|
3214
|
-
case "AccessDeniedException":
|
|
3215
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "ConflictException":
|
|
3218
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3219
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "InternalServiceErrorException":
|
|
3221
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3222
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "ResourceNotFoundException":
|
|
3224
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3225
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "ThrottlingException":
|
|
3227
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3228
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "ValidationException":
|
|
3230
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3231
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3232
|
-
default:
|
|
3233
|
-
const parsedBody = parsedOutput.body;
|
|
3234
|
-
return throwDefaultError({
|
|
3235
|
-
output,
|
|
3236
|
-
parsedBody,
|
|
3237
|
-
errorCode,
|
|
3238
|
-
});
|
|
3239
|
-
}
|
|
3240
|
-
};
|
|
3241
1220
|
export const de_UpdateFirewallRuleGroupAssociationCommand = async (output, context) => {
|
|
3242
1221
|
if (output.statusCode >= 300) {
|
|
3243
|
-
return
|
|
1222
|
+
return de_CommandError(output, context);
|
|
3244
1223
|
}
|
|
3245
1224
|
const data = await parseBody(output.body, context);
|
|
3246
1225
|
let contents = {};
|
|
@@ -3251,43 +1230,9 @@ export const de_UpdateFirewallRuleGroupAssociationCommand = async (output, conte
|
|
|
3251
1230
|
};
|
|
3252
1231
|
return response;
|
|
3253
1232
|
};
|
|
3254
|
-
const de_UpdateFirewallRuleGroupAssociationCommandError = async (output, context) => {
|
|
3255
|
-
const parsedOutput = {
|
|
3256
|
-
...output,
|
|
3257
|
-
body: await parseErrorBody(output.body, context),
|
|
3258
|
-
};
|
|
3259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3260
|
-
switch (errorCode) {
|
|
3261
|
-
case "AccessDeniedException":
|
|
3262
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ConflictException":
|
|
3265
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3266
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "InternalServiceErrorException":
|
|
3268
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3269
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3270
|
-
case "ResourceNotFoundException":
|
|
3271
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3272
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "ThrottlingException":
|
|
3274
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ValidationException":
|
|
3277
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3279
|
-
default:
|
|
3280
|
-
const parsedBody = parsedOutput.body;
|
|
3281
|
-
return throwDefaultError({
|
|
3282
|
-
output,
|
|
3283
|
-
parsedBody,
|
|
3284
|
-
errorCode,
|
|
3285
|
-
});
|
|
3286
|
-
}
|
|
3287
|
-
};
|
|
3288
1233
|
export const de_UpdateOutpostResolverCommand = async (output, context) => {
|
|
3289
1234
|
if (output.statusCode >= 300) {
|
|
3290
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
3291
1236
|
}
|
|
3292
1237
|
const data = await parseBody(output.body, context);
|
|
3293
1238
|
let contents = {};
|
|
@@ -3298,46 +1243,9 @@ export const de_UpdateOutpostResolverCommand = async (output, context) => {
|
|
|
3298
1243
|
};
|
|
3299
1244
|
return response;
|
|
3300
1245
|
};
|
|
3301
|
-
const de_UpdateOutpostResolverCommandError = async (output, context) => {
|
|
3302
|
-
const parsedOutput = {
|
|
3303
|
-
...output,
|
|
3304
|
-
body: await parseErrorBody(output.body, context),
|
|
3305
|
-
};
|
|
3306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
|
-
switch (errorCode) {
|
|
3308
|
-
case "AccessDeniedException":
|
|
3309
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "ConflictException":
|
|
3312
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3313
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "InternalServiceErrorException":
|
|
3315
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3316
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "ResourceNotFoundException":
|
|
3318
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "ServiceQuotaExceededException":
|
|
3321
|
-
case "com.amazonaws.route53resolver#ServiceQuotaExceededException":
|
|
3322
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "ThrottlingException":
|
|
3324
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3325
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "ValidationException":
|
|
3327
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3328
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3329
|
-
default:
|
|
3330
|
-
const parsedBody = parsedOutput.body;
|
|
3331
|
-
return throwDefaultError({
|
|
3332
|
-
output,
|
|
3333
|
-
parsedBody,
|
|
3334
|
-
errorCode,
|
|
3335
|
-
});
|
|
3336
|
-
}
|
|
3337
|
-
};
|
|
3338
1246
|
export const de_UpdateResolverConfigCommand = async (output, context) => {
|
|
3339
1247
|
if (output.statusCode >= 300) {
|
|
3340
|
-
return
|
|
1248
|
+
return de_CommandError(output, context);
|
|
3341
1249
|
}
|
|
3342
1250
|
const data = await parseBody(output.body, context);
|
|
3343
1251
|
let contents = {};
|
|
@@ -3348,52 +1256,9 @@ export const de_UpdateResolverConfigCommand = async (output, context) => {
|
|
|
3348
1256
|
};
|
|
3349
1257
|
return response;
|
|
3350
1258
|
};
|
|
3351
|
-
const de_UpdateResolverConfigCommandError = async (output, context) => {
|
|
3352
|
-
const parsedOutput = {
|
|
3353
|
-
...output,
|
|
3354
|
-
body: await parseErrorBody(output.body, context),
|
|
3355
|
-
};
|
|
3356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3357
|
-
switch (errorCode) {
|
|
3358
|
-
case "AccessDeniedException":
|
|
3359
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3360
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "InternalServiceErrorException":
|
|
3362
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3363
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "InvalidParameterException":
|
|
3365
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3366
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "InvalidRequestException":
|
|
3368
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3369
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "LimitExceededException":
|
|
3371
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3372
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "ResourceNotFoundException":
|
|
3374
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "ResourceUnavailableException":
|
|
3377
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
3378
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "ThrottlingException":
|
|
3380
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "ValidationException":
|
|
3383
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3384
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3385
|
-
default:
|
|
3386
|
-
const parsedBody = parsedOutput.body;
|
|
3387
|
-
return throwDefaultError({
|
|
3388
|
-
output,
|
|
3389
|
-
parsedBody,
|
|
3390
|
-
errorCode,
|
|
3391
|
-
});
|
|
3392
|
-
}
|
|
3393
|
-
};
|
|
3394
1259
|
export const de_UpdateResolverDnssecConfigCommand = async (output, context) => {
|
|
3395
1260
|
if (output.statusCode >= 300) {
|
|
3396
|
-
return
|
|
1261
|
+
return de_CommandError(output, context);
|
|
3397
1262
|
}
|
|
3398
1263
|
const data = await parseBody(output.body, context);
|
|
3399
1264
|
let contents = {};
|
|
@@ -3404,43 +1269,9 @@ export const de_UpdateResolverDnssecConfigCommand = async (output, context) => {
|
|
|
3404
1269
|
};
|
|
3405
1270
|
return response;
|
|
3406
1271
|
};
|
|
3407
|
-
const de_UpdateResolverDnssecConfigCommandError = async (output, context) => {
|
|
3408
|
-
const parsedOutput = {
|
|
3409
|
-
...output,
|
|
3410
|
-
body: await parseErrorBody(output.body, context),
|
|
3411
|
-
};
|
|
3412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3413
|
-
switch (errorCode) {
|
|
3414
|
-
case "AccessDeniedException":
|
|
3415
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "InternalServiceErrorException":
|
|
3418
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3419
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "InvalidParameterException":
|
|
3421
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3422
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "InvalidRequestException":
|
|
3424
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3425
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3426
|
-
case "ResourceNotFoundException":
|
|
3427
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3428
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3429
|
-
case "ThrottlingException":
|
|
3430
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3431
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3432
|
-
default:
|
|
3433
|
-
const parsedBody = parsedOutput.body;
|
|
3434
|
-
return throwDefaultError({
|
|
3435
|
-
output,
|
|
3436
|
-
parsedBody,
|
|
3437
|
-
errorCode,
|
|
3438
|
-
});
|
|
3439
|
-
}
|
|
3440
|
-
};
|
|
3441
1272
|
export const de_UpdateResolverEndpointCommand = async (output, context) => {
|
|
3442
1273
|
if (output.statusCode >= 300) {
|
|
3443
|
-
return
|
|
1274
|
+
return de_CommandError(output, context);
|
|
3444
1275
|
}
|
|
3445
1276
|
const data = await parseBody(output.body, context);
|
|
3446
1277
|
let contents = {};
|
|
@@ -3451,43 +1282,9 @@ export const de_UpdateResolverEndpointCommand = async (output, context) => {
|
|
|
3451
1282
|
};
|
|
3452
1283
|
return response;
|
|
3453
1284
|
};
|
|
3454
|
-
const de_UpdateResolverEndpointCommandError = async (output, context) => {
|
|
3455
|
-
const parsedOutput = {
|
|
3456
|
-
...output,
|
|
3457
|
-
body: await parseErrorBody(output.body, context),
|
|
3458
|
-
};
|
|
3459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3460
|
-
switch (errorCode) {
|
|
3461
|
-
case "AccessDeniedException":
|
|
3462
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3463
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3464
|
-
case "InternalServiceErrorException":
|
|
3465
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3466
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "InvalidParameterException":
|
|
3468
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3469
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "InvalidRequestException":
|
|
3471
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3472
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "ResourceNotFoundException":
|
|
3474
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "ThrottlingException":
|
|
3477
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3478
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3479
|
-
default:
|
|
3480
|
-
const parsedBody = parsedOutput.body;
|
|
3481
|
-
return throwDefaultError({
|
|
3482
|
-
output,
|
|
3483
|
-
parsedBody,
|
|
3484
|
-
errorCode,
|
|
3485
|
-
});
|
|
3486
|
-
}
|
|
3487
|
-
};
|
|
3488
1285
|
export const de_UpdateResolverRuleCommand = async (output, context) => {
|
|
3489
1286
|
if (output.statusCode >= 300) {
|
|
3490
|
-
return
|
|
1287
|
+
return de_CommandError(output, context);
|
|
3491
1288
|
}
|
|
3492
1289
|
const data = await parseBody(output.body, context);
|
|
3493
1290
|
let contents = {};
|
|
@@ -3498,7 +1295,7 @@ export const de_UpdateResolverRuleCommand = async (output, context) => {
|
|
|
3498
1295
|
};
|
|
3499
1296
|
return response;
|
|
3500
1297
|
};
|
|
3501
|
-
const
|
|
1298
|
+
const de_CommandError = async (output, context) => {
|
|
3502
1299
|
const parsedOutput = {
|
|
3503
1300
|
...output,
|
|
3504
1301
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3508,27 +1305,54 @@ const de_UpdateResolverRuleCommandError = async (output, context) => {
|
|
|
3508
1305
|
case "AccessDeniedException":
|
|
3509
1306
|
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3510
1307
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1308
|
+
case "ConflictException":
|
|
1309
|
+
case "com.amazonaws.route53resolver#ConflictException":
|
|
1310
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3511
1311
|
case "InternalServiceErrorException":
|
|
3512
1312
|
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3513
1313
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "InvalidParameterException":
|
|
3515
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3516
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "InvalidRequestException":
|
|
3518
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3519
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3520
1314
|
case "LimitExceededException":
|
|
3521
1315
|
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3522
1316
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3523
1317
|
case "ResourceNotFoundException":
|
|
3524
1318
|
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3525
1319
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "ResourceUnavailableException":
|
|
3527
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
3528
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3529
1320
|
case "ThrottlingException":
|
|
3530
1321
|
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3531
1322
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1323
|
+
case "ValidationException":
|
|
1324
|
+
case "com.amazonaws.route53resolver#ValidationException":
|
|
1325
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1326
|
+
case "InvalidParameterException":
|
|
1327
|
+
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1328
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1329
|
+
case "InvalidRequestException":
|
|
1330
|
+
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1331
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1332
|
+
case "ResourceExistsException":
|
|
1333
|
+
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
1334
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1335
|
+
case "ResourceUnavailableException":
|
|
1336
|
+
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
1337
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1338
|
+
case "ServiceQuotaExceededException":
|
|
1339
|
+
case "com.amazonaws.route53resolver#ServiceQuotaExceededException":
|
|
1340
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1341
|
+
case "ResourceInUseException":
|
|
1342
|
+
case "com.amazonaws.route53resolver#ResourceInUseException":
|
|
1343
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "UnknownResourceException":
|
|
1345
|
+
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
1346
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "InvalidNextTokenException":
|
|
1348
|
+
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
1349
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "InvalidPolicyDocument":
|
|
1351
|
+
case "com.amazonaws.route53resolver#InvalidPolicyDocument":
|
|
1352
|
+
throw await de_InvalidPolicyDocumentRes(parsedOutput, context);
|
|
1353
|
+
case "InvalidTagException":
|
|
1354
|
+
case "com.amazonaws.route53resolver#InvalidTagException":
|
|
1355
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
3532
1356
|
default:
|
|
3533
1357
|
const parsedBody = parsedOutput.body;
|
|
3534
1358
|
return throwDefaultError({
|