@aws-sdk/client-network-firewall 3.300.0 → 3.303.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/README.md +40 -0
- package/dist-cjs/NetworkFirewall.js +75 -0
- package/dist-cjs/commands/CreateTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/DeleteTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/DescribeTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/ListTLSInspectionConfigurationsCommand.js +45 -0
- package/dist-cjs/commands/UpdateTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +114 -135
- package/dist-cjs/pagination/ListTLSInspectionConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +540 -2
- package/dist-es/NetworkFirewall.js +75 -0
- package/dist-es/commands/CreateTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/DeleteTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/DescribeTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/ListTLSInspectionConfigurationsCommand.js +41 -0
- package/dist-es/commands/UpdateTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +114 -135
- package/dist-es/pagination/ListTLSInspectionConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +528 -0
- package/dist-types/NetworkFirewall.d.ts +53 -0
- package/dist-types/NetworkFirewallClient.d.ts +7 -2
- package/dist-types/commands/AssociateFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/AssociateSubnetsCommand.d.ts +3 -3
- package/dist-types/commands/CreateFirewallCommand.d.ts +6 -6
- package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +20 -19
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +46 -46
- package/dist-types/commands/CreateTLSInspectionConfigurationCommand.d.ts +145 -0
- package/dist-types/commands/DeleteFirewallCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTLSInspectionConfigurationCommand.d.ts +94 -0
- package/dist-types/commands/DescribeFirewallCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleGroupMetadataCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTLSInspectionConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/DisassociateSubnetsCommand.d.ts +2 -2
- package/dist-types/commands/ListFirewallPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListFirewallsCommand.d.ts +2 -2
- package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListTLSInspectionConfigurationsCommand.d.ts +87 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFirewallDeleteProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFirewallDescriptionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFirewallPolicyChangeProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFirewallPolicyCommand.d.ts +18 -17
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +5 -5
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +44 -44
- package/dist-types/commands/UpdateSubnetChangeProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTLSInspectionConfigurationCommand.d.ts +144 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +558 -115
- package/dist-types/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +15 -0
- package/dist-types/ts3.4/NetworkFirewall.d.ts +91 -0
- package/dist-types/ts3.4/NetworkFirewallClient.d.ts +32 -2
- package/dist-types/ts3.4/commands/CreateTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTLSInspectionConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +244 -113
- package/dist-types/ts3.4/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
- package/package.json +34 -34
|
@@ -47,6 +47,15 @@ export const serializeAws_json1_0CreateRuleGroupCommand = async (input, context)
|
|
|
47
47
|
body = JSON.stringify(serializeAws_json1_0CreateRuleGroupRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
+
export const serializeAws_json1_0CreateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.0",
|
|
53
|
+
"x-amz-target": "NetworkFirewall_20201112.CreateTLSInspectionConfiguration",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_0CreateTLSInspectionConfigurationRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
50
59
|
export const serializeAws_json1_0DeleteFirewallCommand = async (input, context) => {
|
|
51
60
|
const headers = {
|
|
52
61
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -83,6 +92,15 @@ export const serializeAws_json1_0DeleteRuleGroupCommand = async (input, context)
|
|
|
83
92
|
body = JSON.stringify(serializeAws_json1_0DeleteRuleGroupRequest(input, context));
|
|
84
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
94
|
};
|
|
95
|
+
export const serializeAws_json1_0DeleteTLSInspectionConfigurationCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.0",
|
|
98
|
+
"x-amz-target": "NetworkFirewall_20201112.DeleteTLSInspectionConfiguration",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0DeleteTLSInspectionConfigurationRequest(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
86
104
|
export const serializeAws_json1_0DescribeFirewallCommand = async (input, context) => {
|
|
87
105
|
const headers = {
|
|
88
106
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -137,6 +155,15 @@ export const serializeAws_json1_0DescribeRuleGroupMetadataCommand = async (input
|
|
|
137
155
|
body = JSON.stringify(serializeAws_json1_0DescribeRuleGroupMetadataRequest(input, context));
|
|
138
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
157
|
};
|
|
158
|
+
export const serializeAws_json1_0DescribeTLSInspectionConfigurationCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.0",
|
|
161
|
+
"x-amz-target": "NetworkFirewall_20201112.DescribeTLSInspectionConfiguration",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_0DescribeTLSInspectionConfigurationRequest(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
140
167
|
export const serializeAws_json1_0DisassociateSubnetsCommand = async (input, context) => {
|
|
141
168
|
const headers = {
|
|
142
169
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -182,6 +209,15 @@ export const serializeAws_json1_0ListTagsForResourceCommand = async (input, cont
|
|
|
182
209
|
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
183
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
211
|
};
|
|
212
|
+
export const serializeAws_json1_0ListTLSInspectionConfigurationsCommand = async (input, context) => {
|
|
213
|
+
const headers = {
|
|
214
|
+
"content-type": "application/x-amz-json-1.0",
|
|
215
|
+
"x-amz-target": "NetworkFirewall_20201112.ListTLSInspectionConfigurations",
|
|
216
|
+
};
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify(serializeAws_json1_0ListTLSInspectionConfigurationsRequest(input, context));
|
|
219
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
|
+
};
|
|
185
221
|
export const serializeAws_json1_0PutResourcePolicyCommand = async (input, context) => {
|
|
186
222
|
const headers = {
|
|
187
223
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -281,6 +317,15 @@ export const serializeAws_json1_0UpdateSubnetChangeProtectionCommand = async (in
|
|
|
281
317
|
body = JSON.stringify(serializeAws_json1_0UpdateSubnetChangeProtectionRequest(input, context));
|
|
282
318
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
319
|
};
|
|
320
|
+
export const serializeAws_json1_0UpdateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
321
|
+
const headers = {
|
|
322
|
+
"content-type": "application/x-amz-json-1.0",
|
|
323
|
+
"x-amz-target": "NetworkFirewall_20201112.UpdateTLSInspectionConfiguration",
|
|
324
|
+
};
|
|
325
|
+
let body;
|
|
326
|
+
body = JSON.stringify(serializeAws_json1_0UpdateTLSInspectionConfigurationRequest(input, context));
|
|
327
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
|
+
};
|
|
284
329
|
export const deserializeAws_json1_0AssociateFirewallPolicyCommand = async (output, context) => {
|
|
285
330
|
if (output.statusCode >= 300) {
|
|
286
331
|
return deserializeAws_json1_0AssociateFirewallPolicyCommandError(output, context);
|
|
@@ -518,6 +563,45 @@ const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context
|
|
|
518
563
|
});
|
|
519
564
|
}
|
|
520
565
|
};
|
|
566
|
+
export const deserializeAws_json1_0CreateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
567
|
+
if (output.statusCode >= 300) {
|
|
568
|
+
return deserializeAws_json1_0CreateTLSInspectionConfigurationCommandError(output, context);
|
|
569
|
+
}
|
|
570
|
+
const data = await parseBody(output.body, context);
|
|
571
|
+
let contents = {};
|
|
572
|
+
contents = deserializeAws_json1_0CreateTLSInspectionConfigurationResponse(data, context);
|
|
573
|
+
const response = {
|
|
574
|
+
$metadata: deserializeMetadata(output),
|
|
575
|
+
...contents,
|
|
576
|
+
};
|
|
577
|
+
return Promise.resolve(response);
|
|
578
|
+
};
|
|
579
|
+
const deserializeAws_json1_0CreateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
580
|
+
const parsedOutput = {
|
|
581
|
+
...output,
|
|
582
|
+
body: await parseErrorBody(output.body, context),
|
|
583
|
+
};
|
|
584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
+
switch (errorCode) {
|
|
586
|
+
case "InternalServerError":
|
|
587
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
588
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
589
|
+
case "InvalidRequestException":
|
|
590
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
591
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
592
|
+
case "ThrottlingException":
|
|
593
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
594
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
595
|
+
default:
|
|
596
|
+
const parsedBody = parsedOutput.body;
|
|
597
|
+
throwDefaultError({
|
|
598
|
+
output,
|
|
599
|
+
parsedBody,
|
|
600
|
+
exceptionCtor: __BaseException,
|
|
601
|
+
errorCode,
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
};
|
|
521
605
|
export const deserializeAws_json1_0DeleteFirewallCommand = async (output, context) => {
|
|
522
606
|
if (output.statusCode >= 300) {
|
|
523
607
|
return deserializeAws_json1_0DeleteFirewallCommandError(output, context);
|
|
@@ -707,6 +791,51 @@ const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context
|
|
|
707
791
|
});
|
|
708
792
|
}
|
|
709
793
|
};
|
|
794
|
+
export const deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand = async (output, context) => {
|
|
795
|
+
if (output.statusCode >= 300) {
|
|
796
|
+
return deserializeAws_json1_0DeleteTLSInspectionConfigurationCommandError(output, context);
|
|
797
|
+
}
|
|
798
|
+
const data = await parseBody(output.body, context);
|
|
799
|
+
let contents = {};
|
|
800
|
+
contents = deserializeAws_json1_0DeleteTLSInspectionConfigurationResponse(data, context);
|
|
801
|
+
const response = {
|
|
802
|
+
$metadata: deserializeMetadata(output),
|
|
803
|
+
...contents,
|
|
804
|
+
};
|
|
805
|
+
return Promise.resolve(response);
|
|
806
|
+
};
|
|
807
|
+
const deserializeAws_json1_0DeleteTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
808
|
+
const parsedOutput = {
|
|
809
|
+
...output,
|
|
810
|
+
body: await parseErrorBody(output.body, context),
|
|
811
|
+
};
|
|
812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
+
switch (errorCode) {
|
|
814
|
+
case "InternalServerError":
|
|
815
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
816
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
817
|
+
case "InvalidOperationException":
|
|
818
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
819
|
+
throw await deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "InvalidRequestException":
|
|
821
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
822
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
823
|
+
case "ResourceNotFoundException":
|
|
824
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
825
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
826
|
+
case "ThrottlingException":
|
|
827
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
828
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
829
|
+
default:
|
|
830
|
+
const parsedBody = parsedOutput.body;
|
|
831
|
+
throwDefaultError({
|
|
832
|
+
output,
|
|
833
|
+
parsedBody,
|
|
834
|
+
exceptionCtor: __BaseException,
|
|
835
|
+
errorCode,
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
};
|
|
710
839
|
export const deserializeAws_json1_0DescribeFirewallCommand = async (output, context) => {
|
|
711
840
|
if (output.statusCode >= 300) {
|
|
712
841
|
return deserializeAws_json1_0DescribeFirewallCommandError(output, context);
|
|
@@ -959,6 +1088,48 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (outpu
|
|
|
959
1088
|
});
|
|
960
1089
|
}
|
|
961
1090
|
};
|
|
1091
|
+
export const deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand = async (output, context) => {
|
|
1092
|
+
if (output.statusCode >= 300) {
|
|
1093
|
+
return deserializeAws_json1_0DescribeTLSInspectionConfigurationCommandError(output, context);
|
|
1094
|
+
}
|
|
1095
|
+
const data = await parseBody(output.body, context);
|
|
1096
|
+
let contents = {};
|
|
1097
|
+
contents = deserializeAws_json1_0DescribeTLSInspectionConfigurationResponse(data, context);
|
|
1098
|
+
const response = {
|
|
1099
|
+
$metadata: deserializeMetadata(output),
|
|
1100
|
+
...contents,
|
|
1101
|
+
};
|
|
1102
|
+
return Promise.resolve(response);
|
|
1103
|
+
};
|
|
1104
|
+
const deserializeAws_json1_0DescribeTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
1105
|
+
const parsedOutput = {
|
|
1106
|
+
...output,
|
|
1107
|
+
body: await parseErrorBody(output.body, context),
|
|
1108
|
+
};
|
|
1109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
switch (errorCode) {
|
|
1111
|
+
case "InternalServerError":
|
|
1112
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1113
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1114
|
+
case "InvalidRequestException":
|
|
1115
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1116
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1117
|
+
case "ResourceNotFoundException":
|
|
1118
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1119
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1120
|
+
case "ThrottlingException":
|
|
1121
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1122
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1123
|
+
default:
|
|
1124
|
+
const parsedBody = parsedOutput.body;
|
|
1125
|
+
throwDefaultError({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
exceptionCtor: __BaseException,
|
|
1129
|
+
errorCode,
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
962
1133
|
export const deserializeAws_json1_0DisassociateSubnetsCommand = async (output, context) => {
|
|
963
1134
|
if (output.statusCode >= 300) {
|
|
964
1135
|
return deserializeAws_json1_0DisassociateSubnetsCommandError(output, context);
|
|
@@ -1166,6 +1337,45 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1166
1337
|
});
|
|
1167
1338
|
}
|
|
1168
1339
|
};
|
|
1340
|
+
export const deserializeAws_json1_0ListTLSInspectionConfigurationsCommand = async (output, context) => {
|
|
1341
|
+
if (output.statusCode >= 300) {
|
|
1342
|
+
return deserializeAws_json1_0ListTLSInspectionConfigurationsCommandError(output, context);
|
|
1343
|
+
}
|
|
1344
|
+
const data = await parseBody(output.body, context);
|
|
1345
|
+
let contents = {};
|
|
1346
|
+
contents = deserializeAws_json1_0ListTLSInspectionConfigurationsResponse(data, context);
|
|
1347
|
+
const response = {
|
|
1348
|
+
$metadata: deserializeMetadata(output),
|
|
1349
|
+
...contents,
|
|
1350
|
+
};
|
|
1351
|
+
return Promise.resolve(response);
|
|
1352
|
+
};
|
|
1353
|
+
const deserializeAws_json1_0ListTLSInspectionConfigurationsCommandError = async (output, context) => {
|
|
1354
|
+
const parsedOutput = {
|
|
1355
|
+
...output,
|
|
1356
|
+
body: await parseErrorBody(output.body, context),
|
|
1357
|
+
};
|
|
1358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
+
switch (errorCode) {
|
|
1360
|
+
case "InternalServerError":
|
|
1361
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1362
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1363
|
+
case "InvalidRequestException":
|
|
1364
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1365
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1366
|
+
case "ThrottlingException":
|
|
1367
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1368
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1369
|
+
default:
|
|
1370
|
+
const parsedBody = parsedOutput.body;
|
|
1371
|
+
throwDefaultError({
|
|
1372
|
+
output,
|
|
1373
|
+
parsedBody,
|
|
1374
|
+
exceptionCtor: __BaseException,
|
|
1375
|
+
errorCode,
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1169
1379
|
export const deserializeAws_json1_0PutResourcePolicyCommand = async (output, context) => {
|
|
1170
1380
|
if (output.statusCode >= 300) {
|
|
1171
1381
|
return deserializeAws_json1_0PutResourcePolicyCommandError(output, context);
|
|
@@ -1670,6 +1880,51 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (ou
|
|
|
1670
1880
|
});
|
|
1671
1881
|
}
|
|
1672
1882
|
};
|
|
1883
|
+
export const deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
1884
|
+
if (output.statusCode >= 300) {
|
|
1885
|
+
return deserializeAws_json1_0UpdateTLSInspectionConfigurationCommandError(output, context);
|
|
1886
|
+
}
|
|
1887
|
+
const data = await parseBody(output.body, context);
|
|
1888
|
+
let contents = {};
|
|
1889
|
+
contents = deserializeAws_json1_0UpdateTLSInspectionConfigurationResponse(data, context);
|
|
1890
|
+
const response = {
|
|
1891
|
+
$metadata: deserializeMetadata(output),
|
|
1892
|
+
...contents,
|
|
1893
|
+
};
|
|
1894
|
+
return Promise.resolve(response);
|
|
1895
|
+
};
|
|
1896
|
+
const deserializeAws_json1_0UpdateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
1897
|
+
const parsedOutput = {
|
|
1898
|
+
...output,
|
|
1899
|
+
body: await parseErrorBody(output.body, context),
|
|
1900
|
+
};
|
|
1901
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
+
switch (errorCode) {
|
|
1903
|
+
case "InternalServerError":
|
|
1904
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1905
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1906
|
+
case "InvalidRequestException":
|
|
1907
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1908
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1909
|
+
case "InvalidTokenException":
|
|
1910
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1911
|
+
throw await deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context);
|
|
1912
|
+
case "ResourceNotFoundException":
|
|
1913
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1914
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1915
|
+
case "ThrottlingException":
|
|
1916
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1917
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1918
|
+
default:
|
|
1919
|
+
const parsedBody = parsedOutput.body;
|
|
1920
|
+
throwDefaultError({
|
|
1921
|
+
output,
|
|
1922
|
+
parsedBody,
|
|
1923
|
+
exceptionCtor: __BaseException,
|
|
1924
|
+
errorCode,
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
};
|
|
1673
1928
|
const deserializeAws_json1_0InsufficientCapacityExceptionResponse = async (parsedOutput, context) => {
|
|
1674
1929
|
const body = parsedOutput.body;
|
|
1675
1930
|
const deserialized = deserializeAws_json1_0InsufficientCapacityException(body, context);
|
|
@@ -1874,6 +2129,21 @@ const serializeAws_json1_0CreateRuleGroupRequest = (input, context) => {
|
|
|
1874
2129
|
...(input.Type != null && { Type: input.Type }),
|
|
1875
2130
|
};
|
|
1876
2131
|
};
|
|
2132
|
+
const serializeAws_json1_0CreateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2133
|
+
return {
|
|
2134
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2135
|
+
...(input.EncryptionConfiguration != null && {
|
|
2136
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2137
|
+
}),
|
|
2138
|
+
...(input.TLSInspectionConfiguration != null && {
|
|
2139
|
+
TLSInspectionConfiguration: serializeAws_json1_0TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2140
|
+
}),
|
|
2141
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2142
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2143
|
+
}),
|
|
2144
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
1877
2147
|
const serializeAws_json1_0CustomAction = (input, context) => {
|
|
1878
2148
|
return {
|
|
1879
2149
|
...(input.ActionDefinition != null && {
|
|
@@ -1913,6 +2183,16 @@ const serializeAws_json1_0DeleteRuleGroupRequest = (input, context) => {
|
|
|
1913
2183
|
...(input.Type != null && { Type: input.Type }),
|
|
1914
2184
|
};
|
|
1915
2185
|
};
|
|
2186
|
+
const serializeAws_json1_0DeleteTLSInspectionConfigurationRequest = (input, context) => {
|
|
2187
|
+
return {
|
|
2188
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2189
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2190
|
+
}),
|
|
2191
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2192
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2193
|
+
}),
|
|
2194
|
+
};
|
|
2195
|
+
};
|
|
1916
2196
|
const serializeAws_json1_0DescribeFirewallPolicyRequest = (input, context) => {
|
|
1917
2197
|
return {
|
|
1918
2198
|
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
@@ -1950,6 +2230,16 @@ const serializeAws_json1_0DescribeRuleGroupRequest = (input, context) => {
|
|
|
1950
2230
|
...(input.Type != null && { Type: input.Type }),
|
|
1951
2231
|
};
|
|
1952
2232
|
};
|
|
2233
|
+
const serializeAws_json1_0DescribeTLSInspectionConfigurationRequest = (input, context) => {
|
|
2234
|
+
return {
|
|
2235
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2236
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2237
|
+
}),
|
|
2238
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2239
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2240
|
+
}),
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
1953
2243
|
const serializeAws_json1_0Dimension = (input, context) => {
|
|
1954
2244
|
return {
|
|
1955
2245
|
...(input.Value != null && { Value: input.Value }),
|
|
@@ -1999,6 +2289,9 @@ const serializeAws_json1_0FirewallPolicy = (input, context) => {
|
|
|
1999
2289
|
...(input.StatelessRuleGroupReferences != null && {
|
|
2000
2290
|
StatelessRuleGroupReferences: serializeAws_json1_0StatelessRuleGroupReferences(input.StatelessRuleGroupReferences, context),
|
|
2001
2291
|
}),
|
|
2292
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2293
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2294
|
+
}),
|
|
2002
2295
|
};
|
|
2003
2296
|
};
|
|
2004
2297
|
const serializeAws_json1_0Flags = (input, context) => {
|
|
@@ -2077,6 +2370,12 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
|
2077
2370
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2078
2371
|
};
|
|
2079
2372
|
};
|
|
2373
|
+
const serializeAws_json1_0ListTLSInspectionConfigurationsRequest = (input, context) => {
|
|
2374
|
+
return {
|
|
2375
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2376
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2377
|
+
};
|
|
2378
|
+
};
|
|
2080
2379
|
const serializeAws_json1_0LogDestinationConfig = (input, context) => {
|
|
2081
2380
|
return {
|
|
2082
2381
|
...(input.LogDestination != null && {
|
|
@@ -2244,6 +2543,51 @@ const serializeAws_json1_0RuleVariables = (input, context) => {
|
|
|
2244
2543
|
...(input.PortSets != null && { PortSets: serializeAws_json1_0PortSets(input.PortSets, context) }),
|
|
2245
2544
|
};
|
|
2246
2545
|
};
|
|
2546
|
+
const serializeAws_json1_0ServerCertificate = (input, context) => {
|
|
2547
|
+
return {
|
|
2548
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
const serializeAws_json1_0ServerCertificateConfiguration = (input, context) => {
|
|
2552
|
+
return {
|
|
2553
|
+
...(input.Scopes != null && { Scopes: serializeAws_json1_0ServerCertificateScopes(input.Scopes, context) }),
|
|
2554
|
+
...(input.ServerCertificates != null && {
|
|
2555
|
+
ServerCertificates: serializeAws_json1_0ServerCertificates(input.ServerCertificates, context),
|
|
2556
|
+
}),
|
|
2557
|
+
};
|
|
2558
|
+
};
|
|
2559
|
+
const serializeAws_json1_0ServerCertificateConfigurations = (input, context) => {
|
|
2560
|
+
return input
|
|
2561
|
+
.filter((e) => e != null)
|
|
2562
|
+
.map((entry) => {
|
|
2563
|
+
return serializeAws_json1_0ServerCertificateConfiguration(entry, context);
|
|
2564
|
+
});
|
|
2565
|
+
};
|
|
2566
|
+
const serializeAws_json1_0ServerCertificates = (input, context) => {
|
|
2567
|
+
return input
|
|
2568
|
+
.filter((e) => e != null)
|
|
2569
|
+
.map((entry) => {
|
|
2570
|
+
return serializeAws_json1_0ServerCertificate(entry, context);
|
|
2571
|
+
});
|
|
2572
|
+
};
|
|
2573
|
+
const serializeAws_json1_0ServerCertificateScope = (input, context) => {
|
|
2574
|
+
return {
|
|
2575
|
+
...(input.DestinationPorts != null && {
|
|
2576
|
+
DestinationPorts: serializeAws_json1_0PortRanges(input.DestinationPorts, context),
|
|
2577
|
+
}),
|
|
2578
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_0Addresses(input.Destinations, context) }),
|
|
2579
|
+
...(input.Protocols != null && { Protocols: serializeAws_json1_0ProtocolNumbers(input.Protocols, context) }),
|
|
2580
|
+
...(input.SourcePorts != null && { SourcePorts: serializeAws_json1_0PortRanges(input.SourcePorts, context) }),
|
|
2581
|
+
...(input.Sources != null && { Sources: serializeAws_json1_0Addresses(input.Sources, context) }),
|
|
2582
|
+
};
|
|
2583
|
+
};
|
|
2584
|
+
const serializeAws_json1_0ServerCertificateScopes = (input, context) => {
|
|
2585
|
+
return input
|
|
2586
|
+
.filter((e) => e != null)
|
|
2587
|
+
.map((entry) => {
|
|
2588
|
+
return serializeAws_json1_0ServerCertificateScope(entry, context);
|
|
2589
|
+
});
|
|
2590
|
+
};
|
|
2247
2591
|
const serializeAws_json1_0Settings = (input, context) => {
|
|
2248
2592
|
return input
|
|
2249
2593
|
.filter((e) => e != null)
|
|
@@ -2412,6 +2756,13 @@ const serializeAws_json1_0TCPFlags = (input, context) => {
|
|
|
2412
2756
|
return serializeAws_json1_0TCPFlagField(entry, context);
|
|
2413
2757
|
});
|
|
2414
2758
|
};
|
|
2759
|
+
const serializeAws_json1_0TLSInspectionConfiguration = (input, context) => {
|
|
2760
|
+
return {
|
|
2761
|
+
...(input.ServerCertificateConfigurations != null && {
|
|
2762
|
+
ServerCertificateConfigurations: serializeAws_json1_0ServerCertificateConfigurations(input.ServerCertificateConfigurations, context),
|
|
2763
|
+
}),
|
|
2764
|
+
};
|
|
2765
|
+
};
|
|
2415
2766
|
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
2416
2767
|
return {
|
|
2417
2768
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -2504,6 +2855,24 @@ const serializeAws_json1_0UpdateSubnetChangeProtectionRequest = (input, context)
|
|
|
2504
2855
|
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2505
2856
|
};
|
|
2506
2857
|
};
|
|
2858
|
+
const serializeAws_json1_0UpdateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2859
|
+
return {
|
|
2860
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2861
|
+
...(input.EncryptionConfiguration != null && {
|
|
2862
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2863
|
+
}),
|
|
2864
|
+
...(input.TLSInspectionConfiguration != null && {
|
|
2865
|
+
TLSInspectionConfiguration: serializeAws_json1_0TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2866
|
+
}),
|
|
2867
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2868
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2869
|
+
}),
|
|
2870
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2871
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2872
|
+
}),
|
|
2873
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2874
|
+
};
|
|
2875
|
+
};
|
|
2507
2876
|
const serializeAws_json1_0VariableDefinitionList = (input, context) => {
|
|
2508
2877
|
return input
|
|
2509
2878
|
.filter((e) => e != null)
|
|
@@ -2570,6 +2939,17 @@ const deserializeAws_json1_0CapacityUsageSummary = (output, context) => {
|
|
|
2570
2939
|
CIDRs: output.CIDRs != null ? deserializeAws_json1_0CIDRSummary(output.CIDRs, context) : undefined,
|
|
2571
2940
|
};
|
|
2572
2941
|
};
|
|
2942
|
+
const deserializeAws_json1_0Certificates = (output, context) => {
|
|
2943
|
+
const retVal = (output || [])
|
|
2944
|
+
.filter((e) => e != null)
|
|
2945
|
+
.map((entry) => {
|
|
2946
|
+
if (entry === null) {
|
|
2947
|
+
return null;
|
|
2948
|
+
}
|
|
2949
|
+
return deserializeAws_json1_0TlsCertificateData(entry, context);
|
|
2950
|
+
});
|
|
2951
|
+
return retVal;
|
|
2952
|
+
};
|
|
2573
2953
|
const deserializeAws_json1_0CIDRSummary = (output, context) => {
|
|
2574
2954
|
return {
|
|
2575
2955
|
AvailableCIDRCount: __expectInt32(output.AvailableCIDRCount),
|
|
@@ -2601,6 +2981,14 @@ const deserializeAws_json1_0CreateRuleGroupResponse = (output, context) => {
|
|
|
2601
2981
|
UpdateToken: __expectString(output.UpdateToken),
|
|
2602
2982
|
};
|
|
2603
2983
|
};
|
|
2984
|
+
const deserializeAws_json1_0CreateTLSInspectionConfigurationResponse = (output, context) => {
|
|
2985
|
+
return {
|
|
2986
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
2987
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
2988
|
+
: undefined,
|
|
2989
|
+
UpdateToken: __expectString(output.UpdateToken),
|
|
2990
|
+
};
|
|
2991
|
+
};
|
|
2604
2992
|
const deserializeAws_json1_0CustomAction = (output, context) => {
|
|
2605
2993
|
return {
|
|
2606
2994
|
ActionDefinition: output.ActionDefinition != null
|
|
@@ -2643,6 +3031,13 @@ const deserializeAws_json1_0DeleteRuleGroupResponse = (output, context) => {
|
|
|
2643
3031
|
: undefined,
|
|
2644
3032
|
};
|
|
2645
3033
|
};
|
|
3034
|
+
const deserializeAws_json1_0DeleteTLSInspectionConfigurationResponse = (output, context) => {
|
|
3035
|
+
return {
|
|
3036
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
3037
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
3038
|
+
: undefined,
|
|
3039
|
+
};
|
|
3040
|
+
};
|
|
2646
3041
|
const deserializeAws_json1_0DescribeFirewallPolicyResponse = (output, context) => {
|
|
2647
3042
|
return {
|
|
2648
3043
|
FirewallPolicy: output.FirewallPolicy != null ? deserializeAws_json1_0FirewallPolicy(output.FirewallPolicy, context) : undefined,
|
|
@@ -2696,6 +3091,17 @@ const deserializeAws_json1_0DescribeRuleGroupResponse = (output, context) => {
|
|
|
2696
3091
|
UpdateToken: __expectString(output.UpdateToken),
|
|
2697
3092
|
};
|
|
2698
3093
|
};
|
|
3094
|
+
const deserializeAws_json1_0DescribeTLSInspectionConfigurationResponse = (output, context) => {
|
|
3095
|
+
return {
|
|
3096
|
+
TLSInspectionConfiguration: output.TLSInspectionConfiguration != null
|
|
3097
|
+
? deserializeAws_json1_0TLSInspectionConfiguration(output.TLSInspectionConfiguration, context)
|
|
3098
|
+
: undefined,
|
|
3099
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
3100
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
3101
|
+
: undefined,
|
|
3102
|
+
UpdateToken: __expectString(output.UpdateToken),
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
2699
3105
|
const deserializeAws_json1_0Dimension = (output, context) => {
|
|
2700
3106
|
return {
|
|
2701
3107
|
Value: __expectString(output.Value),
|
|
@@ -2784,6 +3190,7 @@ const deserializeAws_json1_0FirewallPolicy = (output, context) => {
|
|
|
2784
3190
|
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences != null
|
|
2785
3191
|
? deserializeAws_json1_0StatelessRuleGroupReferences(output.StatelessRuleGroupReferences, context)
|
|
2786
3192
|
: undefined,
|
|
3193
|
+
TLSInspectionConfigurationArn: __expectString(output.TLSInspectionConfigurationArn),
|
|
2787
3194
|
};
|
|
2788
3195
|
};
|
|
2789
3196
|
const deserializeAws_json1_0FirewallPolicyMetadata = (output, context) => {
|
|
@@ -2956,6 +3363,14 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
2956
3363
|
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
2957
3364
|
};
|
|
2958
3365
|
};
|
|
3366
|
+
const deserializeAws_json1_0ListTLSInspectionConfigurationsResponse = (output, context) => {
|
|
3367
|
+
return {
|
|
3368
|
+
NextToken: __expectString(output.NextToken),
|
|
3369
|
+
TLSInspectionConfigurations: output.TLSInspectionConfigurations != null
|
|
3370
|
+
? deserializeAws_json1_0TLSInspectionConfigurations(output.TLSInspectionConfigurations, context)
|
|
3371
|
+
: undefined,
|
|
3372
|
+
};
|
|
3373
|
+
};
|
|
2959
3374
|
const deserializeAws_json1_0LogDestinationConfig = (output, context) => {
|
|
2960
3375
|
return {
|
|
2961
3376
|
LogDestination: output.LogDestination != null
|
|
@@ -3190,6 +3605,61 @@ const deserializeAws_json1_0RuleVariables = (output, context) => {
|
|
|
3190
3605
|
PortSets: output.PortSets != null ? deserializeAws_json1_0PortSets(output.PortSets, context) : undefined,
|
|
3191
3606
|
};
|
|
3192
3607
|
};
|
|
3608
|
+
const deserializeAws_json1_0ServerCertificate = (output, context) => {
|
|
3609
|
+
return {
|
|
3610
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
3611
|
+
};
|
|
3612
|
+
};
|
|
3613
|
+
const deserializeAws_json1_0ServerCertificateConfiguration = (output, context) => {
|
|
3614
|
+
return {
|
|
3615
|
+
Scopes: output.Scopes != null ? deserializeAws_json1_0ServerCertificateScopes(output.Scopes, context) : undefined,
|
|
3616
|
+
ServerCertificates: output.ServerCertificates != null
|
|
3617
|
+
? deserializeAws_json1_0ServerCertificates(output.ServerCertificates, context)
|
|
3618
|
+
: undefined,
|
|
3619
|
+
};
|
|
3620
|
+
};
|
|
3621
|
+
const deserializeAws_json1_0ServerCertificateConfigurations = (output, context) => {
|
|
3622
|
+
const retVal = (output || [])
|
|
3623
|
+
.filter((e) => e != null)
|
|
3624
|
+
.map((entry) => {
|
|
3625
|
+
if (entry === null) {
|
|
3626
|
+
return null;
|
|
3627
|
+
}
|
|
3628
|
+
return deserializeAws_json1_0ServerCertificateConfiguration(entry, context);
|
|
3629
|
+
});
|
|
3630
|
+
return retVal;
|
|
3631
|
+
};
|
|
3632
|
+
const deserializeAws_json1_0ServerCertificates = (output, context) => {
|
|
3633
|
+
const retVal = (output || [])
|
|
3634
|
+
.filter((e) => e != null)
|
|
3635
|
+
.map((entry) => {
|
|
3636
|
+
if (entry === null) {
|
|
3637
|
+
return null;
|
|
3638
|
+
}
|
|
3639
|
+
return deserializeAws_json1_0ServerCertificate(entry, context);
|
|
3640
|
+
});
|
|
3641
|
+
return retVal;
|
|
3642
|
+
};
|
|
3643
|
+
const deserializeAws_json1_0ServerCertificateScope = (output, context) => {
|
|
3644
|
+
return {
|
|
3645
|
+
DestinationPorts: output.DestinationPorts != null ? deserializeAws_json1_0PortRanges(output.DestinationPorts, context) : undefined,
|
|
3646
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_0Addresses(output.Destinations, context) : undefined,
|
|
3647
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_0ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3648
|
+
SourcePorts: output.SourcePorts != null ? deserializeAws_json1_0PortRanges(output.SourcePorts, context) : undefined,
|
|
3649
|
+
Sources: output.Sources != null ? deserializeAws_json1_0Addresses(output.Sources, context) : undefined,
|
|
3650
|
+
};
|
|
3651
|
+
};
|
|
3652
|
+
const deserializeAws_json1_0ServerCertificateScopes = (output, context) => {
|
|
3653
|
+
const retVal = (output || [])
|
|
3654
|
+
.filter((e) => e != null)
|
|
3655
|
+
.map((entry) => {
|
|
3656
|
+
if (entry === null) {
|
|
3657
|
+
return null;
|
|
3658
|
+
}
|
|
3659
|
+
return deserializeAws_json1_0ServerCertificateScope(entry, context);
|
|
3660
|
+
});
|
|
3661
|
+
return retVal;
|
|
3662
|
+
};
|
|
3193
3663
|
const deserializeAws_json1_0Settings = (output, context) => {
|
|
3194
3664
|
const retVal = (output || [])
|
|
3195
3665
|
.filter((e) => e != null)
|
|
@@ -3415,6 +3885,56 @@ const deserializeAws_json1_0ThrottlingException = (output, context) => {
|
|
|
3415
3885
|
Message: __expectString(output.Message),
|
|
3416
3886
|
};
|
|
3417
3887
|
};
|
|
3888
|
+
const deserializeAws_json1_0TlsCertificateData = (output, context) => {
|
|
3889
|
+
return {
|
|
3890
|
+
CertificateArn: __expectString(output.CertificateArn),
|
|
3891
|
+
CertificateSerial: __expectString(output.CertificateSerial),
|
|
3892
|
+
Status: __expectString(output.Status),
|
|
3893
|
+
StatusMessage: __expectString(output.StatusMessage),
|
|
3894
|
+
};
|
|
3895
|
+
};
|
|
3896
|
+
const deserializeAws_json1_0TLSInspectionConfiguration = (output, context) => {
|
|
3897
|
+
return {
|
|
3898
|
+
ServerCertificateConfigurations: output.ServerCertificateConfigurations != null
|
|
3899
|
+
? deserializeAws_json1_0ServerCertificateConfigurations(output.ServerCertificateConfigurations, context)
|
|
3900
|
+
: undefined,
|
|
3901
|
+
};
|
|
3902
|
+
};
|
|
3903
|
+
const deserializeAws_json1_0TLSInspectionConfigurationMetadata = (output, context) => {
|
|
3904
|
+
return {
|
|
3905
|
+
Arn: __expectString(output.Arn),
|
|
3906
|
+
Name: __expectString(output.Name),
|
|
3907
|
+
};
|
|
3908
|
+
};
|
|
3909
|
+
const deserializeAws_json1_0TLSInspectionConfigurationResponse = (output, context) => {
|
|
3910
|
+
return {
|
|
3911
|
+
Certificates: output.Certificates != null ? deserializeAws_json1_0Certificates(output.Certificates, context) : undefined,
|
|
3912
|
+
Description: __expectString(output.Description),
|
|
3913
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3914
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3915
|
+
: undefined,
|
|
3916
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3917
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3918
|
+
: undefined,
|
|
3919
|
+
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
3920
|
+
TLSInspectionConfigurationArn: __expectString(output.TLSInspectionConfigurationArn),
|
|
3921
|
+
TLSInspectionConfigurationId: __expectString(output.TLSInspectionConfigurationId),
|
|
3922
|
+
TLSInspectionConfigurationName: __expectString(output.TLSInspectionConfigurationName),
|
|
3923
|
+
TLSInspectionConfigurationStatus: __expectString(output.TLSInspectionConfigurationStatus),
|
|
3924
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3925
|
+
};
|
|
3926
|
+
};
|
|
3927
|
+
const deserializeAws_json1_0TLSInspectionConfigurations = (output, context) => {
|
|
3928
|
+
const retVal = (output || [])
|
|
3929
|
+
.filter((e) => e != null)
|
|
3930
|
+
.map((entry) => {
|
|
3931
|
+
if (entry === null) {
|
|
3932
|
+
return null;
|
|
3933
|
+
}
|
|
3934
|
+
return deserializeAws_json1_0TLSInspectionConfigurationMetadata(entry, context);
|
|
3935
|
+
});
|
|
3936
|
+
return retVal;
|
|
3937
|
+
};
|
|
3418
3938
|
const deserializeAws_json1_0UnsupportedOperationException = (output, context) => {
|
|
3419
3939
|
return {
|
|
3420
3940
|
Message: __expectString(output.Message),
|
|
@@ -3490,6 +4010,14 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionResponse = (output, cont
|
|
|
3490
4010
|
UpdateToken: __expectString(output.UpdateToken),
|
|
3491
4011
|
};
|
|
3492
4012
|
};
|
|
4013
|
+
const deserializeAws_json1_0UpdateTLSInspectionConfigurationResponse = (output, context) => {
|
|
4014
|
+
return {
|
|
4015
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
4016
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
4017
|
+
: undefined,
|
|
4018
|
+
UpdateToken: __expectString(output.UpdateToken),
|
|
4019
|
+
};
|
|
4020
|
+
};
|
|
3493
4021
|
const deserializeAws_json1_0VariableDefinitionList = (output, context) => {
|
|
3494
4022
|
const retVal = (output || [])
|
|
3495
4023
|
.filter((e) => e != null)
|