@aws-sdk/client-network-firewall 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +155 -320
- package/dist-es/protocols/Aws_json1_0.js +249 -321
- package/package.json +11 -6
|
@@ -335,7 +335,6 @@ const deserializeAws_json1_0AssociateFirewallPolicyCommandError = async (output,
|
|
|
335
335
|
...output,
|
|
336
336
|
body: await parseBody(output.body, context),
|
|
337
337
|
};
|
|
338
|
-
let response;
|
|
339
338
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
339
|
switch (errorCode) {
|
|
341
340
|
case "InternalServerError":
|
|
@@ -358,14 +357,12 @@ const deserializeAws_json1_0AssociateFirewallPolicyCommandError = async (output,
|
|
|
358
357
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
359
358
|
default:
|
|
360
359
|
const parsedBody = parsedOutput.body;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
$metadata,
|
|
360
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
361
|
+
output,
|
|
362
|
+
parsedBody,
|
|
363
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
364
|
+
errorCode,
|
|
367
365
|
});
|
|
368
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
369
366
|
}
|
|
370
367
|
};
|
|
371
368
|
const deserializeAws_json1_0AssociateSubnetsCommand = async (output, context) => {
|
|
@@ -387,7 +384,6 @@ const deserializeAws_json1_0AssociateSubnetsCommandError = async (output, contex
|
|
|
387
384
|
...output,
|
|
388
385
|
body: await parseBody(output.body, context),
|
|
389
386
|
};
|
|
390
|
-
let response;
|
|
391
387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
388
|
switch (errorCode) {
|
|
393
389
|
case "InsufficientCapacityException":
|
|
@@ -413,14 +409,12 @@ const deserializeAws_json1_0AssociateSubnetsCommandError = async (output, contex
|
|
|
413
409
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
414
410
|
default:
|
|
415
411
|
const parsedBody = parsedOutput.body;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
$metadata,
|
|
412
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
413
|
+
output,
|
|
414
|
+
parsedBody,
|
|
415
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
416
|
+
errorCode,
|
|
422
417
|
});
|
|
423
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
424
418
|
}
|
|
425
419
|
};
|
|
426
420
|
const deserializeAws_json1_0CreateFirewallCommand = async (output, context) => {
|
|
@@ -442,7 +436,6 @@ const deserializeAws_json1_0CreateFirewallCommandError = async (output, context)
|
|
|
442
436
|
...output,
|
|
443
437
|
body: await parseBody(output.body, context),
|
|
444
438
|
};
|
|
445
|
-
let response;
|
|
446
439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
440
|
switch (errorCode) {
|
|
448
441
|
case "InsufficientCapacityException":
|
|
@@ -465,14 +458,12 @@ const deserializeAws_json1_0CreateFirewallCommandError = async (output, context)
|
|
|
465
458
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
466
459
|
default:
|
|
467
460
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
$metadata,
|
|
461
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
462
|
+
output,
|
|
463
|
+
parsedBody,
|
|
464
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
465
|
+
errorCode,
|
|
474
466
|
});
|
|
475
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
476
467
|
}
|
|
477
468
|
};
|
|
478
469
|
const deserializeAws_json1_0CreateFirewallPolicyCommand = async (output, context) => {
|
|
@@ -494,7 +485,6 @@ const deserializeAws_json1_0CreateFirewallPolicyCommandError = async (output, co
|
|
|
494
485
|
...output,
|
|
495
486
|
body: await parseBody(output.body, context),
|
|
496
487
|
};
|
|
497
|
-
let response;
|
|
498
488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
489
|
switch (errorCode) {
|
|
500
490
|
case "InsufficientCapacityException":
|
|
@@ -514,14 +504,12 @@ const deserializeAws_json1_0CreateFirewallPolicyCommandError = async (output, co
|
|
|
514
504
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
515
505
|
default:
|
|
516
506
|
const parsedBody = parsedOutput.body;
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
$metadata,
|
|
507
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
508
|
+
output,
|
|
509
|
+
parsedBody,
|
|
510
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
511
|
+
errorCode,
|
|
523
512
|
});
|
|
524
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
525
513
|
}
|
|
526
514
|
};
|
|
527
515
|
const deserializeAws_json1_0CreateRuleGroupCommand = async (output, context) => {
|
|
@@ -543,7 +531,6 @@ const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context
|
|
|
543
531
|
...output,
|
|
544
532
|
body: await parseBody(output.body, context),
|
|
545
533
|
};
|
|
546
|
-
let response;
|
|
547
534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
535
|
switch (errorCode) {
|
|
549
536
|
case "InsufficientCapacityException":
|
|
@@ -563,14 +550,12 @@ const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context
|
|
|
563
550
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
564
551
|
default:
|
|
565
552
|
const parsedBody = parsedOutput.body;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
$metadata,
|
|
553
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
554
|
+
output,
|
|
555
|
+
parsedBody,
|
|
556
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
557
|
+
errorCode,
|
|
572
558
|
});
|
|
573
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
574
559
|
}
|
|
575
560
|
};
|
|
576
561
|
const deserializeAws_json1_0DeleteFirewallCommand = async (output, context) => {
|
|
@@ -592,7 +577,6 @@ const deserializeAws_json1_0DeleteFirewallCommandError = async (output, context)
|
|
|
592
577
|
...output,
|
|
593
578
|
body: await parseBody(output.body, context),
|
|
594
579
|
};
|
|
595
|
-
let response;
|
|
596
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
581
|
switch (errorCode) {
|
|
598
582
|
case "InternalServerError":
|
|
@@ -615,14 +599,12 @@ const deserializeAws_json1_0DeleteFirewallCommandError = async (output, context)
|
|
|
615
599
|
throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
616
600
|
default:
|
|
617
601
|
const parsedBody = parsedOutput.body;
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
$metadata,
|
|
602
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
603
|
+
output,
|
|
604
|
+
parsedBody,
|
|
605
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
606
|
+
errorCode,
|
|
624
607
|
});
|
|
625
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
626
608
|
}
|
|
627
609
|
};
|
|
628
610
|
const deserializeAws_json1_0DeleteFirewallPolicyCommand = async (output, context) => {
|
|
@@ -644,7 +626,6 @@ const deserializeAws_json1_0DeleteFirewallPolicyCommandError = async (output, co
|
|
|
644
626
|
...output,
|
|
645
627
|
body: await parseBody(output.body, context),
|
|
646
628
|
};
|
|
647
|
-
let response;
|
|
648
629
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
630
|
switch (errorCode) {
|
|
650
631
|
case "InternalServerError":
|
|
@@ -667,14 +648,12 @@ const deserializeAws_json1_0DeleteFirewallPolicyCommandError = async (output, co
|
|
|
667
648
|
throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
668
649
|
default:
|
|
669
650
|
const parsedBody = parsedOutput.body;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
$metadata,
|
|
651
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
652
|
+
output,
|
|
653
|
+
parsedBody,
|
|
654
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
655
|
+
errorCode,
|
|
676
656
|
});
|
|
677
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
678
657
|
}
|
|
679
658
|
};
|
|
680
659
|
const deserializeAws_json1_0DeleteResourcePolicyCommand = async (output, context) => {
|
|
@@ -696,7 +675,6 @@ const deserializeAws_json1_0DeleteResourcePolicyCommandError = async (output, co
|
|
|
696
675
|
...output,
|
|
697
676
|
body: await parseBody(output.body, context),
|
|
698
677
|
};
|
|
699
|
-
let response;
|
|
700
678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
679
|
switch (errorCode) {
|
|
702
680
|
case "InternalServerError":
|
|
@@ -716,14 +694,12 @@ const deserializeAws_json1_0DeleteResourcePolicyCommandError = async (output, co
|
|
|
716
694
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
717
695
|
default:
|
|
718
696
|
const parsedBody = parsedOutput.body;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
$metadata,
|
|
697
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
698
|
+
output,
|
|
699
|
+
parsedBody,
|
|
700
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
701
|
+
errorCode,
|
|
725
702
|
});
|
|
726
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
727
703
|
}
|
|
728
704
|
};
|
|
729
705
|
const deserializeAws_json1_0DeleteRuleGroupCommand = async (output, context) => {
|
|
@@ -745,7 +721,6 @@ const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context
|
|
|
745
721
|
...output,
|
|
746
722
|
body: await parseBody(output.body, context),
|
|
747
723
|
};
|
|
748
|
-
let response;
|
|
749
724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
725
|
switch (errorCode) {
|
|
751
726
|
case "InternalServerError":
|
|
@@ -768,14 +743,12 @@ const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context
|
|
|
768
743
|
throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
769
744
|
default:
|
|
770
745
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
$metadata,
|
|
746
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
747
|
+
output,
|
|
748
|
+
parsedBody,
|
|
749
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
750
|
+
errorCode,
|
|
777
751
|
});
|
|
778
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
779
752
|
}
|
|
780
753
|
};
|
|
781
754
|
const deserializeAws_json1_0DescribeFirewallCommand = async (output, context) => {
|
|
@@ -797,7 +770,6 @@ const deserializeAws_json1_0DescribeFirewallCommandError = async (output, contex
|
|
|
797
770
|
...output,
|
|
798
771
|
body: await parseBody(output.body, context),
|
|
799
772
|
};
|
|
800
|
-
let response;
|
|
801
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
774
|
switch (errorCode) {
|
|
803
775
|
case "InternalServerError":
|
|
@@ -814,14 +786,12 @@ const deserializeAws_json1_0DescribeFirewallCommandError = async (output, contex
|
|
|
814
786
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
815
787
|
default:
|
|
816
788
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
$metadata,
|
|
789
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
790
|
+
output,
|
|
791
|
+
parsedBody,
|
|
792
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
793
|
+
errorCode,
|
|
823
794
|
});
|
|
824
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
825
795
|
}
|
|
826
796
|
};
|
|
827
797
|
const deserializeAws_json1_0DescribeFirewallPolicyCommand = async (output, context) => {
|
|
@@ -843,7 +813,6 @@ const deserializeAws_json1_0DescribeFirewallPolicyCommandError = async (output,
|
|
|
843
813
|
...output,
|
|
844
814
|
body: await parseBody(output.body, context),
|
|
845
815
|
};
|
|
846
|
-
let response;
|
|
847
816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
817
|
switch (errorCode) {
|
|
849
818
|
case "InternalServerError":
|
|
@@ -860,14 +829,12 @@ const deserializeAws_json1_0DescribeFirewallPolicyCommandError = async (output,
|
|
|
860
829
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
861
830
|
default:
|
|
862
831
|
const parsedBody = parsedOutput.body;
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
$metadata,
|
|
832
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
833
|
+
output,
|
|
834
|
+
parsedBody,
|
|
835
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
836
|
+
errorCode,
|
|
869
837
|
});
|
|
870
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
871
838
|
}
|
|
872
839
|
};
|
|
873
840
|
const deserializeAws_json1_0DescribeLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -889,7 +856,6 @@ const deserializeAws_json1_0DescribeLoggingConfigurationCommandError = async (ou
|
|
|
889
856
|
...output,
|
|
890
857
|
body: await parseBody(output.body, context),
|
|
891
858
|
};
|
|
892
|
-
let response;
|
|
893
859
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
860
|
switch (errorCode) {
|
|
895
861
|
case "InternalServerError":
|
|
@@ -906,14 +872,12 @@ const deserializeAws_json1_0DescribeLoggingConfigurationCommandError = async (ou
|
|
|
906
872
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
907
873
|
default:
|
|
908
874
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
$metadata,
|
|
875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
876
|
+
output,
|
|
877
|
+
parsedBody,
|
|
878
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
879
|
+
errorCode,
|
|
915
880
|
});
|
|
916
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
917
881
|
}
|
|
918
882
|
};
|
|
919
883
|
const deserializeAws_json1_0DescribeResourcePolicyCommand = async (output, context) => {
|
|
@@ -935,7 +899,6 @@ const deserializeAws_json1_0DescribeResourcePolicyCommandError = async (output,
|
|
|
935
899
|
...output,
|
|
936
900
|
body: await parseBody(output.body, context),
|
|
937
901
|
};
|
|
938
|
-
let response;
|
|
939
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
903
|
switch (errorCode) {
|
|
941
904
|
case "InternalServerError":
|
|
@@ -952,14 +915,12 @@ const deserializeAws_json1_0DescribeResourcePolicyCommandError = async (output,
|
|
|
952
915
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
953
916
|
default:
|
|
954
917
|
const parsedBody = parsedOutput.body;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
$metadata,
|
|
918
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
922
|
+
errorCode,
|
|
961
923
|
});
|
|
962
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
963
924
|
}
|
|
964
925
|
};
|
|
965
926
|
const deserializeAws_json1_0DescribeRuleGroupCommand = async (output, context) => {
|
|
@@ -981,7 +942,6 @@ const deserializeAws_json1_0DescribeRuleGroupCommandError = async (output, conte
|
|
|
981
942
|
...output,
|
|
982
943
|
body: await parseBody(output.body, context),
|
|
983
944
|
};
|
|
984
|
-
let response;
|
|
985
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
946
|
switch (errorCode) {
|
|
987
947
|
case "InternalServerError":
|
|
@@ -998,14 +958,12 @@ const deserializeAws_json1_0DescribeRuleGroupCommandError = async (output, conte
|
|
|
998
958
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
999
959
|
default:
|
|
1000
960
|
const parsedBody = parsedOutput.body;
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
$metadata,
|
|
961
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
962
|
+
output,
|
|
963
|
+
parsedBody,
|
|
964
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
965
|
+
errorCode,
|
|
1007
966
|
});
|
|
1008
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1009
967
|
}
|
|
1010
968
|
};
|
|
1011
969
|
const deserializeAws_json1_0DescribeRuleGroupMetadataCommand = async (output, context) => {
|
|
@@ -1027,7 +985,6 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (outpu
|
|
|
1027
985
|
...output,
|
|
1028
986
|
body: await parseBody(output.body, context),
|
|
1029
987
|
};
|
|
1030
|
-
let response;
|
|
1031
988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
989
|
switch (errorCode) {
|
|
1033
990
|
case "InternalServerError":
|
|
@@ -1044,14 +1001,12 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (outpu
|
|
|
1044
1001
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1045
1002
|
default:
|
|
1046
1003
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
$metadata,
|
|
1004
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1005
|
+
output,
|
|
1006
|
+
parsedBody,
|
|
1007
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1008
|
+
errorCode,
|
|
1053
1009
|
});
|
|
1054
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1055
1010
|
}
|
|
1056
1011
|
};
|
|
1057
1012
|
const deserializeAws_json1_0DisassociateSubnetsCommand = async (output, context) => {
|
|
@@ -1073,7 +1028,6 @@ const deserializeAws_json1_0DisassociateSubnetsCommandError = async (output, con
|
|
|
1073
1028
|
...output,
|
|
1074
1029
|
body: await parseBody(output.body, context),
|
|
1075
1030
|
};
|
|
1076
|
-
let response;
|
|
1077
1031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
1032
|
switch (errorCode) {
|
|
1079
1033
|
case "InternalServerError":
|
|
@@ -1096,14 +1050,12 @@ const deserializeAws_json1_0DisassociateSubnetsCommandError = async (output, con
|
|
|
1096
1050
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1097
1051
|
default:
|
|
1098
1052
|
const parsedBody = parsedOutput.body;
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
$metadata,
|
|
1053
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1054
|
+
output,
|
|
1055
|
+
parsedBody,
|
|
1056
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1057
|
+
errorCode,
|
|
1105
1058
|
});
|
|
1106
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1107
1059
|
}
|
|
1108
1060
|
};
|
|
1109
1061
|
const deserializeAws_json1_0ListFirewallPoliciesCommand = async (output, context) => {
|
|
@@ -1125,7 +1077,6 @@ const deserializeAws_json1_0ListFirewallPoliciesCommandError = async (output, co
|
|
|
1125
1077
|
...output,
|
|
1126
1078
|
body: await parseBody(output.body, context),
|
|
1127
1079
|
};
|
|
1128
|
-
let response;
|
|
1129
1080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1081
|
switch (errorCode) {
|
|
1131
1082
|
case "InternalServerError":
|
|
@@ -1139,14 +1090,12 @@ const deserializeAws_json1_0ListFirewallPoliciesCommandError = async (output, co
|
|
|
1139
1090
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1140
1091
|
default:
|
|
1141
1092
|
const parsedBody = parsedOutput.body;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
$metadata,
|
|
1093
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1094
|
+
output,
|
|
1095
|
+
parsedBody,
|
|
1096
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1097
|
+
errorCode,
|
|
1148
1098
|
});
|
|
1149
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1150
1099
|
}
|
|
1151
1100
|
};
|
|
1152
1101
|
const deserializeAws_json1_0ListFirewallsCommand = async (output, context) => {
|
|
@@ -1168,7 +1117,6 @@ const deserializeAws_json1_0ListFirewallsCommandError = async (output, context)
|
|
|
1168
1117
|
...output,
|
|
1169
1118
|
body: await parseBody(output.body, context),
|
|
1170
1119
|
};
|
|
1171
|
-
let response;
|
|
1172
1120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
1121
|
switch (errorCode) {
|
|
1174
1122
|
case "InternalServerError":
|
|
@@ -1182,14 +1130,12 @@ const deserializeAws_json1_0ListFirewallsCommandError = async (output, context)
|
|
|
1182
1130
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1183
1131
|
default:
|
|
1184
1132
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
$metadata,
|
|
1133
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1134
|
+
output,
|
|
1135
|
+
parsedBody,
|
|
1136
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1137
|
+
errorCode,
|
|
1191
1138
|
});
|
|
1192
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1193
1139
|
}
|
|
1194
1140
|
};
|
|
1195
1141
|
const deserializeAws_json1_0ListRuleGroupsCommand = async (output, context) => {
|
|
@@ -1211,7 +1157,6 @@ const deserializeAws_json1_0ListRuleGroupsCommandError = async (output, context)
|
|
|
1211
1157
|
...output,
|
|
1212
1158
|
body: await parseBody(output.body, context),
|
|
1213
1159
|
};
|
|
1214
|
-
let response;
|
|
1215
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1161
|
switch (errorCode) {
|
|
1217
1162
|
case "InternalServerError":
|
|
@@ -1225,14 +1170,12 @@ const deserializeAws_json1_0ListRuleGroupsCommandError = async (output, context)
|
|
|
1225
1170
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1226
1171
|
default:
|
|
1227
1172
|
const parsedBody = parsedOutput.body;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
$metadata,
|
|
1173
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1174
|
+
output,
|
|
1175
|
+
parsedBody,
|
|
1176
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1177
|
+
errorCode,
|
|
1234
1178
|
});
|
|
1235
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1236
1179
|
}
|
|
1237
1180
|
};
|
|
1238
1181
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1254,7 +1197,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1254
1197
|
...output,
|
|
1255
1198
|
body: await parseBody(output.body, context),
|
|
1256
1199
|
};
|
|
1257
|
-
let response;
|
|
1258
1200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1201
|
switch (errorCode) {
|
|
1260
1202
|
case "InternalServerError":
|
|
@@ -1271,14 +1213,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1271
1213
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1272
1214
|
default:
|
|
1273
1215
|
const parsedBody = parsedOutput.body;
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
$metadata,
|
|
1216
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1217
|
+
output,
|
|
1218
|
+
parsedBody,
|
|
1219
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1220
|
+
errorCode,
|
|
1280
1221
|
});
|
|
1281
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1282
1222
|
}
|
|
1283
1223
|
};
|
|
1284
1224
|
const deserializeAws_json1_0PutResourcePolicyCommand = async (output, context) => {
|
|
@@ -1300,7 +1240,6 @@ const deserializeAws_json1_0PutResourcePolicyCommandError = async (output, conte
|
|
|
1300
1240
|
...output,
|
|
1301
1241
|
body: await parseBody(output.body, context),
|
|
1302
1242
|
};
|
|
1303
|
-
let response;
|
|
1304
1243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1244
|
switch (errorCode) {
|
|
1306
1245
|
case "InternalServerError":
|
|
@@ -1320,14 +1259,12 @@ const deserializeAws_json1_0PutResourcePolicyCommandError = async (output, conte
|
|
|
1320
1259
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1321
1260
|
default:
|
|
1322
1261
|
const parsedBody = parsedOutput.body;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
$metadata,
|
|
1262
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1263
|
+
output,
|
|
1264
|
+
parsedBody,
|
|
1265
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1266
|
+
errorCode,
|
|
1329
1267
|
});
|
|
1330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1268
|
}
|
|
1332
1269
|
};
|
|
1333
1270
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -1349,7 +1286,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1349
1286
|
...output,
|
|
1350
1287
|
body: await parseBody(output.body, context),
|
|
1351
1288
|
};
|
|
1352
|
-
let response;
|
|
1353
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1290
|
switch (errorCode) {
|
|
1355
1291
|
case "InternalServerError":
|
|
@@ -1366,14 +1302,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1366
1302
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1367
1303
|
default:
|
|
1368
1304
|
const parsedBody = parsedOutput.body;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
$metadata,
|
|
1305
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1306
|
+
output,
|
|
1307
|
+
parsedBody,
|
|
1308
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1309
|
+
errorCode,
|
|
1375
1310
|
});
|
|
1376
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1377
1311
|
}
|
|
1378
1312
|
};
|
|
1379
1313
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -1395,7 +1329,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1395
1329
|
...output,
|
|
1396
1330
|
body: await parseBody(output.body, context),
|
|
1397
1331
|
};
|
|
1398
|
-
let response;
|
|
1399
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
1333
|
switch (errorCode) {
|
|
1401
1334
|
case "InternalServerError":
|
|
@@ -1412,14 +1345,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1412
1345
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1413
1346
|
default:
|
|
1414
1347
|
const parsedBody = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
$metadata,
|
|
1348
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1349
|
+
output,
|
|
1350
|
+
parsedBody,
|
|
1351
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1352
|
+
errorCode,
|
|
1421
1353
|
});
|
|
1422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1423
1354
|
}
|
|
1424
1355
|
};
|
|
1425
1356
|
const deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = async (output, context) => {
|
|
@@ -1441,7 +1372,6 @@ const deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = async (
|
|
|
1441
1372
|
...output,
|
|
1442
1373
|
body: await parseBody(output.body, context),
|
|
1443
1374
|
};
|
|
1444
|
-
let response;
|
|
1445
1375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1376
|
switch (errorCode) {
|
|
1447
1377
|
case "InternalServerError":
|
|
@@ -1464,14 +1394,12 @@ const deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = async (
|
|
|
1464
1394
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1465
1395
|
default:
|
|
1466
1396
|
const parsedBody = parsedOutput.body;
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
$metadata,
|
|
1397
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1398
|
+
output,
|
|
1399
|
+
parsedBody,
|
|
1400
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1401
|
+
errorCode,
|
|
1473
1402
|
});
|
|
1474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1475
1403
|
}
|
|
1476
1404
|
};
|
|
1477
1405
|
const deserializeAws_json1_0UpdateFirewallDescriptionCommand = async (output, context) => {
|
|
@@ -1493,7 +1421,6 @@ const deserializeAws_json1_0UpdateFirewallDescriptionCommandError = async (outpu
|
|
|
1493
1421
|
...output,
|
|
1494
1422
|
body: await parseBody(output.body, context),
|
|
1495
1423
|
};
|
|
1496
|
-
let response;
|
|
1497
1424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
1425
|
switch (errorCode) {
|
|
1499
1426
|
case "InternalServerError":
|
|
@@ -1513,14 +1440,12 @@ const deserializeAws_json1_0UpdateFirewallDescriptionCommandError = async (outpu
|
|
|
1513
1440
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1514
1441
|
default:
|
|
1515
1442
|
const parsedBody = parsedOutput.body;
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
$metadata,
|
|
1443
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1444
|
+
output,
|
|
1445
|
+
parsedBody,
|
|
1446
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1447
|
+
errorCode,
|
|
1522
1448
|
});
|
|
1523
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1524
1449
|
}
|
|
1525
1450
|
};
|
|
1526
1451
|
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = async (output, context) => {
|
|
@@ -1542,7 +1467,6 @@ const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError =
|
|
|
1542
1467
|
...output,
|
|
1543
1468
|
body: await parseBody(output.body, context),
|
|
1544
1469
|
};
|
|
1545
|
-
let response;
|
|
1546
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1471
|
switch (errorCode) {
|
|
1548
1472
|
case "InternalServerError":
|
|
@@ -1565,14 +1489,12 @@ const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError =
|
|
|
1565
1489
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1566
1490
|
default:
|
|
1567
1491
|
const parsedBody = parsedOutput.body;
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
$metadata,
|
|
1492
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1493
|
+
output,
|
|
1494
|
+
parsedBody,
|
|
1495
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1496
|
+
errorCode,
|
|
1574
1497
|
});
|
|
1575
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1576
1498
|
}
|
|
1577
1499
|
};
|
|
1578
1500
|
const deserializeAws_json1_0UpdateFirewallPolicyCommand = async (output, context) => {
|
|
@@ -1594,7 +1516,6 @@ const deserializeAws_json1_0UpdateFirewallPolicyCommandError = async (output, co
|
|
|
1594
1516
|
...output,
|
|
1595
1517
|
body: await parseBody(output.body, context),
|
|
1596
1518
|
};
|
|
1597
|
-
let response;
|
|
1598
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1520
|
switch (errorCode) {
|
|
1600
1521
|
case "InternalServerError":
|
|
@@ -1614,14 +1535,12 @@ const deserializeAws_json1_0UpdateFirewallPolicyCommandError = async (output, co
|
|
|
1614
1535
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1615
1536
|
default:
|
|
1616
1537
|
const parsedBody = parsedOutput.body;
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
$metadata,
|
|
1538
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1539
|
+
output,
|
|
1540
|
+
parsedBody,
|
|
1541
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1542
|
+
errorCode,
|
|
1623
1543
|
});
|
|
1624
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
1544
|
}
|
|
1626
1545
|
};
|
|
1627
1546
|
const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = async (output, context) => {
|
|
@@ -1643,7 +1562,6 @@ const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = a
|
|
|
1643
1562
|
...output,
|
|
1644
1563
|
body: await parseBody(output.body, context),
|
|
1645
1564
|
};
|
|
1646
|
-
let response;
|
|
1647
1565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1566
|
switch (errorCode) {
|
|
1649
1567
|
case "InternalServerError":
|
|
@@ -1666,14 +1584,12 @@ const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = a
|
|
|
1666
1584
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1667
1585
|
default:
|
|
1668
1586
|
const parsedBody = parsedOutput.body;
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
$metadata,
|
|
1587
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1588
|
+
output,
|
|
1589
|
+
parsedBody,
|
|
1590
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1591
|
+
errorCode,
|
|
1675
1592
|
});
|
|
1676
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1677
1593
|
}
|
|
1678
1594
|
};
|
|
1679
1595
|
const deserializeAws_json1_0UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -1695,7 +1611,6 @@ const deserializeAws_json1_0UpdateLoggingConfigurationCommandError = async (outp
|
|
|
1695
1611
|
...output,
|
|
1696
1612
|
body: await parseBody(output.body, context),
|
|
1697
1613
|
};
|
|
1698
|
-
let response;
|
|
1699
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1615
|
switch (errorCode) {
|
|
1701
1616
|
case "InternalServerError":
|
|
@@ -1718,14 +1633,12 @@ const deserializeAws_json1_0UpdateLoggingConfigurationCommandError = async (outp
|
|
|
1718
1633
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1719
1634
|
default:
|
|
1720
1635
|
const parsedBody = parsedOutput.body;
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
$metadata,
|
|
1636
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1637
|
+
output,
|
|
1638
|
+
parsedBody,
|
|
1639
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1640
|
+
errorCode,
|
|
1727
1641
|
});
|
|
1728
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1729
1642
|
}
|
|
1730
1643
|
};
|
|
1731
1644
|
const deserializeAws_json1_0UpdateRuleGroupCommand = async (output, context) => {
|
|
@@ -1747,7 +1660,6 @@ const deserializeAws_json1_0UpdateRuleGroupCommandError = async (output, context
|
|
|
1747
1660
|
...output,
|
|
1748
1661
|
body: await parseBody(output.body, context),
|
|
1749
1662
|
};
|
|
1750
|
-
let response;
|
|
1751
1663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
1664
|
switch (errorCode) {
|
|
1753
1665
|
case "InternalServerError":
|
|
@@ -1767,14 +1679,12 @@ const deserializeAws_json1_0UpdateRuleGroupCommandError = async (output, context
|
|
|
1767
1679
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1768
1680
|
default:
|
|
1769
1681
|
const parsedBody = parsedOutput.body;
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
$metadata,
|
|
1682
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1683
|
+
output,
|
|
1684
|
+
parsedBody,
|
|
1685
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1686
|
+
errorCode,
|
|
1776
1687
|
});
|
|
1777
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1778
1688
|
}
|
|
1779
1689
|
};
|
|
1780
1690
|
const deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = async (output, context) => {
|
|
@@ -1796,7 +1706,6 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (ou
|
|
|
1796
1706
|
...output,
|
|
1797
1707
|
body: await parseBody(output.body, context),
|
|
1798
1708
|
};
|
|
1799
|
-
let response;
|
|
1800
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
1710
|
switch (errorCode) {
|
|
1802
1711
|
case "InternalServerError":
|
|
@@ -1819,14 +1728,12 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (ou
|
|
|
1819
1728
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1820
1729
|
default:
|
|
1821
1730
|
const parsedBody = parsedOutput.body;
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
$metadata,
|
|
1731
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1732
|
+
output,
|
|
1733
|
+
parsedBody,
|
|
1734
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1735
|
+
errorCode,
|
|
1828
1736
|
});
|
|
1829
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1830
1737
|
}
|
|
1831
1738
|
};
|
|
1832
1739
|
const deserializeAws_json1_0InsufficientCapacityExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1953,9 +1860,6 @@ const serializeAws_json1_0Addresses = (input, context) => {
|
|
|
1953
1860
|
return input
|
|
1954
1861
|
.filter((e) => e != null)
|
|
1955
1862
|
.map((entry) => {
|
|
1956
|
-
if (entry === null) {
|
|
1957
|
-
return null;
|
|
1958
|
-
}
|
|
1959
1863
|
return serializeAws_json1_0Address(entry, context);
|
|
1960
1864
|
});
|
|
1961
1865
|
};
|
|
@@ -1981,9 +1885,6 @@ const serializeAws_json1_0AzSubnets = (input, context) => {
|
|
|
1981
1885
|
return input
|
|
1982
1886
|
.filter((e) => e != null)
|
|
1983
1887
|
.map((entry) => {
|
|
1984
|
-
if (entry === null) {
|
|
1985
|
-
return null;
|
|
1986
|
-
}
|
|
1987
1888
|
return entry;
|
|
1988
1889
|
});
|
|
1989
1890
|
};
|
|
@@ -2051,9 +1952,6 @@ const serializeAws_json1_0CustomActions = (input, context) => {
|
|
|
2051
1952
|
return input
|
|
2052
1953
|
.filter((e) => e != null)
|
|
2053
1954
|
.map((entry) => {
|
|
2054
|
-
if (entry === null) {
|
|
2055
|
-
return null;
|
|
2056
|
-
}
|
|
2057
1955
|
return serializeAws_json1_0CustomAction(entry, context);
|
|
2058
1956
|
});
|
|
2059
1957
|
};
|
|
@@ -2127,9 +2025,6 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
2127
2025
|
return input
|
|
2128
2026
|
.filter((e) => e != null)
|
|
2129
2027
|
.map((entry) => {
|
|
2130
|
-
if (entry === null) {
|
|
2131
|
-
return null;
|
|
2132
|
-
}
|
|
2133
2028
|
return serializeAws_json1_0Dimension(entry, context);
|
|
2134
2029
|
});
|
|
2135
2030
|
};
|
|
@@ -2176,9 +2071,6 @@ const serializeAws_json1_0Flags = (input, context) => {
|
|
|
2176
2071
|
return input
|
|
2177
2072
|
.filter((e) => e != null)
|
|
2178
2073
|
.map((entry) => {
|
|
2179
|
-
if (entry === null) {
|
|
2180
|
-
return null;
|
|
2181
|
-
}
|
|
2182
2074
|
return entry;
|
|
2183
2075
|
});
|
|
2184
2076
|
};
|
|
@@ -2268,9 +2160,6 @@ const serializeAws_json1_0LogDestinationConfigs = (input, context) => {
|
|
|
2268
2160
|
return input
|
|
2269
2161
|
.filter((e) => e != null)
|
|
2270
2162
|
.map((entry) => {
|
|
2271
|
-
if (entry === null) {
|
|
2272
|
-
return null;
|
|
2273
|
-
}
|
|
2274
2163
|
return serializeAws_json1_0LogDestinationConfig(entry, context);
|
|
2275
2164
|
});
|
|
2276
2165
|
};
|
|
@@ -2314,9 +2203,6 @@ const serializeAws_json1_0PortRanges = (input, context) => {
|
|
|
2314
2203
|
return input
|
|
2315
2204
|
.filter((e) => e != null)
|
|
2316
2205
|
.map((entry) => {
|
|
2317
|
-
if (entry === null) {
|
|
2318
|
-
return null;
|
|
2319
|
-
}
|
|
2320
2206
|
return serializeAws_json1_0PortRange(entry, context);
|
|
2321
2207
|
});
|
|
2322
2208
|
};
|
|
@@ -2342,9 +2228,6 @@ const serializeAws_json1_0ProtocolNumbers = (input, context) => {
|
|
|
2342
2228
|
return input
|
|
2343
2229
|
.filter((e) => e != null)
|
|
2344
2230
|
.map((entry) => {
|
|
2345
|
-
if (entry === null) {
|
|
2346
|
-
return null;
|
|
2347
|
-
}
|
|
2348
2231
|
return entry;
|
|
2349
2232
|
});
|
|
2350
2233
|
};
|
|
@@ -2398,9 +2281,6 @@ const serializeAws_json1_0RuleOptions = (input, context) => {
|
|
|
2398
2281
|
return input
|
|
2399
2282
|
.filter((e) => e != null)
|
|
2400
2283
|
.map((entry) => {
|
|
2401
|
-
if (entry === null) {
|
|
2402
|
-
return null;
|
|
2403
|
-
}
|
|
2404
2284
|
return serializeAws_json1_0RuleOption(entry, context);
|
|
2405
2285
|
});
|
|
2406
2286
|
};
|
|
@@ -2429,9 +2309,6 @@ const serializeAws_json1_0RuleTargets = (input, context) => {
|
|
|
2429
2309
|
return input
|
|
2430
2310
|
.filter((e) => e != null)
|
|
2431
2311
|
.map((entry) => {
|
|
2432
|
-
if (entry === null) {
|
|
2433
|
-
return null;
|
|
2434
|
-
}
|
|
2435
2312
|
return entry;
|
|
2436
2313
|
});
|
|
2437
2314
|
};
|
|
@@ -2445,9 +2322,6 @@ const serializeAws_json1_0Settings = (input, context) => {
|
|
|
2445
2322
|
return input
|
|
2446
2323
|
.filter((e) => e != null)
|
|
2447
2324
|
.map((entry) => {
|
|
2448
|
-
if (entry === null) {
|
|
2449
|
-
return null;
|
|
2450
|
-
}
|
|
2451
2325
|
return entry;
|
|
2452
2326
|
});
|
|
2453
2327
|
};
|
|
@@ -2461,9 +2335,6 @@ const serializeAws_json1_0StatefulActions = (input, context) => {
|
|
|
2461
2335
|
return input
|
|
2462
2336
|
.filter((e) => e != null)
|
|
2463
2337
|
.map((entry) => {
|
|
2464
|
-
if (entry === null) {
|
|
2465
|
-
return null;
|
|
2466
|
-
}
|
|
2467
2338
|
return entry;
|
|
2468
2339
|
});
|
|
2469
2340
|
};
|
|
@@ -2495,9 +2366,6 @@ const serializeAws_json1_0StatefulRuleGroupReferences = (input, context) => {
|
|
|
2495
2366
|
return input
|
|
2496
2367
|
.filter((e) => e != null)
|
|
2497
2368
|
.map((entry) => {
|
|
2498
|
-
if (entry === null) {
|
|
2499
|
-
return null;
|
|
2500
|
-
}
|
|
2501
2369
|
return serializeAws_json1_0StatefulRuleGroupReference(entry, context);
|
|
2502
2370
|
});
|
|
2503
2371
|
};
|
|
@@ -2510,9 +2378,6 @@ const serializeAws_json1_0StatefulRules = (input, context) => {
|
|
|
2510
2378
|
return input
|
|
2511
2379
|
.filter((e) => e != null)
|
|
2512
2380
|
.map((entry) => {
|
|
2513
|
-
if (entry === null) {
|
|
2514
|
-
return null;
|
|
2515
|
-
}
|
|
2516
2381
|
return serializeAws_json1_0StatefulRule(entry, context);
|
|
2517
2382
|
});
|
|
2518
2383
|
};
|
|
@@ -2520,9 +2385,6 @@ const serializeAws_json1_0StatelessActions = (input, context) => {
|
|
|
2520
2385
|
return input
|
|
2521
2386
|
.filter((e) => e != null)
|
|
2522
2387
|
.map((entry) => {
|
|
2523
|
-
if (entry === null) {
|
|
2524
|
-
return null;
|
|
2525
|
-
}
|
|
2526
2388
|
return entry;
|
|
2527
2389
|
});
|
|
2528
2390
|
};
|
|
@@ -2544,9 +2406,6 @@ const serializeAws_json1_0StatelessRuleGroupReferences = (input, context) => {
|
|
|
2544
2406
|
return input
|
|
2545
2407
|
.filter((e) => e != null)
|
|
2546
2408
|
.map((entry) => {
|
|
2547
|
-
if (entry === null) {
|
|
2548
|
-
return null;
|
|
2549
|
-
}
|
|
2550
2409
|
return serializeAws_json1_0StatelessRuleGroupReference(entry, context);
|
|
2551
2410
|
});
|
|
2552
2411
|
};
|
|
@@ -2554,9 +2413,6 @@ const serializeAws_json1_0StatelessRules = (input, context) => {
|
|
|
2554
2413
|
return input
|
|
2555
2414
|
.filter((e) => e != null)
|
|
2556
2415
|
.map((entry) => {
|
|
2557
|
-
if (entry === null) {
|
|
2558
|
-
return null;
|
|
2559
|
-
}
|
|
2560
2416
|
return serializeAws_json1_0StatelessRule(entry, context);
|
|
2561
2417
|
});
|
|
2562
2418
|
};
|
|
@@ -2579,9 +2435,6 @@ const serializeAws_json1_0SubnetMappings = (input, context) => {
|
|
|
2579
2435
|
return input
|
|
2580
2436
|
.filter((e) => e != null)
|
|
2581
2437
|
.map((entry) => {
|
|
2582
|
-
if (entry === null) {
|
|
2583
|
-
return null;
|
|
2584
|
-
}
|
|
2585
2438
|
return serializeAws_json1_0SubnetMapping(entry, context);
|
|
2586
2439
|
});
|
|
2587
2440
|
};
|
|
@@ -2595,9 +2448,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
2595
2448
|
return input
|
|
2596
2449
|
.filter((e) => e != null)
|
|
2597
2450
|
.map((entry) => {
|
|
2598
|
-
if (entry === null) {
|
|
2599
|
-
return null;
|
|
2600
|
-
}
|
|
2601
2451
|
return entry;
|
|
2602
2452
|
});
|
|
2603
2453
|
};
|
|
@@ -2605,9 +2455,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
2605
2455
|
return input
|
|
2606
2456
|
.filter((e) => e != null)
|
|
2607
2457
|
.map((entry) => {
|
|
2608
|
-
if (entry === null) {
|
|
2609
|
-
return null;
|
|
2610
|
-
}
|
|
2611
2458
|
return serializeAws_json1_0Tag(entry, context);
|
|
2612
2459
|
});
|
|
2613
2460
|
};
|
|
@@ -2621,9 +2468,6 @@ const serializeAws_json1_0TargetTypes = (input, context) => {
|
|
|
2621
2468
|
return input
|
|
2622
2469
|
.filter((e) => e != null)
|
|
2623
2470
|
.map((entry) => {
|
|
2624
|
-
if (entry === null) {
|
|
2625
|
-
return null;
|
|
2626
|
-
}
|
|
2627
2471
|
return entry;
|
|
2628
2472
|
});
|
|
2629
2473
|
};
|
|
@@ -2637,9 +2481,6 @@ const serializeAws_json1_0TCPFlags = (input, context) => {
|
|
|
2637
2481
|
return input
|
|
2638
2482
|
.filter((e) => e != null)
|
|
2639
2483
|
.map((entry) => {
|
|
2640
|
-
if (entry === null) {
|
|
2641
|
-
return null;
|
|
2642
|
-
}
|
|
2643
2484
|
return serializeAws_json1_0TCPFlagField(entry, context);
|
|
2644
2485
|
});
|
|
2645
2486
|
};
|
|
@@ -2739,9 +2580,6 @@ const serializeAws_json1_0VariableDefinitionList = (input, context) => {
|
|
|
2739
2580
|
return input
|
|
2740
2581
|
.filter((e) => e != null)
|
|
2741
2582
|
.map((entry) => {
|
|
2742
|
-
if (entry === null) {
|
|
2743
|
-
return null;
|
|
2744
|
-
}
|
|
2745
2583
|
return entry;
|
|
2746
2584
|
});
|
|
2747
2585
|
};
|
|
@@ -2749,9 +2587,6 @@ const serializeAws_json1_0VpcIds = (input, context) => {
|
|
|
2749
2587
|
return input
|
|
2750
2588
|
.filter((e) => e != null)
|
|
2751
2589
|
.map((entry) => {
|
|
2752
|
-
if (entry === null) {
|
|
2753
|
-
return null;
|
|
2754
|
-
}
|
|
2755
2590
|
return entry;
|
|
2756
2591
|
});
|
|
2757
2592
|
};
|