@aws-sdk/client-network-firewall 3.118.0 → 3.127.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 +427 -570
- package/dist-es/protocols/Aws_json1_0.js +326 -469
- package/package.json +26 -26
|
@@ -336,8 +336,7 @@ const deserializeAws_json1_0AssociateFirewallPolicyCommandError = async (output,
|
|
|
336
336
|
body: await parseBody(output.body, context),
|
|
337
337
|
};
|
|
338
338
|
let response;
|
|
339
|
-
|
|
340
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
341
340
|
switch (errorCode) {
|
|
342
341
|
case "InternalServerError":
|
|
343
342
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -359,10 +358,12 @@ const deserializeAws_json1_0AssociateFirewallPolicyCommandError = async (output,
|
|
|
359
358
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
360
359
|
default:
|
|
361
360
|
const parsedBody = parsedOutput.body;
|
|
361
|
+
const $metadata = deserializeMetadata(output);
|
|
362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
362
363
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
364
365
|
$fault: "client",
|
|
365
|
-
$metadata
|
|
366
|
+
$metadata,
|
|
366
367
|
});
|
|
367
368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
368
369
|
}
|
|
@@ -387,8 +388,7 @@ const deserializeAws_json1_0AssociateSubnetsCommandError = async (output, contex
|
|
|
387
388
|
body: await parseBody(output.body, context),
|
|
388
389
|
};
|
|
389
390
|
let response;
|
|
390
|
-
|
|
391
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
392
|
switch (errorCode) {
|
|
393
393
|
case "InsufficientCapacityException":
|
|
394
394
|
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
@@ -413,10 +413,12 @@ const deserializeAws_json1_0AssociateSubnetsCommandError = async (output, contex
|
|
|
413
413
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
414
414
|
default:
|
|
415
415
|
const parsedBody = parsedOutput.body;
|
|
416
|
+
const $metadata = deserializeMetadata(output);
|
|
417
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
416
418
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
419
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
418
420
|
$fault: "client",
|
|
419
|
-
$metadata
|
|
421
|
+
$metadata,
|
|
420
422
|
});
|
|
421
423
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
422
424
|
}
|
|
@@ -441,8 +443,7 @@ const deserializeAws_json1_0CreateFirewallCommandError = async (output, context)
|
|
|
441
443
|
body: await parseBody(output.body, context),
|
|
442
444
|
};
|
|
443
445
|
let response;
|
|
444
|
-
|
|
445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
447
|
switch (errorCode) {
|
|
447
448
|
case "InsufficientCapacityException":
|
|
448
449
|
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
@@ -464,10 +465,12 @@ const deserializeAws_json1_0CreateFirewallCommandError = async (output, context)
|
|
|
464
465
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
465
466
|
default:
|
|
466
467
|
const parsedBody = parsedOutput.body;
|
|
468
|
+
const $metadata = deserializeMetadata(output);
|
|
469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
467
470
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
468
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
469
472
|
$fault: "client",
|
|
470
|
-
$metadata
|
|
473
|
+
$metadata,
|
|
471
474
|
});
|
|
472
475
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
473
476
|
}
|
|
@@ -492,8 +495,7 @@ const deserializeAws_json1_0CreateFirewallPolicyCommandError = async (output, co
|
|
|
492
495
|
body: await parseBody(output.body, context),
|
|
493
496
|
};
|
|
494
497
|
let response;
|
|
495
|
-
|
|
496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
499
|
switch (errorCode) {
|
|
498
500
|
case "InsufficientCapacityException":
|
|
499
501
|
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
@@ -512,10 +514,12 @@ const deserializeAws_json1_0CreateFirewallPolicyCommandError = async (output, co
|
|
|
512
514
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
513
515
|
default:
|
|
514
516
|
const parsedBody = parsedOutput.body;
|
|
517
|
+
const $metadata = deserializeMetadata(output);
|
|
518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
515
519
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
516
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
517
521
|
$fault: "client",
|
|
518
|
-
$metadata
|
|
522
|
+
$metadata,
|
|
519
523
|
});
|
|
520
524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
521
525
|
}
|
|
@@ -540,8 +544,7 @@ const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context
|
|
|
540
544
|
body: await parseBody(output.body, context),
|
|
541
545
|
};
|
|
542
546
|
let response;
|
|
543
|
-
|
|
544
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
548
|
switch (errorCode) {
|
|
546
549
|
case "InsufficientCapacityException":
|
|
547
550
|
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
@@ -560,10 +563,12 @@ const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context
|
|
|
560
563
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
561
564
|
default:
|
|
562
565
|
const parsedBody = parsedOutput.body;
|
|
566
|
+
const $metadata = deserializeMetadata(output);
|
|
567
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
563
568
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
565
570
|
$fault: "client",
|
|
566
|
-
$metadata
|
|
571
|
+
$metadata,
|
|
567
572
|
});
|
|
568
573
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
569
574
|
}
|
|
@@ -588,8 +593,7 @@ const deserializeAws_json1_0DeleteFirewallCommandError = async (output, context)
|
|
|
588
593
|
body: await parseBody(output.body, context),
|
|
589
594
|
};
|
|
590
595
|
let response;
|
|
591
|
-
|
|
592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
597
|
switch (errorCode) {
|
|
594
598
|
case "InternalServerError":
|
|
595
599
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -611,10 +615,12 @@ const deserializeAws_json1_0DeleteFirewallCommandError = async (output, context)
|
|
|
611
615
|
throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
612
616
|
default:
|
|
613
617
|
const parsedBody = parsedOutput.body;
|
|
618
|
+
const $metadata = deserializeMetadata(output);
|
|
619
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
614
620
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
621
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
616
622
|
$fault: "client",
|
|
617
|
-
$metadata
|
|
623
|
+
$metadata,
|
|
618
624
|
});
|
|
619
625
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
620
626
|
}
|
|
@@ -639,8 +645,7 @@ const deserializeAws_json1_0DeleteFirewallPolicyCommandError = async (output, co
|
|
|
639
645
|
body: await parseBody(output.body, context),
|
|
640
646
|
};
|
|
641
647
|
let response;
|
|
642
|
-
|
|
643
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
649
|
switch (errorCode) {
|
|
645
650
|
case "InternalServerError":
|
|
646
651
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -662,10 +667,12 @@ const deserializeAws_json1_0DeleteFirewallPolicyCommandError = async (output, co
|
|
|
662
667
|
throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
663
668
|
default:
|
|
664
669
|
const parsedBody = parsedOutput.body;
|
|
670
|
+
const $metadata = deserializeMetadata(output);
|
|
671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
665
672
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
666
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
667
674
|
$fault: "client",
|
|
668
|
-
$metadata
|
|
675
|
+
$metadata,
|
|
669
676
|
});
|
|
670
677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
671
678
|
}
|
|
@@ -690,8 +697,7 @@ const deserializeAws_json1_0DeleteResourcePolicyCommandError = async (output, co
|
|
|
690
697
|
body: await parseBody(output.body, context),
|
|
691
698
|
};
|
|
692
699
|
let response;
|
|
693
|
-
|
|
694
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
701
|
switch (errorCode) {
|
|
696
702
|
case "InternalServerError":
|
|
697
703
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -710,10 +716,12 @@ const deserializeAws_json1_0DeleteResourcePolicyCommandError = async (output, co
|
|
|
710
716
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
711
717
|
default:
|
|
712
718
|
const parsedBody = parsedOutput.body;
|
|
719
|
+
const $metadata = deserializeMetadata(output);
|
|
720
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
713
721
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
715
723
|
$fault: "client",
|
|
716
|
-
$metadata
|
|
724
|
+
$metadata,
|
|
717
725
|
});
|
|
718
726
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
719
727
|
}
|
|
@@ -738,8 +746,7 @@ const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context
|
|
|
738
746
|
body: await parseBody(output.body, context),
|
|
739
747
|
};
|
|
740
748
|
let response;
|
|
741
|
-
|
|
742
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
750
|
switch (errorCode) {
|
|
744
751
|
case "InternalServerError":
|
|
745
752
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -761,10 +768,12 @@ const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context
|
|
|
761
768
|
throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
762
769
|
default:
|
|
763
770
|
const parsedBody = parsedOutput.body;
|
|
771
|
+
const $metadata = deserializeMetadata(output);
|
|
772
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
764
773
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
766
775
|
$fault: "client",
|
|
767
|
-
$metadata
|
|
776
|
+
$metadata,
|
|
768
777
|
});
|
|
769
778
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
770
779
|
}
|
|
@@ -789,8 +798,7 @@ const deserializeAws_json1_0DescribeFirewallCommandError = async (output, contex
|
|
|
789
798
|
body: await parseBody(output.body, context),
|
|
790
799
|
};
|
|
791
800
|
let response;
|
|
792
|
-
|
|
793
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
802
|
switch (errorCode) {
|
|
795
803
|
case "InternalServerError":
|
|
796
804
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -806,10 +814,12 @@ const deserializeAws_json1_0DescribeFirewallCommandError = async (output, contex
|
|
|
806
814
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
807
815
|
default:
|
|
808
816
|
const parsedBody = parsedOutput.body;
|
|
817
|
+
const $metadata = deserializeMetadata(output);
|
|
818
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
809
819
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
811
821
|
$fault: "client",
|
|
812
|
-
$metadata
|
|
822
|
+
$metadata,
|
|
813
823
|
});
|
|
814
824
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
815
825
|
}
|
|
@@ -834,8 +844,7 @@ const deserializeAws_json1_0DescribeFirewallPolicyCommandError = async (output,
|
|
|
834
844
|
body: await parseBody(output.body, context),
|
|
835
845
|
};
|
|
836
846
|
let response;
|
|
837
|
-
|
|
838
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
848
|
switch (errorCode) {
|
|
840
849
|
case "InternalServerError":
|
|
841
850
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -851,10 +860,12 @@ const deserializeAws_json1_0DescribeFirewallPolicyCommandError = async (output,
|
|
|
851
860
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
852
861
|
default:
|
|
853
862
|
const parsedBody = parsedOutput.body;
|
|
863
|
+
const $metadata = deserializeMetadata(output);
|
|
864
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
854
865
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
856
867
|
$fault: "client",
|
|
857
|
-
$metadata
|
|
868
|
+
$metadata,
|
|
858
869
|
});
|
|
859
870
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
871
|
}
|
|
@@ -879,8 +890,7 @@ const deserializeAws_json1_0DescribeLoggingConfigurationCommandError = async (ou
|
|
|
879
890
|
body: await parseBody(output.body, context),
|
|
880
891
|
};
|
|
881
892
|
let response;
|
|
882
|
-
|
|
883
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
894
|
switch (errorCode) {
|
|
885
895
|
case "InternalServerError":
|
|
886
896
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -896,10 +906,12 @@ const deserializeAws_json1_0DescribeLoggingConfigurationCommandError = async (ou
|
|
|
896
906
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
897
907
|
default:
|
|
898
908
|
const parsedBody = parsedOutput.body;
|
|
909
|
+
const $metadata = deserializeMetadata(output);
|
|
910
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
899
911
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
900
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
912
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
901
913
|
$fault: "client",
|
|
902
|
-
$metadata
|
|
914
|
+
$metadata,
|
|
903
915
|
});
|
|
904
916
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
905
917
|
}
|
|
@@ -924,8 +936,7 @@ const deserializeAws_json1_0DescribeResourcePolicyCommandError = async (output,
|
|
|
924
936
|
body: await parseBody(output.body, context),
|
|
925
937
|
};
|
|
926
938
|
let response;
|
|
927
|
-
|
|
928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
940
|
switch (errorCode) {
|
|
930
941
|
case "InternalServerError":
|
|
931
942
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -941,10 +952,12 @@ const deserializeAws_json1_0DescribeResourcePolicyCommandError = async (output,
|
|
|
941
952
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
942
953
|
default:
|
|
943
954
|
const parsedBody = parsedOutput.body;
|
|
955
|
+
const $metadata = deserializeMetadata(output);
|
|
956
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
944
957
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
945
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
958
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
946
959
|
$fault: "client",
|
|
947
|
-
$metadata
|
|
960
|
+
$metadata,
|
|
948
961
|
});
|
|
949
962
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
950
963
|
}
|
|
@@ -969,8 +982,7 @@ const deserializeAws_json1_0DescribeRuleGroupCommandError = async (output, conte
|
|
|
969
982
|
body: await parseBody(output.body, context),
|
|
970
983
|
};
|
|
971
984
|
let response;
|
|
972
|
-
|
|
973
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
986
|
switch (errorCode) {
|
|
975
987
|
case "InternalServerError":
|
|
976
988
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -986,10 +998,12 @@ const deserializeAws_json1_0DescribeRuleGroupCommandError = async (output, conte
|
|
|
986
998
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
987
999
|
default:
|
|
988
1000
|
const parsedBody = parsedOutput.body;
|
|
1001
|
+
const $metadata = deserializeMetadata(output);
|
|
1002
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
989
1003
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
990
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1004
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
991
1005
|
$fault: "client",
|
|
992
|
-
$metadata
|
|
1006
|
+
$metadata,
|
|
993
1007
|
});
|
|
994
1008
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
995
1009
|
}
|
|
@@ -1014,8 +1028,7 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (outpu
|
|
|
1014
1028
|
body: await parseBody(output.body, context),
|
|
1015
1029
|
};
|
|
1016
1030
|
let response;
|
|
1017
|
-
|
|
1018
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
1032
|
switch (errorCode) {
|
|
1020
1033
|
case "InternalServerError":
|
|
1021
1034
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1031,10 +1044,12 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (outpu
|
|
|
1031
1044
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1032
1045
|
default:
|
|
1033
1046
|
const parsedBody = parsedOutput.body;
|
|
1047
|
+
const $metadata = deserializeMetadata(output);
|
|
1048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1034
1049
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1035
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1036
1051
|
$fault: "client",
|
|
1037
|
-
$metadata
|
|
1052
|
+
$metadata,
|
|
1038
1053
|
});
|
|
1039
1054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1040
1055
|
}
|
|
@@ -1059,8 +1074,7 @@ const deserializeAws_json1_0DisassociateSubnetsCommandError = async (output, con
|
|
|
1059
1074
|
body: await parseBody(output.body, context),
|
|
1060
1075
|
};
|
|
1061
1076
|
let response;
|
|
1062
|
-
|
|
1063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1078
|
switch (errorCode) {
|
|
1065
1079
|
case "InternalServerError":
|
|
1066
1080
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1082,10 +1096,12 @@ const deserializeAws_json1_0DisassociateSubnetsCommandError = async (output, con
|
|
|
1082
1096
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1083
1097
|
default:
|
|
1084
1098
|
const parsedBody = parsedOutput.body;
|
|
1099
|
+
const $metadata = deserializeMetadata(output);
|
|
1100
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1085
1101
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1102
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1087
1103
|
$fault: "client",
|
|
1088
|
-
$metadata
|
|
1104
|
+
$metadata,
|
|
1089
1105
|
});
|
|
1090
1106
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
1107
|
}
|
|
@@ -1110,8 +1126,7 @@ const deserializeAws_json1_0ListFirewallPoliciesCommandError = async (output, co
|
|
|
1110
1126
|
body: await parseBody(output.body, context),
|
|
1111
1127
|
};
|
|
1112
1128
|
let response;
|
|
1113
|
-
|
|
1114
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
1130
|
switch (errorCode) {
|
|
1116
1131
|
case "InternalServerError":
|
|
1117
1132
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1124,10 +1139,12 @@ const deserializeAws_json1_0ListFirewallPoliciesCommandError = async (output, co
|
|
|
1124
1139
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1125
1140
|
default:
|
|
1126
1141
|
const parsedBody = parsedOutput.body;
|
|
1142
|
+
const $metadata = deserializeMetadata(output);
|
|
1143
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1127
1144
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1129
1146
|
$fault: "client",
|
|
1130
|
-
$metadata
|
|
1147
|
+
$metadata,
|
|
1131
1148
|
});
|
|
1132
1149
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1133
1150
|
}
|
|
@@ -1152,8 +1169,7 @@ const deserializeAws_json1_0ListFirewallsCommandError = async (output, context)
|
|
|
1152
1169
|
body: await parseBody(output.body, context),
|
|
1153
1170
|
};
|
|
1154
1171
|
let response;
|
|
1155
|
-
|
|
1156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1173
|
switch (errorCode) {
|
|
1158
1174
|
case "InternalServerError":
|
|
1159
1175
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1166,10 +1182,12 @@ const deserializeAws_json1_0ListFirewallsCommandError = async (output, context)
|
|
|
1166
1182
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1167
1183
|
default:
|
|
1168
1184
|
const parsedBody = parsedOutput.body;
|
|
1185
|
+
const $metadata = deserializeMetadata(output);
|
|
1186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1169
1187
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1171
1189
|
$fault: "client",
|
|
1172
|
-
$metadata
|
|
1190
|
+
$metadata,
|
|
1173
1191
|
});
|
|
1174
1192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1175
1193
|
}
|
|
@@ -1194,8 +1212,7 @@ const deserializeAws_json1_0ListRuleGroupsCommandError = async (output, context)
|
|
|
1194
1212
|
body: await parseBody(output.body, context),
|
|
1195
1213
|
};
|
|
1196
1214
|
let response;
|
|
1197
|
-
|
|
1198
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
1216
|
switch (errorCode) {
|
|
1200
1217
|
case "InternalServerError":
|
|
1201
1218
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1208,10 +1225,12 @@ const deserializeAws_json1_0ListRuleGroupsCommandError = async (output, context)
|
|
|
1208
1225
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1209
1226
|
default:
|
|
1210
1227
|
const parsedBody = parsedOutput.body;
|
|
1228
|
+
const $metadata = deserializeMetadata(output);
|
|
1229
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1211
1230
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1231
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1213
1232
|
$fault: "client",
|
|
1214
|
-
$metadata
|
|
1233
|
+
$metadata,
|
|
1215
1234
|
});
|
|
1216
1235
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1217
1236
|
}
|
|
@@ -1236,8 +1255,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1236
1255
|
body: await parseBody(output.body, context),
|
|
1237
1256
|
};
|
|
1238
1257
|
let response;
|
|
1239
|
-
|
|
1240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1259
|
switch (errorCode) {
|
|
1242
1260
|
case "InternalServerError":
|
|
1243
1261
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1253,10 +1271,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1253
1271
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1254
1272
|
default:
|
|
1255
1273
|
const parsedBody = parsedOutput.body;
|
|
1274
|
+
const $metadata = deserializeMetadata(output);
|
|
1275
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1256
1276
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1277
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1258
1278
|
$fault: "client",
|
|
1259
|
-
$metadata
|
|
1279
|
+
$metadata,
|
|
1260
1280
|
});
|
|
1261
1281
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1262
1282
|
}
|
|
@@ -1281,8 +1301,7 @@ const deserializeAws_json1_0PutResourcePolicyCommandError = async (output, conte
|
|
|
1281
1301
|
body: await parseBody(output.body, context),
|
|
1282
1302
|
};
|
|
1283
1303
|
let response;
|
|
1284
|
-
|
|
1285
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1305
|
switch (errorCode) {
|
|
1287
1306
|
case "InternalServerError":
|
|
1288
1307
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1301,10 +1320,12 @@ const deserializeAws_json1_0PutResourcePolicyCommandError = async (output, conte
|
|
|
1301
1320
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1302
1321
|
default:
|
|
1303
1322
|
const parsedBody = parsedOutput.body;
|
|
1323
|
+
const $metadata = deserializeMetadata(output);
|
|
1324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1304
1325
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1305
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1306
1327
|
$fault: "client",
|
|
1307
|
-
$metadata
|
|
1328
|
+
$metadata,
|
|
1308
1329
|
});
|
|
1309
1330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1310
1331
|
}
|
|
@@ -1329,8 +1350,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1329
1350
|
body: await parseBody(output.body, context),
|
|
1330
1351
|
};
|
|
1331
1352
|
let response;
|
|
1332
|
-
|
|
1333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1354
|
switch (errorCode) {
|
|
1335
1355
|
case "InternalServerError":
|
|
1336
1356
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1346,10 +1366,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1346
1366
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1347
1367
|
default:
|
|
1348
1368
|
const parsedBody = parsedOutput.body;
|
|
1369
|
+
const $metadata = deserializeMetadata(output);
|
|
1370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1349
1371
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1350
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1351
1373
|
$fault: "client",
|
|
1352
|
-
$metadata
|
|
1374
|
+
$metadata,
|
|
1353
1375
|
});
|
|
1354
1376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1355
1377
|
}
|
|
@@ -1374,8 +1396,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1374
1396
|
body: await parseBody(output.body, context),
|
|
1375
1397
|
};
|
|
1376
1398
|
let response;
|
|
1377
|
-
|
|
1378
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1400
|
switch (errorCode) {
|
|
1380
1401
|
case "InternalServerError":
|
|
1381
1402
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1391,10 +1412,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1391
1412
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1392
1413
|
default:
|
|
1393
1414
|
const parsedBody = parsedOutput.body;
|
|
1415
|
+
const $metadata = deserializeMetadata(output);
|
|
1416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1394
1417
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1395
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1396
1419
|
$fault: "client",
|
|
1397
|
-
$metadata
|
|
1420
|
+
$metadata,
|
|
1398
1421
|
});
|
|
1399
1422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1400
1423
|
}
|
|
@@ -1419,8 +1442,7 @@ const deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = async (
|
|
|
1419
1442
|
body: await parseBody(output.body, context),
|
|
1420
1443
|
};
|
|
1421
1444
|
let response;
|
|
1422
|
-
|
|
1423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
1446
|
switch (errorCode) {
|
|
1425
1447
|
case "InternalServerError":
|
|
1426
1448
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1442,10 +1464,12 @@ const deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = async (
|
|
|
1442
1464
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1443
1465
|
default:
|
|
1444
1466
|
const parsedBody = parsedOutput.body;
|
|
1467
|
+
const $metadata = deserializeMetadata(output);
|
|
1468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1445
1469
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1447
1471
|
$fault: "client",
|
|
1448
|
-
$metadata
|
|
1472
|
+
$metadata,
|
|
1449
1473
|
});
|
|
1450
1474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1451
1475
|
}
|
|
@@ -1470,8 +1494,7 @@ const deserializeAws_json1_0UpdateFirewallDescriptionCommandError = async (outpu
|
|
|
1470
1494
|
body: await parseBody(output.body, context),
|
|
1471
1495
|
};
|
|
1472
1496
|
let response;
|
|
1473
|
-
|
|
1474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1498
|
switch (errorCode) {
|
|
1476
1499
|
case "InternalServerError":
|
|
1477
1500
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1490,10 +1513,12 @@ const deserializeAws_json1_0UpdateFirewallDescriptionCommandError = async (outpu
|
|
|
1490
1513
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1491
1514
|
default:
|
|
1492
1515
|
const parsedBody = parsedOutput.body;
|
|
1516
|
+
const $metadata = deserializeMetadata(output);
|
|
1517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1493
1518
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1495
1520
|
$fault: "client",
|
|
1496
|
-
$metadata
|
|
1521
|
+
$metadata,
|
|
1497
1522
|
});
|
|
1498
1523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1499
1524
|
}
|
|
@@ -1518,8 +1543,7 @@ const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError =
|
|
|
1518
1543
|
body: await parseBody(output.body, context),
|
|
1519
1544
|
};
|
|
1520
1545
|
let response;
|
|
1521
|
-
|
|
1522
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1547
|
switch (errorCode) {
|
|
1524
1548
|
case "InternalServerError":
|
|
1525
1549
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1541,10 +1565,12 @@ const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError =
|
|
|
1541
1565
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1542
1566
|
default:
|
|
1543
1567
|
const parsedBody = parsedOutput.body;
|
|
1568
|
+
const $metadata = deserializeMetadata(output);
|
|
1569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1544
1570
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1546
1572
|
$fault: "client",
|
|
1547
|
-
$metadata
|
|
1573
|
+
$metadata,
|
|
1548
1574
|
});
|
|
1549
1575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1550
1576
|
}
|
|
@@ -1569,8 +1595,7 @@ const deserializeAws_json1_0UpdateFirewallPolicyCommandError = async (output, co
|
|
|
1569
1595
|
body: await parseBody(output.body, context),
|
|
1570
1596
|
};
|
|
1571
1597
|
let response;
|
|
1572
|
-
|
|
1573
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1599
|
switch (errorCode) {
|
|
1575
1600
|
case "InternalServerError":
|
|
1576
1601
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1589,10 +1614,12 @@ const deserializeAws_json1_0UpdateFirewallPolicyCommandError = async (output, co
|
|
|
1589
1614
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1590
1615
|
default:
|
|
1591
1616
|
const parsedBody = parsedOutput.body;
|
|
1617
|
+
const $metadata = deserializeMetadata(output);
|
|
1618
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1592
1619
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1620
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1594
1621
|
$fault: "client",
|
|
1595
|
-
$metadata
|
|
1622
|
+
$metadata,
|
|
1596
1623
|
});
|
|
1597
1624
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1598
1625
|
}
|
|
@@ -1617,8 +1644,7 @@ const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = a
|
|
|
1617
1644
|
body: await parseBody(output.body, context),
|
|
1618
1645
|
};
|
|
1619
1646
|
let response;
|
|
1620
|
-
|
|
1621
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
1648
|
switch (errorCode) {
|
|
1623
1649
|
case "InternalServerError":
|
|
1624
1650
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1640,10 +1666,12 @@ const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = a
|
|
|
1640
1666
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1641
1667
|
default:
|
|
1642
1668
|
const parsedBody = parsedOutput.body;
|
|
1669
|
+
const $metadata = deserializeMetadata(output);
|
|
1670
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1643
1671
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1644
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1645
1673
|
$fault: "client",
|
|
1646
|
-
$metadata
|
|
1674
|
+
$metadata,
|
|
1647
1675
|
});
|
|
1648
1676
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1649
1677
|
}
|
|
@@ -1668,8 +1696,7 @@ const deserializeAws_json1_0UpdateLoggingConfigurationCommandError = async (outp
|
|
|
1668
1696
|
body: await parseBody(output.body, context),
|
|
1669
1697
|
};
|
|
1670
1698
|
let response;
|
|
1671
|
-
|
|
1672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1700
|
switch (errorCode) {
|
|
1674
1701
|
case "InternalServerError":
|
|
1675
1702
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1691,10 +1718,12 @@ const deserializeAws_json1_0UpdateLoggingConfigurationCommandError = async (outp
|
|
|
1691
1718
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1692
1719
|
default:
|
|
1693
1720
|
const parsedBody = parsedOutput.body;
|
|
1721
|
+
const $metadata = deserializeMetadata(output);
|
|
1722
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1694
1723
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1724
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1696
1725
|
$fault: "client",
|
|
1697
|
-
$metadata
|
|
1726
|
+
$metadata,
|
|
1698
1727
|
});
|
|
1699
1728
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1700
1729
|
}
|
|
@@ -1719,8 +1748,7 @@ const deserializeAws_json1_0UpdateRuleGroupCommandError = async (output, context
|
|
|
1719
1748
|
body: await parseBody(output.body, context),
|
|
1720
1749
|
};
|
|
1721
1750
|
let response;
|
|
1722
|
-
|
|
1723
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1752
|
switch (errorCode) {
|
|
1725
1753
|
case "InternalServerError":
|
|
1726
1754
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1739,10 +1767,12 @@ const deserializeAws_json1_0UpdateRuleGroupCommandError = async (output, context
|
|
|
1739
1767
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1740
1768
|
default:
|
|
1741
1769
|
const parsedBody = parsedOutput.body;
|
|
1770
|
+
const $metadata = deserializeMetadata(output);
|
|
1771
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1742
1772
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1743
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1773
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1744
1774
|
$fault: "client",
|
|
1745
|
-
$metadata
|
|
1775
|
+
$metadata,
|
|
1746
1776
|
});
|
|
1747
1777
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1748
1778
|
}
|
|
@@ -1767,8 +1797,7 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (ou
|
|
|
1767
1797
|
body: await parseBody(output.body, context),
|
|
1768
1798
|
};
|
|
1769
1799
|
let response;
|
|
1770
|
-
|
|
1771
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1801
|
switch (errorCode) {
|
|
1773
1802
|
case "InternalServerError":
|
|
1774
1803
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1790,10 +1819,12 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (ou
|
|
|
1790
1819
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1791
1820
|
default:
|
|
1792
1821
|
const parsedBody = parsedOutput.body;
|
|
1822
|
+
const $metadata = deserializeMetadata(output);
|
|
1823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1793
1824
|
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1795
1826
|
$fault: "client",
|
|
1796
|
-
$metadata
|
|
1827
|
+
$metadata,
|
|
1797
1828
|
});
|
|
1798
1829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1799
1830
|
}
|
|
@@ -1908,16 +1939,14 @@ const deserializeAws_json1_0UnsupportedOperationExceptionResponse = async (parse
|
|
|
1908
1939
|
};
|
|
1909
1940
|
const serializeAws_json1_0ActionDefinition = (input, context) => {
|
|
1910
1941
|
return {
|
|
1911
|
-
...(input.PublishMetricAction
|
|
1912
|
-
input.PublishMetricAction !== null && {
|
|
1942
|
+
...(input.PublishMetricAction != null && {
|
|
1913
1943
|
PublishMetricAction: serializeAws_json1_0PublishMetricAction(input.PublishMetricAction, context),
|
|
1914
1944
|
}),
|
|
1915
1945
|
};
|
|
1916
1946
|
};
|
|
1917
1947
|
const serializeAws_json1_0Address = (input, context) => {
|
|
1918
1948
|
return {
|
|
1919
|
-
...(input.AddressDefinition
|
|
1920
|
-
input.AddressDefinition !== null && { AddressDefinition: input.AddressDefinition }),
|
|
1949
|
+
...(input.AddressDefinition != null && { AddressDefinition: input.AddressDefinition }),
|
|
1921
1950
|
};
|
|
1922
1951
|
};
|
|
1923
1952
|
const serializeAws_json1_0Addresses = (input, context) => {
|
|
@@ -1932,22 +1961,20 @@ const serializeAws_json1_0Addresses = (input, context) => {
|
|
|
1932
1961
|
};
|
|
1933
1962
|
const serializeAws_json1_0AssociateFirewallPolicyRequest = (input, context) => {
|
|
1934
1963
|
return {
|
|
1935
|
-
...(input.FirewallArn
|
|
1936
|
-
...(input.FirewallName
|
|
1937
|
-
...(input.FirewallPolicyArn
|
|
1938
|
-
|
|
1939
|
-
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
1964
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
1965
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
1966
|
+
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
1967
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
1940
1968
|
};
|
|
1941
1969
|
};
|
|
1942
1970
|
const serializeAws_json1_0AssociateSubnetsRequest = (input, context) => {
|
|
1943
1971
|
return {
|
|
1944
|
-
...(input.FirewallArn
|
|
1945
|
-
...(input.FirewallName
|
|
1946
|
-
...(input.SubnetMappings
|
|
1947
|
-
input.SubnetMappings !== null && {
|
|
1972
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
1973
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
1974
|
+
...(input.SubnetMappings != null && {
|
|
1948
1975
|
SubnetMappings: serializeAws_json1_0SubnetMappings(input.SubnetMappings, context),
|
|
1949
1976
|
}),
|
|
1950
|
-
...(input.UpdateToken
|
|
1977
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
1951
1978
|
};
|
|
1952
1979
|
};
|
|
1953
1980
|
const serializeAws_json1_0AzSubnets = (input, context) => {
|
|
@@ -1962,75 +1989,62 @@ const serializeAws_json1_0AzSubnets = (input, context) => {
|
|
|
1962
1989
|
};
|
|
1963
1990
|
const serializeAws_json1_0CreateFirewallPolicyRequest = (input, context) => {
|
|
1964
1991
|
return {
|
|
1965
|
-
...(input.Description
|
|
1966
|
-
...(input.DryRun
|
|
1967
|
-
...(input.EncryptionConfiguration
|
|
1968
|
-
input.EncryptionConfiguration !== null && {
|
|
1992
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1993
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1994
|
+
...(input.EncryptionConfiguration != null && {
|
|
1969
1995
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1970
1996
|
}),
|
|
1971
|
-
...(input.FirewallPolicy
|
|
1972
|
-
input.FirewallPolicy !== null && {
|
|
1997
|
+
...(input.FirewallPolicy != null && {
|
|
1973
1998
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
1974
1999
|
}),
|
|
1975
|
-
...(input.FirewallPolicyName
|
|
1976
|
-
|
|
1977
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2000
|
+
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2001
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1978
2002
|
};
|
|
1979
2003
|
};
|
|
1980
2004
|
const serializeAws_json1_0CreateFirewallRequest = (input, context) => {
|
|
1981
2005
|
return {
|
|
1982
|
-
...(input.DeleteProtection
|
|
1983
|
-
|
|
1984
|
-
...(input.
|
|
1985
|
-
...(input.EncryptionConfiguration !== undefined &&
|
|
1986
|
-
input.EncryptionConfiguration !== null && {
|
|
2006
|
+
...(input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection }),
|
|
2007
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2008
|
+
...(input.EncryptionConfiguration != null && {
|
|
1987
2009
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1988
2010
|
}),
|
|
1989
|
-
...(input.FirewallName
|
|
1990
|
-
...(input.FirewallPolicyArn
|
|
1991
|
-
|
|
1992
|
-
...(input.FirewallPolicyChangeProtection !== undefined &&
|
|
1993
|
-
input.FirewallPolicyChangeProtection !== null && {
|
|
2011
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2012
|
+
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2013
|
+
...(input.FirewallPolicyChangeProtection != null && {
|
|
1994
2014
|
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
1995
2015
|
}),
|
|
1996
|
-
...(input.SubnetChangeProtection
|
|
1997
|
-
|
|
1998
|
-
...(input.SubnetMappings !== undefined &&
|
|
1999
|
-
input.SubnetMappings !== null && {
|
|
2016
|
+
...(input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
2017
|
+
...(input.SubnetMappings != null && {
|
|
2000
2018
|
SubnetMappings: serializeAws_json1_0SubnetMappings(input.SubnetMappings, context),
|
|
2001
2019
|
}),
|
|
2002
|
-
...(input.Tags
|
|
2003
|
-
...(input.VpcId
|
|
2020
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2021
|
+
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
2004
2022
|
};
|
|
2005
2023
|
};
|
|
2006
2024
|
const serializeAws_json1_0CreateRuleGroupRequest = (input, context) => {
|
|
2007
2025
|
return {
|
|
2008
|
-
...(input.Capacity
|
|
2009
|
-
...(input.Description
|
|
2010
|
-
...(input.DryRun
|
|
2011
|
-
...(input.EncryptionConfiguration
|
|
2012
|
-
input.EncryptionConfiguration !== null && {
|
|
2026
|
+
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
2027
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2028
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2029
|
+
...(input.EncryptionConfiguration != null && {
|
|
2013
2030
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2014
2031
|
}),
|
|
2015
|
-
...(input.RuleGroup
|
|
2016
|
-
|
|
2017
|
-
...(input.
|
|
2018
|
-
...(input.
|
|
2019
|
-
...(input.SourceMetadata !== undefined &&
|
|
2020
|
-
input.SourceMetadata !== null && {
|
|
2032
|
+
...(input.RuleGroup != null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) }),
|
|
2033
|
+
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2034
|
+
...(input.Rules != null && { Rules: input.Rules }),
|
|
2035
|
+
...(input.SourceMetadata != null && {
|
|
2021
2036
|
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
2022
2037
|
}),
|
|
2023
|
-
...(input.Tags
|
|
2024
|
-
...(input.Type
|
|
2038
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2039
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2025
2040
|
};
|
|
2026
2041
|
};
|
|
2027
2042
|
const serializeAws_json1_0CustomAction = (input, context) => {
|
|
2028
2043
|
return {
|
|
2029
|
-
...(input.ActionDefinition
|
|
2030
|
-
input.ActionDefinition !== null && {
|
|
2044
|
+
...(input.ActionDefinition != null && {
|
|
2031
2045
|
ActionDefinition: serializeAws_json1_0ActionDefinition(input.ActionDefinition, context),
|
|
2032
2046
|
}),
|
|
2033
|
-
...(input.ActionName
|
|
2047
|
+
...(input.ActionName != null && { ActionName: input.ActionName }),
|
|
2034
2048
|
};
|
|
2035
2049
|
};
|
|
2036
2050
|
const serializeAws_json1_0CustomActions = (input, context) => {
|
|
@@ -2045,72 +2059,68 @@ const serializeAws_json1_0CustomActions = (input, context) => {
|
|
|
2045
2059
|
};
|
|
2046
2060
|
const serializeAws_json1_0DeleteFirewallPolicyRequest = (input, context) => {
|
|
2047
2061
|
return {
|
|
2048
|
-
...(input.FirewallPolicyArn
|
|
2049
|
-
|
|
2050
|
-
...(input.FirewallPolicyName !== undefined &&
|
|
2051
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2062
|
+
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2063
|
+
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2052
2064
|
};
|
|
2053
2065
|
};
|
|
2054
2066
|
const serializeAws_json1_0DeleteFirewallRequest = (input, context) => {
|
|
2055
2067
|
return {
|
|
2056
|
-
...(input.FirewallArn
|
|
2057
|
-
...(input.FirewallName
|
|
2068
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2069
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2058
2070
|
};
|
|
2059
2071
|
};
|
|
2060
2072
|
const serializeAws_json1_0DeleteResourcePolicyRequest = (input, context) => {
|
|
2061
2073
|
return {
|
|
2062
|
-
...(input.ResourceArn
|
|
2074
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2063
2075
|
};
|
|
2064
2076
|
};
|
|
2065
2077
|
const serializeAws_json1_0DeleteRuleGroupRequest = (input, context) => {
|
|
2066
2078
|
return {
|
|
2067
|
-
...(input.RuleGroupArn
|
|
2068
|
-
...(input.RuleGroupName
|
|
2069
|
-
...(input.Type
|
|
2079
|
+
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2080
|
+
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2081
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2070
2082
|
};
|
|
2071
2083
|
};
|
|
2072
2084
|
const serializeAws_json1_0DescribeFirewallPolicyRequest = (input, context) => {
|
|
2073
2085
|
return {
|
|
2074
|
-
...(input.FirewallPolicyArn
|
|
2075
|
-
|
|
2076
|
-
...(input.FirewallPolicyName !== undefined &&
|
|
2077
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2086
|
+
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2087
|
+
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2078
2088
|
};
|
|
2079
2089
|
};
|
|
2080
2090
|
const serializeAws_json1_0DescribeFirewallRequest = (input, context) => {
|
|
2081
2091
|
return {
|
|
2082
|
-
...(input.FirewallArn
|
|
2083
|
-
...(input.FirewallName
|
|
2092
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2093
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2084
2094
|
};
|
|
2085
2095
|
};
|
|
2086
2096
|
const serializeAws_json1_0DescribeLoggingConfigurationRequest = (input, context) => {
|
|
2087
2097
|
return {
|
|
2088
|
-
...(input.FirewallArn
|
|
2089
|
-
...(input.FirewallName
|
|
2098
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2099
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2090
2100
|
};
|
|
2091
2101
|
};
|
|
2092
2102
|
const serializeAws_json1_0DescribeResourcePolicyRequest = (input, context) => {
|
|
2093
2103
|
return {
|
|
2094
|
-
...(input.ResourceArn
|
|
2104
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2095
2105
|
};
|
|
2096
2106
|
};
|
|
2097
2107
|
const serializeAws_json1_0DescribeRuleGroupMetadataRequest = (input, context) => {
|
|
2098
2108
|
return {
|
|
2099
|
-
...(input.RuleGroupArn
|
|
2100
|
-
...(input.RuleGroupName
|
|
2101
|
-
...(input.Type
|
|
2109
|
+
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2110
|
+
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2111
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2102
2112
|
};
|
|
2103
2113
|
};
|
|
2104
2114
|
const serializeAws_json1_0DescribeRuleGroupRequest = (input, context) => {
|
|
2105
2115
|
return {
|
|
2106
|
-
...(input.RuleGroupArn
|
|
2107
|
-
...(input.RuleGroupName
|
|
2108
|
-
...(input.Type
|
|
2116
|
+
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2117
|
+
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2118
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2109
2119
|
};
|
|
2110
2120
|
};
|
|
2111
2121
|
const serializeAws_json1_0Dimension = (input, context) => {
|
|
2112
2122
|
return {
|
|
2113
|
-
...(input.Value
|
|
2123
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2114
2124
|
};
|
|
2115
2125
|
};
|
|
2116
2126
|
const serializeAws_json1_0Dimensions = (input, context) => {
|
|
@@ -2125,47 +2135,39 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
2125
2135
|
};
|
|
2126
2136
|
const serializeAws_json1_0DisassociateSubnetsRequest = (input, context) => {
|
|
2127
2137
|
return {
|
|
2128
|
-
...(input.FirewallArn
|
|
2129
|
-
...(input.FirewallName
|
|
2130
|
-
...(input.SubnetIds
|
|
2131
|
-
|
|
2132
|
-
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2138
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2139
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2140
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_0AzSubnets(input.SubnetIds, context) }),
|
|
2141
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2133
2142
|
};
|
|
2134
2143
|
};
|
|
2135
2144
|
const serializeAws_json1_0EncryptionConfiguration = (input, context) => {
|
|
2136
2145
|
return {
|
|
2137
|
-
...(input.KeyId
|
|
2138
|
-
...(input.Type
|
|
2146
|
+
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2147
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2139
2148
|
};
|
|
2140
2149
|
};
|
|
2141
2150
|
const serializeAws_json1_0FirewallPolicy = (input, context) => {
|
|
2142
2151
|
return {
|
|
2143
|
-
...(input.StatefulDefaultActions
|
|
2144
|
-
input.StatefulDefaultActions !== null && {
|
|
2152
|
+
...(input.StatefulDefaultActions != null && {
|
|
2145
2153
|
StatefulDefaultActions: serializeAws_json1_0StatefulActions(input.StatefulDefaultActions, context),
|
|
2146
2154
|
}),
|
|
2147
|
-
...(input.StatefulEngineOptions
|
|
2148
|
-
input.StatefulEngineOptions !== null && {
|
|
2155
|
+
...(input.StatefulEngineOptions != null && {
|
|
2149
2156
|
StatefulEngineOptions: serializeAws_json1_0StatefulEngineOptions(input.StatefulEngineOptions, context),
|
|
2150
2157
|
}),
|
|
2151
|
-
...(input.StatefulRuleGroupReferences
|
|
2152
|
-
input.StatefulRuleGroupReferences !== null && {
|
|
2158
|
+
...(input.StatefulRuleGroupReferences != null && {
|
|
2153
2159
|
StatefulRuleGroupReferences: serializeAws_json1_0StatefulRuleGroupReferences(input.StatefulRuleGroupReferences, context),
|
|
2154
2160
|
}),
|
|
2155
|
-
...(input.StatelessCustomActions
|
|
2156
|
-
input.StatelessCustomActions !== null && {
|
|
2161
|
+
...(input.StatelessCustomActions != null && {
|
|
2157
2162
|
StatelessCustomActions: serializeAws_json1_0CustomActions(input.StatelessCustomActions, context),
|
|
2158
2163
|
}),
|
|
2159
|
-
...(input.StatelessDefaultActions
|
|
2160
|
-
input.StatelessDefaultActions !== null && {
|
|
2164
|
+
...(input.StatelessDefaultActions != null && {
|
|
2161
2165
|
StatelessDefaultActions: serializeAws_json1_0StatelessActions(input.StatelessDefaultActions, context),
|
|
2162
2166
|
}),
|
|
2163
|
-
...(input.StatelessFragmentDefaultActions
|
|
2164
|
-
input.StatelessFragmentDefaultActions !== null && {
|
|
2167
|
+
...(input.StatelessFragmentDefaultActions != null && {
|
|
2165
2168
|
StatelessFragmentDefaultActions: serializeAws_json1_0StatelessActions(input.StatelessFragmentDefaultActions, context),
|
|
2166
2169
|
}),
|
|
2167
|
-
...(input.StatelessRuleGroupReferences
|
|
2168
|
-
input.StatelessRuleGroupReferences !== null && {
|
|
2170
|
+
...(input.StatelessRuleGroupReferences != null && {
|
|
2169
2171
|
StatelessRuleGroupReferences: serializeAws_json1_0StatelessRuleGroupReferences(input.StatelessRuleGroupReferences, context),
|
|
2170
2172
|
}),
|
|
2171
2173
|
};
|
|
@@ -2182,19 +2184,17 @@ const serializeAws_json1_0Flags = (input, context) => {
|
|
|
2182
2184
|
};
|
|
2183
2185
|
const serializeAws_json1_0Header = (input, context) => {
|
|
2184
2186
|
return {
|
|
2185
|
-
...(input.Destination
|
|
2186
|
-
...(input.DestinationPort
|
|
2187
|
-
|
|
2188
|
-
...(input.
|
|
2189
|
-
...(input.
|
|
2190
|
-
...(input.
|
|
2191
|
-
...(input.SourcePort !== undefined && input.SourcePort !== null && { SourcePort: input.SourcePort }),
|
|
2187
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
2188
|
+
...(input.DestinationPort != null && { DestinationPort: input.DestinationPort }),
|
|
2189
|
+
...(input.Direction != null && { Direction: input.Direction }),
|
|
2190
|
+
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
2191
|
+
...(input.Source != null && { Source: input.Source }),
|
|
2192
|
+
...(input.SourcePort != null && { SourcePort: input.SourcePort }),
|
|
2192
2193
|
};
|
|
2193
2194
|
};
|
|
2194
2195
|
const serializeAws_json1_0IPSet = (input, context) => {
|
|
2195
2196
|
return {
|
|
2196
|
-
...(input.Definition
|
|
2197
|
-
input.Definition !== null && {
|
|
2197
|
+
...(input.Definition != null && {
|
|
2198
2198
|
Definition: serializeAws_json1_0VariableDefinitionList(input.Definition, context),
|
|
2199
2199
|
}),
|
|
2200
2200
|
};
|
|
@@ -2212,43 +2212,40 @@ const serializeAws_json1_0IPSets = (input, context) => {
|
|
|
2212
2212
|
};
|
|
2213
2213
|
const serializeAws_json1_0ListFirewallPoliciesRequest = (input, context) => {
|
|
2214
2214
|
return {
|
|
2215
|
-
...(input.MaxResults
|
|
2216
|
-
...(input.NextToken
|
|
2215
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2216
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2217
2217
|
};
|
|
2218
2218
|
};
|
|
2219
2219
|
const serializeAws_json1_0ListFirewallsRequest = (input, context) => {
|
|
2220
2220
|
return {
|
|
2221
|
-
...(input.MaxResults
|
|
2222
|
-
...(input.NextToken
|
|
2223
|
-
...(input.VpcIds
|
|
2224
|
-
input.VpcIds !== null && { VpcIds: serializeAws_json1_0VpcIds(input.VpcIds, context) }),
|
|
2221
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2222
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2223
|
+
...(input.VpcIds != null && { VpcIds: serializeAws_json1_0VpcIds(input.VpcIds, context) }),
|
|
2225
2224
|
};
|
|
2226
2225
|
};
|
|
2227
2226
|
const serializeAws_json1_0ListRuleGroupsRequest = (input, context) => {
|
|
2228
2227
|
return {
|
|
2229
|
-
...(input.ManagedType
|
|
2230
|
-
...(input.MaxResults
|
|
2231
|
-
...(input.NextToken
|
|
2232
|
-
...(input.Scope
|
|
2233
|
-
...(input.Type
|
|
2228
|
+
...(input.ManagedType != null && { ManagedType: input.ManagedType }),
|
|
2229
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2230
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2231
|
+
...(input.Scope != null && { Scope: input.Scope }),
|
|
2232
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2234
2233
|
};
|
|
2235
2234
|
};
|
|
2236
2235
|
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
2237
2236
|
return {
|
|
2238
|
-
...(input.MaxResults
|
|
2239
|
-
...(input.NextToken
|
|
2240
|
-
...(input.ResourceArn
|
|
2237
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2238
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2239
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2241
2240
|
};
|
|
2242
2241
|
};
|
|
2243
2242
|
const serializeAws_json1_0LogDestinationConfig = (input, context) => {
|
|
2244
2243
|
return {
|
|
2245
|
-
...(input.LogDestination
|
|
2246
|
-
input.LogDestination !== null && {
|
|
2244
|
+
...(input.LogDestination != null && {
|
|
2247
2245
|
LogDestination: serializeAws_json1_0LogDestinationMap(input.LogDestination, context),
|
|
2248
2246
|
}),
|
|
2249
|
-
...(input.LogDestinationType
|
|
2250
|
-
|
|
2251
|
-
...(input.LogType !== undefined && input.LogType !== null && { LogType: input.LogType }),
|
|
2247
|
+
...(input.LogDestinationType != null && { LogDestinationType: input.LogDestinationType }),
|
|
2248
|
+
...(input.LogType != null && { LogType: input.LogType }),
|
|
2252
2249
|
};
|
|
2253
2250
|
};
|
|
2254
2251
|
const serializeAws_json1_0LogDestinationConfigs = (input, context) => {
|
|
@@ -2274,34 +2271,27 @@ const serializeAws_json1_0LogDestinationMap = (input, context) => {
|
|
|
2274
2271
|
};
|
|
2275
2272
|
const serializeAws_json1_0LoggingConfiguration = (input, context) => {
|
|
2276
2273
|
return {
|
|
2277
|
-
...(input.LogDestinationConfigs
|
|
2278
|
-
input.LogDestinationConfigs !== null && {
|
|
2274
|
+
...(input.LogDestinationConfigs != null && {
|
|
2279
2275
|
LogDestinationConfigs: serializeAws_json1_0LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
2280
2276
|
}),
|
|
2281
2277
|
};
|
|
2282
2278
|
};
|
|
2283
2279
|
const serializeAws_json1_0MatchAttributes = (input, context) => {
|
|
2284
2280
|
return {
|
|
2285
|
-
...(input.DestinationPorts
|
|
2286
|
-
input.DestinationPorts !== null && {
|
|
2281
|
+
...(input.DestinationPorts != null && {
|
|
2287
2282
|
DestinationPorts: serializeAws_json1_0PortRanges(input.DestinationPorts, context),
|
|
2288
2283
|
}),
|
|
2289
|
-
...(input.Destinations
|
|
2290
|
-
|
|
2291
|
-
...(input.
|
|
2292
|
-
|
|
2293
|
-
...(input.
|
|
2294
|
-
input.SourcePorts !== null && { SourcePorts: serializeAws_json1_0PortRanges(input.SourcePorts, context) }),
|
|
2295
|
-
...(input.Sources !== undefined &&
|
|
2296
|
-
input.Sources !== null && { Sources: serializeAws_json1_0Addresses(input.Sources, context) }),
|
|
2297
|
-
...(input.TCPFlags !== undefined &&
|
|
2298
|
-
input.TCPFlags !== null && { TCPFlags: serializeAws_json1_0TCPFlags(input.TCPFlags, context) }),
|
|
2284
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_0Addresses(input.Destinations, context) }),
|
|
2285
|
+
...(input.Protocols != null && { Protocols: serializeAws_json1_0ProtocolNumbers(input.Protocols, context) }),
|
|
2286
|
+
...(input.SourcePorts != null && { SourcePorts: serializeAws_json1_0PortRanges(input.SourcePorts, context) }),
|
|
2287
|
+
...(input.Sources != null && { Sources: serializeAws_json1_0Addresses(input.Sources, context) }),
|
|
2288
|
+
...(input.TCPFlags != null && { TCPFlags: serializeAws_json1_0TCPFlags(input.TCPFlags, context) }),
|
|
2299
2289
|
};
|
|
2300
2290
|
};
|
|
2301
2291
|
const serializeAws_json1_0PortRange = (input, context) => {
|
|
2302
2292
|
return {
|
|
2303
|
-
...(input.FromPort
|
|
2304
|
-
...(input.ToPort
|
|
2293
|
+
...(input.FromPort != null && { FromPort: input.FromPort }),
|
|
2294
|
+
...(input.ToPort != null && { ToPort: input.ToPort }),
|
|
2305
2295
|
};
|
|
2306
2296
|
};
|
|
2307
2297
|
const serializeAws_json1_0PortRanges = (input, context) => {
|
|
@@ -2316,8 +2306,7 @@ const serializeAws_json1_0PortRanges = (input, context) => {
|
|
|
2316
2306
|
};
|
|
2317
2307
|
const serializeAws_json1_0PortSet = (input, context) => {
|
|
2318
2308
|
return {
|
|
2319
|
-
...(input.Definition
|
|
2320
|
-
input.Definition !== null && {
|
|
2309
|
+
...(input.Definition != null && {
|
|
2321
2310
|
Definition: serializeAws_json1_0VariableDefinitionList(input.Definition, context),
|
|
2322
2311
|
}),
|
|
2323
2312
|
};
|
|
@@ -2345,45 +2334,38 @@ const serializeAws_json1_0ProtocolNumbers = (input, context) => {
|
|
|
2345
2334
|
};
|
|
2346
2335
|
const serializeAws_json1_0PublishMetricAction = (input, context) => {
|
|
2347
2336
|
return {
|
|
2348
|
-
...(input.Dimensions
|
|
2349
|
-
input.Dimensions !== null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }),
|
|
2337
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }),
|
|
2350
2338
|
};
|
|
2351
2339
|
};
|
|
2352
2340
|
const serializeAws_json1_0PutResourcePolicyRequest = (input, context) => {
|
|
2353
2341
|
return {
|
|
2354
|
-
...(input.Policy
|
|
2355
|
-
...(input.ResourceArn
|
|
2342
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
2343
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2356
2344
|
};
|
|
2357
2345
|
};
|
|
2358
2346
|
const serializeAws_json1_0RuleDefinition = (input, context) => {
|
|
2359
2347
|
return {
|
|
2360
|
-
...(input.Actions
|
|
2361
|
-
|
|
2362
|
-
...(input.MatchAttributes !== undefined &&
|
|
2363
|
-
input.MatchAttributes !== null && {
|
|
2348
|
+
...(input.Actions != null && { Actions: serializeAws_json1_0StatelessActions(input.Actions, context) }),
|
|
2349
|
+
...(input.MatchAttributes != null && {
|
|
2364
2350
|
MatchAttributes: serializeAws_json1_0MatchAttributes(input.MatchAttributes, context),
|
|
2365
2351
|
}),
|
|
2366
2352
|
};
|
|
2367
2353
|
};
|
|
2368
2354
|
const serializeAws_json1_0RuleGroup = (input, context) => {
|
|
2369
2355
|
return {
|
|
2370
|
-
...(input.RuleVariables
|
|
2371
|
-
input.RuleVariables !== null && {
|
|
2356
|
+
...(input.RuleVariables != null && {
|
|
2372
2357
|
RuleVariables: serializeAws_json1_0RuleVariables(input.RuleVariables, context),
|
|
2373
2358
|
}),
|
|
2374
|
-
...(input.RulesSource
|
|
2375
|
-
|
|
2376
|
-
...(input.StatefulRuleOptions !== undefined &&
|
|
2377
|
-
input.StatefulRuleOptions !== null && {
|
|
2359
|
+
...(input.RulesSource != null && { RulesSource: serializeAws_json1_0RulesSource(input.RulesSource, context) }),
|
|
2360
|
+
...(input.StatefulRuleOptions != null && {
|
|
2378
2361
|
StatefulRuleOptions: serializeAws_json1_0StatefulRuleOptions(input.StatefulRuleOptions, context),
|
|
2379
2362
|
}),
|
|
2380
2363
|
};
|
|
2381
2364
|
};
|
|
2382
2365
|
const serializeAws_json1_0RuleOption = (input, context) => {
|
|
2383
2366
|
return {
|
|
2384
|
-
...(input.Keyword
|
|
2385
|
-
...(input.Settings
|
|
2386
|
-
input.Settings !== null && { Settings: serializeAws_json1_0Settings(input.Settings, context) }),
|
|
2367
|
+
...(input.Keyword != null && { Keyword: input.Keyword }),
|
|
2368
|
+
...(input.Settings != null && { Settings: serializeAws_json1_0Settings(input.Settings, context) }),
|
|
2387
2369
|
};
|
|
2388
2370
|
};
|
|
2389
2371
|
const serializeAws_json1_0RuleOptions = (input, context) => {
|
|
@@ -2398,29 +2380,23 @@ const serializeAws_json1_0RuleOptions = (input, context) => {
|
|
|
2398
2380
|
};
|
|
2399
2381
|
const serializeAws_json1_0RulesSource = (input, context) => {
|
|
2400
2382
|
return {
|
|
2401
|
-
...(input.RulesSourceList
|
|
2402
|
-
input.RulesSourceList !== null && {
|
|
2383
|
+
...(input.RulesSourceList != null && {
|
|
2403
2384
|
RulesSourceList: serializeAws_json1_0RulesSourceList(input.RulesSourceList, context),
|
|
2404
2385
|
}),
|
|
2405
|
-
...(input.RulesString
|
|
2406
|
-
...(input.StatefulRules
|
|
2407
|
-
input.StatefulRules !== null && {
|
|
2386
|
+
...(input.RulesString != null && { RulesString: input.RulesString }),
|
|
2387
|
+
...(input.StatefulRules != null && {
|
|
2408
2388
|
StatefulRules: serializeAws_json1_0StatefulRules(input.StatefulRules, context),
|
|
2409
2389
|
}),
|
|
2410
|
-
...(input.StatelessRulesAndCustomActions
|
|
2411
|
-
input.StatelessRulesAndCustomActions !== null && {
|
|
2390
|
+
...(input.StatelessRulesAndCustomActions != null && {
|
|
2412
2391
|
StatelessRulesAndCustomActions: serializeAws_json1_0StatelessRulesAndCustomActions(input.StatelessRulesAndCustomActions, context),
|
|
2413
2392
|
}),
|
|
2414
2393
|
};
|
|
2415
2394
|
};
|
|
2416
2395
|
const serializeAws_json1_0RulesSourceList = (input, context) => {
|
|
2417
2396
|
return {
|
|
2418
|
-
...(input.GeneratedRulesType
|
|
2419
|
-
|
|
2420
|
-
...(input.
|
|
2421
|
-
input.TargetTypes !== null && { TargetTypes: serializeAws_json1_0TargetTypes(input.TargetTypes, context) }),
|
|
2422
|
-
...(input.Targets !== undefined &&
|
|
2423
|
-
input.Targets !== null && { Targets: serializeAws_json1_0RuleTargets(input.Targets, context) }),
|
|
2397
|
+
...(input.GeneratedRulesType != null && { GeneratedRulesType: input.GeneratedRulesType }),
|
|
2398
|
+
...(input.TargetTypes != null && { TargetTypes: serializeAws_json1_0TargetTypes(input.TargetTypes, context) }),
|
|
2399
|
+
...(input.Targets != null && { Targets: serializeAws_json1_0RuleTargets(input.Targets, context) }),
|
|
2424
2400
|
};
|
|
2425
2401
|
};
|
|
2426
2402
|
const serializeAws_json1_0RuleTargets = (input, context) => {
|
|
@@ -2435,10 +2411,8 @@ const serializeAws_json1_0RuleTargets = (input, context) => {
|
|
|
2435
2411
|
};
|
|
2436
2412
|
const serializeAws_json1_0RuleVariables = (input, context) => {
|
|
2437
2413
|
return {
|
|
2438
|
-
...(input.IPSets
|
|
2439
|
-
|
|
2440
|
-
...(input.PortSets !== undefined &&
|
|
2441
|
-
input.PortSets !== null && { PortSets: serializeAws_json1_0PortSets(input.PortSets, context) }),
|
|
2414
|
+
...(input.IPSets != null && { IPSets: serializeAws_json1_0IPSets(input.IPSets, context) }),
|
|
2415
|
+
...(input.PortSets != null && { PortSets: serializeAws_json1_0PortSets(input.PortSets, context) }),
|
|
2442
2416
|
};
|
|
2443
2417
|
};
|
|
2444
2418
|
const serializeAws_json1_0Settings = (input, context) => {
|
|
@@ -2453,9 +2427,8 @@ const serializeAws_json1_0Settings = (input, context) => {
|
|
|
2453
2427
|
};
|
|
2454
2428
|
const serializeAws_json1_0SourceMetadata = (input, context) => {
|
|
2455
2429
|
return {
|
|
2456
|
-
...(input.SourceArn
|
|
2457
|
-
...(input.SourceUpdateToken
|
|
2458
|
-
input.SourceUpdateToken !== null && { SourceUpdateToken: input.SourceUpdateToken }),
|
|
2430
|
+
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
2431
|
+
...(input.SourceUpdateToken != null && { SourceUpdateToken: input.SourceUpdateToken }),
|
|
2459
2432
|
};
|
|
2460
2433
|
};
|
|
2461
2434
|
const serializeAws_json1_0StatefulActions = (input, context) => {
|
|
@@ -2470,29 +2443,26 @@ const serializeAws_json1_0StatefulActions = (input, context) => {
|
|
|
2470
2443
|
};
|
|
2471
2444
|
const serializeAws_json1_0StatefulEngineOptions = (input, context) => {
|
|
2472
2445
|
return {
|
|
2473
|
-
...(input.RuleOrder
|
|
2446
|
+
...(input.RuleOrder != null && { RuleOrder: input.RuleOrder }),
|
|
2474
2447
|
};
|
|
2475
2448
|
};
|
|
2476
2449
|
const serializeAws_json1_0StatefulRule = (input, context) => {
|
|
2477
2450
|
return {
|
|
2478
|
-
...(input.Action
|
|
2479
|
-
...(input.Header
|
|
2480
|
-
|
|
2481
|
-
...(input.RuleOptions !== undefined &&
|
|
2482
|
-
input.RuleOptions !== null && { RuleOptions: serializeAws_json1_0RuleOptions(input.RuleOptions, context) }),
|
|
2451
|
+
...(input.Action != null && { Action: input.Action }),
|
|
2452
|
+
...(input.Header != null && { Header: serializeAws_json1_0Header(input.Header, context) }),
|
|
2453
|
+
...(input.RuleOptions != null && { RuleOptions: serializeAws_json1_0RuleOptions(input.RuleOptions, context) }),
|
|
2483
2454
|
};
|
|
2484
2455
|
};
|
|
2485
2456
|
const serializeAws_json1_0StatefulRuleGroupOverride = (input, context) => {
|
|
2486
2457
|
return {
|
|
2487
|
-
...(input.Action
|
|
2458
|
+
...(input.Action != null && { Action: input.Action }),
|
|
2488
2459
|
};
|
|
2489
2460
|
};
|
|
2490
2461
|
const serializeAws_json1_0StatefulRuleGroupReference = (input, context) => {
|
|
2491
2462
|
return {
|
|
2492
|
-
...(input.Override
|
|
2493
|
-
|
|
2494
|
-
...(input.
|
|
2495
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2463
|
+
...(input.Override != null && { Override: serializeAws_json1_0StatefulRuleGroupOverride(input.Override, context) }),
|
|
2464
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
2465
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2496
2466
|
};
|
|
2497
2467
|
};
|
|
2498
2468
|
const serializeAws_json1_0StatefulRuleGroupReferences = (input, context) => {
|
|
@@ -2507,7 +2477,7 @@ const serializeAws_json1_0StatefulRuleGroupReferences = (input, context) => {
|
|
|
2507
2477
|
};
|
|
2508
2478
|
const serializeAws_json1_0StatefulRuleOptions = (input, context) => {
|
|
2509
2479
|
return {
|
|
2510
|
-
...(input.RuleOrder
|
|
2480
|
+
...(input.RuleOrder != null && { RuleOrder: input.RuleOrder }),
|
|
2511
2481
|
};
|
|
2512
2482
|
};
|
|
2513
2483
|
const serializeAws_json1_0StatefulRules = (input, context) => {
|
|
@@ -2532,17 +2502,16 @@ const serializeAws_json1_0StatelessActions = (input, context) => {
|
|
|
2532
2502
|
};
|
|
2533
2503
|
const serializeAws_json1_0StatelessRule = (input, context) => {
|
|
2534
2504
|
return {
|
|
2535
|
-
...(input.Priority
|
|
2536
|
-
...(input.RuleDefinition
|
|
2537
|
-
input.RuleDefinition !== null && {
|
|
2505
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
2506
|
+
...(input.RuleDefinition != null && {
|
|
2538
2507
|
RuleDefinition: serializeAws_json1_0RuleDefinition(input.RuleDefinition, context),
|
|
2539
2508
|
}),
|
|
2540
2509
|
};
|
|
2541
2510
|
};
|
|
2542
2511
|
const serializeAws_json1_0StatelessRuleGroupReference = (input, context) => {
|
|
2543
2512
|
return {
|
|
2544
|
-
...(input.Priority
|
|
2545
|
-
...(input.ResourceArn
|
|
2513
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
2514
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2546
2515
|
};
|
|
2547
2516
|
};
|
|
2548
2517
|
const serializeAws_json1_0StatelessRuleGroupReferences = (input, context) => {
|
|
@@ -2567,19 +2536,17 @@ const serializeAws_json1_0StatelessRules = (input, context) => {
|
|
|
2567
2536
|
};
|
|
2568
2537
|
const serializeAws_json1_0StatelessRulesAndCustomActions = (input, context) => {
|
|
2569
2538
|
return {
|
|
2570
|
-
...(input.CustomActions
|
|
2571
|
-
input.CustomActions !== null && {
|
|
2539
|
+
...(input.CustomActions != null && {
|
|
2572
2540
|
CustomActions: serializeAws_json1_0CustomActions(input.CustomActions, context),
|
|
2573
2541
|
}),
|
|
2574
|
-
...(input.StatelessRules
|
|
2575
|
-
input.StatelessRules !== null && {
|
|
2542
|
+
...(input.StatelessRules != null && {
|
|
2576
2543
|
StatelessRules: serializeAws_json1_0StatelessRules(input.StatelessRules, context),
|
|
2577
2544
|
}),
|
|
2578
2545
|
};
|
|
2579
2546
|
};
|
|
2580
2547
|
const serializeAws_json1_0SubnetMapping = (input, context) => {
|
|
2581
2548
|
return {
|
|
2582
|
-
...(input.SubnetId
|
|
2549
|
+
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
2583
2550
|
};
|
|
2584
2551
|
};
|
|
2585
2552
|
const serializeAws_json1_0SubnetMappings = (input, context) => {
|
|
@@ -2594,8 +2561,8 @@ const serializeAws_json1_0SubnetMappings = (input, context) => {
|
|
|
2594
2561
|
};
|
|
2595
2562
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
2596
2563
|
return {
|
|
2597
|
-
...(input.Key
|
|
2598
|
-
...(input.Value
|
|
2564
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2565
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2599
2566
|
};
|
|
2600
2567
|
};
|
|
2601
2568
|
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
@@ -2620,8 +2587,8 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
2620
2587
|
};
|
|
2621
2588
|
const serializeAws_json1_0TagResourceRequest = (input, context) => {
|
|
2622
2589
|
return {
|
|
2623
|
-
...(input.ResourceArn
|
|
2624
|
-
...(input.Tags
|
|
2590
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2591
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2625
2592
|
};
|
|
2626
2593
|
};
|
|
2627
2594
|
const serializeAws_json1_0TargetTypes = (input, context) => {
|
|
@@ -2636,10 +2603,8 @@ const serializeAws_json1_0TargetTypes = (input, context) => {
|
|
|
2636
2603
|
};
|
|
2637
2604
|
const serializeAws_json1_0TCPFlagField = (input, context) => {
|
|
2638
2605
|
return {
|
|
2639
|
-
...(input.Flags
|
|
2640
|
-
|
|
2641
|
-
...(input.Masks !== undefined &&
|
|
2642
|
-
input.Masks !== null && { Masks: serializeAws_json1_0Flags(input.Masks, context) }),
|
|
2606
|
+
...(input.Flags != null && { Flags: serializeAws_json1_0Flags(input.Flags, context) }),
|
|
2607
|
+
...(input.Masks != null && { Masks: serializeAws_json1_0Flags(input.Masks, context) }),
|
|
2643
2608
|
};
|
|
2644
2609
|
};
|
|
2645
2610
|
const serializeAws_json1_0TCPFlags = (input, context) => {
|
|
@@ -2654,107 +2619,94 @@ const serializeAws_json1_0TCPFlags = (input, context) => {
|
|
|
2654
2619
|
};
|
|
2655
2620
|
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
2656
2621
|
return {
|
|
2657
|
-
...(input.ResourceArn
|
|
2658
|
-
...(input.TagKeys
|
|
2659
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
2622
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2623
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
2660
2624
|
};
|
|
2661
2625
|
};
|
|
2662
2626
|
const serializeAws_json1_0UpdateFirewallDeleteProtectionRequest = (input, context) => {
|
|
2663
2627
|
return {
|
|
2664
|
-
...(input.DeleteProtection
|
|
2665
|
-
|
|
2666
|
-
...(input.
|
|
2667
|
-
...(input.
|
|
2668
|
-
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2628
|
+
...(input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection }),
|
|
2629
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2630
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2631
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2669
2632
|
};
|
|
2670
2633
|
};
|
|
2671
2634
|
const serializeAws_json1_0UpdateFirewallDescriptionRequest = (input, context) => {
|
|
2672
2635
|
return {
|
|
2673
|
-
...(input.Description
|
|
2674
|
-
...(input.FirewallArn
|
|
2675
|
-
...(input.FirewallName
|
|
2676
|
-
...(input.UpdateToken
|
|
2636
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2637
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2638
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2639
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2677
2640
|
};
|
|
2678
2641
|
};
|
|
2679
2642
|
const serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest = (input, context) => {
|
|
2680
2643
|
return {
|
|
2681
|
-
...(input.EncryptionConfiguration
|
|
2682
|
-
input.EncryptionConfiguration !== null && {
|
|
2644
|
+
...(input.EncryptionConfiguration != null && {
|
|
2683
2645
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2684
2646
|
}),
|
|
2685
|
-
...(input.FirewallArn
|
|
2686
|
-
...(input.FirewallName
|
|
2687
|
-
...(input.UpdateToken
|
|
2647
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2648
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2649
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2688
2650
|
};
|
|
2689
2651
|
};
|
|
2690
2652
|
const serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest = (input, context) => {
|
|
2691
2653
|
return {
|
|
2692
|
-
...(input.FirewallArn
|
|
2693
|
-
...(input.FirewallName
|
|
2694
|
-
...(input.FirewallPolicyChangeProtection
|
|
2695
|
-
input.FirewallPolicyChangeProtection !== null && {
|
|
2654
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2655
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2656
|
+
...(input.FirewallPolicyChangeProtection != null && {
|
|
2696
2657
|
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
2697
2658
|
}),
|
|
2698
|
-
...(input.UpdateToken
|
|
2659
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2699
2660
|
};
|
|
2700
2661
|
};
|
|
2701
2662
|
const serializeAws_json1_0UpdateFirewallPolicyRequest = (input, context) => {
|
|
2702
2663
|
return {
|
|
2703
|
-
...(input.Description
|
|
2704
|
-
...(input.DryRun
|
|
2705
|
-
...(input.EncryptionConfiguration
|
|
2706
|
-
input.EncryptionConfiguration !== null && {
|
|
2664
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2665
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2666
|
+
...(input.EncryptionConfiguration != null && {
|
|
2707
2667
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2708
2668
|
}),
|
|
2709
|
-
...(input.FirewallPolicy
|
|
2710
|
-
input.FirewallPolicy !== null && {
|
|
2669
|
+
...(input.FirewallPolicy != null && {
|
|
2711
2670
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
2712
2671
|
}),
|
|
2713
|
-
...(input.FirewallPolicyArn
|
|
2714
|
-
|
|
2715
|
-
...(input.
|
|
2716
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2717
|
-
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2672
|
+
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2673
|
+
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2674
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2718
2675
|
};
|
|
2719
2676
|
};
|
|
2720
2677
|
const serializeAws_json1_0UpdateLoggingConfigurationRequest = (input, context) => {
|
|
2721
2678
|
return {
|
|
2722
|
-
...(input.FirewallArn
|
|
2723
|
-
...(input.FirewallName
|
|
2724
|
-
...(input.LoggingConfiguration
|
|
2725
|
-
input.LoggingConfiguration !== null && {
|
|
2679
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2680
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2681
|
+
...(input.LoggingConfiguration != null && {
|
|
2726
2682
|
LoggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.LoggingConfiguration, context),
|
|
2727
2683
|
}),
|
|
2728
2684
|
};
|
|
2729
2685
|
};
|
|
2730
2686
|
const serializeAws_json1_0UpdateRuleGroupRequest = (input, context) => {
|
|
2731
2687
|
return {
|
|
2732
|
-
...(input.Description
|
|
2733
|
-
...(input.DryRun
|
|
2734
|
-
...(input.EncryptionConfiguration
|
|
2735
|
-
input.EncryptionConfiguration !== null && {
|
|
2688
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2689
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2690
|
+
...(input.EncryptionConfiguration != null && {
|
|
2736
2691
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2737
2692
|
}),
|
|
2738
|
-
...(input.RuleGroup
|
|
2739
|
-
|
|
2740
|
-
...(input.
|
|
2741
|
-
...(input.
|
|
2742
|
-
...(input.
|
|
2743
|
-
...(input.SourceMetadata !== undefined &&
|
|
2744
|
-
input.SourceMetadata !== null && {
|
|
2693
|
+
...(input.RuleGroup != null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) }),
|
|
2694
|
+
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2695
|
+
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2696
|
+
...(input.Rules != null && { Rules: input.Rules }),
|
|
2697
|
+
...(input.SourceMetadata != null && {
|
|
2745
2698
|
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
2746
2699
|
}),
|
|
2747
|
-
...(input.Type
|
|
2748
|
-
...(input.UpdateToken
|
|
2700
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2701
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2749
2702
|
};
|
|
2750
2703
|
};
|
|
2751
2704
|
const serializeAws_json1_0UpdateSubnetChangeProtectionRequest = (input, context) => {
|
|
2752
2705
|
return {
|
|
2753
|
-
...(input.FirewallArn
|
|
2754
|
-
...(input.FirewallName
|
|
2755
|
-
...(input.SubnetChangeProtection
|
|
2756
|
-
|
|
2757
|
-
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2706
|
+
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2707
|
+
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2708
|
+
...(input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
2709
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2758
2710
|
};
|
|
2759
2711
|
};
|
|
2760
2712
|
const serializeAws_json1_0VariableDefinitionList = (input, context) => {
|
|
@@ -2779,7 +2731,7 @@ const serializeAws_json1_0VpcIds = (input, context) => {
|
|
|
2779
2731
|
};
|
|
2780
2732
|
const deserializeAws_json1_0ActionDefinition = (output, context) => {
|
|
2781
2733
|
return {
|
|
2782
|
-
PublishMetricAction: output.PublishMetricAction
|
|
2734
|
+
PublishMetricAction: output.PublishMetricAction != null
|
|
2783
2735
|
? deserializeAws_json1_0PublishMetricAction(output.PublishMetricAction, context)
|
|
2784
2736
|
: undefined,
|
|
2785
2737
|
};
|
|
@@ -2812,9 +2764,7 @@ const deserializeAws_json1_0AssociateSubnetsResponse = (output, context) => {
|
|
|
2812
2764
|
return {
|
|
2813
2765
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2814
2766
|
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
2815
|
-
SubnetMappings: output.SubnetMappings
|
|
2816
|
-
? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context)
|
|
2817
|
-
: undefined,
|
|
2767
|
+
SubnetMappings: output.SubnetMappings != null ? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2818
2768
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2819
2769
|
};
|
|
2820
2770
|
};
|
|
@@ -2827,7 +2777,7 @@ const deserializeAws_json1_0Attachment = (output, context) => {
|
|
|
2827
2777
|
};
|
|
2828
2778
|
const deserializeAws_json1_0CreateFirewallPolicyResponse = (output, context) => {
|
|
2829
2779
|
return {
|
|
2830
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse
|
|
2780
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2831
2781
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2832
2782
|
: undefined,
|
|
2833
2783
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
@@ -2835,17 +2785,13 @@ const deserializeAws_json1_0CreateFirewallPolicyResponse = (output, context) =>
|
|
|
2835
2785
|
};
|
|
2836
2786
|
const deserializeAws_json1_0CreateFirewallResponse = (output, context) => {
|
|
2837
2787
|
return {
|
|
2838
|
-
Firewall: output.Firewall
|
|
2839
|
-
|
|
2840
|
-
: undefined,
|
|
2841
|
-
FirewallStatus: output.FirewallStatus !== undefined && output.FirewallStatus !== null
|
|
2842
|
-
? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context)
|
|
2843
|
-
: undefined,
|
|
2788
|
+
Firewall: output.Firewall != null ? deserializeAws_json1_0Firewall(output.Firewall, context) : undefined,
|
|
2789
|
+
FirewallStatus: output.FirewallStatus != null ? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2844
2790
|
};
|
|
2845
2791
|
};
|
|
2846
2792
|
const deserializeAws_json1_0CreateRuleGroupResponse = (output, context) => {
|
|
2847
2793
|
return {
|
|
2848
|
-
RuleGroupResponse: output.RuleGroupResponse
|
|
2794
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
2849
2795
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
2850
2796
|
: undefined,
|
|
2851
2797
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
@@ -2853,7 +2799,7 @@ const deserializeAws_json1_0CreateRuleGroupResponse = (output, context) => {
|
|
|
2853
2799
|
};
|
|
2854
2800
|
const deserializeAws_json1_0CustomAction = (output, context) => {
|
|
2855
2801
|
return {
|
|
2856
|
-
ActionDefinition: output.ActionDefinition
|
|
2802
|
+
ActionDefinition: output.ActionDefinition != null
|
|
2857
2803
|
? deserializeAws_json1_0ActionDefinition(output.ActionDefinition, context)
|
|
2858
2804
|
: undefined,
|
|
2859
2805
|
ActionName: (0, smithy_client_1.expectString)(output.ActionName),
|
|
@@ -2872,19 +2818,15 @@ const deserializeAws_json1_0CustomActions = (output, context) => {
|
|
|
2872
2818
|
};
|
|
2873
2819
|
const deserializeAws_json1_0DeleteFirewallPolicyResponse = (output, context) => {
|
|
2874
2820
|
return {
|
|
2875
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse
|
|
2821
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2876
2822
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2877
2823
|
: undefined,
|
|
2878
2824
|
};
|
|
2879
2825
|
};
|
|
2880
2826
|
const deserializeAws_json1_0DeleteFirewallResponse = (output, context) => {
|
|
2881
2827
|
return {
|
|
2882
|
-
Firewall: output.Firewall
|
|
2883
|
-
|
|
2884
|
-
: undefined,
|
|
2885
|
-
FirewallStatus: output.FirewallStatus !== undefined && output.FirewallStatus !== null
|
|
2886
|
-
? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context)
|
|
2887
|
-
: undefined,
|
|
2828
|
+
Firewall: output.Firewall != null ? deserializeAws_json1_0Firewall(output.Firewall, context) : undefined,
|
|
2829
|
+
FirewallStatus: output.FirewallStatus != null ? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2888
2830
|
};
|
|
2889
2831
|
};
|
|
2890
2832
|
const deserializeAws_json1_0DeleteResourcePolicyResponse = (output, context) => {
|
|
@@ -2892,17 +2834,15 @@ const deserializeAws_json1_0DeleteResourcePolicyResponse = (output, context) =>
|
|
|
2892
2834
|
};
|
|
2893
2835
|
const deserializeAws_json1_0DeleteRuleGroupResponse = (output, context) => {
|
|
2894
2836
|
return {
|
|
2895
|
-
RuleGroupResponse: output.RuleGroupResponse
|
|
2837
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
2896
2838
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
2897
2839
|
: undefined,
|
|
2898
2840
|
};
|
|
2899
2841
|
};
|
|
2900
2842
|
const deserializeAws_json1_0DescribeFirewallPolicyResponse = (output, context) => {
|
|
2901
2843
|
return {
|
|
2902
|
-
FirewallPolicy: output.FirewallPolicy
|
|
2903
|
-
|
|
2904
|
-
: undefined,
|
|
2905
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse !== undefined && output.FirewallPolicyResponse !== null
|
|
2844
|
+
FirewallPolicy: output.FirewallPolicy != null ? deserializeAws_json1_0FirewallPolicy(output.FirewallPolicy, context) : undefined,
|
|
2845
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2906
2846
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2907
2847
|
: undefined,
|
|
2908
2848
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
@@ -2910,19 +2850,15 @@ const deserializeAws_json1_0DescribeFirewallPolicyResponse = (output, context) =
|
|
|
2910
2850
|
};
|
|
2911
2851
|
const deserializeAws_json1_0DescribeFirewallResponse = (output, context) => {
|
|
2912
2852
|
return {
|
|
2913
|
-
Firewall: output.Firewall
|
|
2914
|
-
|
|
2915
|
-
: undefined,
|
|
2916
|
-
FirewallStatus: output.FirewallStatus !== undefined && output.FirewallStatus !== null
|
|
2917
|
-
? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context)
|
|
2918
|
-
: undefined,
|
|
2853
|
+
Firewall: output.Firewall != null ? deserializeAws_json1_0Firewall(output.Firewall, context) : undefined,
|
|
2854
|
+
FirewallStatus: output.FirewallStatus != null ? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2919
2855
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2920
2856
|
};
|
|
2921
2857
|
};
|
|
2922
2858
|
const deserializeAws_json1_0DescribeLoggingConfigurationResponse = (output, context) => {
|
|
2923
2859
|
return {
|
|
2924
2860
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2925
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
2861
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
2926
2862
|
? deserializeAws_json1_0LoggingConfiguration(output.LoggingConfiguration, context)
|
|
2927
2863
|
: undefined,
|
|
2928
2864
|
};
|
|
@@ -2936,12 +2872,12 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataResponse = (output, context
|
|
|
2936
2872
|
return {
|
|
2937
2873
|
Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
|
|
2938
2874
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2939
|
-
LastModifiedTime: output.LastModifiedTime
|
|
2875
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
2940
2876
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
2941
2877
|
: undefined,
|
|
2942
2878
|
RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
|
|
2943
2879
|
RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
|
|
2944
|
-
StatefulRuleOptions: output.StatefulRuleOptions
|
|
2880
|
+
StatefulRuleOptions: output.StatefulRuleOptions != null
|
|
2945
2881
|
? deserializeAws_json1_0StatefulRuleOptions(output.StatefulRuleOptions, context)
|
|
2946
2882
|
: undefined,
|
|
2947
2883
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -2949,10 +2885,8 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataResponse = (output, context
|
|
|
2949
2885
|
};
|
|
2950
2886
|
const deserializeAws_json1_0DescribeRuleGroupResponse = (output, context) => {
|
|
2951
2887
|
return {
|
|
2952
|
-
RuleGroup: output.RuleGroup
|
|
2953
|
-
|
|
2954
|
-
: undefined,
|
|
2955
|
-
RuleGroupResponse: output.RuleGroupResponse !== undefined && output.RuleGroupResponse !== null
|
|
2888
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_0RuleGroup(output.RuleGroup, context) : undefined,
|
|
2889
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
2956
2890
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
2957
2891
|
: undefined,
|
|
2958
2892
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
@@ -2978,9 +2912,7 @@ const deserializeAws_json1_0DisassociateSubnetsResponse = (output, context) => {
|
|
|
2978
2912
|
return {
|
|
2979
2913
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2980
2914
|
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
2981
|
-
SubnetMappings: output.SubnetMappings
|
|
2982
|
-
? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context)
|
|
2983
|
-
: undefined,
|
|
2915
|
+
SubnetMappings: output.SubnetMappings != null ? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2984
2916
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2985
2917
|
};
|
|
2986
2918
|
};
|
|
@@ -2994,7 +2926,7 @@ const deserializeAws_json1_0Firewall = (output, context) => {
|
|
|
2994
2926
|
return {
|
|
2995
2927
|
DeleteProtection: (0, smithy_client_1.expectBoolean)(output.DeleteProtection),
|
|
2996
2928
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2997
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
2929
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
2998
2930
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
2999
2931
|
: undefined,
|
|
3000
2932
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
@@ -3003,12 +2935,8 @@ const deserializeAws_json1_0Firewall = (output, context) => {
|
|
|
3003
2935
|
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
3004
2936
|
FirewallPolicyChangeProtection: (0, smithy_client_1.expectBoolean)(output.FirewallPolicyChangeProtection),
|
|
3005
2937
|
SubnetChangeProtection: (0, smithy_client_1.expectBoolean)(output.SubnetChangeProtection),
|
|
3006
|
-
SubnetMappings: output.SubnetMappings
|
|
3007
|
-
|
|
3008
|
-
: undefined,
|
|
3009
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3010
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3011
|
-
: undefined,
|
|
2938
|
+
SubnetMappings: output.SubnetMappings != null ? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2939
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3012
2940
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
3013
2941
|
};
|
|
3014
2942
|
};
|
|
@@ -3031,25 +2959,25 @@ const deserializeAws_json1_0FirewallPolicies = (output, context) => {
|
|
|
3031
2959
|
};
|
|
3032
2960
|
const deserializeAws_json1_0FirewallPolicy = (output, context) => {
|
|
3033
2961
|
return {
|
|
3034
|
-
StatefulDefaultActions: output.StatefulDefaultActions
|
|
2962
|
+
StatefulDefaultActions: output.StatefulDefaultActions != null
|
|
3035
2963
|
? deserializeAws_json1_0StatefulActions(output.StatefulDefaultActions, context)
|
|
3036
2964
|
: undefined,
|
|
3037
|
-
StatefulEngineOptions: output.StatefulEngineOptions
|
|
2965
|
+
StatefulEngineOptions: output.StatefulEngineOptions != null
|
|
3038
2966
|
? deserializeAws_json1_0StatefulEngineOptions(output.StatefulEngineOptions, context)
|
|
3039
2967
|
: undefined,
|
|
3040
|
-
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences
|
|
2968
|
+
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences != null
|
|
3041
2969
|
? deserializeAws_json1_0StatefulRuleGroupReferences(output.StatefulRuleGroupReferences, context)
|
|
3042
2970
|
: undefined,
|
|
3043
|
-
StatelessCustomActions: output.StatelessCustomActions
|
|
2971
|
+
StatelessCustomActions: output.StatelessCustomActions != null
|
|
3044
2972
|
? deserializeAws_json1_0CustomActions(output.StatelessCustomActions, context)
|
|
3045
2973
|
: undefined,
|
|
3046
|
-
StatelessDefaultActions: output.StatelessDefaultActions
|
|
2974
|
+
StatelessDefaultActions: output.StatelessDefaultActions != null
|
|
3047
2975
|
? deserializeAws_json1_0StatelessActions(output.StatelessDefaultActions, context)
|
|
3048
2976
|
: undefined,
|
|
3049
|
-
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions
|
|
2977
|
+
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions != null
|
|
3050
2978
|
? deserializeAws_json1_0StatelessActions(output.StatelessFragmentDefaultActions, context)
|
|
3051
2979
|
: undefined,
|
|
3052
|
-
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences
|
|
2980
|
+
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences != null
|
|
3053
2981
|
? deserializeAws_json1_0StatelessRuleGroupReferences(output.StatelessRuleGroupReferences, context)
|
|
3054
2982
|
: undefined,
|
|
3055
2983
|
};
|
|
@@ -3065,20 +2993,18 @@ const deserializeAws_json1_0FirewallPolicyResponse = (output, context) => {
|
|
|
3065
2993
|
ConsumedStatefulRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatefulRuleCapacity),
|
|
3066
2994
|
ConsumedStatelessRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatelessRuleCapacity),
|
|
3067
2995
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3068
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
2996
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3069
2997
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3070
2998
|
: undefined,
|
|
3071
2999
|
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
3072
3000
|
FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
|
|
3073
3001
|
FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
|
|
3074
3002
|
FirewallPolicyStatus: (0, smithy_client_1.expectString)(output.FirewallPolicyStatus),
|
|
3075
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3003
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3076
3004
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3077
3005
|
: undefined,
|
|
3078
3006
|
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
3079
|
-
Tags: output.Tags
|
|
3080
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3081
|
-
: undefined,
|
|
3007
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3082
3008
|
};
|
|
3083
3009
|
};
|
|
3084
3010
|
const deserializeAws_json1_0Firewalls = (output, context) => {
|
|
@@ -3096,9 +3022,7 @@ const deserializeAws_json1_0FirewallStatus = (output, context) => {
|
|
|
3096
3022
|
return {
|
|
3097
3023
|
ConfigurationSyncStateSummary: (0, smithy_client_1.expectString)(output.ConfigurationSyncStateSummary),
|
|
3098
3024
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3099
|
-
SyncStates: output.SyncStates
|
|
3100
|
-
? deserializeAws_json1_0SyncStates(output.SyncStates, context)
|
|
3101
|
-
: undefined,
|
|
3025
|
+
SyncStates: output.SyncStates != null ? deserializeAws_json1_0SyncStates(output.SyncStates, context) : undefined,
|
|
3102
3026
|
};
|
|
3103
3027
|
};
|
|
3104
3028
|
const deserializeAws_json1_0Flags = (output, context) => {
|
|
@@ -3154,9 +3078,7 @@ const deserializeAws_json1_0InvalidTokenException = (output, context) => {
|
|
|
3154
3078
|
};
|
|
3155
3079
|
const deserializeAws_json1_0IPSet = (output, context) => {
|
|
3156
3080
|
return {
|
|
3157
|
-
Definition: output.Definition
|
|
3158
|
-
? deserializeAws_json1_0VariableDefinitionList(output.Definition, context)
|
|
3159
|
-
: undefined,
|
|
3081
|
+
Definition: output.Definition != null ? deserializeAws_json1_0VariableDefinitionList(output.Definition, context) : undefined,
|
|
3160
3082
|
};
|
|
3161
3083
|
};
|
|
3162
3084
|
const deserializeAws_json1_0IPSets = (output, context) => {
|
|
@@ -3177,7 +3099,7 @@ const deserializeAws_json1_0LimitExceededException = (output, context) => {
|
|
|
3177
3099
|
};
|
|
3178
3100
|
const deserializeAws_json1_0ListFirewallPoliciesResponse = (output, context) => {
|
|
3179
3101
|
return {
|
|
3180
|
-
FirewallPolicies: output.FirewallPolicies
|
|
3102
|
+
FirewallPolicies: output.FirewallPolicies != null
|
|
3181
3103
|
? deserializeAws_json1_0FirewallPolicies(output.FirewallPolicies, context)
|
|
3182
3104
|
: undefined,
|
|
3183
3105
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3185,31 +3107,25 @@ const deserializeAws_json1_0ListFirewallPoliciesResponse = (output, context) =>
|
|
|
3185
3107
|
};
|
|
3186
3108
|
const deserializeAws_json1_0ListFirewallsResponse = (output, context) => {
|
|
3187
3109
|
return {
|
|
3188
|
-
Firewalls: output.Firewalls
|
|
3189
|
-
? deserializeAws_json1_0Firewalls(output.Firewalls, context)
|
|
3190
|
-
: undefined,
|
|
3110
|
+
Firewalls: output.Firewalls != null ? deserializeAws_json1_0Firewalls(output.Firewalls, context) : undefined,
|
|
3191
3111
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3192
3112
|
};
|
|
3193
3113
|
};
|
|
3194
3114
|
const deserializeAws_json1_0ListRuleGroupsResponse = (output, context) => {
|
|
3195
3115
|
return {
|
|
3196
3116
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3197
|
-
RuleGroups: output.RuleGroups
|
|
3198
|
-
? deserializeAws_json1_0RuleGroups(output.RuleGroups, context)
|
|
3199
|
-
: undefined,
|
|
3117
|
+
RuleGroups: output.RuleGroups != null ? deserializeAws_json1_0RuleGroups(output.RuleGroups, context) : undefined,
|
|
3200
3118
|
};
|
|
3201
3119
|
};
|
|
3202
3120
|
const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
3203
3121
|
return {
|
|
3204
3122
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3205
|
-
Tags: output.Tags
|
|
3206
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3207
|
-
: undefined,
|
|
3123
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3208
3124
|
};
|
|
3209
3125
|
};
|
|
3210
3126
|
const deserializeAws_json1_0LogDestinationConfig = (output, context) => {
|
|
3211
3127
|
return {
|
|
3212
|
-
LogDestination: output.LogDestination
|
|
3128
|
+
LogDestination: output.LogDestination != null
|
|
3213
3129
|
? deserializeAws_json1_0LogDestinationMap(output.LogDestination, context)
|
|
3214
3130
|
: undefined,
|
|
3215
3131
|
LogDestinationType: (0, smithy_client_1.expectString)(output.LogDestinationType),
|
|
@@ -3245,31 +3161,19 @@ const deserializeAws_json1_0LogDestinationPermissionException = (output, context
|
|
|
3245
3161
|
};
|
|
3246
3162
|
const deserializeAws_json1_0LoggingConfiguration = (output, context) => {
|
|
3247
3163
|
return {
|
|
3248
|
-
LogDestinationConfigs: output.LogDestinationConfigs
|
|
3164
|
+
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
3249
3165
|
? deserializeAws_json1_0LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
3250
3166
|
: undefined,
|
|
3251
3167
|
};
|
|
3252
3168
|
};
|
|
3253
3169
|
const deserializeAws_json1_0MatchAttributes = (output, context) => {
|
|
3254
3170
|
return {
|
|
3255
|
-
DestinationPorts: output.DestinationPorts
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
Protocols: output.Protocols !== undefined && output.Protocols !== null
|
|
3262
|
-
? deserializeAws_json1_0ProtocolNumbers(output.Protocols, context)
|
|
3263
|
-
: undefined,
|
|
3264
|
-
SourcePorts: output.SourcePorts !== undefined && output.SourcePorts !== null
|
|
3265
|
-
? deserializeAws_json1_0PortRanges(output.SourcePorts, context)
|
|
3266
|
-
: undefined,
|
|
3267
|
-
Sources: output.Sources !== undefined && output.Sources !== null
|
|
3268
|
-
? deserializeAws_json1_0Addresses(output.Sources, context)
|
|
3269
|
-
: undefined,
|
|
3270
|
-
TCPFlags: output.TCPFlags !== undefined && output.TCPFlags !== null
|
|
3271
|
-
? deserializeAws_json1_0TCPFlags(output.TCPFlags, context)
|
|
3272
|
-
: undefined,
|
|
3171
|
+
DestinationPorts: output.DestinationPorts != null ? deserializeAws_json1_0PortRanges(output.DestinationPorts, context) : undefined,
|
|
3172
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_0Addresses(output.Destinations, context) : undefined,
|
|
3173
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_0ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3174
|
+
SourcePorts: output.SourcePorts != null ? deserializeAws_json1_0PortRanges(output.SourcePorts, context) : undefined,
|
|
3175
|
+
Sources: output.Sources != null ? deserializeAws_json1_0Addresses(output.Sources, context) : undefined,
|
|
3176
|
+
TCPFlags: output.TCPFlags != null ? deserializeAws_json1_0TCPFlags(output.TCPFlags, context) : undefined,
|
|
3273
3177
|
};
|
|
3274
3178
|
};
|
|
3275
3179
|
const deserializeAws_json1_0PerObjectStatus = (output, context) => {
|
|
@@ -3297,9 +3201,7 @@ const deserializeAws_json1_0PortRanges = (output, context) => {
|
|
|
3297
3201
|
};
|
|
3298
3202
|
const deserializeAws_json1_0PortSet = (output, context) => {
|
|
3299
3203
|
return {
|
|
3300
|
-
Definition: output.Definition
|
|
3301
|
-
? deserializeAws_json1_0VariableDefinitionList(output.Definition, context)
|
|
3302
|
-
: undefined,
|
|
3204
|
+
Definition: output.Definition != null ? deserializeAws_json1_0VariableDefinitionList(output.Definition, context) : undefined,
|
|
3303
3205
|
};
|
|
3304
3206
|
};
|
|
3305
3207
|
const deserializeAws_json1_0PortSets = (output, context) => {
|
|
@@ -3326,9 +3228,7 @@ const deserializeAws_json1_0ProtocolNumbers = (output, context) => {
|
|
|
3326
3228
|
};
|
|
3327
3229
|
const deserializeAws_json1_0PublishMetricAction = (output, context) => {
|
|
3328
3230
|
return {
|
|
3329
|
-
Dimensions: output.Dimensions
|
|
3330
|
-
? deserializeAws_json1_0Dimensions(output.Dimensions, context)
|
|
3331
|
-
: undefined,
|
|
3231
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_0Dimensions(output.Dimensions, context) : undefined,
|
|
3332
3232
|
};
|
|
3333
3233
|
};
|
|
3334
3234
|
const deserializeAws_json1_0PutResourcePolicyResponse = (output, context) => {
|
|
@@ -3346,23 +3246,17 @@ const deserializeAws_json1_0ResourceOwnerCheckException = (output, context) => {
|
|
|
3346
3246
|
};
|
|
3347
3247
|
const deserializeAws_json1_0RuleDefinition = (output, context) => {
|
|
3348
3248
|
return {
|
|
3349
|
-
Actions: output.Actions
|
|
3350
|
-
|
|
3351
|
-
: undefined,
|
|
3352
|
-
MatchAttributes: output.MatchAttributes !== undefined && output.MatchAttributes !== null
|
|
3249
|
+
Actions: output.Actions != null ? deserializeAws_json1_0StatelessActions(output.Actions, context) : undefined,
|
|
3250
|
+
MatchAttributes: output.MatchAttributes != null
|
|
3353
3251
|
? deserializeAws_json1_0MatchAttributes(output.MatchAttributes, context)
|
|
3354
3252
|
: undefined,
|
|
3355
3253
|
};
|
|
3356
3254
|
};
|
|
3357
3255
|
const deserializeAws_json1_0RuleGroup = (output, context) => {
|
|
3358
3256
|
return {
|
|
3359
|
-
RuleVariables: output.RuleVariables
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
RulesSource: output.RulesSource !== undefined && output.RulesSource !== null
|
|
3363
|
-
? deserializeAws_json1_0RulesSource(output.RulesSource, context)
|
|
3364
|
-
: undefined,
|
|
3365
|
-
StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
|
|
3257
|
+
RuleVariables: output.RuleVariables != null ? deserializeAws_json1_0RuleVariables(output.RuleVariables, context) : undefined,
|
|
3258
|
+
RulesSource: output.RulesSource != null ? deserializeAws_json1_0RulesSource(output.RulesSource, context) : undefined,
|
|
3259
|
+
StatefulRuleOptions: output.StatefulRuleOptions != null
|
|
3366
3260
|
? deserializeAws_json1_0StatefulRuleOptions(output.StatefulRuleOptions, context)
|
|
3367
3261
|
: undefined,
|
|
3368
3262
|
};
|
|
@@ -3378,10 +3272,10 @@ const deserializeAws_json1_0RuleGroupResponse = (output, context) => {
|
|
|
3378
3272
|
Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
|
|
3379
3273
|
ConsumedCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedCapacity),
|
|
3380
3274
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3381
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
3275
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3382
3276
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3383
3277
|
: undefined,
|
|
3384
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3278
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3385
3279
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3386
3280
|
: undefined,
|
|
3387
3281
|
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
@@ -3390,12 +3284,8 @@ const deserializeAws_json1_0RuleGroupResponse = (output, context) => {
|
|
|
3390
3284
|
RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
|
|
3391
3285
|
RuleGroupStatus: (0, smithy_client_1.expectString)(output.RuleGroupStatus),
|
|
3392
3286
|
SnsTopic: (0, smithy_client_1.expectString)(output.SnsTopic),
|
|
3393
|
-
SourceMetadata: output.SourceMetadata
|
|
3394
|
-
|
|
3395
|
-
: undefined,
|
|
3396
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3397
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3398
|
-
: undefined,
|
|
3287
|
+
SourceMetadata: output.SourceMetadata != null ? deserializeAws_json1_0SourceMetadata(output.SourceMetadata, context) : undefined,
|
|
3288
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3399
3289
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3400
3290
|
};
|
|
3401
3291
|
};
|
|
@@ -3413,9 +3303,7 @@ const deserializeAws_json1_0RuleGroups = (output, context) => {
|
|
|
3413
3303
|
const deserializeAws_json1_0RuleOption = (output, context) => {
|
|
3414
3304
|
return {
|
|
3415
3305
|
Keyword: (0, smithy_client_1.expectString)(output.Keyword),
|
|
3416
|
-
Settings: output.Settings
|
|
3417
|
-
? deserializeAws_json1_0Settings(output.Settings, context)
|
|
3418
|
-
: undefined,
|
|
3306
|
+
Settings: output.Settings != null ? deserializeAws_json1_0Settings(output.Settings, context) : undefined,
|
|
3419
3307
|
};
|
|
3420
3308
|
};
|
|
3421
3309
|
const deserializeAws_json1_0RuleOptions = (output, context) => {
|
|
@@ -3431,14 +3319,12 @@ const deserializeAws_json1_0RuleOptions = (output, context) => {
|
|
|
3431
3319
|
};
|
|
3432
3320
|
const deserializeAws_json1_0RulesSource = (output, context) => {
|
|
3433
3321
|
return {
|
|
3434
|
-
RulesSourceList: output.RulesSourceList
|
|
3322
|
+
RulesSourceList: output.RulesSourceList != null
|
|
3435
3323
|
? deserializeAws_json1_0RulesSourceList(output.RulesSourceList, context)
|
|
3436
3324
|
: undefined,
|
|
3437
3325
|
RulesString: (0, smithy_client_1.expectString)(output.RulesString),
|
|
3438
|
-
StatefulRules: output.StatefulRules
|
|
3439
|
-
|
|
3440
|
-
: undefined,
|
|
3441
|
-
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions !== undefined && output.StatelessRulesAndCustomActions !== null
|
|
3326
|
+
StatefulRules: output.StatefulRules != null ? deserializeAws_json1_0StatefulRules(output.StatefulRules, context) : undefined,
|
|
3327
|
+
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions != null
|
|
3442
3328
|
? deserializeAws_json1_0StatelessRulesAndCustomActions(output.StatelessRulesAndCustomActions, context)
|
|
3443
3329
|
: undefined,
|
|
3444
3330
|
};
|
|
@@ -3446,12 +3332,8 @@ const deserializeAws_json1_0RulesSource = (output, context) => {
|
|
|
3446
3332
|
const deserializeAws_json1_0RulesSourceList = (output, context) => {
|
|
3447
3333
|
return {
|
|
3448
3334
|
GeneratedRulesType: (0, smithy_client_1.expectString)(output.GeneratedRulesType),
|
|
3449
|
-
TargetTypes: output.TargetTypes
|
|
3450
|
-
|
|
3451
|
-
: undefined,
|
|
3452
|
-
Targets: output.Targets !== undefined && output.Targets !== null
|
|
3453
|
-
? deserializeAws_json1_0RuleTargets(output.Targets, context)
|
|
3454
|
-
: undefined,
|
|
3335
|
+
TargetTypes: output.TargetTypes != null ? deserializeAws_json1_0TargetTypes(output.TargetTypes, context) : undefined,
|
|
3336
|
+
Targets: output.Targets != null ? deserializeAws_json1_0RuleTargets(output.Targets, context) : undefined,
|
|
3455
3337
|
};
|
|
3456
3338
|
};
|
|
3457
3339
|
const deserializeAws_json1_0RuleTargets = (output, context) => {
|
|
@@ -3467,12 +3349,8 @@ const deserializeAws_json1_0RuleTargets = (output, context) => {
|
|
|
3467
3349
|
};
|
|
3468
3350
|
const deserializeAws_json1_0RuleVariables = (output, context) => {
|
|
3469
3351
|
return {
|
|
3470
|
-
IPSets: output.IPSets
|
|
3471
|
-
|
|
3472
|
-
: undefined,
|
|
3473
|
-
PortSets: output.PortSets !== undefined && output.PortSets !== null
|
|
3474
|
-
? deserializeAws_json1_0PortSets(output.PortSets, context)
|
|
3475
|
-
: undefined,
|
|
3352
|
+
IPSets: output.IPSets != null ? deserializeAws_json1_0IPSets(output.IPSets, context) : undefined,
|
|
3353
|
+
PortSets: output.PortSets != null ? deserializeAws_json1_0PortSets(output.PortSets, context) : undefined,
|
|
3476
3354
|
};
|
|
3477
3355
|
};
|
|
3478
3356
|
const deserializeAws_json1_0Settings = (output, context) => {
|
|
@@ -3511,12 +3389,8 @@ const deserializeAws_json1_0StatefulEngineOptions = (output, context) => {
|
|
|
3511
3389
|
const deserializeAws_json1_0StatefulRule = (output, context) => {
|
|
3512
3390
|
return {
|
|
3513
3391
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
3514
|
-
Header: output.Header
|
|
3515
|
-
|
|
3516
|
-
: undefined,
|
|
3517
|
-
RuleOptions: output.RuleOptions !== undefined && output.RuleOptions !== null
|
|
3518
|
-
? deserializeAws_json1_0RuleOptions(output.RuleOptions, context)
|
|
3519
|
-
: undefined,
|
|
3392
|
+
Header: output.Header != null ? deserializeAws_json1_0Header(output.Header, context) : undefined,
|
|
3393
|
+
RuleOptions: output.RuleOptions != null ? deserializeAws_json1_0RuleOptions(output.RuleOptions, context) : undefined,
|
|
3520
3394
|
};
|
|
3521
3395
|
};
|
|
3522
3396
|
const deserializeAws_json1_0StatefulRuleGroupOverride = (output, context) => {
|
|
@@ -3526,9 +3400,7 @@ const deserializeAws_json1_0StatefulRuleGroupOverride = (output, context) => {
|
|
|
3526
3400
|
};
|
|
3527
3401
|
const deserializeAws_json1_0StatefulRuleGroupReference = (output, context) => {
|
|
3528
3402
|
return {
|
|
3529
|
-
Override: output.Override
|
|
3530
|
-
? deserializeAws_json1_0StatefulRuleGroupOverride(output.Override, context)
|
|
3531
|
-
: undefined,
|
|
3403
|
+
Override: output.Override != null ? deserializeAws_json1_0StatefulRuleGroupOverride(output.Override, context) : undefined,
|
|
3532
3404
|
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
3533
3405
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
3534
3406
|
};
|
|
@@ -3574,9 +3446,7 @@ const deserializeAws_json1_0StatelessActions = (output, context) => {
|
|
|
3574
3446
|
const deserializeAws_json1_0StatelessRule = (output, context) => {
|
|
3575
3447
|
return {
|
|
3576
3448
|
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
3577
|
-
RuleDefinition: output.RuleDefinition
|
|
3578
|
-
? deserializeAws_json1_0RuleDefinition(output.RuleDefinition, context)
|
|
3579
|
-
: undefined,
|
|
3449
|
+
RuleDefinition: output.RuleDefinition != null ? deserializeAws_json1_0RuleDefinition(output.RuleDefinition, context) : undefined,
|
|
3580
3450
|
};
|
|
3581
3451
|
};
|
|
3582
3452
|
const deserializeAws_json1_0StatelessRuleGroupReference = (output, context) => {
|
|
@@ -3609,12 +3479,8 @@ const deserializeAws_json1_0StatelessRules = (output, context) => {
|
|
|
3609
3479
|
};
|
|
3610
3480
|
const deserializeAws_json1_0StatelessRulesAndCustomActions = (output, context) => {
|
|
3611
3481
|
return {
|
|
3612
|
-
CustomActions: output.CustomActions
|
|
3613
|
-
|
|
3614
|
-
: undefined,
|
|
3615
|
-
StatelessRules: output.StatelessRules !== undefined && output.StatelessRules !== null
|
|
3616
|
-
? deserializeAws_json1_0StatelessRules(output.StatelessRules, context)
|
|
3617
|
-
: undefined,
|
|
3482
|
+
CustomActions: output.CustomActions != null ? deserializeAws_json1_0CustomActions(output.CustomActions, context) : undefined,
|
|
3483
|
+
StatelessRules: output.StatelessRules != null ? deserializeAws_json1_0StatelessRules(output.StatelessRules, context) : undefined,
|
|
3618
3484
|
};
|
|
3619
3485
|
};
|
|
3620
3486
|
const deserializeAws_json1_0SubnetMapping = (output, context) => {
|
|
@@ -3635,12 +3501,8 @@ const deserializeAws_json1_0SubnetMappings = (output, context) => {
|
|
|
3635
3501
|
};
|
|
3636
3502
|
const deserializeAws_json1_0SyncState = (output, context) => {
|
|
3637
3503
|
return {
|
|
3638
|
-
Attachment: output.Attachment
|
|
3639
|
-
|
|
3640
|
-
: undefined,
|
|
3641
|
-
Config: output.Config !== undefined && output.Config !== null
|
|
3642
|
-
? deserializeAws_json1_0SyncStateConfig(output.Config, context)
|
|
3643
|
-
: undefined,
|
|
3504
|
+
Attachment: output.Attachment != null ? deserializeAws_json1_0Attachment(output.Attachment, context) : undefined,
|
|
3505
|
+
Config: output.Config != null ? deserializeAws_json1_0SyncStateConfig(output.Config, context) : undefined,
|
|
3644
3506
|
};
|
|
3645
3507
|
};
|
|
3646
3508
|
const deserializeAws_json1_0SyncStateConfig = (output, context) => {
|
|
@@ -3698,12 +3560,8 @@ const deserializeAws_json1_0TargetTypes = (output, context) => {
|
|
|
3698
3560
|
};
|
|
3699
3561
|
const deserializeAws_json1_0TCPFlagField = (output, context) => {
|
|
3700
3562
|
return {
|
|
3701
|
-
Flags: output.Flags
|
|
3702
|
-
|
|
3703
|
-
: undefined,
|
|
3704
|
-
Masks: output.Masks !== undefined && output.Masks !== null
|
|
3705
|
-
? deserializeAws_json1_0Flags(output.Masks, context)
|
|
3706
|
-
: undefined,
|
|
3563
|
+
Flags: output.Flags != null ? deserializeAws_json1_0Flags(output.Flags, context) : undefined,
|
|
3564
|
+
Masks: output.Masks != null ? deserializeAws_json1_0Flags(output.Masks, context) : undefined,
|
|
3707
3565
|
};
|
|
3708
3566
|
};
|
|
3709
3567
|
const deserializeAws_json1_0TCPFlags = (output, context) => {
|
|
@@ -3748,7 +3606,7 @@ const deserializeAws_json1_0UpdateFirewallDescriptionResponse = (output, context
|
|
|
3748
3606
|
};
|
|
3749
3607
|
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse = (output, context) => {
|
|
3750
3608
|
return {
|
|
3751
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
3609
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3752
3610
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3753
3611
|
: undefined,
|
|
3754
3612
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
@@ -3766,7 +3624,7 @@ const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionResponse = (outp
|
|
|
3766
3624
|
};
|
|
3767
3625
|
const deserializeAws_json1_0UpdateFirewallPolicyResponse = (output, context) => {
|
|
3768
3626
|
return {
|
|
3769
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse
|
|
3627
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
3770
3628
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
3771
3629
|
: undefined,
|
|
3772
3630
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
@@ -3776,14 +3634,14 @@ const deserializeAws_json1_0UpdateLoggingConfigurationResponse = (output, contex
|
|
|
3776
3634
|
return {
|
|
3777
3635
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3778
3636
|
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3779
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
3637
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
3780
3638
|
? deserializeAws_json1_0LoggingConfiguration(output.LoggingConfiguration, context)
|
|
3781
3639
|
: undefined,
|
|
3782
3640
|
};
|
|
3783
3641
|
};
|
|
3784
3642
|
const deserializeAws_json1_0UpdateRuleGroupResponse = (output, context) => {
|
|
3785
3643
|
return {
|
|
3786
|
-
RuleGroupResponse: output.RuleGroupResponse
|
|
3644
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
3787
3645
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
3788
3646
|
: undefined,
|
|
3789
3647
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
@@ -3870,5 +3728,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3870
3728
|
if (data["__type"] !== undefined) {
|
|
3871
3729
|
return sanitizeErrorCode(data["__type"]);
|
|
3872
3730
|
}
|
|
3873
|
-
return "";
|
|
3874
3731
|
};
|