@aws-sdk/client-network-firewall 3.118.1 → 3.128.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
|
@@ -363,7 +363,7 @@ export var deserializeAws_json1_0AssociateFirewallPolicyCommand = function (outp
|
|
|
363
363
|
});
|
|
364
364
|
}); };
|
|
365
365
|
var deserializeAws_json1_0AssociateFirewallPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
366
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
366
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
367
367
|
var _c;
|
|
368
368
|
return __generator(this, function (_d) {
|
|
369
369
|
switch (_d.label) {
|
|
@@ -373,7 +373,6 @@ var deserializeAws_json1_0AssociateFirewallPolicyCommandError = function (output
|
|
|
373
373
|
return [4, parseBody(output.body, context)];
|
|
374
374
|
case 1:
|
|
375
375
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
376
|
-
errorCode = "UnknownError";
|
|
377
376
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
378
377
|
_b = errorCode;
|
|
379
378
|
switch (_b) {
|
|
@@ -405,10 +404,12 @@ var deserializeAws_json1_0AssociateFirewallPolicyCommandError = function (output
|
|
|
405
404
|
case 13: throw _d.sent();
|
|
406
405
|
case 14:
|
|
407
406
|
parsedBody = parsedOutput.body;
|
|
407
|
+
$metadata = deserializeMetadata(output);
|
|
408
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
408
409
|
response = new __BaseException({
|
|
409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
410
411
|
$fault: "client",
|
|
411
|
-
$metadata:
|
|
412
|
+
$metadata: $metadata,
|
|
412
413
|
});
|
|
413
414
|
throw __decorateServiceException(response, parsedBody);
|
|
414
415
|
}
|
|
@@ -433,7 +434,7 @@ export var deserializeAws_json1_0AssociateSubnetsCommand = function (output, con
|
|
|
433
434
|
});
|
|
434
435
|
}); };
|
|
435
436
|
var deserializeAws_json1_0AssociateSubnetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
436
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
437
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
437
438
|
var _c;
|
|
438
439
|
return __generator(this, function (_d) {
|
|
439
440
|
switch (_d.label) {
|
|
@@ -443,7 +444,6 @@ var deserializeAws_json1_0AssociateSubnetsCommandError = function (output, conte
|
|
|
443
444
|
return [4, parseBody(output.body, context)];
|
|
444
445
|
case 1:
|
|
445
446
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
446
|
-
errorCode = "UnknownError";
|
|
447
447
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
448
|
_b = errorCode;
|
|
449
449
|
switch (_b) {
|
|
@@ -479,10 +479,12 @@ var deserializeAws_json1_0AssociateSubnetsCommandError = function (output, conte
|
|
|
479
479
|
case 15: throw _d.sent();
|
|
480
480
|
case 16:
|
|
481
481
|
parsedBody = parsedOutput.body;
|
|
482
|
+
$metadata = deserializeMetadata(output);
|
|
483
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
482
484
|
response = new __BaseException({
|
|
483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
484
486
|
$fault: "client",
|
|
485
|
-
$metadata:
|
|
487
|
+
$metadata: $metadata,
|
|
486
488
|
});
|
|
487
489
|
throw __decorateServiceException(response, parsedBody);
|
|
488
490
|
}
|
|
@@ -507,7 +509,7 @@ export var deserializeAws_json1_0CreateFirewallCommand = function (output, conte
|
|
|
507
509
|
});
|
|
508
510
|
}); };
|
|
509
511
|
var deserializeAws_json1_0CreateFirewallCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
510
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
512
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
511
513
|
var _c;
|
|
512
514
|
return __generator(this, function (_d) {
|
|
513
515
|
switch (_d.label) {
|
|
@@ -517,7 +519,6 @@ var deserializeAws_json1_0CreateFirewallCommandError = function (output, context
|
|
|
517
519
|
return [4, parseBody(output.body, context)];
|
|
518
520
|
case 1:
|
|
519
521
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
520
|
-
errorCode = "UnknownError";
|
|
521
522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
523
|
_b = errorCode;
|
|
523
524
|
switch (_b) {
|
|
@@ -549,10 +550,12 @@ var deserializeAws_json1_0CreateFirewallCommandError = function (output, context
|
|
|
549
550
|
case 13: throw _d.sent();
|
|
550
551
|
case 14:
|
|
551
552
|
parsedBody = parsedOutput.body;
|
|
553
|
+
$metadata = deserializeMetadata(output);
|
|
554
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
552
555
|
response = new __BaseException({
|
|
553
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
554
557
|
$fault: "client",
|
|
555
|
-
$metadata:
|
|
558
|
+
$metadata: $metadata,
|
|
556
559
|
});
|
|
557
560
|
throw __decorateServiceException(response, parsedBody);
|
|
558
561
|
}
|
|
@@ -577,7 +580,7 @@ export var deserializeAws_json1_0CreateFirewallPolicyCommand = function (output,
|
|
|
577
580
|
});
|
|
578
581
|
}); };
|
|
579
582
|
var deserializeAws_json1_0CreateFirewallPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
580
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
583
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
581
584
|
var _c;
|
|
582
585
|
return __generator(this, function (_d) {
|
|
583
586
|
switch (_d.label) {
|
|
@@ -587,7 +590,6 @@ var deserializeAws_json1_0CreateFirewallPolicyCommandError = function (output, c
|
|
|
587
590
|
return [4, parseBody(output.body, context)];
|
|
588
591
|
case 1:
|
|
589
592
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
590
|
-
errorCode = "UnknownError";
|
|
591
593
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
594
|
_b = errorCode;
|
|
593
595
|
switch (_b) {
|
|
@@ -615,10 +617,12 @@ var deserializeAws_json1_0CreateFirewallPolicyCommandError = function (output, c
|
|
|
615
617
|
case 11: throw _d.sent();
|
|
616
618
|
case 12:
|
|
617
619
|
parsedBody = parsedOutput.body;
|
|
620
|
+
$metadata = deserializeMetadata(output);
|
|
621
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
618
622
|
response = new __BaseException({
|
|
619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
623
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
620
624
|
$fault: "client",
|
|
621
|
-
$metadata:
|
|
625
|
+
$metadata: $metadata,
|
|
622
626
|
});
|
|
623
627
|
throw __decorateServiceException(response, parsedBody);
|
|
624
628
|
}
|
|
@@ -643,7 +647,7 @@ export var deserializeAws_json1_0CreateRuleGroupCommand = function (output, cont
|
|
|
643
647
|
});
|
|
644
648
|
}); };
|
|
645
649
|
var deserializeAws_json1_0CreateRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
646
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
650
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
647
651
|
var _c;
|
|
648
652
|
return __generator(this, function (_d) {
|
|
649
653
|
switch (_d.label) {
|
|
@@ -653,7 +657,6 @@ var deserializeAws_json1_0CreateRuleGroupCommandError = function (output, contex
|
|
|
653
657
|
return [4, parseBody(output.body, context)];
|
|
654
658
|
case 1:
|
|
655
659
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
656
|
-
errorCode = "UnknownError";
|
|
657
660
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
661
|
_b = errorCode;
|
|
659
662
|
switch (_b) {
|
|
@@ -681,10 +684,12 @@ var deserializeAws_json1_0CreateRuleGroupCommandError = function (output, contex
|
|
|
681
684
|
case 11: throw _d.sent();
|
|
682
685
|
case 12:
|
|
683
686
|
parsedBody = parsedOutput.body;
|
|
687
|
+
$metadata = deserializeMetadata(output);
|
|
688
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
684
689
|
response = new __BaseException({
|
|
685
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
686
691
|
$fault: "client",
|
|
687
|
-
$metadata:
|
|
692
|
+
$metadata: $metadata,
|
|
688
693
|
});
|
|
689
694
|
throw __decorateServiceException(response, parsedBody);
|
|
690
695
|
}
|
|
@@ -709,7 +714,7 @@ export var deserializeAws_json1_0DeleteFirewallCommand = function (output, conte
|
|
|
709
714
|
});
|
|
710
715
|
}); };
|
|
711
716
|
var deserializeAws_json1_0DeleteFirewallCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
712
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
717
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
713
718
|
var _c;
|
|
714
719
|
return __generator(this, function (_d) {
|
|
715
720
|
switch (_d.label) {
|
|
@@ -719,7 +724,6 @@ var deserializeAws_json1_0DeleteFirewallCommandError = function (output, context
|
|
|
719
724
|
return [4, parseBody(output.body, context)];
|
|
720
725
|
case 1:
|
|
721
726
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
722
|
-
errorCode = "UnknownError";
|
|
723
727
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
728
|
_b = errorCode;
|
|
725
729
|
switch (_b) {
|
|
@@ -751,10 +755,12 @@ var deserializeAws_json1_0DeleteFirewallCommandError = function (output, context
|
|
|
751
755
|
case 13: throw _d.sent();
|
|
752
756
|
case 14:
|
|
753
757
|
parsedBody = parsedOutput.body;
|
|
758
|
+
$metadata = deserializeMetadata(output);
|
|
759
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
754
760
|
response = new __BaseException({
|
|
755
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
756
762
|
$fault: "client",
|
|
757
|
-
$metadata:
|
|
763
|
+
$metadata: $metadata,
|
|
758
764
|
});
|
|
759
765
|
throw __decorateServiceException(response, parsedBody);
|
|
760
766
|
}
|
|
@@ -779,7 +785,7 @@ export var deserializeAws_json1_0DeleteFirewallPolicyCommand = function (output,
|
|
|
779
785
|
});
|
|
780
786
|
}); };
|
|
781
787
|
var deserializeAws_json1_0DeleteFirewallPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
782
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
788
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
783
789
|
var _c;
|
|
784
790
|
return __generator(this, function (_d) {
|
|
785
791
|
switch (_d.label) {
|
|
@@ -789,7 +795,6 @@ var deserializeAws_json1_0DeleteFirewallPolicyCommandError = function (output, c
|
|
|
789
795
|
return [4, parseBody(output.body, context)];
|
|
790
796
|
case 1:
|
|
791
797
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
792
|
-
errorCode = "UnknownError";
|
|
793
798
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
799
|
_b = errorCode;
|
|
795
800
|
switch (_b) {
|
|
@@ -821,10 +826,12 @@ var deserializeAws_json1_0DeleteFirewallPolicyCommandError = function (output, c
|
|
|
821
826
|
case 13: throw _d.sent();
|
|
822
827
|
case 14:
|
|
823
828
|
parsedBody = parsedOutput.body;
|
|
829
|
+
$metadata = deserializeMetadata(output);
|
|
830
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
824
831
|
response = new __BaseException({
|
|
825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
832
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
826
833
|
$fault: "client",
|
|
827
|
-
$metadata:
|
|
834
|
+
$metadata: $metadata,
|
|
828
835
|
});
|
|
829
836
|
throw __decorateServiceException(response, parsedBody);
|
|
830
837
|
}
|
|
@@ -849,7 +856,7 @@ export var deserializeAws_json1_0DeleteResourcePolicyCommand = function (output,
|
|
|
849
856
|
});
|
|
850
857
|
}); };
|
|
851
858
|
var deserializeAws_json1_0DeleteResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
852
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
859
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
853
860
|
var _c;
|
|
854
861
|
return __generator(this, function (_d) {
|
|
855
862
|
switch (_d.label) {
|
|
@@ -859,7 +866,6 @@ var deserializeAws_json1_0DeleteResourcePolicyCommandError = function (output, c
|
|
|
859
866
|
return [4, parseBody(output.body, context)];
|
|
860
867
|
case 1:
|
|
861
868
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
862
|
-
errorCode = "UnknownError";
|
|
863
869
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
870
|
_b = errorCode;
|
|
865
871
|
switch (_b) {
|
|
@@ -887,10 +893,12 @@ var deserializeAws_json1_0DeleteResourcePolicyCommandError = function (output, c
|
|
|
887
893
|
case 11: throw _d.sent();
|
|
888
894
|
case 12:
|
|
889
895
|
parsedBody = parsedOutput.body;
|
|
896
|
+
$metadata = deserializeMetadata(output);
|
|
897
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
890
898
|
response = new __BaseException({
|
|
891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
899
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
892
900
|
$fault: "client",
|
|
893
|
-
$metadata:
|
|
901
|
+
$metadata: $metadata,
|
|
894
902
|
});
|
|
895
903
|
throw __decorateServiceException(response, parsedBody);
|
|
896
904
|
}
|
|
@@ -915,7 +923,7 @@ export var deserializeAws_json1_0DeleteRuleGroupCommand = function (output, cont
|
|
|
915
923
|
});
|
|
916
924
|
}); };
|
|
917
925
|
var deserializeAws_json1_0DeleteRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
918
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
926
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
919
927
|
var _c;
|
|
920
928
|
return __generator(this, function (_d) {
|
|
921
929
|
switch (_d.label) {
|
|
@@ -925,7 +933,6 @@ var deserializeAws_json1_0DeleteRuleGroupCommandError = function (output, contex
|
|
|
925
933
|
return [4, parseBody(output.body, context)];
|
|
926
934
|
case 1:
|
|
927
935
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
928
|
-
errorCode = "UnknownError";
|
|
929
936
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
937
|
_b = errorCode;
|
|
931
938
|
switch (_b) {
|
|
@@ -957,10 +964,12 @@ var deserializeAws_json1_0DeleteRuleGroupCommandError = function (output, contex
|
|
|
957
964
|
case 13: throw _d.sent();
|
|
958
965
|
case 14:
|
|
959
966
|
parsedBody = parsedOutput.body;
|
|
967
|
+
$metadata = deserializeMetadata(output);
|
|
968
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
960
969
|
response = new __BaseException({
|
|
961
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
970
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
962
971
|
$fault: "client",
|
|
963
|
-
$metadata:
|
|
972
|
+
$metadata: $metadata,
|
|
964
973
|
});
|
|
965
974
|
throw __decorateServiceException(response, parsedBody);
|
|
966
975
|
}
|
|
@@ -985,7 +994,7 @@ export var deserializeAws_json1_0DescribeFirewallCommand = function (output, con
|
|
|
985
994
|
});
|
|
986
995
|
}); };
|
|
987
996
|
var deserializeAws_json1_0DescribeFirewallCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
988
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
997
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
989
998
|
var _c;
|
|
990
999
|
return __generator(this, function (_d) {
|
|
991
1000
|
switch (_d.label) {
|
|
@@ -995,7 +1004,6 @@ var deserializeAws_json1_0DescribeFirewallCommandError = function (output, conte
|
|
|
995
1004
|
return [4, parseBody(output.body, context)];
|
|
996
1005
|
case 1:
|
|
997
1006
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
998
|
-
errorCode = "UnknownError";
|
|
999
1007
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
1008
|
_b = errorCode;
|
|
1001
1009
|
switch (_b) {
|
|
@@ -1019,10 +1027,12 @@ var deserializeAws_json1_0DescribeFirewallCommandError = function (output, conte
|
|
|
1019
1027
|
case 9: throw _d.sent();
|
|
1020
1028
|
case 10:
|
|
1021
1029
|
parsedBody = parsedOutput.body;
|
|
1030
|
+
$metadata = deserializeMetadata(output);
|
|
1031
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1022
1032
|
response = new __BaseException({
|
|
1023
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1033
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1024
1034
|
$fault: "client",
|
|
1025
|
-
$metadata:
|
|
1035
|
+
$metadata: $metadata,
|
|
1026
1036
|
});
|
|
1027
1037
|
throw __decorateServiceException(response, parsedBody);
|
|
1028
1038
|
}
|
|
@@ -1047,7 +1057,7 @@ export var deserializeAws_json1_0DescribeFirewallPolicyCommand = function (outpu
|
|
|
1047
1057
|
});
|
|
1048
1058
|
}); };
|
|
1049
1059
|
var deserializeAws_json1_0DescribeFirewallPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1050
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1060
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1051
1061
|
var _c;
|
|
1052
1062
|
return __generator(this, function (_d) {
|
|
1053
1063
|
switch (_d.label) {
|
|
@@ -1057,7 +1067,6 @@ var deserializeAws_json1_0DescribeFirewallPolicyCommandError = function (output,
|
|
|
1057
1067
|
return [4, parseBody(output.body, context)];
|
|
1058
1068
|
case 1:
|
|
1059
1069
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1060
|
-
errorCode = "UnknownError";
|
|
1061
1070
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1071
|
_b = errorCode;
|
|
1063
1072
|
switch (_b) {
|
|
@@ -1081,10 +1090,12 @@ var deserializeAws_json1_0DescribeFirewallPolicyCommandError = function (output,
|
|
|
1081
1090
|
case 9: throw _d.sent();
|
|
1082
1091
|
case 10:
|
|
1083
1092
|
parsedBody = parsedOutput.body;
|
|
1093
|
+
$metadata = deserializeMetadata(output);
|
|
1094
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1095
|
response = new __BaseException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1097
|
$fault: "client",
|
|
1087
|
-
$metadata:
|
|
1098
|
+
$metadata: $metadata,
|
|
1088
1099
|
});
|
|
1089
1100
|
throw __decorateServiceException(response, parsedBody);
|
|
1090
1101
|
}
|
|
@@ -1109,7 +1120,7 @@ export var deserializeAws_json1_0DescribeLoggingConfigurationCommand = function
|
|
|
1109
1120
|
});
|
|
1110
1121
|
}); };
|
|
1111
1122
|
var deserializeAws_json1_0DescribeLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1112
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1123
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1113
1124
|
var _c;
|
|
1114
1125
|
return __generator(this, function (_d) {
|
|
1115
1126
|
switch (_d.label) {
|
|
@@ -1119,7 +1130,6 @@ var deserializeAws_json1_0DescribeLoggingConfigurationCommandError = function (o
|
|
|
1119
1130
|
return [4, parseBody(output.body, context)];
|
|
1120
1131
|
case 1:
|
|
1121
1132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1122
|
-
errorCode = "UnknownError";
|
|
1123
1133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1134
|
_b = errorCode;
|
|
1125
1135
|
switch (_b) {
|
|
@@ -1143,10 +1153,12 @@ var deserializeAws_json1_0DescribeLoggingConfigurationCommandError = function (o
|
|
|
1143
1153
|
case 9: throw _d.sent();
|
|
1144
1154
|
case 10:
|
|
1145
1155
|
parsedBody = parsedOutput.body;
|
|
1156
|
+
$metadata = deserializeMetadata(output);
|
|
1157
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1146
1158
|
response = new __BaseException({
|
|
1147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1148
1160
|
$fault: "client",
|
|
1149
|
-
$metadata:
|
|
1161
|
+
$metadata: $metadata,
|
|
1150
1162
|
});
|
|
1151
1163
|
throw __decorateServiceException(response, parsedBody);
|
|
1152
1164
|
}
|
|
@@ -1171,7 +1183,7 @@ export var deserializeAws_json1_0DescribeResourcePolicyCommand = function (outpu
|
|
|
1171
1183
|
});
|
|
1172
1184
|
}); };
|
|
1173
1185
|
var deserializeAws_json1_0DescribeResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1174
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1186
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1175
1187
|
var _c;
|
|
1176
1188
|
return __generator(this, function (_d) {
|
|
1177
1189
|
switch (_d.label) {
|
|
@@ -1181,7 +1193,6 @@ var deserializeAws_json1_0DescribeResourcePolicyCommandError = function (output,
|
|
|
1181
1193
|
return [4, parseBody(output.body, context)];
|
|
1182
1194
|
case 1:
|
|
1183
1195
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1184
|
-
errorCode = "UnknownError";
|
|
1185
1196
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1197
|
_b = errorCode;
|
|
1187
1198
|
switch (_b) {
|
|
@@ -1205,10 +1216,12 @@ var deserializeAws_json1_0DescribeResourcePolicyCommandError = function (output,
|
|
|
1205
1216
|
case 9: throw _d.sent();
|
|
1206
1217
|
case 10:
|
|
1207
1218
|
parsedBody = parsedOutput.body;
|
|
1219
|
+
$metadata = deserializeMetadata(output);
|
|
1220
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1208
1221
|
response = new __BaseException({
|
|
1209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1222
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1210
1223
|
$fault: "client",
|
|
1211
|
-
$metadata:
|
|
1224
|
+
$metadata: $metadata,
|
|
1212
1225
|
});
|
|
1213
1226
|
throw __decorateServiceException(response, parsedBody);
|
|
1214
1227
|
}
|
|
@@ -1233,7 +1246,7 @@ export var deserializeAws_json1_0DescribeRuleGroupCommand = function (output, co
|
|
|
1233
1246
|
});
|
|
1234
1247
|
}); };
|
|
1235
1248
|
var deserializeAws_json1_0DescribeRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1236
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1249
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1237
1250
|
var _c;
|
|
1238
1251
|
return __generator(this, function (_d) {
|
|
1239
1252
|
switch (_d.label) {
|
|
@@ -1243,7 +1256,6 @@ var deserializeAws_json1_0DescribeRuleGroupCommandError = function (output, cont
|
|
|
1243
1256
|
return [4, parseBody(output.body, context)];
|
|
1244
1257
|
case 1:
|
|
1245
1258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1246
|
-
errorCode = "UnknownError";
|
|
1247
1259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
1260
|
_b = errorCode;
|
|
1249
1261
|
switch (_b) {
|
|
@@ -1267,10 +1279,12 @@ var deserializeAws_json1_0DescribeRuleGroupCommandError = function (output, cont
|
|
|
1267
1279
|
case 9: throw _d.sent();
|
|
1268
1280
|
case 10:
|
|
1269
1281
|
parsedBody = parsedOutput.body;
|
|
1282
|
+
$metadata = deserializeMetadata(output);
|
|
1283
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1270
1284
|
response = new __BaseException({
|
|
1271
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1272
1286
|
$fault: "client",
|
|
1273
|
-
$metadata:
|
|
1287
|
+
$metadata: $metadata,
|
|
1274
1288
|
});
|
|
1275
1289
|
throw __decorateServiceException(response, parsedBody);
|
|
1276
1290
|
}
|
|
@@ -1295,7 +1309,7 @@ export var deserializeAws_json1_0DescribeRuleGroupMetadataCommand = function (ou
|
|
|
1295
1309
|
});
|
|
1296
1310
|
}); };
|
|
1297
1311
|
var deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1298
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1312
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1299
1313
|
var _c;
|
|
1300
1314
|
return __generator(this, function (_d) {
|
|
1301
1315
|
switch (_d.label) {
|
|
@@ -1305,7 +1319,6 @@ var deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = function (outp
|
|
|
1305
1319
|
return [4, parseBody(output.body, context)];
|
|
1306
1320
|
case 1:
|
|
1307
1321
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1308
|
-
errorCode = "UnknownError";
|
|
1309
1322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1323
|
_b = errorCode;
|
|
1311
1324
|
switch (_b) {
|
|
@@ -1329,10 +1342,12 @@ var deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = function (outp
|
|
|
1329
1342
|
case 9: throw _d.sent();
|
|
1330
1343
|
case 10:
|
|
1331
1344
|
parsedBody = parsedOutput.body;
|
|
1345
|
+
$metadata = deserializeMetadata(output);
|
|
1346
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1332
1347
|
response = new __BaseException({
|
|
1333
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1348
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1334
1349
|
$fault: "client",
|
|
1335
|
-
$metadata:
|
|
1350
|
+
$metadata: $metadata,
|
|
1336
1351
|
});
|
|
1337
1352
|
throw __decorateServiceException(response, parsedBody);
|
|
1338
1353
|
}
|
|
@@ -1357,7 +1372,7 @@ export var deserializeAws_json1_0DisassociateSubnetsCommand = function (output,
|
|
|
1357
1372
|
});
|
|
1358
1373
|
}); };
|
|
1359
1374
|
var deserializeAws_json1_0DisassociateSubnetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1360
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1375
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1361
1376
|
var _c;
|
|
1362
1377
|
return __generator(this, function (_d) {
|
|
1363
1378
|
switch (_d.label) {
|
|
@@ -1367,7 +1382,6 @@ var deserializeAws_json1_0DisassociateSubnetsCommandError = function (output, co
|
|
|
1367
1382
|
return [4, parseBody(output.body, context)];
|
|
1368
1383
|
case 1:
|
|
1369
1384
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1370
|
-
errorCode = "UnknownError";
|
|
1371
1385
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1386
|
_b = errorCode;
|
|
1373
1387
|
switch (_b) {
|
|
@@ -1399,10 +1413,12 @@ var deserializeAws_json1_0DisassociateSubnetsCommandError = function (output, co
|
|
|
1399
1413
|
case 13: throw _d.sent();
|
|
1400
1414
|
case 14:
|
|
1401
1415
|
parsedBody = parsedOutput.body;
|
|
1416
|
+
$metadata = deserializeMetadata(output);
|
|
1417
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1402
1418
|
response = new __BaseException({
|
|
1403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1419
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1404
1420
|
$fault: "client",
|
|
1405
|
-
$metadata:
|
|
1421
|
+
$metadata: $metadata,
|
|
1406
1422
|
});
|
|
1407
1423
|
throw __decorateServiceException(response, parsedBody);
|
|
1408
1424
|
}
|
|
@@ -1427,7 +1443,7 @@ export var deserializeAws_json1_0ListFirewallPoliciesCommand = function (output,
|
|
|
1427
1443
|
});
|
|
1428
1444
|
}); };
|
|
1429
1445
|
var deserializeAws_json1_0ListFirewallPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1430
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1446
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1431
1447
|
var _c;
|
|
1432
1448
|
return __generator(this, function (_d) {
|
|
1433
1449
|
switch (_d.label) {
|
|
@@ -1437,7 +1453,6 @@ var deserializeAws_json1_0ListFirewallPoliciesCommandError = function (output, c
|
|
|
1437
1453
|
return [4, parseBody(output.body, context)];
|
|
1438
1454
|
case 1:
|
|
1439
1455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1440
|
-
errorCode = "UnknownError";
|
|
1441
1456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1457
|
_b = errorCode;
|
|
1443
1458
|
switch (_b) {
|
|
@@ -1457,10 +1472,12 @@ var deserializeAws_json1_0ListFirewallPoliciesCommandError = function (output, c
|
|
|
1457
1472
|
case 7: throw _d.sent();
|
|
1458
1473
|
case 8:
|
|
1459
1474
|
parsedBody = parsedOutput.body;
|
|
1475
|
+
$metadata = deserializeMetadata(output);
|
|
1476
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1460
1477
|
response = new __BaseException({
|
|
1461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1478
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1462
1479
|
$fault: "client",
|
|
1463
|
-
$metadata:
|
|
1480
|
+
$metadata: $metadata,
|
|
1464
1481
|
});
|
|
1465
1482
|
throw __decorateServiceException(response, parsedBody);
|
|
1466
1483
|
}
|
|
@@ -1485,7 +1502,7 @@ export var deserializeAws_json1_0ListFirewallsCommand = function (output, contex
|
|
|
1485
1502
|
});
|
|
1486
1503
|
}); };
|
|
1487
1504
|
var deserializeAws_json1_0ListFirewallsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1488
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1505
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1489
1506
|
var _c;
|
|
1490
1507
|
return __generator(this, function (_d) {
|
|
1491
1508
|
switch (_d.label) {
|
|
@@ -1495,7 +1512,6 @@ var deserializeAws_json1_0ListFirewallsCommandError = function (output, context)
|
|
|
1495
1512
|
return [4, parseBody(output.body, context)];
|
|
1496
1513
|
case 1:
|
|
1497
1514
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1498
|
-
errorCode = "UnknownError";
|
|
1499
1515
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1516
|
_b = errorCode;
|
|
1501
1517
|
switch (_b) {
|
|
@@ -1515,10 +1531,12 @@ var deserializeAws_json1_0ListFirewallsCommandError = function (output, context)
|
|
|
1515
1531
|
case 7: throw _d.sent();
|
|
1516
1532
|
case 8:
|
|
1517
1533
|
parsedBody = parsedOutput.body;
|
|
1534
|
+
$metadata = deserializeMetadata(output);
|
|
1535
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1518
1536
|
response = new __BaseException({
|
|
1519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1520
1538
|
$fault: "client",
|
|
1521
|
-
$metadata:
|
|
1539
|
+
$metadata: $metadata,
|
|
1522
1540
|
});
|
|
1523
1541
|
throw __decorateServiceException(response, parsedBody);
|
|
1524
1542
|
}
|
|
@@ -1543,7 +1561,7 @@ export var deserializeAws_json1_0ListRuleGroupsCommand = function (output, conte
|
|
|
1543
1561
|
});
|
|
1544
1562
|
}); };
|
|
1545
1563
|
var deserializeAws_json1_0ListRuleGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1546
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1564
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1547
1565
|
var _c;
|
|
1548
1566
|
return __generator(this, function (_d) {
|
|
1549
1567
|
switch (_d.label) {
|
|
@@ -1553,7 +1571,6 @@ var deserializeAws_json1_0ListRuleGroupsCommandError = function (output, context
|
|
|
1553
1571
|
return [4, parseBody(output.body, context)];
|
|
1554
1572
|
case 1:
|
|
1555
1573
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1556
|
-
errorCode = "UnknownError";
|
|
1557
1574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
1575
|
_b = errorCode;
|
|
1559
1576
|
switch (_b) {
|
|
@@ -1573,10 +1590,12 @@ var deserializeAws_json1_0ListRuleGroupsCommandError = function (output, context
|
|
|
1573
1590
|
case 7: throw _d.sent();
|
|
1574
1591
|
case 8:
|
|
1575
1592
|
parsedBody = parsedOutput.body;
|
|
1593
|
+
$metadata = deserializeMetadata(output);
|
|
1594
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1576
1595
|
response = new __BaseException({
|
|
1577
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1596
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1578
1597
|
$fault: "client",
|
|
1579
|
-
$metadata:
|
|
1598
|
+
$metadata: $metadata,
|
|
1580
1599
|
});
|
|
1581
1600
|
throw __decorateServiceException(response, parsedBody);
|
|
1582
1601
|
}
|
|
@@ -1601,7 +1620,7 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
1601
1620
|
});
|
|
1602
1621
|
}); };
|
|
1603
1622
|
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1604
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1623
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1605
1624
|
var _c;
|
|
1606
1625
|
return __generator(this, function (_d) {
|
|
1607
1626
|
switch (_d.label) {
|
|
@@ -1611,7 +1630,6 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1611
1630
|
return [4, parseBody(output.body, context)];
|
|
1612
1631
|
case 1:
|
|
1613
1632
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1614
|
-
errorCode = "UnknownError";
|
|
1615
1633
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
1634
|
_b = errorCode;
|
|
1617
1635
|
switch (_b) {
|
|
@@ -1635,10 +1653,12 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1635
1653
|
case 9: throw _d.sent();
|
|
1636
1654
|
case 10:
|
|
1637
1655
|
parsedBody = parsedOutput.body;
|
|
1656
|
+
$metadata = deserializeMetadata(output);
|
|
1657
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1638
1658
|
response = new __BaseException({
|
|
1639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1659
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1640
1660
|
$fault: "client",
|
|
1641
|
-
$metadata:
|
|
1661
|
+
$metadata: $metadata,
|
|
1642
1662
|
});
|
|
1643
1663
|
throw __decorateServiceException(response, parsedBody);
|
|
1644
1664
|
}
|
|
@@ -1663,7 +1683,7 @@ export var deserializeAws_json1_0PutResourcePolicyCommand = function (output, co
|
|
|
1663
1683
|
});
|
|
1664
1684
|
}); };
|
|
1665
1685
|
var deserializeAws_json1_0PutResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1666
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1686
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1667
1687
|
var _c;
|
|
1668
1688
|
return __generator(this, function (_d) {
|
|
1669
1689
|
switch (_d.label) {
|
|
@@ -1673,7 +1693,6 @@ var deserializeAws_json1_0PutResourcePolicyCommandError = function (output, cont
|
|
|
1673
1693
|
return [4, parseBody(output.body, context)];
|
|
1674
1694
|
case 1:
|
|
1675
1695
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1676
|
-
errorCode = "UnknownError";
|
|
1677
1696
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
1697
|
_b = errorCode;
|
|
1679
1698
|
switch (_b) {
|
|
@@ -1701,10 +1720,12 @@ var deserializeAws_json1_0PutResourcePolicyCommandError = function (output, cont
|
|
|
1701
1720
|
case 11: throw _d.sent();
|
|
1702
1721
|
case 12:
|
|
1703
1722
|
parsedBody = parsedOutput.body;
|
|
1723
|
+
$metadata = deserializeMetadata(output);
|
|
1724
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1704
1725
|
response = new __BaseException({
|
|
1705
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1706
1727
|
$fault: "client",
|
|
1707
|
-
$metadata:
|
|
1728
|
+
$metadata: $metadata,
|
|
1708
1729
|
});
|
|
1709
1730
|
throw __decorateServiceException(response, parsedBody);
|
|
1710
1731
|
}
|
|
@@ -1729,7 +1750,7 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
1729
1750
|
});
|
|
1730
1751
|
}); };
|
|
1731
1752
|
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1732
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1753
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1733
1754
|
var _c;
|
|
1734
1755
|
return __generator(this, function (_d) {
|
|
1735
1756
|
switch (_d.label) {
|
|
@@ -1739,7 +1760,6 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
1739
1760
|
return [4, parseBody(output.body, context)];
|
|
1740
1761
|
case 1:
|
|
1741
1762
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1742
|
-
errorCode = "UnknownError";
|
|
1743
1763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
1764
|
_b = errorCode;
|
|
1745
1765
|
switch (_b) {
|
|
@@ -1763,10 +1783,12 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
1763
1783
|
case 9: throw _d.sent();
|
|
1764
1784
|
case 10:
|
|
1765
1785
|
parsedBody = parsedOutput.body;
|
|
1786
|
+
$metadata = deserializeMetadata(output);
|
|
1787
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1766
1788
|
response = new __BaseException({
|
|
1767
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1789
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1768
1790
|
$fault: "client",
|
|
1769
|
-
$metadata:
|
|
1791
|
+
$metadata: $metadata,
|
|
1770
1792
|
});
|
|
1771
1793
|
throw __decorateServiceException(response, parsedBody);
|
|
1772
1794
|
}
|
|
@@ -1791,7 +1813,7 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
1791
1813
|
});
|
|
1792
1814
|
}); };
|
|
1793
1815
|
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1794
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1816
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1795
1817
|
var _c;
|
|
1796
1818
|
return __generator(this, function (_d) {
|
|
1797
1819
|
switch (_d.label) {
|
|
@@ -1801,7 +1823,6 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
1801
1823
|
return [4, parseBody(output.body, context)];
|
|
1802
1824
|
case 1:
|
|
1803
1825
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1804
|
-
errorCode = "UnknownError";
|
|
1805
1826
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1827
|
_b = errorCode;
|
|
1807
1828
|
switch (_b) {
|
|
@@ -1825,10 +1846,12 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
1825
1846
|
case 9: throw _d.sent();
|
|
1826
1847
|
case 10:
|
|
1827
1848
|
parsedBody = parsedOutput.body;
|
|
1849
|
+
$metadata = deserializeMetadata(output);
|
|
1850
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1828
1851
|
response = new __BaseException({
|
|
1829
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1830
1853
|
$fault: "client",
|
|
1831
|
-
$metadata:
|
|
1854
|
+
$metadata: $metadata,
|
|
1832
1855
|
});
|
|
1833
1856
|
throw __decorateServiceException(response, parsedBody);
|
|
1834
1857
|
}
|
|
@@ -1853,7 +1876,7 @@ export var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = functio
|
|
|
1853
1876
|
});
|
|
1854
1877
|
}); };
|
|
1855
1878
|
var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1856
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1879
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1857
1880
|
var _c;
|
|
1858
1881
|
return __generator(this, function (_d) {
|
|
1859
1882
|
switch (_d.label) {
|
|
@@ -1863,7 +1886,6 @@ var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = function
|
|
|
1863
1886
|
return [4, parseBody(output.body, context)];
|
|
1864
1887
|
case 1:
|
|
1865
1888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1866
|
-
errorCode = "UnknownError";
|
|
1867
1889
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1890
|
_b = errorCode;
|
|
1869
1891
|
switch (_b) {
|
|
@@ -1895,10 +1917,12 @@ var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = function
|
|
|
1895
1917
|
case 13: throw _d.sent();
|
|
1896
1918
|
case 14:
|
|
1897
1919
|
parsedBody = parsedOutput.body;
|
|
1920
|
+
$metadata = deserializeMetadata(output);
|
|
1921
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1922
|
response = new __BaseException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1924
|
$fault: "client",
|
|
1901
|
-
$metadata:
|
|
1925
|
+
$metadata: $metadata,
|
|
1902
1926
|
});
|
|
1903
1927
|
throw __decorateServiceException(response, parsedBody);
|
|
1904
1928
|
}
|
|
@@ -1923,7 +1947,7 @@ export var deserializeAws_json1_0UpdateFirewallDescriptionCommand = function (ou
|
|
|
1923
1947
|
});
|
|
1924
1948
|
}); };
|
|
1925
1949
|
var deserializeAws_json1_0UpdateFirewallDescriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1926
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1950
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1927
1951
|
var _c;
|
|
1928
1952
|
return __generator(this, function (_d) {
|
|
1929
1953
|
switch (_d.label) {
|
|
@@ -1933,7 +1957,6 @@ var deserializeAws_json1_0UpdateFirewallDescriptionCommandError = function (outp
|
|
|
1933
1957
|
return [4, parseBody(output.body, context)];
|
|
1934
1958
|
case 1:
|
|
1935
1959
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1936
|
-
errorCode = "UnknownError";
|
|
1937
1960
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
1961
|
_b = errorCode;
|
|
1939
1962
|
switch (_b) {
|
|
@@ -1961,10 +1984,12 @@ var deserializeAws_json1_0UpdateFirewallDescriptionCommandError = function (outp
|
|
|
1961
1984
|
case 11: throw _d.sent();
|
|
1962
1985
|
case 12:
|
|
1963
1986
|
parsedBody = parsedOutput.body;
|
|
1987
|
+
$metadata = deserializeMetadata(output);
|
|
1988
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1964
1989
|
response = new __BaseException({
|
|
1965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1966
1991
|
$fault: "client",
|
|
1967
|
-
$metadata:
|
|
1992
|
+
$metadata: $metadata,
|
|
1968
1993
|
});
|
|
1969
1994
|
throw __decorateServiceException(response, parsedBody);
|
|
1970
1995
|
}
|
|
@@ -1989,7 +2014,7 @@ export var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand =
|
|
|
1989
2014
|
});
|
|
1990
2015
|
}); };
|
|
1991
2016
|
var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1992
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2017
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1993
2018
|
var _c;
|
|
1994
2019
|
return __generator(this, function (_d) {
|
|
1995
2020
|
switch (_d.label) {
|
|
@@ -1999,7 +2024,6 @@ var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError = fu
|
|
|
1999
2024
|
return [4, parseBody(output.body, context)];
|
|
2000
2025
|
case 1:
|
|
2001
2026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2002
|
-
errorCode = "UnknownError";
|
|
2003
2027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
2028
|
_b = errorCode;
|
|
2005
2029
|
switch (_b) {
|
|
@@ -2031,10 +2055,12 @@ var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError = fu
|
|
|
2031
2055
|
case 13: throw _d.sent();
|
|
2032
2056
|
case 14:
|
|
2033
2057
|
parsedBody = parsedOutput.body;
|
|
2058
|
+
$metadata = deserializeMetadata(output);
|
|
2059
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2034
2060
|
response = new __BaseException({
|
|
2035
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2036
2062
|
$fault: "client",
|
|
2037
|
-
$metadata:
|
|
2063
|
+
$metadata: $metadata,
|
|
2038
2064
|
});
|
|
2039
2065
|
throw __decorateServiceException(response, parsedBody);
|
|
2040
2066
|
}
|
|
@@ -2059,7 +2085,7 @@ export var deserializeAws_json1_0UpdateFirewallPolicyCommand = function (output,
|
|
|
2059
2085
|
});
|
|
2060
2086
|
}); };
|
|
2061
2087
|
var deserializeAws_json1_0UpdateFirewallPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2062
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2088
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2063
2089
|
var _c;
|
|
2064
2090
|
return __generator(this, function (_d) {
|
|
2065
2091
|
switch (_d.label) {
|
|
@@ -2069,7 +2095,6 @@ var deserializeAws_json1_0UpdateFirewallPolicyCommandError = function (output, c
|
|
|
2069
2095
|
return [4, parseBody(output.body, context)];
|
|
2070
2096
|
case 1:
|
|
2071
2097
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2072
|
-
errorCode = "UnknownError";
|
|
2073
2098
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2099
|
_b = errorCode;
|
|
2075
2100
|
switch (_b) {
|
|
@@ -2097,10 +2122,12 @@ var deserializeAws_json1_0UpdateFirewallPolicyCommandError = function (output, c
|
|
|
2097
2122
|
case 11: throw _d.sent();
|
|
2098
2123
|
case 12:
|
|
2099
2124
|
parsedBody = parsedOutput.body;
|
|
2125
|
+
$metadata = deserializeMetadata(output);
|
|
2126
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2100
2127
|
response = new __BaseException({
|
|
2101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2102
2129
|
$fault: "client",
|
|
2103
|
-
$metadata:
|
|
2130
|
+
$metadata: $metadata,
|
|
2104
2131
|
});
|
|
2105
2132
|
throw __decorateServiceException(response, parsedBody);
|
|
2106
2133
|
}
|
|
@@ -2125,7 +2152,7 @@ export var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = f
|
|
|
2125
2152
|
});
|
|
2126
2153
|
}); };
|
|
2127
2154
|
var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2128
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2155
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2129
2156
|
var _c;
|
|
2130
2157
|
return __generator(this, function (_d) {
|
|
2131
2158
|
switch (_d.label) {
|
|
@@ -2135,7 +2162,6 @@ var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = fun
|
|
|
2135
2162
|
return [4, parseBody(output.body, context)];
|
|
2136
2163
|
case 1:
|
|
2137
2164
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2138
|
-
errorCode = "UnknownError";
|
|
2139
2165
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
2166
|
_b = errorCode;
|
|
2141
2167
|
switch (_b) {
|
|
@@ -2167,10 +2193,12 @@ var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = fun
|
|
|
2167
2193
|
case 13: throw _d.sent();
|
|
2168
2194
|
case 14:
|
|
2169
2195
|
parsedBody = parsedOutput.body;
|
|
2196
|
+
$metadata = deserializeMetadata(output);
|
|
2197
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2170
2198
|
response = new __BaseException({
|
|
2171
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2199
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2172
2200
|
$fault: "client",
|
|
2173
|
-
$metadata:
|
|
2201
|
+
$metadata: $metadata,
|
|
2174
2202
|
});
|
|
2175
2203
|
throw __decorateServiceException(response, parsedBody);
|
|
2176
2204
|
}
|
|
@@ -2195,7 +2223,7 @@ export var deserializeAws_json1_0UpdateLoggingConfigurationCommand = function (o
|
|
|
2195
2223
|
});
|
|
2196
2224
|
}); };
|
|
2197
2225
|
var deserializeAws_json1_0UpdateLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2198
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2226
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2199
2227
|
var _c;
|
|
2200
2228
|
return __generator(this, function (_d) {
|
|
2201
2229
|
switch (_d.label) {
|
|
@@ -2205,7 +2233,6 @@ var deserializeAws_json1_0UpdateLoggingConfigurationCommandError = function (out
|
|
|
2205
2233
|
return [4, parseBody(output.body, context)];
|
|
2206
2234
|
case 1:
|
|
2207
2235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2208
|
-
errorCode = "UnknownError";
|
|
2209
2236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2210
2237
|
_b = errorCode;
|
|
2211
2238
|
switch (_b) {
|
|
@@ -2237,10 +2264,12 @@ var deserializeAws_json1_0UpdateLoggingConfigurationCommandError = function (out
|
|
|
2237
2264
|
case 13: throw _d.sent();
|
|
2238
2265
|
case 14:
|
|
2239
2266
|
parsedBody = parsedOutput.body;
|
|
2267
|
+
$metadata = deserializeMetadata(output);
|
|
2268
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2240
2269
|
response = new __BaseException({
|
|
2241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2242
2271
|
$fault: "client",
|
|
2243
|
-
$metadata:
|
|
2272
|
+
$metadata: $metadata,
|
|
2244
2273
|
});
|
|
2245
2274
|
throw __decorateServiceException(response, parsedBody);
|
|
2246
2275
|
}
|
|
@@ -2265,7 +2294,7 @@ export var deserializeAws_json1_0UpdateRuleGroupCommand = function (output, cont
|
|
|
2265
2294
|
});
|
|
2266
2295
|
}); };
|
|
2267
2296
|
var deserializeAws_json1_0UpdateRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2268
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2297
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2269
2298
|
var _c;
|
|
2270
2299
|
return __generator(this, function (_d) {
|
|
2271
2300
|
switch (_d.label) {
|
|
@@ -2275,7 +2304,6 @@ var deserializeAws_json1_0UpdateRuleGroupCommandError = function (output, contex
|
|
|
2275
2304
|
return [4, parseBody(output.body, context)];
|
|
2276
2305
|
case 1:
|
|
2277
2306
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2278
|
-
errorCode = "UnknownError";
|
|
2279
2307
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
2308
|
_b = errorCode;
|
|
2281
2309
|
switch (_b) {
|
|
@@ -2303,10 +2331,12 @@ var deserializeAws_json1_0UpdateRuleGroupCommandError = function (output, contex
|
|
|
2303
2331
|
case 11: throw _d.sent();
|
|
2304
2332
|
case 12:
|
|
2305
2333
|
parsedBody = parsedOutput.body;
|
|
2334
|
+
$metadata = deserializeMetadata(output);
|
|
2335
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2306
2336
|
response = new __BaseException({
|
|
2307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2337
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2308
2338
|
$fault: "client",
|
|
2309
|
-
$metadata:
|
|
2339
|
+
$metadata: $metadata,
|
|
2310
2340
|
});
|
|
2311
2341
|
throw __decorateServiceException(response, parsedBody);
|
|
2312
2342
|
}
|
|
@@ -2331,7 +2361,7 @@ export var deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = function
|
|
|
2331
2361
|
});
|
|
2332
2362
|
}); };
|
|
2333
2363
|
var deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2334
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2364
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2335
2365
|
var _c;
|
|
2336
2366
|
return __generator(this, function (_d) {
|
|
2337
2367
|
switch (_d.label) {
|
|
@@ -2341,7 +2371,6 @@ var deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = function (o
|
|
|
2341
2371
|
return [4, parseBody(output.body, context)];
|
|
2342
2372
|
case 1:
|
|
2343
2373
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2344
|
-
errorCode = "UnknownError";
|
|
2345
2374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2375
|
_b = errorCode;
|
|
2347
2376
|
switch (_b) {
|
|
@@ -2373,10 +2402,12 @@ var deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = function (o
|
|
|
2373
2402
|
case 13: throw _d.sent();
|
|
2374
2403
|
case 14:
|
|
2375
2404
|
parsedBody = parsedOutput.body;
|
|
2405
|
+
$metadata = deserializeMetadata(output);
|
|
2406
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2376
2407
|
response = new __BaseException({
|
|
2377
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2408
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2378
2409
|
$fault: "client",
|
|
2379
|
-
$metadata:
|
|
2410
|
+
$metadata: $metadata,
|
|
2380
2411
|
});
|
|
2381
2412
|
throw __decorateServiceException(response, parsedBody);
|
|
2382
2413
|
}
|
|
@@ -2491,14 +2522,12 @@ var deserializeAws_json1_0UnsupportedOperationExceptionResponse = function (pars
|
|
|
2491
2522
|
});
|
|
2492
2523
|
}); };
|
|
2493
2524
|
var serializeAws_json1_0ActionDefinition = function (input, context) {
|
|
2494
|
-
return __assign({}, (input.PublishMetricAction
|
|
2495
|
-
input.PublishMetricAction !== null && {
|
|
2525
|
+
return __assign({}, (input.PublishMetricAction != null && {
|
|
2496
2526
|
PublishMetricAction: serializeAws_json1_0PublishMetricAction(input.PublishMetricAction, context),
|
|
2497
2527
|
}));
|
|
2498
2528
|
};
|
|
2499
2529
|
var serializeAws_json1_0Address = function (input, context) {
|
|
2500
|
-
return __assign({}, (input.AddressDefinition
|
|
2501
|
-
input.AddressDefinition !== null && { AddressDefinition: input.AddressDefinition }));
|
|
2530
|
+
return __assign({}, (input.AddressDefinition != null && { AddressDefinition: input.AddressDefinition }));
|
|
2502
2531
|
};
|
|
2503
2532
|
var serializeAws_json1_0Addresses = function (input, context) {
|
|
2504
2533
|
return input
|
|
@@ -2511,14 +2540,12 @@ var serializeAws_json1_0Addresses = function (input, context) {
|
|
|
2511
2540
|
});
|
|
2512
2541
|
};
|
|
2513
2542
|
var serializeAws_json1_0AssociateFirewallPolicyRequest = function (input, context) {
|
|
2514
|
-
return __assign(__assign(__assign(__assign({}, (input.FirewallArn
|
|
2515
|
-
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
2543
|
+
return __assign(__assign(__assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
2516
2544
|
};
|
|
2517
2545
|
var serializeAws_json1_0AssociateSubnetsRequest = function (input, context) {
|
|
2518
|
-
return __assign(__assign(__assign(__assign({}, (input.FirewallArn
|
|
2519
|
-
input.SubnetMappings !== null && {
|
|
2546
|
+
return __assign(__assign(__assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.SubnetMappings != null && {
|
|
2520
2547
|
SubnetMappings: serializeAws_json1_0SubnetMappings(input.SubnetMappings, context),
|
|
2521
|
-
})), (input.UpdateToken
|
|
2548
|
+
})), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
2522
2549
|
};
|
|
2523
2550
|
var serializeAws_json1_0AzSubnets = function (input, context) {
|
|
2524
2551
|
return input
|
|
@@ -2531,45 +2558,32 @@ var serializeAws_json1_0AzSubnets = function (input, context) {
|
|
|
2531
2558
|
});
|
|
2532
2559
|
};
|
|
2533
2560
|
var serializeAws_json1_0CreateFirewallPolicyRequest = function (input, context) {
|
|
2534
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2535
|
-
input.EncryptionConfiguration !== null && {
|
|
2561
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DryRun != null && { DryRun: input.DryRun })), (input.EncryptionConfiguration != null && {
|
|
2536
2562
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2537
|
-
})), (input.FirewallPolicy
|
|
2538
|
-
input.FirewallPolicy !== null && {
|
|
2563
|
+
})), (input.FirewallPolicy != null && {
|
|
2539
2564
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
2540
|
-
})), (input.FirewallPolicyName
|
|
2541
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
2565
|
+
})), (input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
2542
2566
|
};
|
|
2543
2567
|
var serializeAws_json1_0CreateFirewallRequest = function (input, context) {
|
|
2544
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeleteProtection
|
|
2545
|
-
input.DeleteProtection !== null && { DeleteProtection: input.DeleteProtection })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EncryptionConfiguration !== undefined &&
|
|
2546
|
-
input.EncryptionConfiguration !== null && {
|
|
2568
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection })), (input.Description != null && { Description: input.Description })), (input.EncryptionConfiguration != null && {
|
|
2547
2569
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2548
|
-
})), (input.FirewallName
|
|
2549
|
-
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyChangeProtection !== undefined &&
|
|
2550
|
-
input.FirewallPolicyChangeProtection !== null && {
|
|
2570
|
+
})), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyChangeProtection != null && {
|
|
2551
2571
|
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
2552
|
-
})), (input.SubnetChangeProtection
|
|
2553
|
-
input.SubnetChangeProtection !== null && { SubnetChangeProtection: input.SubnetChangeProtection })), (input.SubnetMappings !== undefined &&
|
|
2554
|
-
input.SubnetMappings !== null && {
|
|
2572
|
+
})), (input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection })), (input.SubnetMappings != null && {
|
|
2555
2573
|
SubnetMappings: serializeAws_json1_0SubnetMappings(input.SubnetMappings, context),
|
|
2556
|
-
})), (input.Tags
|
|
2574
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.VpcId != null && { VpcId: input.VpcId }));
|
|
2557
2575
|
};
|
|
2558
2576
|
var serializeAws_json1_0CreateRuleGroupRequest = function (input, context) {
|
|
2559
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity
|
|
2560
|
-
input.EncryptionConfiguration !== null && {
|
|
2577
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity != null && { Capacity: input.Capacity })), (input.Description != null && { Description: input.Description })), (input.DryRun != null && { DryRun: input.DryRun })), (input.EncryptionConfiguration != null && {
|
|
2561
2578
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2562
|
-
})), (input.RuleGroup
|
|
2563
|
-
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.SourceMetadata !== undefined &&
|
|
2564
|
-
input.SourceMetadata !== null && {
|
|
2579
|
+
})), (input.RuleGroup != null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName })), (input.Rules != null && { Rules: input.Rules })), (input.SourceMetadata != null && {
|
|
2565
2580
|
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
2566
|
-
})), (input.Tags
|
|
2581
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
|
|
2567
2582
|
};
|
|
2568
2583
|
var serializeAws_json1_0CustomAction = function (input, context) {
|
|
2569
|
-
return __assign(__assign({}, (input.ActionDefinition
|
|
2570
|
-
input.ActionDefinition !== null && {
|
|
2584
|
+
return __assign(__assign({}, (input.ActionDefinition != null && {
|
|
2571
2585
|
ActionDefinition: serializeAws_json1_0ActionDefinition(input.ActionDefinition, context),
|
|
2572
|
-
})), (input.ActionName
|
|
2586
|
+
})), (input.ActionName != null && { ActionName: input.ActionName }));
|
|
2573
2587
|
};
|
|
2574
2588
|
var serializeAws_json1_0CustomActions = function (input, context) {
|
|
2575
2589
|
return input
|
|
@@ -2582,41 +2596,37 @@ var serializeAws_json1_0CustomActions = function (input, context) {
|
|
|
2582
2596
|
});
|
|
2583
2597
|
};
|
|
2584
2598
|
var serializeAws_json1_0DeleteFirewallPolicyRequest = function (input, context) {
|
|
2585
|
-
return __assign(__assign({}, (input.FirewallPolicyArn
|
|
2586
|
-
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyName !== undefined &&
|
|
2587
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName }));
|
|
2599
|
+
return __assign(__assign({}, (input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }));
|
|
2588
2600
|
};
|
|
2589
2601
|
var serializeAws_json1_0DeleteFirewallRequest = function (input, context) {
|
|
2590
|
-
return __assign(__assign({}, (input.FirewallArn
|
|
2602
|
+
return __assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName }));
|
|
2591
2603
|
};
|
|
2592
2604
|
var serializeAws_json1_0DeleteResourcePolicyRequest = function (input, context) {
|
|
2593
|
-
return __assign({}, (input.ResourceArn
|
|
2605
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2594
2606
|
};
|
|
2595
2607
|
var serializeAws_json1_0DeleteRuleGroupRequest = function (input, context) {
|
|
2596
|
-
return __assign(__assign(__assign({}, (input.RuleGroupArn
|
|
2608
|
+
return __assign(__assign(__assign({}, (input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName })), (input.Type != null && { Type: input.Type }));
|
|
2597
2609
|
};
|
|
2598
2610
|
var serializeAws_json1_0DescribeFirewallPolicyRequest = function (input, context) {
|
|
2599
|
-
return __assign(__assign({}, (input.FirewallPolicyArn
|
|
2600
|
-
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyName !== undefined &&
|
|
2601
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName }));
|
|
2611
|
+
return __assign(__assign({}, (input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }));
|
|
2602
2612
|
};
|
|
2603
2613
|
var serializeAws_json1_0DescribeFirewallRequest = function (input, context) {
|
|
2604
|
-
return __assign(__assign({}, (input.FirewallArn
|
|
2614
|
+
return __assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName }));
|
|
2605
2615
|
};
|
|
2606
2616
|
var serializeAws_json1_0DescribeLoggingConfigurationRequest = function (input, context) {
|
|
2607
|
-
return __assign(__assign({}, (input.FirewallArn
|
|
2617
|
+
return __assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName }));
|
|
2608
2618
|
};
|
|
2609
2619
|
var serializeAws_json1_0DescribeResourcePolicyRequest = function (input, context) {
|
|
2610
|
-
return __assign({}, (input.ResourceArn
|
|
2620
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2611
2621
|
};
|
|
2612
2622
|
var serializeAws_json1_0DescribeRuleGroupMetadataRequest = function (input, context) {
|
|
2613
|
-
return __assign(__assign(__assign({}, (input.RuleGroupArn
|
|
2623
|
+
return __assign(__assign(__assign({}, (input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName })), (input.Type != null && { Type: input.Type }));
|
|
2614
2624
|
};
|
|
2615
2625
|
var serializeAws_json1_0DescribeRuleGroupRequest = function (input, context) {
|
|
2616
|
-
return __assign(__assign(__assign({}, (input.RuleGroupArn
|
|
2626
|
+
return __assign(__assign(__assign({}, (input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName })), (input.Type != null && { Type: input.Type }));
|
|
2617
2627
|
};
|
|
2618
2628
|
var serializeAws_json1_0Dimension = function (input, context) {
|
|
2619
|
-
return __assign({}, (input.Value
|
|
2629
|
+
return __assign({}, (input.Value != null && { Value: input.Value }));
|
|
2620
2630
|
};
|
|
2621
2631
|
var serializeAws_json1_0Dimensions = function (input, context) {
|
|
2622
2632
|
return input
|
|
@@ -2629,33 +2639,25 @@ var serializeAws_json1_0Dimensions = function (input, context) {
|
|
|
2629
2639
|
});
|
|
2630
2640
|
};
|
|
2631
2641
|
var serializeAws_json1_0DisassociateSubnetsRequest = function (input, context) {
|
|
2632
|
-
return __assign(__assign(__assign(__assign({}, (input.FirewallArn
|
|
2633
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_0AzSubnets(input.SubnetIds, context) })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
2642
|
+
return __assign(__assign(__assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_0AzSubnets(input.SubnetIds, context) })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
2634
2643
|
};
|
|
2635
2644
|
var serializeAws_json1_0EncryptionConfiguration = function (input, context) {
|
|
2636
|
-
return __assign(__assign({}, (input.KeyId
|
|
2645
|
+
return __assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.Type != null && { Type: input.Type }));
|
|
2637
2646
|
};
|
|
2638
2647
|
var serializeAws_json1_0FirewallPolicy = function (input, context) {
|
|
2639
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.StatefulDefaultActions
|
|
2640
|
-
input.StatefulDefaultActions !== null && {
|
|
2648
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.StatefulDefaultActions != null && {
|
|
2641
2649
|
StatefulDefaultActions: serializeAws_json1_0StatefulActions(input.StatefulDefaultActions, context),
|
|
2642
|
-
})), (input.StatefulEngineOptions
|
|
2643
|
-
input.StatefulEngineOptions !== null && {
|
|
2650
|
+
})), (input.StatefulEngineOptions != null && {
|
|
2644
2651
|
StatefulEngineOptions: serializeAws_json1_0StatefulEngineOptions(input.StatefulEngineOptions, context),
|
|
2645
|
-
})), (input.StatefulRuleGroupReferences
|
|
2646
|
-
input.StatefulRuleGroupReferences !== null && {
|
|
2652
|
+
})), (input.StatefulRuleGroupReferences != null && {
|
|
2647
2653
|
StatefulRuleGroupReferences: serializeAws_json1_0StatefulRuleGroupReferences(input.StatefulRuleGroupReferences, context),
|
|
2648
|
-
})), (input.StatelessCustomActions
|
|
2649
|
-
input.StatelessCustomActions !== null && {
|
|
2654
|
+
})), (input.StatelessCustomActions != null && {
|
|
2650
2655
|
StatelessCustomActions: serializeAws_json1_0CustomActions(input.StatelessCustomActions, context),
|
|
2651
|
-
})), (input.StatelessDefaultActions
|
|
2652
|
-
input.StatelessDefaultActions !== null && {
|
|
2656
|
+
})), (input.StatelessDefaultActions != null && {
|
|
2653
2657
|
StatelessDefaultActions: serializeAws_json1_0StatelessActions(input.StatelessDefaultActions, context),
|
|
2654
|
-
})), (input.StatelessFragmentDefaultActions
|
|
2655
|
-
input.StatelessFragmentDefaultActions !== null && {
|
|
2658
|
+
})), (input.StatelessFragmentDefaultActions != null && {
|
|
2656
2659
|
StatelessFragmentDefaultActions: serializeAws_json1_0StatelessActions(input.StatelessFragmentDefaultActions, context),
|
|
2657
|
-
})), (input.StatelessRuleGroupReferences
|
|
2658
|
-
input.StatelessRuleGroupReferences !== null && {
|
|
2660
|
+
})), (input.StatelessRuleGroupReferences != null && {
|
|
2659
2661
|
StatelessRuleGroupReferences: serializeAws_json1_0StatelessRuleGroupReferences(input.StatelessRuleGroupReferences, context),
|
|
2660
2662
|
}));
|
|
2661
2663
|
};
|
|
@@ -2670,12 +2672,10 @@ var serializeAws_json1_0Flags = function (input, context) {
|
|
|
2670
2672
|
});
|
|
2671
2673
|
};
|
|
2672
2674
|
var serializeAws_json1_0Header = function (input, context) {
|
|
2673
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Destination
|
|
2674
|
-
input.DestinationPort !== null && { DestinationPort: input.DestinationPort })), (input.Direction !== undefined && input.Direction !== null && { Direction: input.Direction })), (input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol })), (input.Source !== undefined && input.Source !== null && { Source: input.Source })), (input.SourcePort !== undefined && input.SourcePort !== null && { SourcePort: input.SourcePort }));
|
|
2675
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Destination != null && { Destination: input.Destination })), (input.DestinationPort != null && { DestinationPort: input.DestinationPort })), (input.Direction != null && { Direction: input.Direction })), (input.Protocol != null && { Protocol: input.Protocol })), (input.Source != null && { Source: input.Source })), (input.SourcePort != null && { SourcePort: input.SourcePort }));
|
|
2675
2676
|
};
|
|
2676
2677
|
var serializeAws_json1_0IPSet = function (input, context) {
|
|
2677
|
-
return __assign({}, (input.Definition
|
|
2678
|
-
input.Definition !== null && {
|
|
2678
|
+
return __assign({}, (input.Definition != null && {
|
|
2679
2679
|
Definition: serializeAws_json1_0VariableDefinitionList(input.Definition, context),
|
|
2680
2680
|
}));
|
|
2681
2681
|
};
|
|
@@ -2690,24 +2690,21 @@ var serializeAws_json1_0IPSets = function (input, context) {
|
|
|
2690
2690
|
}, {});
|
|
2691
2691
|
};
|
|
2692
2692
|
var serializeAws_json1_0ListFirewallPoliciesRequest = function (input, context) {
|
|
2693
|
-
return __assign(__assign({}, (input.MaxResults
|
|
2693
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2694
2694
|
};
|
|
2695
2695
|
var serializeAws_json1_0ListFirewallsRequest = function (input, context) {
|
|
2696
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
2697
|
-
input.VpcIds !== null && { VpcIds: serializeAws_json1_0VpcIds(input.VpcIds, context) }));
|
|
2696
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.VpcIds != null && { VpcIds: serializeAws_json1_0VpcIds(input.VpcIds, context) }));
|
|
2698
2697
|
};
|
|
2699
2698
|
var serializeAws_json1_0ListRuleGroupsRequest = function (input, context) {
|
|
2700
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ManagedType
|
|
2699
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ManagedType != null && { ManagedType: input.ManagedType })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Scope != null && { Scope: input.Scope })), (input.Type != null && { Type: input.Type }));
|
|
2701
2700
|
};
|
|
2702
2701
|
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
2703
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
2702
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2704
2703
|
};
|
|
2705
2704
|
var serializeAws_json1_0LogDestinationConfig = function (input, context) {
|
|
2706
|
-
return __assign(__assign(__assign({}, (input.LogDestination
|
|
2707
|
-
input.LogDestination !== null && {
|
|
2705
|
+
return __assign(__assign(__assign({}, (input.LogDestination != null && {
|
|
2708
2706
|
LogDestination: serializeAws_json1_0LogDestinationMap(input.LogDestination, context),
|
|
2709
|
-
})), (input.LogDestinationType
|
|
2710
|
-
input.LogDestinationType !== null && { LogDestinationType: input.LogDestinationType })), (input.LogType !== undefined && input.LogType !== null && { LogType: input.LogType }));
|
|
2707
|
+
})), (input.LogDestinationType != null && { LogDestinationType: input.LogDestinationType })), (input.LogType != null && { LogType: input.LogType }));
|
|
2711
2708
|
};
|
|
2712
2709
|
var serializeAws_json1_0LogDestinationConfigs = function (input, context) {
|
|
2713
2710
|
return input
|
|
@@ -2730,24 +2727,17 @@ var serializeAws_json1_0LogDestinationMap = function (input, context) {
|
|
|
2730
2727
|
}, {});
|
|
2731
2728
|
};
|
|
2732
2729
|
var serializeAws_json1_0LoggingConfiguration = function (input, context) {
|
|
2733
|
-
return __assign({}, (input.LogDestinationConfigs
|
|
2734
|
-
input.LogDestinationConfigs !== null && {
|
|
2730
|
+
return __assign({}, (input.LogDestinationConfigs != null && {
|
|
2735
2731
|
LogDestinationConfigs: serializeAws_json1_0LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
2736
2732
|
}));
|
|
2737
2733
|
};
|
|
2738
2734
|
var serializeAws_json1_0MatchAttributes = function (input, context) {
|
|
2739
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationPorts
|
|
2740
|
-
input.DestinationPorts !== null && {
|
|
2735
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationPorts != null && {
|
|
2741
2736
|
DestinationPorts: serializeAws_json1_0PortRanges(input.DestinationPorts, context),
|
|
2742
|
-
})), (input.Destinations
|
|
2743
|
-
input.Destinations !== null && { Destinations: serializeAws_json1_0Addresses(input.Destinations, context) })), (input.Protocols !== undefined &&
|
|
2744
|
-
input.Protocols !== null && { Protocols: serializeAws_json1_0ProtocolNumbers(input.Protocols, context) })), (input.SourcePorts !== undefined &&
|
|
2745
|
-
input.SourcePorts !== null && { SourcePorts: serializeAws_json1_0PortRanges(input.SourcePorts, context) })), (input.Sources !== undefined &&
|
|
2746
|
-
input.Sources !== null && { Sources: serializeAws_json1_0Addresses(input.Sources, context) })), (input.TCPFlags !== undefined &&
|
|
2747
|
-
input.TCPFlags !== null && { TCPFlags: serializeAws_json1_0TCPFlags(input.TCPFlags, context) }));
|
|
2737
|
+
})), (input.Destinations != null && { Destinations: serializeAws_json1_0Addresses(input.Destinations, context) })), (input.Protocols != null && { Protocols: serializeAws_json1_0ProtocolNumbers(input.Protocols, context) })), (input.SourcePorts != null && { SourcePorts: serializeAws_json1_0PortRanges(input.SourcePorts, context) })), (input.Sources != null && { Sources: serializeAws_json1_0Addresses(input.Sources, context) })), (input.TCPFlags != null && { TCPFlags: serializeAws_json1_0TCPFlags(input.TCPFlags, context) }));
|
|
2748
2738
|
};
|
|
2749
2739
|
var serializeAws_json1_0PortRange = function (input, context) {
|
|
2750
|
-
return __assign(__assign({}, (input.FromPort
|
|
2740
|
+
return __assign(__assign({}, (input.FromPort != null && { FromPort: input.FromPort })), (input.ToPort != null && { ToPort: input.ToPort }));
|
|
2751
2741
|
};
|
|
2752
2742
|
var serializeAws_json1_0PortRanges = function (input, context) {
|
|
2753
2743
|
return input
|
|
@@ -2760,8 +2750,7 @@ var serializeAws_json1_0PortRanges = function (input, context) {
|
|
|
2760
2750
|
});
|
|
2761
2751
|
};
|
|
2762
2752
|
var serializeAws_json1_0PortSet = function (input, context) {
|
|
2763
|
-
return __assign({}, (input.Definition
|
|
2764
|
-
input.Definition !== null && {
|
|
2753
|
+
return __assign({}, (input.Definition != null && {
|
|
2765
2754
|
Definition: serializeAws_json1_0VariableDefinitionList(input.Definition, context),
|
|
2766
2755
|
}));
|
|
2767
2756
|
};
|
|
@@ -2786,32 +2775,25 @@ var serializeAws_json1_0ProtocolNumbers = function (input, context) {
|
|
|
2786
2775
|
});
|
|
2787
2776
|
};
|
|
2788
2777
|
var serializeAws_json1_0PublishMetricAction = function (input, context) {
|
|
2789
|
-
return __assign({}, (input.Dimensions
|
|
2790
|
-
input.Dimensions !== null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }));
|
|
2778
|
+
return __assign({}, (input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }));
|
|
2791
2779
|
};
|
|
2792
2780
|
var serializeAws_json1_0PutResourcePolicyRequest = function (input, context) {
|
|
2793
|
-
return __assign(__assign({}, (input.Policy
|
|
2781
|
+
return __assign(__assign({}, (input.Policy != null && { Policy: input.Policy })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2794
2782
|
};
|
|
2795
2783
|
var serializeAws_json1_0RuleDefinition = function (input, context) {
|
|
2796
|
-
return __assign(__assign({}, (input.Actions
|
|
2797
|
-
input.Actions !== null && { Actions: serializeAws_json1_0StatelessActions(input.Actions, context) })), (input.MatchAttributes !== undefined &&
|
|
2798
|
-
input.MatchAttributes !== null && {
|
|
2784
|
+
return __assign(__assign({}, (input.Actions != null && { Actions: serializeAws_json1_0StatelessActions(input.Actions, context) })), (input.MatchAttributes != null && {
|
|
2799
2785
|
MatchAttributes: serializeAws_json1_0MatchAttributes(input.MatchAttributes, context),
|
|
2800
2786
|
}));
|
|
2801
2787
|
};
|
|
2802
2788
|
var serializeAws_json1_0RuleGroup = function (input, context) {
|
|
2803
|
-
return __assign(__assign(__assign({}, (input.RuleVariables
|
|
2804
|
-
input.RuleVariables !== null && {
|
|
2789
|
+
return __assign(__assign(__assign({}, (input.RuleVariables != null && {
|
|
2805
2790
|
RuleVariables: serializeAws_json1_0RuleVariables(input.RuleVariables, context),
|
|
2806
|
-
})), (input.RulesSource
|
|
2807
|
-
input.RulesSource !== null && { RulesSource: serializeAws_json1_0RulesSource(input.RulesSource, context) })), (input.StatefulRuleOptions !== undefined &&
|
|
2808
|
-
input.StatefulRuleOptions !== null && {
|
|
2791
|
+
})), (input.RulesSource != null && { RulesSource: serializeAws_json1_0RulesSource(input.RulesSource, context) })), (input.StatefulRuleOptions != null && {
|
|
2809
2792
|
StatefulRuleOptions: serializeAws_json1_0StatefulRuleOptions(input.StatefulRuleOptions, context),
|
|
2810
2793
|
}));
|
|
2811
2794
|
};
|
|
2812
2795
|
var serializeAws_json1_0RuleOption = function (input, context) {
|
|
2813
|
-
return __assign(__assign({}, (input.Keyword
|
|
2814
|
-
input.Settings !== null && { Settings: serializeAws_json1_0Settings(input.Settings, context) }));
|
|
2796
|
+
return __assign(__assign({}, (input.Keyword != null && { Keyword: input.Keyword })), (input.Settings != null && { Settings: serializeAws_json1_0Settings(input.Settings, context) }));
|
|
2815
2797
|
};
|
|
2816
2798
|
var serializeAws_json1_0RuleOptions = function (input, context) {
|
|
2817
2799
|
return input
|
|
@@ -2824,22 +2806,16 @@ var serializeAws_json1_0RuleOptions = function (input, context) {
|
|
|
2824
2806
|
});
|
|
2825
2807
|
};
|
|
2826
2808
|
var serializeAws_json1_0RulesSource = function (input, context) {
|
|
2827
|
-
return __assign(__assign(__assign(__assign({}, (input.RulesSourceList
|
|
2828
|
-
input.RulesSourceList !== null && {
|
|
2809
|
+
return __assign(__assign(__assign(__assign({}, (input.RulesSourceList != null && {
|
|
2829
2810
|
RulesSourceList: serializeAws_json1_0RulesSourceList(input.RulesSourceList, context),
|
|
2830
|
-
})), (input.RulesString
|
|
2831
|
-
input.StatefulRules !== null && {
|
|
2811
|
+
})), (input.RulesString != null && { RulesString: input.RulesString })), (input.StatefulRules != null && {
|
|
2832
2812
|
StatefulRules: serializeAws_json1_0StatefulRules(input.StatefulRules, context),
|
|
2833
|
-
})), (input.StatelessRulesAndCustomActions
|
|
2834
|
-
input.StatelessRulesAndCustomActions !== null && {
|
|
2813
|
+
})), (input.StatelessRulesAndCustomActions != null && {
|
|
2835
2814
|
StatelessRulesAndCustomActions: serializeAws_json1_0StatelessRulesAndCustomActions(input.StatelessRulesAndCustomActions, context),
|
|
2836
2815
|
}));
|
|
2837
2816
|
};
|
|
2838
2817
|
var serializeAws_json1_0RulesSourceList = function (input, context) {
|
|
2839
|
-
return __assign(__assign(__assign({}, (input.GeneratedRulesType
|
|
2840
|
-
input.GeneratedRulesType !== null && { GeneratedRulesType: input.GeneratedRulesType })), (input.TargetTypes !== undefined &&
|
|
2841
|
-
input.TargetTypes !== null && { TargetTypes: serializeAws_json1_0TargetTypes(input.TargetTypes, context) })), (input.Targets !== undefined &&
|
|
2842
|
-
input.Targets !== null && { Targets: serializeAws_json1_0RuleTargets(input.Targets, context) }));
|
|
2818
|
+
return __assign(__assign(__assign({}, (input.GeneratedRulesType != null && { GeneratedRulesType: input.GeneratedRulesType })), (input.TargetTypes != null && { TargetTypes: serializeAws_json1_0TargetTypes(input.TargetTypes, context) })), (input.Targets != null && { Targets: serializeAws_json1_0RuleTargets(input.Targets, context) }));
|
|
2843
2819
|
};
|
|
2844
2820
|
var serializeAws_json1_0RuleTargets = function (input, context) {
|
|
2845
2821
|
return input
|
|
@@ -2852,9 +2828,7 @@ var serializeAws_json1_0RuleTargets = function (input, context) {
|
|
|
2852
2828
|
});
|
|
2853
2829
|
};
|
|
2854
2830
|
var serializeAws_json1_0RuleVariables = function (input, context) {
|
|
2855
|
-
return __assign(__assign({}, (input.IPSets
|
|
2856
|
-
input.IPSets !== null && { IPSets: serializeAws_json1_0IPSets(input.IPSets, context) })), (input.PortSets !== undefined &&
|
|
2857
|
-
input.PortSets !== null && { PortSets: serializeAws_json1_0PortSets(input.PortSets, context) }));
|
|
2831
|
+
return __assign(__assign({}, (input.IPSets != null && { IPSets: serializeAws_json1_0IPSets(input.IPSets, context) })), (input.PortSets != null && { PortSets: serializeAws_json1_0PortSets(input.PortSets, context) }));
|
|
2858
2832
|
};
|
|
2859
2833
|
var serializeAws_json1_0Settings = function (input, context) {
|
|
2860
2834
|
return input
|
|
@@ -2867,8 +2841,7 @@ var serializeAws_json1_0Settings = function (input, context) {
|
|
|
2867
2841
|
});
|
|
2868
2842
|
};
|
|
2869
2843
|
var serializeAws_json1_0SourceMetadata = function (input, context) {
|
|
2870
|
-
return __assign(__assign({}, (input.SourceArn
|
|
2871
|
-
input.SourceUpdateToken !== null && { SourceUpdateToken: input.SourceUpdateToken }));
|
|
2844
|
+
return __assign(__assign({}, (input.SourceArn != null && { SourceArn: input.SourceArn })), (input.SourceUpdateToken != null && { SourceUpdateToken: input.SourceUpdateToken }));
|
|
2872
2845
|
};
|
|
2873
2846
|
var serializeAws_json1_0StatefulActions = function (input, context) {
|
|
2874
2847
|
return input
|
|
@@ -2881,19 +2854,16 @@ var serializeAws_json1_0StatefulActions = function (input, context) {
|
|
|
2881
2854
|
});
|
|
2882
2855
|
};
|
|
2883
2856
|
var serializeAws_json1_0StatefulEngineOptions = function (input, context) {
|
|
2884
|
-
return __assign({}, (input.RuleOrder
|
|
2857
|
+
return __assign({}, (input.RuleOrder != null && { RuleOrder: input.RuleOrder }));
|
|
2885
2858
|
};
|
|
2886
2859
|
var serializeAws_json1_0StatefulRule = function (input, context) {
|
|
2887
|
-
return __assign(__assign(__assign({}, (input.Action
|
|
2888
|
-
input.Header !== null && { Header: serializeAws_json1_0Header(input.Header, context) })), (input.RuleOptions !== undefined &&
|
|
2889
|
-
input.RuleOptions !== null && { RuleOptions: serializeAws_json1_0RuleOptions(input.RuleOptions, context) }));
|
|
2860
|
+
return __assign(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Header != null && { Header: serializeAws_json1_0Header(input.Header, context) })), (input.RuleOptions != null && { RuleOptions: serializeAws_json1_0RuleOptions(input.RuleOptions, context) }));
|
|
2890
2861
|
};
|
|
2891
2862
|
var serializeAws_json1_0StatefulRuleGroupOverride = function (input, context) {
|
|
2892
|
-
return __assign({}, (input.Action
|
|
2863
|
+
return __assign({}, (input.Action != null && { Action: input.Action }));
|
|
2893
2864
|
};
|
|
2894
2865
|
var serializeAws_json1_0StatefulRuleGroupReference = function (input, context) {
|
|
2895
|
-
return __assign(__assign(__assign({}, (input.Override
|
|
2896
|
-
input.Override !== null && { Override: serializeAws_json1_0StatefulRuleGroupOverride(input.Override, context) })), (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
2866
|
+
return __assign(__assign(__assign({}, (input.Override != null && { Override: serializeAws_json1_0StatefulRuleGroupOverride(input.Override, context) })), (input.Priority != null && { Priority: input.Priority })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2897
2867
|
};
|
|
2898
2868
|
var serializeAws_json1_0StatefulRuleGroupReferences = function (input, context) {
|
|
2899
2869
|
return input
|
|
@@ -2906,7 +2876,7 @@ var serializeAws_json1_0StatefulRuleGroupReferences = function (input, context)
|
|
|
2906
2876
|
});
|
|
2907
2877
|
};
|
|
2908
2878
|
var serializeAws_json1_0StatefulRuleOptions = function (input, context) {
|
|
2909
|
-
return __assign({}, (input.RuleOrder
|
|
2879
|
+
return __assign({}, (input.RuleOrder != null && { RuleOrder: input.RuleOrder }));
|
|
2910
2880
|
};
|
|
2911
2881
|
var serializeAws_json1_0StatefulRules = function (input, context) {
|
|
2912
2882
|
return input
|
|
@@ -2929,13 +2899,12 @@ var serializeAws_json1_0StatelessActions = function (input, context) {
|
|
|
2929
2899
|
});
|
|
2930
2900
|
};
|
|
2931
2901
|
var serializeAws_json1_0StatelessRule = function (input, context) {
|
|
2932
|
-
return __assign(__assign({}, (input.Priority
|
|
2933
|
-
input.RuleDefinition !== null && {
|
|
2902
|
+
return __assign(__assign({}, (input.Priority != null && { Priority: input.Priority })), (input.RuleDefinition != null && {
|
|
2934
2903
|
RuleDefinition: serializeAws_json1_0RuleDefinition(input.RuleDefinition, context),
|
|
2935
2904
|
}));
|
|
2936
2905
|
};
|
|
2937
2906
|
var serializeAws_json1_0StatelessRuleGroupReference = function (input, context) {
|
|
2938
|
-
return __assign(__assign({}, (input.Priority
|
|
2907
|
+
return __assign(__assign({}, (input.Priority != null && { Priority: input.Priority })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2939
2908
|
};
|
|
2940
2909
|
var serializeAws_json1_0StatelessRuleGroupReferences = function (input, context) {
|
|
2941
2910
|
return input
|
|
@@ -2958,16 +2927,14 @@ var serializeAws_json1_0StatelessRules = function (input, context) {
|
|
|
2958
2927
|
});
|
|
2959
2928
|
};
|
|
2960
2929
|
var serializeAws_json1_0StatelessRulesAndCustomActions = function (input, context) {
|
|
2961
|
-
return __assign(__assign({}, (input.CustomActions
|
|
2962
|
-
input.CustomActions !== null && {
|
|
2930
|
+
return __assign(__assign({}, (input.CustomActions != null && {
|
|
2963
2931
|
CustomActions: serializeAws_json1_0CustomActions(input.CustomActions, context),
|
|
2964
|
-
})), (input.StatelessRules
|
|
2965
|
-
input.StatelessRules !== null && {
|
|
2932
|
+
})), (input.StatelessRules != null && {
|
|
2966
2933
|
StatelessRules: serializeAws_json1_0StatelessRules(input.StatelessRules, context),
|
|
2967
2934
|
}));
|
|
2968
2935
|
};
|
|
2969
2936
|
var serializeAws_json1_0SubnetMapping = function (input, context) {
|
|
2970
|
-
return __assign({}, (input.SubnetId
|
|
2937
|
+
return __assign({}, (input.SubnetId != null && { SubnetId: input.SubnetId }));
|
|
2971
2938
|
};
|
|
2972
2939
|
var serializeAws_json1_0SubnetMappings = function (input, context) {
|
|
2973
2940
|
return input
|
|
@@ -2980,7 +2947,7 @@ var serializeAws_json1_0SubnetMappings = function (input, context) {
|
|
|
2980
2947
|
});
|
|
2981
2948
|
};
|
|
2982
2949
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
2983
|
-
return __assign(__assign({}, (input.Key
|
|
2950
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2984
2951
|
};
|
|
2985
2952
|
var serializeAws_json1_0TagKeyList = function (input, context) {
|
|
2986
2953
|
return input
|
|
@@ -3003,7 +2970,7 @@ var serializeAws_json1_0TagList = function (input, context) {
|
|
|
3003
2970
|
});
|
|
3004
2971
|
};
|
|
3005
2972
|
var serializeAws_json1_0TagResourceRequest = function (input, context) {
|
|
3006
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
2973
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
3007
2974
|
};
|
|
3008
2975
|
var serializeAws_json1_0TargetTypes = function (input, context) {
|
|
3009
2976
|
return input
|
|
@@ -3016,9 +2983,7 @@ var serializeAws_json1_0TargetTypes = function (input, context) {
|
|
|
3016
2983
|
});
|
|
3017
2984
|
};
|
|
3018
2985
|
var serializeAws_json1_0TCPFlagField = function (input, context) {
|
|
3019
|
-
return __assign(__assign({}, (input.Flags
|
|
3020
|
-
input.Flags !== null && { Flags: serializeAws_json1_0Flags(input.Flags, context) })), (input.Masks !== undefined &&
|
|
3021
|
-
input.Masks !== null && { Masks: serializeAws_json1_0Flags(input.Masks, context) }));
|
|
2986
|
+
return __assign(__assign({}, (input.Flags != null && { Flags: serializeAws_json1_0Flags(input.Flags, context) })), (input.Masks != null && { Masks: serializeAws_json1_0Flags(input.Masks, context) }));
|
|
3022
2987
|
};
|
|
3023
2988
|
var serializeAws_json1_0TCPFlags = function (input, context) {
|
|
3024
2989
|
return input
|
|
@@ -3031,58 +2996,45 @@ var serializeAws_json1_0TCPFlags = function (input, context) {
|
|
|
3031
2996
|
});
|
|
3032
2997
|
};
|
|
3033
2998
|
var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
3034
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
3035
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
2999
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
3036
3000
|
};
|
|
3037
3001
|
var serializeAws_json1_0UpdateFirewallDeleteProtectionRequest = function (input, context) {
|
|
3038
|
-
return __assign(__assign(__assign(__assign({}, (input.DeleteProtection
|
|
3039
|
-
input.DeleteProtection !== null && { DeleteProtection: input.DeleteProtection })), (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
3002
|
+
return __assign(__assign(__assign(__assign({}, (input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection })), (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3040
3003
|
};
|
|
3041
3004
|
var serializeAws_json1_0UpdateFirewallDescriptionRequest = function (input, context) {
|
|
3042
|
-
return __assign(__assign(__assign(__assign({}, (input.Description
|
|
3005
|
+
return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3043
3006
|
};
|
|
3044
3007
|
var serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest = function (input, context) {
|
|
3045
|
-
return __assign(__assign(__assign(__assign({}, (input.EncryptionConfiguration
|
|
3046
|
-
input.EncryptionConfiguration !== null && {
|
|
3008
|
+
return __assign(__assign(__assign(__assign({}, (input.EncryptionConfiguration != null && {
|
|
3047
3009
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3048
|
-
})), (input.FirewallArn
|
|
3010
|
+
})), (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3049
3011
|
};
|
|
3050
3012
|
var serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest = function (input, context) {
|
|
3051
|
-
return __assign(__assign(__assign(__assign({}, (input.FirewallArn
|
|
3052
|
-
input.FirewallPolicyChangeProtection !== null && {
|
|
3013
|
+
return __assign(__assign(__assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.FirewallPolicyChangeProtection != null && {
|
|
3053
3014
|
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
3054
|
-
})), (input.UpdateToken
|
|
3015
|
+
})), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3055
3016
|
};
|
|
3056
3017
|
var serializeAws_json1_0UpdateFirewallPolicyRequest = function (input, context) {
|
|
3057
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
3058
|
-
input.EncryptionConfiguration !== null && {
|
|
3018
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DryRun != null && { DryRun: input.DryRun })), (input.EncryptionConfiguration != null && {
|
|
3059
3019
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3060
|
-
})), (input.FirewallPolicy
|
|
3061
|
-
input.FirewallPolicy !== null && {
|
|
3020
|
+
})), (input.FirewallPolicy != null && {
|
|
3062
3021
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
3063
|
-
})), (input.FirewallPolicyArn
|
|
3064
|
-
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyName !== undefined &&
|
|
3065
|
-
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
3022
|
+
})), (input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3066
3023
|
};
|
|
3067
3024
|
var serializeAws_json1_0UpdateLoggingConfigurationRequest = function (input, context) {
|
|
3068
|
-
return __assign(__assign(__assign({}, (input.FirewallArn
|
|
3069
|
-
input.LoggingConfiguration !== null && {
|
|
3025
|
+
return __assign(__assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.LoggingConfiguration != null && {
|
|
3070
3026
|
LoggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.LoggingConfiguration, context),
|
|
3071
3027
|
}));
|
|
3072
3028
|
};
|
|
3073
3029
|
var serializeAws_json1_0UpdateRuleGroupRequest = function (input, context) {
|
|
3074
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
3075
|
-
input.EncryptionConfiguration !== null && {
|
|
3030
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DryRun != null && { DryRun: input.DryRun })), (input.EncryptionConfiguration != null && {
|
|
3076
3031
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3077
|
-
})), (input.RuleGroup
|
|
3078
|
-
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.SourceMetadata !== undefined &&
|
|
3079
|
-
input.SourceMetadata !== null && {
|
|
3032
|
+
})), (input.RuleGroup != null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName })), (input.Rules != null && { Rules: input.Rules })), (input.SourceMetadata != null && {
|
|
3080
3033
|
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
3081
|
-
})), (input.Type
|
|
3034
|
+
})), (input.Type != null && { Type: input.Type })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3082
3035
|
};
|
|
3083
3036
|
var serializeAws_json1_0UpdateSubnetChangeProtectionRequest = function (input, context) {
|
|
3084
|
-
return __assign(__assign(__assign(__assign({}, (input.FirewallArn
|
|
3085
|
-
input.SubnetChangeProtection !== null && { SubnetChangeProtection: input.SubnetChangeProtection })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
3037
|
+
return __assign(__assign(__assign(__assign({}, (input.FirewallArn != null && { FirewallArn: input.FirewallArn })), (input.FirewallName != null && { FirewallName: input.FirewallName })), (input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection })), (input.UpdateToken != null && { UpdateToken: input.UpdateToken }));
|
|
3086
3038
|
};
|
|
3087
3039
|
var serializeAws_json1_0VariableDefinitionList = function (input, context) {
|
|
3088
3040
|
return input
|
|
@@ -3106,7 +3058,7 @@ var serializeAws_json1_0VpcIds = function (input, context) {
|
|
|
3106
3058
|
};
|
|
3107
3059
|
var deserializeAws_json1_0ActionDefinition = function (output, context) {
|
|
3108
3060
|
return {
|
|
3109
|
-
PublishMetricAction: output.PublishMetricAction
|
|
3061
|
+
PublishMetricAction: output.PublishMetricAction != null
|
|
3110
3062
|
? deserializeAws_json1_0PublishMetricAction(output.PublishMetricAction, context)
|
|
3111
3063
|
: undefined,
|
|
3112
3064
|
};
|
|
@@ -3139,9 +3091,7 @@ var deserializeAws_json1_0AssociateSubnetsResponse = function (output, context)
|
|
|
3139
3091
|
return {
|
|
3140
3092
|
FirewallArn: __expectString(output.FirewallArn),
|
|
3141
3093
|
FirewallName: __expectString(output.FirewallName),
|
|
3142
|
-
SubnetMappings: output.SubnetMappings
|
|
3143
|
-
? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context)
|
|
3144
|
-
: undefined,
|
|
3094
|
+
SubnetMappings: output.SubnetMappings != null ? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
3145
3095
|
UpdateToken: __expectString(output.UpdateToken),
|
|
3146
3096
|
};
|
|
3147
3097
|
};
|
|
@@ -3154,7 +3104,7 @@ var deserializeAws_json1_0Attachment = function (output, context) {
|
|
|
3154
3104
|
};
|
|
3155
3105
|
var deserializeAws_json1_0CreateFirewallPolicyResponse = function (output, context) {
|
|
3156
3106
|
return {
|
|
3157
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse
|
|
3107
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
3158
3108
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
3159
3109
|
: undefined,
|
|
3160
3110
|
UpdateToken: __expectString(output.UpdateToken),
|
|
@@ -3162,17 +3112,13 @@ var deserializeAws_json1_0CreateFirewallPolicyResponse = function (output, conte
|
|
|
3162
3112
|
};
|
|
3163
3113
|
var deserializeAws_json1_0CreateFirewallResponse = function (output, context) {
|
|
3164
3114
|
return {
|
|
3165
|
-
Firewall: output.Firewall
|
|
3166
|
-
|
|
3167
|
-
: undefined,
|
|
3168
|
-
FirewallStatus: output.FirewallStatus !== undefined && output.FirewallStatus !== null
|
|
3169
|
-
? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context)
|
|
3170
|
-
: undefined,
|
|
3115
|
+
Firewall: output.Firewall != null ? deserializeAws_json1_0Firewall(output.Firewall, context) : undefined,
|
|
3116
|
+
FirewallStatus: output.FirewallStatus != null ? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
3171
3117
|
};
|
|
3172
3118
|
};
|
|
3173
3119
|
var deserializeAws_json1_0CreateRuleGroupResponse = function (output, context) {
|
|
3174
3120
|
return {
|
|
3175
|
-
RuleGroupResponse: output.RuleGroupResponse
|
|
3121
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
3176
3122
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
3177
3123
|
: undefined,
|
|
3178
3124
|
UpdateToken: __expectString(output.UpdateToken),
|
|
@@ -3180,7 +3126,7 @@ var deserializeAws_json1_0CreateRuleGroupResponse = function (output, context) {
|
|
|
3180
3126
|
};
|
|
3181
3127
|
var deserializeAws_json1_0CustomAction = function (output, context) {
|
|
3182
3128
|
return {
|
|
3183
|
-
ActionDefinition: output.ActionDefinition
|
|
3129
|
+
ActionDefinition: output.ActionDefinition != null
|
|
3184
3130
|
? deserializeAws_json1_0ActionDefinition(output.ActionDefinition, context)
|
|
3185
3131
|
: undefined,
|
|
3186
3132
|
ActionName: __expectString(output.ActionName),
|
|
@@ -3199,19 +3145,15 @@ var deserializeAws_json1_0CustomActions = function (output, context) {
|
|
|
3199
3145
|
};
|
|
3200
3146
|
var deserializeAws_json1_0DeleteFirewallPolicyResponse = function (output, context) {
|
|
3201
3147
|
return {
|
|
3202
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse
|
|
3148
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
3203
3149
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
3204
3150
|
: undefined,
|
|
3205
3151
|
};
|
|
3206
3152
|
};
|
|
3207
3153
|
var deserializeAws_json1_0DeleteFirewallResponse = function (output, context) {
|
|
3208
3154
|
return {
|
|
3209
|
-
Firewall: output.Firewall
|
|
3210
|
-
|
|
3211
|
-
: undefined,
|
|
3212
|
-
FirewallStatus: output.FirewallStatus !== undefined && output.FirewallStatus !== null
|
|
3213
|
-
? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context)
|
|
3214
|
-
: undefined,
|
|
3155
|
+
Firewall: output.Firewall != null ? deserializeAws_json1_0Firewall(output.Firewall, context) : undefined,
|
|
3156
|
+
FirewallStatus: output.FirewallStatus != null ? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
3215
3157
|
};
|
|
3216
3158
|
};
|
|
3217
3159
|
var deserializeAws_json1_0DeleteResourcePolicyResponse = function (output, context) {
|
|
@@ -3219,17 +3161,15 @@ var deserializeAws_json1_0DeleteResourcePolicyResponse = function (output, conte
|
|
|
3219
3161
|
};
|
|
3220
3162
|
var deserializeAws_json1_0DeleteRuleGroupResponse = function (output, context) {
|
|
3221
3163
|
return {
|
|
3222
|
-
RuleGroupResponse: output.RuleGroupResponse
|
|
3164
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
3223
3165
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
3224
3166
|
: undefined,
|
|
3225
3167
|
};
|
|
3226
3168
|
};
|
|
3227
3169
|
var deserializeAws_json1_0DescribeFirewallPolicyResponse = function (output, context) {
|
|
3228
3170
|
return {
|
|
3229
|
-
FirewallPolicy: output.FirewallPolicy
|
|
3230
|
-
|
|
3231
|
-
: undefined,
|
|
3232
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse !== undefined && output.FirewallPolicyResponse !== null
|
|
3171
|
+
FirewallPolicy: output.FirewallPolicy != null ? deserializeAws_json1_0FirewallPolicy(output.FirewallPolicy, context) : undefined,
|
|
3172
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
3233
3173
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
3234
3174
|
: undefined,
|
|
3235
3175
|
UpdateToken: __expectString(output.UpdateToken),
|
|
@@ -3237,19 +3177,15 @@ var deserializeAws_json1_0DescribeFirewallPolicyResponse = function (output, con
|
|
|
3237
3177
|
};
|
|
3238
3178
|
var deserializeAws_json1_0DescribeFirewallResponse = function (output, context) {
|
|
3239
3179
|
return {
|
|
3240
|
-
Firewall: output.Firewall
|
|
3241
|
-
|
|
3242
|
-
: undefined,
|
|
3243
|
-
FirewallStatus: output.FirewallStatus !== undefined && output.FirewallStatus !== null
|
|
3244
|
-
? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context)
|
|
3245
|
-
: undefined,
|
|
3180
|
+
Firewall: output.Firewall != null ? deserializeAws_json1_0Firewall(output.Firewall, context) : undefined,
|
|
3181
|
+
FirewallStatus: output.FirewallStatus != null ? deserializeAws_json1_0FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
3246
3182
|
UpdateToken: __expectString(output.UpdateToken),
|
|
3247
3183
|
};
|
|
3248
3184
|
};
|
|
3249
3185
|
var deserializeAws_json1_0DescribeLoggingConfigurationResponse = function (output, context) {
|
|
3250
3186
|
return {
|
|
3251
3187
|
FirewallArn: __expectString(output.FirewallArn),
|
|
3252
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
3188
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
3253
3189
|
? deserializeAws_json1_0LoggingConfiguration(output.LoggingConfiguration, context)
|
|
3254
3190
|
: undefined,
|
|
3255
3191
|
};
|
|
@@ -3263,12 +3199,12 @@ var deserializeAws_json1_0DescribeRuleGroupMetadataResponse = function (output,
|
|
|
3263
3199
|
return {
|
|
3264
3200
|
Capacity: __expectInt32(output.Capacity),
|
|
3265
3201
|
Description: __expectString(output.Description),
|
|
3266
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3202
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3267
3203
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3268
3204
|
: undefined,
|
|
3269
3205
|
RuleGroupArn: __expectString(output.RuleGroupArn),
|
|
3270
3206
|
RuleGroupName: __expectString(output.RuleGroupName),
|
|
3271
|
-
StatefulRuleOptions: output.StatefulRuleOptions
|
|
3207
|
+
StatefulRuleOptions: output.StatefulRuleOptions != null
|
|
3272
3208
|
? deserializeAws_json1_0StatefulRuleOptions(output.StatefulRuleOptions, context)
|
|
3273
3209
|
: undefined,
|
|
3274
3210
|
Type: __expectString(output.Type),
|
|
@@ -3276,10 +3212,8 @@ var deserializeAws_json1_0DescribeRuleGroupMetadataResponse = function (output,
|
|
|
3276
3212
|
};
|
|
3277
3213
|
var deserializeAws_json1_0DescribeRuleGroupResponse = function (output, context) {
|
|
3278
3214
|
return {
|
|
3279
|
-
RuleGroup: output.RuleGroup
|
|
3280
|
-
|
|
3281
|
-
: undefined,
|
|
3282
|
-
RuleGroupResponse: output.RuleGroupResponse !== undefined && output.RuleGroupResponse !== null
|
|
3215
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_0RuleGroup(output.RuleGroup, context) : undefined,
|
|
3216
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
3283
3217
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
3284
3218
|
: undefined,
|
|
3285
3219
|
UpdateToken: __expectString(output.UpdateToken),
|
|
@@ -3305,9 +3239,7 @@ var deserializeAws_json1_0DisassociateSubnetsResponse = function (output, contex
|
|
|
3305
3239
|
return {
|
|
3306
3240
|
FirewallArn: __expectString(output.FirewallArn),
|
|
3307
3241
|
FirewallName: __expectString(output.FirewallName),
|
|
3308
|
-
SubnetMappings: output.SubnetMappings
|
|
3309
|
-
? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context)
|
|
3310
|
-
: undefined,
|
|
3242
|
+
SubnetMappings: output.SubnetMappings != null ? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
3311
3243
|
UpdateToken: __expectString(output.UpdateToken),
|
|
3312
3244
|
};
|
|
3313
3245
|
};
|
|
@@ -3321,7 +3253,7 @@ var deserializeAws_json1_0Firewall = function (output, context) {
|
|
|
3321
3253
|
return {
|
|
3322
3254
|
DeleteProtection: __expectBoolean(output.DeleteProtection),
|
|
3323
3255
|
Description: __expectString(output.Description),
|
|
3324
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
3256
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3325
3257
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3326
3258
|
: undefined,
|
|
3327
3259
|
FirewallArn: __expectString(output.FirewallArn),
|
|
@@ -3330,12 +3262,8 @@ var deserializeAws_json1_0Firewall = function (output, context) {
|
|
|
3330
3262
|
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
3331
3263
|
FirewallPolicyChangeProtection: __expectBoolean(output.FirewallPolicyChangeProtection),
|
|
3332
3264
|
SubnetChangeProtection: __expectBoolean(output.SubnetChangeProtection),
|
|
3333
|
-
SubnetMappings: output.SubnetMappings
|
|
3334
|
-
|
|
3335
|
-
: undefined,
|
|
3336
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3337
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3338
|
-
: undefined,
|
|
3265
|
+
SubnetMappings: output.SubnetMappings != null ? deserializeAws_json1_0SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
3266
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3339
3267
|
VpcId: __expectString(output.VpcId),
|
|
3340
3268
|
};
|
|
3341
3269
|
};
|
|
@@ -3358,25 +3286,25 @@ var deserializeAws_json1_0FirewallPolicies = function (output, context) {
|
|
|
3358
3286
|
};
|
|
3359
3287
|
var deserializeAws_json1_0FirewallPolicy = function (output, context) {
|
|
3360
3288
|
return {
|
|
3361
|
-
StatefulDefaultActions: output.StatefulDefaultActions
|
|
3289
|
+
StatefulDefaultActions: output.StatefulDefaultActions != null
|
|
3362
3290
|
? deserializeAws_json1_0StatefulActions(output.StatefulDefaultActions, context)
|
|
3363
3291
|
: undefined,
|
|
3364
|
-
StatefulEngineOptions: output.StatefulEngineOptions
|
|
3292
|
+
StatefulEngineOptions: output.StatefulEngineOptions != null
|
|
3365
3293
|
? deserializeAws_json1_0StatefulEngineOptions(output.StatefulEngineOptions, context)
|
|
3366
3294
|
: undefined,
|
|
3367
|
-
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences
|
|
3295
|
+
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences != null
|
|
3368
3296
|
? deserializeAws_json1_0StatefulRuleGroupReferences(output.StatefulRuleGroupReferences, context)
|
|
3369
3297
|
: undefined,
|
|
3370
|
-
StatelessCustomActions: output.StatelessCustomActions
|
|
3298
|
+
StatelessCustomActions: output.StatelessCustomActions != null
|
|
3371
3299
|
? deserializeAws_json1_0CustomActions(output.StatelessCustomActions, context)
|
|
3372
3300
|
: undefined,
|
|
3373
|
-
StatelessDefaultActions: output.StatelessDefaultActions
|
|
3301
|
+
StatelessDefaultActions: output.StatelessDefaultActions != null
|
|
3374
3302
|
? deserializeAws_json1_0StatelessActions(output.StatelessDefaultActions, context)
|
|
3375
3303
|
: undefined,
|
|
3376
|
-
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions
|
|
3304
|
+
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions != null
|
|
3377
3305
|
? deserializeAws_json1_0StatelessActions(output.StatelessFragmentDefaultActions, context)
|
|
3378
3306
|
: undefined,
|
|
3379
|
-
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences
|
|
3307
|
+
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences != null
|
|
3380
3308
|
? deserializeAws_json1_0StatelessRuleGroupReferences(output.StatelessRuleGroupReferences, context)
|
|
3381
3309
|
: undefined,
|
|
3382
3310
|
};
|
|
@@ -3392,20 +3320,18 @@ var deserializeAws_json1_0FirewallPolicyResponse = function (output, context) {
|
|
|
3392
3320
|
ConsumedStatefulRuleCapacity: __expectInt32(output.ConsumedStatefulRuleCapacity),
|
|
3393
3321
|
ConsumedStatelessRuleCapacity: __expectInt32(output.ConsumedStatelessRuleCapacity),
|
|
3394
3322
|
Description: __expectString(output.Description),
|
|
3395
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
3323
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3396
3324
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3397
3325
|
: undefined,
|
|
3398
3326
|
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
3399
3327
|
FirewallPolicyId: __expectString(output.FirewallPolicyId),
|
|
3400
3328
|
FirewallPolicyName: __expectString(output.FirewallPolicyName),
|
|
3401
3329
|
FirewallPolicyStatus: __expectString(output.FirewallPolicyStatus),
|
|
3402
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3330
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3403
3331
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3404
3332
|
: undefined,
|
|
3405
3333
|
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
3406
|
-
Tags: output.Tags
|
|
3407
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3408
|
-
: undefined,
|
|
3334
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3409
3335
|
};
|
|
3410
3336
|
};
|
|
3411
3337
|
var deserializeAws_json1_0Firewalls = function (output, context) {
|
|
@@ -3423,9 +3349,7 @@ var deserializeAws_json1_0FirewallStatus = function (output, context) {
|
|
|
3423
3349
|
return {
|
|
3424
3350
|
ConfigurationSyncStateSummary: __expectString(output.ConfigurationSyncStateSummary),
|
|
3425
3351
|
Status: __expectString(output.Status),
|
|
3426
|
-
SyncStates: output.SyncStates
|
|
3427
|
-
? deserializeAws_json1_0SyncStates(output.SyncStates, context)
|
|
3428
|
-
: undefined,
|
|
3352
|
+
SyncStates: output.SyncStates != null ? deserializeAws_json1_0SyncStates(output.SyncStates, context) : undefined,
|
|
3429
3353
|
};
|
|
3430
3354
|
};
|
|
3431
3355
|
var deserializeAws_json1_0Flags = function (output, context) {
|
|
@@ -3481,9 +3405,7 @@ var deserializeAws_json1_0InvalidTokenException = function (output, context) {
|
|
|
3481
3405
|
};
|
|
3482
3406
|
var deserializeAws_json1_0IPSet = function (output, context) {
|
|
3483
3407
|
return {
|
|
3484
|
-
Definition: output.Definition
|
|
3485
|
-
? deserializeAws_json1_0VariableDefinitionList(output.Definition, context)
|
|
3486
|
-
: undefined,
|
|
3408
|
+
Definition: output.Definition != null ? deserializeAws_json1_0VariableDefinitionList(output.Definition, context) : undefined,
|
|
3487
3409
|
};
|
|
3488
3410
|
};
|
|
3489
3411
|
var deserializeAws_json1_0IPSets = function (output, context) {
|
|
@@ -3503,7 +3425,7 @@ var deserializeAws_json1_0LimitExceededException = function (output, context) {
|
|
|
3503
3425
|
};
|
|
3504
3426
|
var deserializeAws_json1_0ListFirewallPoliciesResponse = function (output, context) {
|
|
3505
3427
|
return {
|
|
3506
|
-
FirewallPolicies: output.FirewallPolicies
|
|
3428
|
+
FirewallPolicies: output.FirewallPolicies != null
|
|
3507
3429
|
? deserializeAws_json1_0FirewallPolicies(output.FirewallPolicies, context)
|
|
3508
3430
|
: undefined,
|
|
3509
3431
|
NextToken: __expectString(output.NextToken),
|
|
@@ -3511,31 +3433,25 @@ var deserializeAws_json1_0ListFirewallPoliciesResponse = function (output, conte
|
|
|
3511
3433
|
};
|
|
3512
3434
|
var deserializeAws_json1_0ListFirewallsResponse = function (output, context) {
|
|
3513
3435
|
return {
|
|
3514
|
-
Firewalls: output.Firewalls
|
|
3515
|
-
? deserializeAws_json1_0Firewalls(output.Firewalls, context)
|
|
3516
|
-
: undefined,
|
|
3436
|
+
Firewalls: output.Firewalls != null ? deserializeAws_json1_0Firewalls(output.Firewalls, context) : undefined,
|
|
3517
3437
|
NextToken: __expectString(output.NextToken),
|
|
3518
3438
|
};
|
|
3519
3439
|
};
|
|
3520
3440
|
var deserializeAws_json1_0ListRuleGroupsResponse = function (output, context) {
|
|
3521
3441
|
return {
|
|
3522
3442
|
NextToken: __expectString(output.NextToken),
|
|
3523
|
-
RuleGroups: output.RuleGroups
|
|
3524
|
-
? deserializeAws_json1_0RuleGroups(output.RuleGroups, context)
|
|
3525
|
-
: undefined,
|
|
3443
|
+
RuleGroups: output.RuleGroups != null ? deserializeAws_json1_0RuleGroups(output.RuleGroups, context) : undefined,
|
|
3526
3444
|
};
|
|
3527
3445
|
};
|
|
3528
3446
|
var deserializeAws_json1_0ListTagsForResourceResponse = function (output, context) {
|
|
3529
3447
|
return {
|
|
3530
3448
|
NextToken: __expectString(output.NextToken),
|
|
3531
|
-
Tags: output.Tags
|
|
3532
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3533
|
-
: undefined,
|
|
3449
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3534
3450
|
};
|
|
3535
3451
|
};
|
|
3536
3452
|
var deserializeAws_json1_0LogDestinationConfig = function (output, context) {
|
|
3537
3453
|
return {
|
|
3538
|
-
LogDestination: output.LogDestination
|
|
3454
|
+
LogDestination: output.LogDestination != null
|
|
3539
3455
|
? deserializeAws_json1_0LogDestinationMap(output.LogDestination, context)
|
|
3540
3456
|
: undefined,
|
|
3541
3457
|
LogDestinationType: __expectString(output.LogDestinationType),
|
|
@@ -3570,31 +3486,19 @@ var deserializeAws_json1_0LogDestinationPermissionException = function (output,
|
|
|
3570
3486
|
};
|
|
3571
3487
|
var deserializeAws_json1_0LoggingConfiguration = function (output, context) {
|
|
3572
3488
|
return {
|
|
3573
|
-
LogDestinationConfigs: output.LogDestinationConfigs
|
|
3489
|
+
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
3574
3490
|
? deserializeAws_json1_0LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
3575
3491
|
: undefined,
|
|
3576
3492
|
};
|
|
3577
3493
|
};
|
|
3578
3494
|
var deserializeAws_json1_0MatchAttributes = function (output, context) {
|
|
3579
3495
|
return {
|
|
3580
|
-
DestinationPorts: output.DestinationPorts
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
Protocols: output.Protocols !== undefined && output.Protocols !== null
|
|
3587
|
-
? deserializeAws_json1_0ProtocolNumbers(output.Protocols, context)
|
|
3588
|
-
: undefined,
|
|
3589
|
-
SourcePorts: output.SourcePorts !== undefined && output.SourcePorts !== null
|
|
3590
|
-
? deserializeAws_json1_0PortRanges(output.SourcePorts, context)
|
|
3591
|
-
: undefined,
|
|
3592
|
-
Sources: output.Sources !== undefined && output.Sources !== null
|
|
3593
|
-
? deserializeAws_json1_0Addresses(output.Sources, context)
|
|
3594
|
-
: undefined,
|
|
3595
|
-
TCPFlags: output.TCPFlags !== undefined && output.TCPFlags !== null
|
|
3596
|
-
? deserializeAws_json1_0TCPFlags(output.TCPFlags, context)
|
|
3597
|
-
: undefined,
|
|
3496
|
+
DestinationPorts: output.DestinationPorts != null ? deserializeAws_json1_0PortRanges(output.DestinationPorts, context) : undefined,
|
|
3497
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_0Addresses(output.Destinations, context) : undefined,
|
|
3498
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_0ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3499
|
+
SourcePorts: output.SourcePorts != null ? deserializeAws_json1_0PortRanges(output.SourcePorts, context) : undefined,
|
|
3500
|
+
Sources: output.Sources != null ? deserializeAws_json1_0Addresses(output.Sources, context) : undefined,
|
|
3501
|
+
TCPFlags: output.TCPFlags != null ? deserializeAws_json1_0TCPFlags(output.TCPFlags, context) : undefined,
|
|
3598
3502
|
};
|
|
3599
3503
|
};
|
|
3600
3504
|
var deserializeAws_json1_0PerObjectStatus = function (output, context) {
|
|
@@ -3622,9 +3526,7 @@ var deserializeAws_json1_0PortRanges = function (output, context) {
|
|
|
3622
3526
|
};
|
|
3623
3527
|
var deserializeAws_json1_0PortSet = function (output, context) {
|
|
3624
3528
|
return {
|
|
3625
|
-
Definition: output.Definition
|
|
3626
|
-
? deserializeAws_json1_0VariableDefinitionList(output.Definition, context)
|
|
3627
|
-
: undefined,
|
|
3529
|
+
Definition: output.Definition != null ? deserializeAws_json1_0VariableDefinitionList(output.Definition, context) : undefined,
|
|
3628
3530
|
};
|
|
3629
3531
|
};
|
|
3630
3532
|
var deserializeAws_json1_0PortSets = function (output, context) {
|
|
@@ -3650,9 +3552,7 @@ var deserializeAws_json1_0ProtocolNumbers = function (output, context) {
|
|
|
3650
3552
|
};
|
|
3651
3553
|
var deserializeAws_json1_0PublishMetricAction = function (output, context) {
|
|
3652
3554
|
return {
|
|
3653
|
-
Dimensions: output.Dimensions
|
|
3654
|
-
? deserializeAws_json1_0Dimensions(output.Dimensions, context)
|
|
3655
|
-
: undefined,
|
|
3555
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_0Dimensions(output.Dimensions, context) : undefined,
|
|
3656
3556
|
};
|
|
3657
3557
|
};
|
|
3658
3558
|
var deserializeAws_json1_0PutResourcePolicyResponse = function (output, context) {
|
|
@@ -3670,23 +3570,17 @@ var deserializeAws_json1_0ResourceOwnerCheckException = function (output, contex
|
|
|
3670
3570
|
};
|
|
3671
3571
|
var deserializeAws_json1_0RuleDefinition = function (output, context) {
|
|
3672
3572
|
return {
|
|
3673
|
-
Actions: output.Actions
|
|
3674
|
-
|
|
3675
|
-
: undefined,
|
|
3676
|
-
MatchAttributes: output.MatchAttributes !== undefined && output.MatchAttributes !== null
|
|
3573
|
+
Actions: output.Actions != null ? deserializeAws_json1_0StatelessActions(output.Actions, context) : undefined,
|
|
3574
|
+
MatchAttributes: output.MatchAttributes != null
|
|
3677
3575
|
? deserializeAws_json1_0MatchAttributes(output.MatchAttributes, context)
|
|
3678
3576
|
: undefined,
|
|
3679
3577
|
};
|
|
3680
3578
|
};
|
|
3681
3579
|
var deserializeAws_json1_0RuleGroup = function (output, context) {
|
|
3682
3580
|
return {
|
|
3683
|
-
RuleVariables: output.RuleVariables
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
RulesSource: output.RulesSource !== undefined && output.RulesSource !== null
|
|
3687
|
-
? deserializeAws_json1_0RulesSource(output.RulesSource, context)
|
|
3688
|
-
: undefined,
|
|
3689
|
-
StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
|
|
3581
|
+
RuleVariables: output.RuleVariables != null ? deserializeAws_json1_0RuleVariables(output.RuleVariables, context) : undefined,
|
|
3582
|
+
RulesSource: output.RulesSource != null ? deserializeAws_json1_0RulesSource(output.RulesSource, context) : undefined,
|
|
3583
|
+
StatefulRuleOptions: output.StatefulRuleOptions != null
|
|
3690
3584
|
? deserializeAws_json1_0StatefulRuleOptions(output.StatefulRuleOptions, context)
|
|
3691
3585
|
: undefined,
|
|
3692
3586
|
};
|
|
@@ -3702,10 +3596,10 @@ var deserializeAws_json1_0RuleGroupResponse = function (output, context) {
|
|
|
3702
3596
|
Capacity: __expectInt32(output.Capacity),
|
|
3703
3597
|
ConsumedCapacity: __expectInt32(output.ConsumedCapacity),
|
|
3704
3598
|
Description: __expectString(output.Description),
|
|
3705
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
3599
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3706
3600
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3707
3601
|
: undefined,
|
|
3708
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3602
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3709
3603
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3710
3604
|
: undefined,
|
|
3711
3605
|
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
@@ -3714,12 +3608,8 @@ var deserializeAws_json1_0RuleGroupResponse = function (output, context) {
|
|
|
3714
3608
|
RuleGroupName: __expectString(output.RuleGroupName),
|
|
3715
3609
|
RuleGroupStatus: __expectString(output.RuleGroupStatus),
|
|
3716
3610
|
SnsTopic: __expectString(output.SnsTopic),
|
|
3717
|
-
SourceMetadata: output.SourceMetadata
|
|
3718
|
-
|
|
3719
|
-
: undefined,
|
|
3720
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3721
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3722
|
-
: undefined,
|
|
3611
|
+
SourceMetadata: output.SourceMetadata != null ? deserializeAws_json1_0SourceMetadata(output.SourceMetadata, context) : undefined,
|
|
3612
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3723
3613
|
Type: __expectString(output.Type),
|
|
3724
3614
|
};
|
|
3725
3615
|
};
|
|
@@ -3737,9 +3627,7 @@ var deserializeAws_json1_0RuleGroups = function (output, context) {
|
|
|
3737
3627
|
var deserializeAws_json1_0RuleOption = function (output, context) {
|
|
3738
3628
|
return {
|
|
3739
3629
|
Keyword: __expectString(output.Keyword),
|
|
3740
|
-
Settings: output.Settings
|
|
3741
|
-
? deserializeAws_json1_0Settings(output.Settings, context)
|
|
3742
|
-
: undefined,
|
|
3630
|
+
Settings: output.Settings != null ? deserializeAws_json1_0Settings(output.Settings, context) : undefined,
|
|
3743
3631
|
};
|
|
3744
3632
|
};
|
|
3745
3633
|
var deserializeAws_json1_0RuleOptions = function (output, context) {
|
|
@@ -3755,14 +3643,12 @@ var deserializeAws_json1_0RuleOptions = function (output, context) {
|
|
|
3755
3643
|
};
|
|
3756
3644
|
var deserializeAws_json1_0RulesSource = function (output, context) {
|
|
3757
3645
|
return {
|
|
3758
|
-
RulesSourceList: output.RulesSourceList
|
|
3646
|
+
RulesSourceList: output.RulesSourceList != null
|
|
3759
3647
|
? deserializeAws_json1_0RulesSourceList(output.RulesSourceList, context)
|
|
3760
3648
|
: undefined,
|
|
3761
3649
|
RulesString: __expectString(output.RulesString),
|
|
3762
|
-
StatefulRules: output.StatefulRules
|
|
3763
|
-
|
|
3764
|
-
: undefined,
|
|
3765
|
-
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions !== undefined && output.StatelessRulesAndCustomActions !== null
|
|
3650
|
+
StatefulRules: output.StatefulRules != null ? deserializeAws_json1_0StatefulRules(output.StatefulRules, context) : undefined,
|
|
3651
|
+
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions != null
|
|
3766
3652
|
? deserializeAws_json1_0StatelessRulesAndCustomActions(output.StatelessRulesAndCustomActions, context)
|
|
3767
3653
|
: undefined,
|
|
3768
3654
|
};
|
|
@@ -3770,12 +3656,8 @@ var deserializeAws_json1_0RulesSource = function (output, context) {
|
|
|
3770
3656
|
var deserializeAws_json1_0RulesSourceList = function (output, context) {
|
|
3771
3657
|
return {
|
|
3772
3658
|
GeneratedRulesType: __expectString(output.GeneratedRulesType),
|
|
3773
|
-
TargetTypes: output.TargetTypes
|
|
3774
|
-
|
|
3775
|
-
: undefined,
|
|
3776
|
-
Targets: output.Targets !== undefined && output.Targets !== null
|
|
3777
|
-
? deserializeAws_json1_0RuleTargets(output.Targets, context)
|
|
3778
|
-
: undefined,
|
|
3659
|
+
TargetTypes: output.TargetTypes != null ? deserializeAws_json1_0TargetTypes(output.TargetTypes, context) : undefined,
|
|
3660
|
+
Targets: output.Targets != null ? deserializeAws_json1_0RuleTargets(output.Targets, context) : undefined,
|
|
3779
3661
|
};
|
|
3780
3662
|
};
|
|
3781
3663
|
var deserializeAws_json1_0RuleTargets = function (output, context) {
|
|
@@ -3791,12 +3673,8 @@ var deserializeAws_json1_0RuleTargets = function (output, context) {
|
|
|
3791
3673
|
};
|
|
3792
3674
|
var deserializeAws_json1_0RuleVariables = function (output, context) {
|
|
3793
3675
|
return {
|
|
3794
|
-
IPSets: output.IPSets
|
|
3795
|
-
|
|
3796
|
-
: undefined,
|
|
3797
|
-
PortSets: output.PortSets !== undefined && output.PortSets !== null
|
|
3798
|
-
? deserializeAws_json1_0PortSets(output.PortSets, context)
|
|
3799
|
-
: undefined,
|
|
3676
|
+
IPSets: output.IPSets != null ? deserializeAws_json1_0IPSets(output.IPSets, context) : undefined,
|
|
3677
|
+
PortSets: output.PortSets != null ? deserializeAws_json1_0PortSets(output.PortSets, context) : undefined,
|
|
3800
3678
|
};
|
|
3801
3679
|
};
|
|
3802
3680
|
var deserializeAws_json1_0Settings = function (output, context) {
|
|
@@ -3835,12 +3713,8 @@ var deserializeAws_json1_0StatefulEngineOptions = function (output, context) {
|
|
|
3835
3713
|
var deserializeAws_json1_0StatefulRule = function (output, context) {
|
|
3836
3714
|
return {
|
|
3837
3715
|
Action: __expectString(output.Action),
|
|
3838
|
-
Header: output.Header
|
|
3839
|
-
|
|
3840
|
-
: undefined,
|
|
3841
|
-
RuleOptions: output.RuleOptions !== undefined && output.RuleOptions !== null
|
|
3842
|
-
? deserializeAws_json1_0RuleOptions(output.RuleOptions, context)
|
|
3843
|
-
: undefined,
|
|
3716
|
+
Header: output.Header != null ? deserializeAws_json1_0Header(output.Header, context) : undefined,
|
|
3717
|
+
RuleOptions: output.RuleOptions != null ? deserializeAws_json1_0RuleOptions(output.RuleOptions, context) : undefined,
|
|
3844
3718
|
};
|
|
3845
3719
|
};
|
|
3846
3720
|
var deserializeAws_json1_0StatefulRuleGroupOverride = function (output, context) {
|
|
@@ -3850,9 +3724,7 @@ var deserializeAws_json1_0StatefulRuleGroupOverride = function (output, context)
|
|
|
3850
3724
|
};
|
|
3851
3725
|
var deserializeAws_json1_0StatefulRuleGroupReference = function (output, context) {
|
|
3852
3726
|
return {
|
|
3853
|
-
Override: output.Override
|
|
3854
|
-
? deserializeAws_json1_0StatefulRuleGroupOverride(output.Override, context)
|
|
3855
|
-
: undefined,
|
|
3727
|
+
Override: output.Override != null ? deserializeAws_json1_0StatefulRuleGroupOverride(output.Override, context) : undefined,
|
|
3856
3728
|
Priority: __expectInt32(output.Priority),
|
|
3857
3729
|
ResourceArn: __expectString(output.ResourceArn),
|
|
3858
3730
|
};
|
|
@@ -3898,9 +3770,7 @@ var deserializeAws_json1_0StatelessActions = function (output, context) {
|
|
|
3898
3770
|
var deserializeAws_json1_0StatelessRule = function (output, context) {
|
|
3899
3771
|
return {
|
|
3900
3772
|
Priority: __expectInt32(output.Priority),
|
|
3901
|
-
RuleDefinition: output.RuleDefinition
|
|
3902
|
-
? deserializeAws_json1_0RuleDefinition(output.RuleDefinition, context)
|
|
3903
|
-
: undefined,
|
|
3773
|
+
RuleDefinition: output.RuleDefinition != null ? deserializeAws_json1_0RuleDefinition(output.RuleDefinition, context) : undefined,
|
|
3904
3774
|
};
|
|
3905
3775
|
};
|
|
3906
3776
|
var deserializeAws_json1_0StatelessRuleGroupReference = function (output, context) {
|
|
@@ -3933,12 +3803,8 @@ var deserializeAws_json1_0StatelessRules = function (output, context) {
|
|
|
3933
3803
|
};
|
|
3934
3804
|
var deserializeAws_json1_0StatelessRulesAndCustomActions = function (output, context) {
|
|
3935
3805
|
return {
|
|
3936
|
-
CustomActions: output.CustomActions
|
|
3937
|
-
|
|
3938
|
-
: undefined,
|
|
3939
|
-
StatelessRules: output.StatelessRules !== undefined && output.StatelessRules !== null
|
|
3940
|
-
? deserializeAws_json1_0StatelessRules(output.StatelessRules, context)
|
|
3941
|
-
: undefined,
|
|
3806
|
+
CustomActions: output.CustomActions != null ? deserializeAws_json1_0CustomActions(output.CustomActions, context) : undefined,
|
|
3807
|
+
StatelessRules: output.StatelessRules != null ? deserializeAws_json1_0StatelessRules(output.StatelessRules, context) : undefined,
|
|
3942
3808
|
};
|
|
3943
3809
|
};
|
|
3944
3810
|
var deserializeAws_json1_0SubnetMapping = function (output, context) {
|
|
@@ -3959,12 +3825,8 @@ var deserializeAws_json1_0SubnetMappings = function (output, context) {
|
|
|
3959
3825
|
};
|
|
3960
3826
|
var deserializeAws_json1_0SyncState = function (output, context) {
|
|
3961
3827
|
return {
|
|
3962
|
-
Attachment: output.Attachment
|
|
3963
|
-
|
|
3964
|
-
: undefined,
|
|
3965
|
-
Config: output.Config !== undefined && output.Config !== null
|
|
3966
|
-
? deserializeAws_json1_0SyncStateConfig(output.Config, context)
|
|
3967
|
-
: undefined,
|
|
3828
|
+
Attachment: output.Attachment != null ? deserializeAws_json1_0Attachment(output.Attachment, context) : undefined,
|
|
3829
|
+
Config: output.Config != null ? deserializeAws_json1_0SyncStateConfig(output.Config, context) : undefined,
|
|
3968
3830
|
};
|
|
3969
3831
|
};
|
|
3970
3832
|
var deserializeAws_json1_0SyncStateConfig = function (output, context) {
|
|
@@ -4020,12 +3882,8 @@ var deserializeAws_json1_0TargetTypes = function (output, context) {
|
|
|
4020
3882
|
};
|
|
4021
3883
|
var deserializeAws_json1_0TCPFlagField = function (output, context) {
|
|
4022
3884
|
return {
|
|
4023
|
-
Flags: output.Flags
|
|
4024
|
-
|
|
4025
|
-
: undefined,
|
|
4026
|
-
Masks: output.Masks !== undefined && output.Masks !== null
|
|
4027
|
-
? deserializeAws_json1_0Flags(output.Masks, context)
|
|
4028
|
-
: undefined,
|
|
3885
|
+
Flags: output.Flags != null ? deserializeAws_json1_0Flags(output.Flags, context) : undefined,
|
|
3886
|
+
Masks: output.Masks != null ? deserializeAws_json1_0Flags(output.Masks, context) : undefined,
|
|
4029
3887
|
};
|
|
4030
3888
|
};
|
|
4031
3889
|
var deserializeAws_json1_0TCPFlags = function (output, context) {
|
|
@@ -4070,7 +3928,7 @@ var deserializeAws_json1_0UpdateFirewallDescriptionResponse = function (output,
|
|
|
4070
3928
|
};
|
|
4071
3929
|
var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse = function (output, context) {
|
|
4072
3930
|
return {
|
|
4073
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
3931
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
4074
3932
|
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
4075
3933
|
: undefined,
|
|
4076
3934
|
FirewallArn: __expectString(output.FirewallArn),
|
|
@@ -4088,7 +3946,7 @@ var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionResponse = functio
|
|
|
4088
3946
|
};
|
|
4089
3947
|
var deserializeAws_json1_0UpdateFirewallPolicyResponse = function (output, context) {
|
|
4090
3948
|
return {
|
|
4091
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse
|
|
3949
|
+
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
4092
3950
|
? deserializeAws_json1_0FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
4093
3951
|
: undefined,
|
|
4094
3952
|
UpdateToken: __expectString(output.UpdateToken),
|
|
@@ -4098,14 +3956,14 @@ var deserializeAws_json1_0UpdateLoggingConfigurationResponse = function (output,
|
|
|
4098
3956
|
return {
|
|
4099
3957
|
FirewallArn: __expectString(output.FirewallArn),
|
|
4100
3958
|
FirewallName: __expectString(output.FirewallName),
|
|
4101
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
3959
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
4102
3960
|
? deserializeAws_json1_0LoggingConfiguration(output.LoggingConfiguration, context)
|
|
4103
3961
|
: undefined,
|
|
4104
3962
|
};
|
|
4105
3963
|
};
|
|
4106
3964
|
var deserializeAws_json1_0UpdateRuleGroupResponse = function (output, context) {
|
|
4107
3965
|
return {
|
|
4108
|
-
RuleGroupResponse: output.RuleGroupResponse
|
|
3966
|
+
RuleGroupResponse: output.RuleGroupResponse != null
|
|
4109
3967
|
? deserializeAws_json1_0RuleGroupResponse(output.RuleGroupResponse, context)
|
|
4110
3968
|
: undefined,
|
|
4111
3969
|
UpdateToken: __expectString(output.UpdateToken),
|
|
@@ -4204,5 +4062,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4204
4062
|
if (data["__type"] !== undefined) {
|
|
4205
4063
|
return sanitizeErrorCode(data["__type"]);
|
|
4206
4064
|
}
|
|
4207
|
-
return "";
|
|
4208
4065
|
};
|