@aws-sdk/client-network-firewall 3.523.0 → 3.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +39 -79
- package/dist-es/protocols/Aws_json1_0.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/NetworkFirewall.js +0 -1
- package/dist-cjs/NetworkFirewallClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/AssociateSubnetsCommand.js +0 -1
- package/dist-cjs/commands/CreateFirewallCommand.js +0 -1
- package/dist-cjs/commands/CreateFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/CreateTLSInspectionConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteFirewallCommand.js +0 -1
- package/dist-cjs/commands/DeleteFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteTLSInspectionConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DescribeFirewallCommand.js +0 -1
- package/dist-cjs/commands/DescribeFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DescribeRuleGroupMetadataCommand.js +0 -1
- package/dist-cjs/commands/DescribeTLSInspectionConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DisassociateSubnetsCommand.js +0 -1
- package/dist-cjs/commands/ListFirewallPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListFirewallsCommand.js +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListTLSInspectionConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallDeleteProtectionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallDescriptionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallEncryptionConfigurationCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/UpdateSubnetChangeProtectionCommand.js +0 -1
- package/dist-cjs/commands/UpdateTLSInspectionConfigurationCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/NetworkFirewallServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListFirewallsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRuleGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTLSInspectionConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -257,6 +257,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
257
257
|
var import_types = require("@smithy/types");
|
|
258
258
|
|
|
259
259
|
// src/protocols/Aws_json1_0.ts
|
|
260
|
+
var import_core2 = require("@aws-sdk/core");
|
|
260
261
|
|
|
261
262
|
|
|
262
263
|
|
|
@@ -841,7 +842,7 @@ var de_AssociateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
841
842
|
if (output.statusCode >= 300) {
|
|
842
843
|
return de_CommandError(output, context);
|
|
843
844
|
}
|
|
844
|
-
const data = await
|
|
845
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
845
846
|
let contents = {};
|
|
846
847
|
contents = (0, import_smithy_client._json)(data);
|
|
847
848
|
const response = {
|
|
@@ -854,7 +855,7 @@ var de_AssociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
854
855
|
if (output.statusCode >= 300) {
|
|
855
856
|
return de_CommandError(output, context);
|
|
856
857
|
}
|
|
857
|
-
const data = await
|
|
858
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
858
859
|
let contents = {};
|
|
859
860
|
contents = (0, import_smithy_client._json)(data);
|
|
860
861
|
const response = {
|
|
@@ -867,7 +868,7 @@ var de_CreateFirewallCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
867
868
|
if (output.statusCode >= 300) {
|
|
868
869
|
return de_CommandError(output, context);
|
|
869
870
|
}
|
|
870
|
-
const data = await
|
|
871
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
871
872
|
let contents = {};
|
|
872
873
|
contents = (0, import_smithy_client._json)(data);
|
|
873
874
|
const response = {
|
|
@@ -880,7 +881,7 @@ var de_CreateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
880
881
|
if (output.statusCode >= 300) {
|
|
881
882
|
return de_CommandError(output, context);
|
|
882
883
|
}
|
|
883
|
-
const data = await
|
|
884
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
884
885
|
let contents = {};
|
|
885
886
|
contents = de_CreateFirewallPolicyResponse(data, context);
|
|
886
887
|
const response = {
|
|
@@ -893,7 +894,7 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
893
894
|
if (output.statusCode >= 300) {
|
|
894
895
|
return de_CommandError(output, context);
|
|
895
896
|
}
|
|
896
|
-
const data = await
|
|
897
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
897
898
|
let contents = {};
|
|
898
899
|
contents = de_CreateRuleGroupResponse(data, context);
|
|
899
900
|
const response = {
|
|
@@ -906,7 +907,7 @@ var de_CreateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
906
907
|
if (output.statusCode >= 300) {
|
|
907
908
|
return de_CommandError(output, context);
|
|
908
909
|
}
|
|
909
|
-
const data = await
|
|
910
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
910
911
|
let contents = {};
|
|
911
912
|
contents = de_CreateTLSInspectionConfigurationResponse(data, context);
|
|
912
913
|
const response = {
|
|
@@ -919,7 +920,7 @@ var de_DeleteFirewallCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
919
920
|
if (output.statusCode >= 300) {
|
|
920
921
|
return de_CommandError(output, context);
|
|
921
922
|
}
|
|
922
|
-
const data = await
|
|
923
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
923
924
|
let contents = {};
|
|
924
925
|
contents = (0, import_smithy_client._json)(data);
|
|
925
926
|
const response = {
|
|
@@ -932,7 +933,7 @@ var de_DeleteFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
932
933
|
if (output.statusCode >= 300) {
|
|
933
934
|
return de_CommandError(output, context);
|
|
934
935
|
}
|
|
935
|
-
const data = await
|
|
936
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
936
937
|
let contents = {};
|
|
937
938
|
contents = de_DeleteFirewallPolicyResponse(data, context);
|
|
938
939
|
const response = {
|
|
@@ -945,7 +946,7 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
945
946
|
if (output.statusCode >= 300) {
|
|
946
947
|
return de_CommandError(output, context);
|
|
947
948
|
}
|
|
948
|
-
const data = await
|
|
949
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
949
950
|
let contents = {};
|
|
950
951
|
contents = (0, import_smithy_client._json)(data);
|
|
951
952
|
const response = {
|
|
@@ -958,7 +959,7 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
958
959
|
if (output.statusCode >= 300) {
|
|
959
960
|
return de_CommandError(output, context);
|
|
960
961
|
}
|
|
961
|
-
const data = await
|
|
962
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
962
963
|
let contents = {};
|
|
963
964
|
contents = de_DeleteRuleGroupResponse(data, context);
|
|
964
965
|
const response = {
|
|
@@ -971,7 +972,7 @@ var de_DeleteTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
971
972
|
if (output.statusCode >= 300) {
|
|
972
973
|
return de_CommandError(output, context);
|
|
973
974
|
}
|
|
974
|
-
const data = await
|
|
975
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
975
976
|
let contents = {};
|
|
976
977
|
contents = de_DeleteTLSInspectionConfigurationResponse(data, context);
|
|
977
978
|
const response = {
|
|
@@ -984,7 +985,7 @@ var de_DescribeFirewallCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
984
985
|
if (output.statusCode >= 300) {
|
|
985
986
|
return de_CommandError(output, context);
|
|
986
987
|
}
|
|
987
|
-
const data = await
|
|
988
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
988
989
|
let contents = {};
|
|
989
990
|
contents = (0, import_smithy_client._json)(data);
|
|
990
991
|
const response = {
|
|
@@ -997,7 +998,7 @@ var de_DescribeFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
997
998
|
if (output.statusCode >= 300) {
|
|
998
999
|
return de_CommandError(output, context);
|
|
999
1000
|
}
|
|
1000
|
-
const data = await
|
|
1001
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1001
1002
|
let contents = {};
|
|
1002
1003
|
contents = de_DescribeFirewallPolicyResponse(data, context);
|
|
1003
1004
|
const response = {
|
|
@@ -1010,7 +1011,7 @@ var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1010
1011
|
if (output.statusCode >= 300) {
|
|
1011
1012
|
return de_CommandError(output, context);
|
|
1012
1013
|
}
|
|
1013
|
-
const data = await
|
|
1014
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1014
1015
|
let contents = {};
|
|
1015
1016
|
contents = (0, import_smithy_client._json)(data);
|
|
1016
1017
|
const response = {
|
|
@@ -1023,7 +1024,7 @@ var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1023
1024
|
if (output.statusCode >= 300) {
|
|
1024
1025
|
return de_CommandError(output, context);
|
|
1025
1026
|
}
|
|
1026
|
-
const data = await
|
|
1027
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1027
1028
|
let contents = {};
|
|
1028
1029
|
contents = (0, import_smithy_client._json)(data);
|
|
1029
1030
|
const response = {
|
|
@@ -1036,7 +1037,7 @@ var de_DescribeRuleGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1036
1037
|
if (output.statusCode >= 300) {
|
|
1037
1038
|
return de_CommandError(output, context);
|
|
1038
1039
|
}
|
|
1039
|
-
const data = await
|
|
1040
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1040
1041
|
let contents = {};
|
|
1041
1042
|
contents = de_DescribeRuleGroupResponse(data, context);
|
|
1042
1043
|
const response = {
|
|
@@ -1049,7 +1050,7 @@ var de_DescribeRuleGroupMetadataCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1049
1050
|
if (output.statusCode >= 300) {
|
|
1050
1051
|
return de_CommandError(output, context);
|
|
1051
1052
|
}
|
|
1052
|
-
const data = await
|
|
1053
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1053
1054
|
let contents = {};
|
|
1054
1055
|
contents = de_DescribeRuleGroupMetadataResponse(data, context);
|
|
1055
1056
|
const response = {
|
|
@@ -1062,7 +1063,7 @@ var de_DescribeTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
1062
1063
|
if (output.statusCode >= 300) {
|
|
1063
1064
|
return de_CommandError(output, context);
|
|
1064
1065
|
}
|
|
1065
|
-
const data = await
|
|
1066
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1066
1067
|
let contents = {};
|
|
1067
1068
|
contents = de_DescribeTLSInspectionConfigurationResponse(data, context);
|
|
1068
1069
|
const response = {
|
|
@@ -1075,7 +1076,7 @@ var de_DisassociateSubnetsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1075
1076
|
if (output.statusCode >= 300) {
|
|
1076
1077
|
return de_CommandError(output, context);
|
|
1077
1078
|
}
|
|
1078
|
-
const data = await
|
|
1079
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1079
1080
|
let contents = {};
|
|
1080
1081
|
contents = (0, import_smithy_client._json)(data);
|
|
1081
1082
|
const response = {
|
|
@@ -1088,7 +1089,7 @@ var de_ListFirewallPoliciesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1088
1089
|
if (output.statusCode >= 300) {
|
|
1089
1090
|
return de_CommandError(output, context);
|
|
1090
1091
|
}
|
|
1091
|
-
const data = await
|
|
1092
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1092
1093
|
let contents = {};
|
|
1093
1094
|
contents = (0, import_smithy_client._json)(data);
|
|
1094
1095
|
const response = {
|
|
@@ -1101,7 +1102,7 @@ var de_ListFirewallsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1101
1102
|
if (output.statusCode >= 300) {
|
|
1102
1103
|
return de_CommandError(output, context);
|
|
1103
1104
|
}
|
|
1104
|
-
const data = await
|
|
1105
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1105
1106
|
let contents = {};
|
|
1106
1107
|
contents = (0, import_smithy_client._json)(data);
|
|
1107
1108
|
const response = {
|
|
@@ -1114,7 +1115,7 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1114
1115
|
if (output.statusCode >= 300) {
|
|
1115
1116
|
return de_CommandError(output, context);
|
|
1116
1117
|
}
|
|
1117
|
-
const data = await
|
|
1118
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1118
1119
|
let contents = {};
|
|
1119
1120
|
contents = (0, import_smithy_client._json)(data);
|
|
1120
1121
|
const response = {
|
|
@@ -1127,7 +1128,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1127
1128
|
if (output.statusCode >= 300) {
|
|
1128
1129
|
return de_CommandError(output, context);
|
|
1129
1130
|
}
|
|
1130
|
-
const data = await
|
|
1131
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1131
1132
|
let contents = {};
|
|
1132
1133
|
contents = (0, import_smithy_client._json)(data);
|
|
1133
1134
|
const response = {
|
|
@@ -1140,7 +1141,7 @@ var de_ListTLSInspectionConfigurationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1140
1141
|
if (output.statusCode >= 300) {
|
|
1141
1142
|
return de_CommandError(output, context);
|
|
1142
1143
|
}
|
|
1143
|
-
const data = await
|
|
1144
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1144
1145
|
let contents = {};
|
|
1145
1146
|
contents = (0, import_smithy_client._json)(data);
|
|
1146
1147
|
const response = {
|
|
@@ -1153,7 +1154,7 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1153
1154
|
if (output.statusCode >= 300) {
|
|
1154
1155
|
return de_CommandError(output, context);
|
|
1155
1156
|
}
|
|
1156
|
-
const data = await
|
|
1157
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1157
1158
|
let contents = {};
|
|
1158
1159
|
contents = (0, import_smithy_client._json)(data);
|
|
1159
1160
|
const response = {
|
|
@@ -1166,7 +1167,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1166
1167
|
if (output.statusCode >= 300) {
|
|
1167
1168
|
return de_CommandError(output, context);
|
|
1168
1169
|
}
|
|
1169
|
-
const data = await
|
|
1170
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1170
1171
|
let contents = {};
|
|
1171
1172
|
contents = (0, import_smithy_client._json)(data);
|
|
1172
1173
|
const response = {
|
|
@@ -1179,7 +1180,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1179
1180
|
if (output.statusCode >= 300) {
|
|
1180
1181
|
return de_CommandError(output, context);
|
|
1181
1182
|
}
|
|
1182
|
-
const data = await
|
|
1183
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1183
1184
|
let contents = {};
|
|
1184
1185
|
contents = (0, import_smithy_client._json)(data);
|
|
1185
1186
|
const response = {
|
|
@@ -1192,7 +1193,7 @@ var de_UpdateFirewallDeleteProtectionCommand = /* @__PURE__ */ __name(async (out
|
|
|
1192
1193
|
if (output.statusCode >= 300) {
|
|
1193
1194
|
return de_CommandError(output, context);
|
|
1194
1195
|
}
|
|
1195
|
-
const data = await
|
|
1196
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1196
1197
|
let contents = {};
|
|
1197
1198
|
contents = (0, import_smithy_client._json)(data);
|
|
1198
1199
|
const response = {
|
|
@@ -1205,7 +1206,7 @@ var de_UpdateFirewallDescriptionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1205
1206
|
if (output.statusCode >= 300) {
|
|
1206
1207
|
return de_CommandError(output, context);
|
|
1207
1208
|
}
|
|
1208
|
-
const data = await
|
|
1209
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1209
1210
|
let contents = {};
|
|
1210
1211
|
contents = (0, import_smithy_client._json)(data);
|
|
1211
1212
|
const response = {
|
|
@@ -1218,7 +1219,7 @@ var de_UpdateFirewallEncryptionConfigurationCommand = /* @__PURE__ */ __name(asy
|
|
|
1218
1219
|
if (output.statusCode >= 300) {
|
|
1219
1220
|
return de_CommandError(output, context);
|
|
1220
1221
|
}
|
|
1221
|
-
const data = await
|
|
1222
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1222
1223
|
let contents = {};
|
|
1223
1224
|
contents = (0, import_smithy_client._json)(data);
|
|
1224
1225
|
const response = {
|
|
@@ -1231,7 +1232,7 @@ var de_UpdateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1231
1232
|
if (output.statusCode >= 300) {
|
|
1232
1233
|
return de_CommandError(output, context);
|
|
1233
1234
|
}
|
|
1234
|
-
const data = await
|
|
1235
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1235
1236
|
let contents = {};
|
|
1236
1237
|
contents = de_UpdateFirewallPolicyResponse(data, context);
|
|
1237
1238
|
const response = {
|
|
@@ -1244,7 +1245,7 @@ var de_UpdateFirewallPolicyChangeProtectionCommand = /* @__PURE__ */ __name(asyn
|
|
|
1244
1245
|
if (output.statusCode >= 300) {
|
|
1245
1246
|
return de_CommandError(output, context);
|
|
1246
1247
|
}
|
|
1247
|
-
const data = await
|
|
1248
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1248
1249
|
let contents = {};
|
|
1249
1250
|
contents = (0, import_smithy_client._json)(data);
|
|
1250
1251
|
const response = {
|
|
@@ -1257,7 +1258,7 @@ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1257
1258
|
if (output.statusCode >= 300) {
|
|
1258
1259
|
return de_CommandError(output, context);
|
|
1259
1260
|
}
|
|
1260
|
-
const data = await
|
|
1261
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1261
1262
|
let contents = {};
|
|
1262
1263
|
contents = (0, import_smithy_client._json)(data);
|
|
1263
1264
|
const response = {
|
|
@@ -1270,7 +1271,7 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1270
1271
|
if (output.statusCode >= 300) {
|
|
1271
1272
|
return de_CommandError(output, context);
|
|
1272
1273
|
}
|
|
1273
|
-
const data = await
|
|
1274
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1274
1275
|
let contents = {};
|
|
1275
1276
|
contents = de_UpdateRuleGroupResponse(data, context);
|
|
1276
1277
|
const response = {
|
|
@@ -1283,7 +1284,7 @@ var de_UpdateSubnetChangeProtectionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1283
1284
|
if (output.statusCode >= 300) {
|
|
1284
1285
|
return de_CommandError(output, context);
|
|
1285
1286
|
}
|
|
1286
|
-
const data = await
|
|
1287
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1287
1288
|
let contents = {};
|
|
1288
1289
|
contents = (0, import_smithy_client._json)(data);
|
|
1289
1290
|
const response = {
|
|
@@ -1296,7 +1297,7 @@ var de_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1296
1297
|
if (output.statusCode >= 300) {
|
|
1297
1298
|
return de_CommandError(output, context);
|
|
1298
1299
|
}
|
|
1299
|
-
const data = await
|
|
1300
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1300
1301
|
let contents = {};
|
|
1301
1302
|
contents = de_UpdateTLSInspectionConfigurationResponse(data, context);
|
|
1302
1303
|
const response = {
|
|
@@ -1308,9 +1309,9 @@ var de_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1308
1309
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
1310
|
const parsedOutput = {
|
|
1310
1311
|
...output,
|
|
1311
|
-
body: await
|
|
1312
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1312
1313
|
};
|
|
1313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1314
1315
|
switch (errorCode) {
|
|
1315
1316
|
case "InternalServerError":
|
|
1316
1317
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
@@ -1633,7 +1634,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1633
1634
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1634
1635
|
cfId: output.headers["x-amz-cf-id"]
|
|
1635
1636
|
}), "deserializeMetadata");
|
|
1636
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1637
1637
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(NetworkFirewallServiceException);
|
|
1638
1638
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1639
1639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1660,46 +1660,6 @@ function sharedHeaders(operation) {
|
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
1662
|
__name(sharedHeaders, "sharedHeaders");
|
|
1663
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1664
|
-
if (encoded.length) {
|
|
1665
|
-
return JSON.parse(encoded);
|
|
1666
|
-
}
|
|
1667
|
-
return {};
|
|
1668
|
-
}), "parseBody");
|
|
1669
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1670
|
-
const value = await parseBody(errorBody, context);
|
|
1671
|
-
value.message = value.message ?? value.Message;
|
|
1672
|
-
return value;
|
|
1673
|
-
}, "parseErrorBody");
|
|
1674
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1675
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1676
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1677
|
-
let cleanValue = rawValue;
|
|
1678
|
-
if (typeof cleanValue === "number") {
|
|
1679
|
-
cleanValue = cleanValue.toString();
|
|
1680
|
-
}
|
|
1681
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1682
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1683
|
-
}
|
|
1684
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1685
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1686
|
-
}
|
|
1687
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1688
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1689
|
-
}
|
|
1690
|
-
return cleanValue;
|
|
1691
|
-
}, "sanitizeErrorCode");
|
|
1692
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1693
|
-
if (headerKey !== void 0) {
|
|
1694
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1695
|
-
}
|
|
1696
|
-
if (data.code !== void 0) {
|
|
1697
|
-
return sanitizeErrorCode(data.code);
|
|
1698
|
-
}
|
|
1699
|
-
if (data["__type"] !== void 0) {
|
|
1700
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1701
|
-
}
|
|
1702
|
-
}, "loadRestJsonErrorCode");
|
|
1703
1663
|
|
|
1704
1664
|
// src/commands/AssociateFirewallPolicyCommand.ts
|
|
1705
1665
|
var _AssociateFirewallPolicyCommand = class _AssociateFirewallPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { InsufficientCapacityException, InternalServerError, InvalidOperationException, InvalidRequestException, InvalidResourcePolicyException, InvalidTokenException, LimitExceededException, LogDestinationPermissionException, ResourceNotFoundException, ResourceOwnerCheckException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
|
|
@@ -1040,43 +1041,3 @@ function sharedHeaders(operation) {
|
|
|
1040
1041
|
"x-amz-target": `NetworkFirewall_20201112.${operation}`,
|
|
1041
1042
|
};
|
|
1042
1043
|
}
|
|
1043
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1044
|
-
if (encoded.length) {
|
|
1045
|
-
return JSON.parse(encoded);
|
|
1046
|
-
}
|
|
1047
|
-
return {};
|
|
1048
|
-
});
|
|
1049
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1050
|
-
const value = await parseBody(errorBody, context);
|
|
1051
|
-
value.message = value.message ?? value.Message;
|
|
1052
|
-
return value;
|
|
1053
|
-
};
|
|
1054
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1055
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1056
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1057
|
-
let cleanValue = rawValue;
|
|
1058
|
-
if (typeof cleanValue === "number") {
|
|
1059
|
-
cleanValue = cleanValue.toString();
|
|
1060
|
-
}
|
|
1061
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1062
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1063
|
-
}
|
|
1064
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1065
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1066
|
-
}
|
|
1067
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1068
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1069
|
-
}
|
|
1070
|
-
return cleanValue;
|
|
1071
|
-
};
|
|
1072
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1073
|
-
if (headerKey !== undefined) {
|
|
1074
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1075
|
-
}
|
|
1076
|
-
if (data.code !== undefined) {
|
|
1077
|
-
return sanitizeErrorCode(data.code);
|
|
1078
|
-
}
|
|
1079
|
-
if (data["__type"] !== undefined) {
|
|
1080
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1081
|
-
}
|
|
1082
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-network-firewall",
|
|
3
3
|
"description": "AWS SDK for JavaScript Network Firewall Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-network-firewall",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|