@aws-sdk/client-network-firewall 3.301.0 → 3.306.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/CreateFirewallPolicyCommand.d.ts +1 -0
- package/dist-types/commands/CreateTLSInspectionConfigurationCommand.d.ts +145 -0
- package/dist-types/commands/DeleteTLSInspectionConfigurationCommand.d.ts +94 -0
- package/dist-types/commands/DescribeTLSInspectionConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/ListTLSInspectionConfigurationsCommand.d.ts +87 -0
- package/dist-types/commands/UpdateFirewallPolicyCommand.d.ts +1 -0
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = exports.deserializeAws_json1_0UpdateRuleGroupCommand = exports.deserializeAws_json1_0UpdateLoggingConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyCommand = exports.deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallDescriptionCommand = exports.deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0PutResourcePolicyCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_0DescribeLoggingConfigurationCommand = exports.deserializeAws_json1_0DescribeFirewallPolicyCommand = exports.deserializeAws_json1_0DescribeFirewallCommand = exports.deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand = exports.deserializeAws_json1_0DeleteRuleGroupCommand = exports.deserializeAws_json1_0DeleteResourcePolicyCommand = exports.deserializeAws_json1_0DeleteFirewallPolicyCommand = exports.deserializeAws_json1_0DeleteFirewallCommand = exports.deserializeAws_json1_0CreateTLSInspectionConfigurationCommand = exports.deserializeAws_json1_0CreateRuleGroupCommand = exports.deserializeAws_json1_0CreateFirewallPolicyCommand = exports.deserializeAws_json1_0CreateFirewallCommand = exports.deserializeAws_json1_0AssociateSubnetsCommand = exports.deserializeAws_json1_0AssociateFirewallPolicyCommand = exports.serializeAws_json1_0UpdateTLSInspectionConfigurationCommand = exports.serializeAws_json1_0UpdateSubnetChangeProtectionCommand = exports.serializeAws_json1_0UpdateRuleGroupCommand = exports.serializeAws_json1_0UpdateLoggingConfigurationCommand = exports.serializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = exports.serializeAws_json1_0UpdateFirewallPolicyCommand = exports.serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = exports.serializeAws_json1_0UpdateFirewallDescriptionCommand = exports.serializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0PutResourcePolicyCommand = exports.serializeAws_json1_0ListTLSInspectionConfigurationsCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListRuleGroupsCommand = exports.serializeAws_json1_0ListFirewallsCommand = exports.serializeAws_json1_0ListFirewallPoliciesCommand = exports.serializeAws_json1_0DisassociateSubnetsCommand = exports.serializeAws_json1_0DescribeTLSInspectionConfigurationCommand = exports.serializeAws_json1_0DescribeRuleGroupMetadataCommand = exports.serializeAws_json1_0DescribeRuleGroupCommand = exports.serializeAws_json1_0DescribeResourcePolicyCommand = exports.serializeAws_json1_0DescribeLoggingConfigurationCommand = exports.serializeAws_json1_0DescribeFirewallPolicyCommand = exports.serializeAws_json1_0DescribeFirewallCommand = exports.serializeAws_json1_0DeleteTLSInspectionConfigurationCommand = exports.serializeAws_json1_0DeleteRuleGroupCommand = exports.serializeAws_json1_0DeleteResourcePolicyCommand = exports.serializeAws_json1_0DeleteFirewallPolicyCommand = exports.serializeAws_json1_0DeleteFirewallCommand = exports.serializeAws_json1_0CreateTLSInspectionConfigurationCommand = exports.serializeAws_json1_0CreateRuleGroupCommand = exports.serializeAws_json1_0CreateFirewallPolicyCommand = exports.serializeAws_json1_0CreateFirewallCommand = exports.serializeAws_json1_0AssociateSubnetsCommand = exports.serializeAws_json1_0AssociateFirewallPolicyCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand = exports.deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = exports.deserializeAws_json1_0UpdateRuleGroupCommand = exports.deserializeAws_json1_0UpdateLoggingConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyCommand = exports.deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallDescriptionCommand = exports.deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0PutResourcePolicyCommand = exports.deserializeAws_json1_0ListTLSInspectionConfigurationsCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListRuleGroupsCommand = exports.deserializeAws_json1_0ListFirewallsCommand = exports.deserializeAws_json1_0ListFirewallPoliciesCommand = exports.deserializeAws_json1_0DisassociateSubnetsCommand = exports.deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand = exports.deserializeAws_json1_0DescribeRuleGroupMetadataCommand = exports.deserializeAws_json1_0DescribeRuleGroupCommand = exports.deserializeAws_json1_0DescribeResourcePolicyCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -56,6 +56,16 @@ const serializeAws_json1_0CreateRuleGroupCommand = async (input, context) => {
|
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
58
|
exports.serializeAws_json1_0CreateRuleGroupCommand = serializeAws_json1_0CreateRuleGroupCommand;
|
|
59
|
+
const serializeAws_json1_0CreateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.0",
|
|
62
|
+
"x-amz-target": "NetworkFirewall_20201112.CreateTLSInspectionConfiguration",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_0CreateTLSInspectionConfigurationRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
exports.serializeAws_json1_0CreateTLSInspectionConfigurationCommand = serializeAws_json1_0CreateTLSInspectionConfigurationCommand;
|
|
59
69
|
const serializeAws_json1_0DeleteFirewallCommand = async (input, context) => {
|
|
60
70
|
const headers = {
|
|
61
71
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -96,6 +106,16 @@ const serializeAws_json1_0DeleteRuleGroupCommand = async (input, context) => {
|
|
|
96
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
107
|
};
|
|
98
108
|
exports.serializeAws_json1_0DeleteRuleGroupCommand = serializeAws_json1_0DeleteRuleGroupCommand;
|
|
109
|
+
const serializeAws_json1_0DeleteTLSInspectionConfigurationCommand = async (input, context) => {
|
|
110
|
+
const headers = {
|
|
111
|
+
"content-type": "application/x-amz-json-1.0",
|
|
112
|
+
"x-amz-target": "NetworkFirewall_20201112.DeleteTLSInspectionConfiguration",
|
|
113
|
+
};
|
|
114
|
+
let body;
|
|
115
|
+
body = JSON.stringify(serializeAws_json1_0DeleteTLSInspectionConfigurationRequest(input, context));
|
|
116
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
|
+
};
|
|
118
|
+
exports.serializeAws_json1_0DeleteTLSInspectionConfigurationCommand = serializeAws_json1_0DeleteTLSInspectionConfigurationCommand;
|
|
99
119
|
const serializeAws_json1_0DescribeFirewallCommand = async (input, context) => {
|
|
100
120
|
const headers = {
|
|
101
121
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -156,6 +176,16 @@ const serializeAws_json1_0DescribeRuleGroupMetadataCommand = async (input, conte
|
|
|
156
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
177
|
};
|
|
158
178
|
exports.serializeAws_json1_0DescribeRuleGroupMetadataCommand = serializeAws_json1_0DescribeRuleGroupMetadataCommand;
|
|
179
|
+
const serializeAws_json1_0DescribeTLSInspectionConfigurationCommand = async (input, context) => {
|
|
180
|
+
const headers = {
|
|
181
|
+
"content-type": "application/x-amz-json-1.0",
|
|
182
|
+
"x-amz-target": "NetworkFirewall_20201112.DescribeTLSInspectionConfiguration",
|
|
183
|
+
};
|
|
184
|
+
let body;
|
|
185
|
+
body = JSON.stringify(serializeAws_json1_0DescribeTLSInspectionConfigurationRequest(input, context));
|
|
186
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
|
+
};
|
|
188
|
+
exports.serializeAws_json1_0DescribeTLSInspectionConfigurationCommand = serializeAws_json1_0DescribeTLSInspectionConfigurationCommand;
|
|
159
189
|
const serializeAws_json1_0DisassociateSubnetsCommand = async (input, context) => {
|
|
160
190
|
const headers = {
|
|
161
191
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -206,6 +236,16 @@ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) =>
|
|
|
206
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
237
|
};
|
|
208
238
|
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
239
|
+
const serializeAws_json1_0ListTLSInspectionConfigurationsCommand = async (input, context) => {
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.0",
|
|
242
|
+
"x-amz-target": "NetworkFirewall_20201112.ListTLSInspectionConfigurations",
|
|
243
|
+
};
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_0ListTLSInspectionConfigurationsRequest(input, context));
|
|
246
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
+
};
|
|
248
|
+
exports.serializeAws_json1_0ListTLSInspectionConfigurationsCommand = serializeAws_json1_0ListTLSInspectionConfigurationsCommand;
|
|
209
249
|
const serializeAws_json1_0PutResourcePolicyCommand = async (input, context) => {
|
|
210
250
|
const headers = {
|
|
211
251
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -316,6 +356,16 @@ const serializeAws_json1_0UpdateSubnetChangeProtectionCommand = async (input, co
|
|
|
316
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
357
|
};
|
|
318
358
|
exports.serializeAws_json1_0UpdateSubnetChangeProtectionCommand = serializeAws_json1_0UpdateSubnetChangeProtectionCommand;
|
|
359
|
+
const serializeAws_json1_0UpdateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/x-amz-json-1.0",
|
|
362
|
+
"x-amz-target": "NetworkFirewall_20201112.UpdateTLSInspectionConfiguration",
|
|
363
|
+
};
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(serializeAws_json1_0UpdateTLSInspectionConfigurationRequest(input, context));
|
|
366
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
+
};
|
|
368
|
+
exports.serializeAws_json1_0UpdateTLSInspectionConfigurationCommand = serializeAws_json1_0UpdateTLSInspectionConfigurationCommand;
|
|
319
369
|
const deserializeAws_json1_0AssociateFirewallPolicyCommand = async (output, context) => {
|
|
320
370
|
if (output.statusCode >= 300) {
|
|
321
371
|
return deserializeAws_json1_0AssociateFirewallPolicyCommandError(output, context);
|
|
@@ -558,6 +608,46 @@ const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context
|
|
|
558
608
|
});
|
|
559
609
|
}
|
|
560
610
|
};
|
|
611
|
+
const deserializeAws_json1_0CreateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
612
|
+
if (output.statusCode >= 300) {
|
|
613
|
+
return deserializeAws_json1_0CreateTLSInspectionConfigurationCommandError(output, context);
|
|
614
|
+
}
|
|
615
|
+
const data = await parseBody(output.body, context);
|
|
616
|
+
let contents = {};
|
|
617
|
+
contents = deserializeAws_json1_0CreateTLSInspectionConfigurationResponse(data, context);
|
|
618
|
+
const response = {
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
...contents,
|
|
621
|
+
};
|
|
622
|
+
return Promise.resolve(response);
|
|
623
|
+
};
|
|
624
|
+
exports.deserializeAws_json1_0CreateTLSInspectionConfigurationCommand = deserializeAws_json1_0CreateTLSInspectionConfigurationCommand;
|
|
625
|
+
const deserializeAws_json1_0CreateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
626
|
+
const parsedOutput = {
|
|
627
|
+
...output,
|
|
628
|
+
body: await parseErrorBody(output.body, context),
|
|
629
|
+
};
|
|
630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
|
+
switch (errorCode) {
|
|
632
|
+
case "InternalServerError":
|
|
633
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
634
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
635
|
+
case "InvalidRequestException":
|
|
636
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
637
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
638
|
+
case "ThrottlingException":
|
|
639
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
640
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
641
|
+
default:
|
|
642
|
+
const parsedBody = parsedOutput.body;
|
|
643
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
644
|
+
output,
|
|
645
|
+
parsedBody,
|
|
646
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
647
|
+
errorCode,
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
};
|
|
561
651
|
const deserializeAws_json1_0DeleteFirewallCommand = async (output, context) => {
|
|
562
652
|
if (output.statusCode >= 300) {
|
|
563
653
|
return deserializeAws_json1_0DeleteFirewallCommandError(output, context);
|
|
@@ -751,6 +841,52 @@ const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context
|
|
|
751
841
|
});
|
|
752
842
|
}
|
|
753
843
|
};
|
|
844
|
+
const deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand = async (output, context) => {
|
|
845
|
+
if (output.statusCode >= 300) {
|
|
846
|
+
return deserializeAws_json1_0DeleteTLSInspectionConfigurationCommandError(output, context);
|
|
847
|
+
}
|
|
848
|
+
const data = await parseBody(output.body, context);
|
|
849
|
+
let contents = {};
|
|
850
|
+
contents = deserializeAws_json1_0DeleteTLSInspectionConfigurationResponse(data, context);
|
|
851
|
+
const response = {
|
|
852
|
+
$metadata: deserializeMetadata(output),
|
|
853
|
+
...contents,
|
|
854
|
+
};
|
|
855
|
+
return Promise.resolve(response);
|
|
856
|
+
};
|
|
857
|
+
exports.deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand = deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand;
|
|
858
|
+
const deserializeAws_json1_0DeleteTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
859
|
+
const parsedOutput = {
|
|
860
|
+
...output,
|
|
861
|
+
body: await parseErrorBody(output.body, context),
|
|
862
|
+
};
|
|
863
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
|
+
switch (errorCode) {
|
|
865
|
+
case "InternalServerError":
|
|
866
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
867
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
868
|
+
case "InvalidOperationException":
|
|
869
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
870
|
+
throw await deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context);
|
|
871
|
+
case "InvalidRequestException":
|
|
872
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
873
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
874
|
+
case "ResourceNotFoundException":
|
|
875
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
876
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
877
|
+
case "ThrottlingException":
|
|
878
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
879
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
880
|
+
default:
|
|
881
|
+
const parsedBody = parsedOutput.body;
|
|
882
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
883
|
+
output,
|
|
884
|
+
parsedBody,
|
|
885
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
886
|
+
errorCode,
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
};
|
|
754
890
|
const deserializeAws_json1_0DescribeFirewallCommand = async (output, context) => {
|
|
755
891
|
if (output.statusCode >= 300) {
|
|
756
892
|
return deserializeAws_json1_0DescribeFirewallCommandError(output, context);
|
|
@@ -1009,6 +1145,49 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (outpu
|
|
|
1009
1145
|
});
|
|
1010
1146
|
}
|
|
1011
1147
|
};
|
|
1148
|
+
const deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand = async (output, context) => {
|
|
1149
|
+
if (output.statusCode >= 300) {
|
|
1150
|
+
return deserializeAws_json1_0DescribeTLSInspectionConfigurationCommandError(output, context);
|
|
1151
|
+
}
|
|
1152
|
+
const data = await parseBody(output.body, context);
|
|
1153
|
+
let contents = {};
|
|
1154
|
+
contents = deserializeAws_json1_0DescribeTLSInspectionConfigurationResponse(data, context);
|
|
1155
|
+
const response = {
|
|
1156
|
+
$metadata: deserializeMetadata(output),
|
|
1157
|
+
...contents,
|
|
1158
|
+
};
|
|
1159
|
+
return Promise.resolve(response);
|
|
1160
|
+
};
|
|
1161
|
+
exports.deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand = deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand;
|
|
1162
|
+
const deserializeAws_json1_0DescribeTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
1163
|
+
const parsedOutput = {
|
|
1164
|
+
...output,
|
|
1165
|
+
body: await parseErrorBody(output.body, context),
|
|
1166
|
+
};
|
|
1167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
+
switch (errorCode) {
|
|
1169
|
+
case "InternalServerError":
|
|
1170
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1171
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1172
|
+
case "InvalidRequestException":
|
|
1173
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1174
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1175
|
+
case "ResourceNotFoundException":
|
|
1176
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1177
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1178
|
+
case "ThrottlingException":
|
|
1179
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1180
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1181
|
+
default:
|
|
1182
|
+
const parsedBody = parsedOutput.body;
|
|
1183
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1184
|
+
output,
|
|
1185
|
+
parsedBody,
|
|
1186
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1187
|
+
errorCode,
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1012
1191
|
const deserializeAws_json1_0DisassociateSubnetsCommand = async (output, context) => {
|
|
1013
1192
|
if (output.statusCode >= 300) {
|
|
1014
1193
|
return deserializeAws_json1_0DisassociateSubnetsCommandError(output, context);
|
|
@@ -1221,6 +1400,46 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1221
1400
|
});
|
|
1222
1401
|
}
|
|
1223
1402
|
};
|
|
1403
|
+
const deserializeAws_json1_0ListTLSInspectionConfigurationsCommand = async (output, context) => {
|
|
1404
|
+
if (output.statusCode >= 300) {
|
|
1405
|
+
return deserializeAws_json1_0ListTLSInspectionConfigurationsCommandError(output, context);
|
|
1406
|
+
}
|
|
1407
|
+
const data = await parseBody(output.body, context);
|
|
1408
|
+
let contents = {};
|
|
1409
|
+
contents = deserializeAws_json1_0ListTLSInspectionConfigurationsResponse(data, context);
|
|
1410
|
+
const response = {
|
|
1411
|
+
$metadata: deserializeMetadata(output),
|
|
1412
|
+
...contents,
|
|
1413
|
+
};
|
|
1414
|
+
return Promise.resolve(response);
|
|
1415
|
+
};
|
|
1416
|
+
exports.deserializeAws_json1_0ListTLSInspectionConfigurationsCommand = deserializeAws_json1_0ListTLSInspectionConfigurationsCommand;
|
|
1417
|
+
const deserializeAws_json1_0ListTLSInspectionConfigurationsCommandError = async (output, context) => {
|
|
1418
|
+
const parsedOutput = {
|
|
1419
|
+
...output,
|
|
1420
|
+
body: await parseErrorBody(output.body, context),
|
|
1421
|
+
};
|
|
1422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
+
switch (errorCode) {
|
|
1424
|
+
case "InternalServerError":
|
|
1425
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1426
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1427
|
+
case "InvalidRequestException":
|
|
1428
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1429
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1430
|
+
case "ThrottlingException":
|
|
1431
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1432
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1433
|
+
default:
|
|
1434
|
+
const parsedBody = parsedOutput.body;
|
|
1435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1436
|
+
output,
|
|
1437
|
+
parsedBody,
|
|
1438
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1439
|
+
errorCode,
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1224
1443
|
const deserializeAws_json1_0PutResourcePolicyCommand = async (output, context) => {
|
|
1225
1444
|
if (output.statusCode >= 300) {
|
|
1226
1445
|
return deserializeAws_json1_0PutResourcePolicyCommandError(output, context);
|
|
@@ -1736,6 +1955,52 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (ou
|
|
|
1736
1955
|
});
|
|
1737
1956
|
}
|
|
1738
1957
|
};
|
|
1958
|
+
const deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
1959
|
+
if (output.statusCode >= 300) {
|
|
1960
|
+
return deserializeAws_json1_0UpdateTLSInspectionConfigurationCommandError(output, context);
|
|
1961
|
+
}
|
|
1962
|
+
const data = await parseBody(output.body, context);
|
|
1963
|
+
let contents = {};
|
|
1964
|
+
contents = deserializeAws_json1_0UpdateTLSInspectionConfigurationResponse(data, context);
|
|
1965
|
+
const response = {
|
|
1966
|
+
$metadata: deserializeMetadata(output),
|
|
1967
|
+
...contents,
|
|
1968
|
+
};
|
|
1969
|
+
return Promise.resolve(response);
|
|
1970
|
+
};
|
|
1971
|
+
exports.deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand = deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand;
|
|
1972
|
+
const deserializeAws_json1_0UpdateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
1973
|
+
const parsedOutput = {
|
|
1974
|
+
...output,
|
|
1975
|
+
body: await parseErrorBody(output.body, context),
|
|
1976
|
+
};
|
|
1977
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
|
+
switch (errorCode) {
|
|
1979
|
+
case "InternalServerError":
|
|
1980
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1981
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1982
|
+
case "InvalidRequestException":
|
|
1983
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1984
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1985
|
+
case "InvalidTokenException":
|
|
1986
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1987
|
+
throw await deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context);
|
|
1988
|
+
case "ResourceNotFoundException":
|
|
1989
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1990
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1991
|
+
case "ThrottlingException":
|
|
1992
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1993
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1994
|
+
default:
|
|
1995
|
+
const parsedBody = parsedOutput.body;
|
|
1996
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1997
|
+
output,
|
|
1998
|
+
parsedBody,
|
|
1999
|
+
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
2000
|
+
errorCode,
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
1739
2004
|
const deserializeAws_json1_0InsufficientCapacityExceptionResponse = async (parsedOutput, context) => {
|
|
1740
2005
|
const body = parsedOutput.body;
|
|
1741
2006
|
const deserialized = deserializeAws_json1_0InsufficientCapacityException(body, context);
|
|
@@ -1940,6 +2205,21 @@ const serializeAws_json1_0CreateRuleGroupRequest = (input, context) => {
|
|
|
1940
2205
|
...(input.Type != null && { Type: input.Type }),
|
|
1941
2206
|
};
|
|
1942
2207
|
};
|
|
2208
|
+
const serializeAws_json1_0CreateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2209
|
+
return {
|
|
2210
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2211
|
+
...(input.EncryptionConfiguration != null && {
|
|
2212
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2213
|
+
}),
|
|
2214
|
+
...(input.TLSInspectionConfiguration != null && {
|
|
2215
|
+
TLSInspectionConfiguration: serializeAws_json1_0TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2216
|
+
}),
|
|
2217
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2218
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2219
|
+
}),
|
|
2220
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
1943
2223
|
const serializeAws_json1_0CustomAction = (input, context) => {
|
|
1944
2224
|
return {
|
|
1945
2225
|
...(input.ActionDefinition != null && {
|
|
@@ -1979,6 +2259,16 @@ const serializeAws_json1_0DeleteRuleGroupRequest = (input, context) => {
|
|
|
1979
2259
|
...(input.Type != null && { Type: input.Type }),
|
|
1980
2260
|
};
|
|
1981
2261
|
};
|
|
2262
|
+
const serializeAws_json1_0DeleteTLSInspectionConfigurationRequest = (input, context) => {
|
|
2263
|
+
return {
|
|
2264
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2265
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2266
|
+
}),
|
|
2267
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2268
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2269
|
+
}),
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
1982
2272
|
const serializeAws_json1_0DescribeFirewallPolicyRequest = (input, context) => {
|
|
1983
2273
|
return {
|
|
1984
2274
|
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
@@ -2016,6 +2306,16 @@ const serializeAws_json1_0DescribeRuleGroupRequest = (input, context) => {
|
|
|
2016
2306
|
...(input.Type != null && { Type: input.Type }),
|
|
2017
2307
|
};
|
|
2018
2308
|
};
|
|
2309
|
+
const serializeAws_json1_0DescribeTLSInspectionConfigurationRequest = (input, context) => {
|
|
2310
|
+
return {
|
|
2311
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2312
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2313
|
+
}),
|
|
2314
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2315
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2316
|
+
}),
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2019
2319
|
const serializeAws_json1_0Dimension = (input, context) => {
|
|
2020
2320
|
return {
|
|
2021
2321
|
...(input.Value != null && { Value: input.Value }),
|
|
@@ -2065,6 +2365,9 @@ const serializeAws_json1_0FirewallPolicy = (input, context) => {
|
|
|
2065
2365
|
...(input.StatelessRuleGroupReferences != null && {
|
|
2066
2366
|
StatelessRuleGroupReferences: serializeAws_json1_0StatelessRuleGroupReferences(input.StatelessRuleGroupReferences, context),
|
|
2067
2367
|
}),
|
|
2368
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2369
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2370
|
+
}),
|
|
2068
2371
|
};
|
|
2069
2372
|
};
|
|
2070
2373
|
const serializeAws_json1_0Flags = (input, context) => {
|
|
@@ -2143,6 +2446,12 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
|
2143
2446
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2144
2447
|
};
|
|
2145
2448
|
};
|
|
2449
|
+
const serializeAws_json1_0ListTLSInspectionConfigurationsRequest = (input, context) => {
|
|
2450
|
+
return {
|
|
2451
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2452
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2453
|
+
};
|
|
2454
|
+
};
|
|
2146
2455
|
const serializeAws_json1_0LogDestinationConfig = (input, context) => {
|
|
2147
2456
|
return {
|
|
2148
2457
|
...(input.LogDestination != null && {
|
|
@@ -2310,6 +2619,51 @@ const serializeAws_json1_0RuleVariables = (input, context) => {
|
|
|
2310
2619
|
...(input.PortSets != null && { PortSets: serializeAws_json1_0PortSets(input.PortSets, context) }),
|
|
2311
2620
|
};
|
|
2312
2621
|
};
|
|
2622
|
+
const serializeAws_json1_0ServerCertificate = (input, context) => {
|
|
2623
|
+
return {
|
|
2624
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2625
|
+
};
|
|
2626
|
+
};
|
|
2627
|
+
const serializeAws_json1_0ServerCertificateConfiguration = (input, context) => {
|
|
2628
|
+
return {
|
|
2629
|
+
...(input.Scopes != null && { Scopes: serializeAws_json1_0ServerCertificateScopes(input.Scopes, context) }),
|
|
2630
|
+
...(input.ServerCertificates != null && {
|
|
2631
|
+
ServerCertificates: serializeAws_json1_0ServerCertificates(input.ServerCertificates, context),
|
|
2632
|
+
}),
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
const serializeAws_json1_0ServerCertificateConfigurations = (input, context) => {
|
|
2636
|
+
return input
|
|
2637
|
+
.filter((e) => e != null)
|
|
2638
|
+
.map((entry) => {
|
|
2639
|
+
return serializeAws_json1_0ServerCertificateConfiguration(entry, context);
|
|
2640
|
+
});
|
|
2641
|
+
};
|
|
2642
|
+
const serializeAws_json1_0ServerCertificates = (input, context) => {
|
|
2643
|
+
return input
|
|
2644
|
+
.filter((e) => e != null)
|
|
2645
|
+
.map((entry) => {
|
|
2646
|
+
return serializeAws_json1_0ServerCertificate(entry, context);
|
|
2647
|
+
});
|
|
2648
|
+
};
|
|
2649
|
+
const serializeAws_json1_0ServerCertificateScope = (input, context) => {
|
|
2650
|
+
return {
|
|
2651
|
+
...(input.DestinationPorts != null && {
|
|
2652
|
+
DestinationPorts: serializeAws_json1_0PortRanges(input.DestinationPorts, context),
|
|
2653
|
+
}),
|
|
2654
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_0Addresses(input.Destinations, context) }),
|
|
2655
|
+
...(input.Protocols != null && { Protocols: serializeAws_json1_0ProtocolNumbers(input.Protocols, context) }),
|
|
2656
|
+
...(input.SourcePorts != null && { SourcePorts: serializeAws_json1_0PortRanges(input.SourcePorts, context) }),
|
|
2657
|
+
...(input.Sources != null && { Sources: serializeAws_json1_0Addresses(input.Sources, context) }),
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
const serializeAws_json1_0ServerCertificateScopes = (input, context) => {
|
|
2661
|
+
return input
|
|
2662
|
+
.filter((e) => e != null)
|
|
2663
|
+
.map((entry) => {
|
|
2664
|
+
return serializeAws_json1_0ServerCertificateScope(entry, context);
|
|
2665
|
+
});
|
|
2666
|
+
};
|
|
2313
2667
|
const serializeAws_json1_0Settings = (input, context) => {
|
|
2314
2668
|
return input
|
|
2315
2669
|
.filter((e) => e != null)
|
|
@@ -2478,6 +2832,13 @@ const serializeAws_json1_0TCPFlags = (input, context) => {
|
|
|
2478
2832
|
return serializeAws_json1_0TCPFlagField(entry, context);
|
|
2479
2833
|
});
|
|
2480
2834
|
};
|
|
2835
|
+
const serializeAws_json1_0TLSInspectionConfiguration = (input, context) => {
|
|
2836
|
+
return {
|
|
2837
|
+
...(input.ServerCertificateConfigurations != null && {
|
|
2838
|
+
ServerCertificateConfigurations: serializeAws_json1_0ServerCertificateConfigurations(input.ServerCertificateConfigurations, context),
|
|
2839
|
+
}),
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2481
2842
|
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
2482
2843
|
return {
|
|
2483
2844
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -2570,6 +2931,24 @@ const serializeAws_json1_0UpdateSubnetChangeProtectionRequest = (input, context)
|
|
|
2570
2931
|
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2571
2932
|
};
|
|
2572
2933
|
};
|
|
2934
|
+
const serializeAws_json1_0UpdateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2935
|
+
return {
|
|
2936
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2937
|
+
...(input.EncryptionConfiguration != null && {
|
|
2938
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2939
|
+
}),
|
|
2940
|
+
...(input.TLSInspectionConfiguration != null && {
|
|
2941
|
+
TLSInspectionConfiguration: serializeAws_json1_0TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2942
|
+
}),
|
|
2943
|
+
...(input.TLSInspectionConfigurationArn != null && {
|
|
2944
|
+
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2945
|
+
}),
|
|
2946
|
+
...(input.TLSInspectionConfigurationName != null && {
|
|
2947
|
+
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2948
|
+
}),
|
|
2949
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2950
|
+
};
|
|
2951
|
+
};
|
|
2573
2952
|
const serializeAws_json1_0VariableDefinitionList = (input, context) => {
|
|
2574
2953
|
return input
|
|
2575
2954
|
.filter((e) => e != null)
|
|
@@ -2636,6 +3015,17 @@ const deserializeAws_json1_0CapacityUsageSummary = (output, context) => {
|
|
|
2636
3015
|
CIDRs: output.CIDRs != null ? deserializeAws_json1_0CIDRSummary(output.CIDRs, context) : undefined,
|
|
2637
3016
|
};
|
|
2638
3017
|
};
|
|
3018
|
+
const deserializeAws_json1_0Certificates = (output, context) => {
|
|
3019
|
+
const retVal = (output || [])
|
|
3020
|
+
.filter((e) => e != null)
|
|
3021
|
+
.map((entry) => {
|
|
3022
|
+
if (entry === null) {
|
|
3023
|
+
return null;
|
|
3024
|
+
}
|
|
3025
|
+
return deserializeAws_json1_0TlsCertificateData(entry, context);
|
|
3026
|
+
});
|
|
3027
|
+
return retVal;
|
|
3028
|
+
};
|
|
2639
3029
|
const deserializeAws_json1_0CIDRSummary = (output, context) => {
|
|
2640
3030
|
return {
|
|
2641
3031
|
AvailableCIDRCount: (0, smithy_client_1.expectInt32)(output.AvailableCIDRCount),
|
|
@@ -2667,6 +3057,14 @@ const deserializeAws_json1_0CreateRuleGroupResponse = (output, context) => {
|
|
|
2667
3057
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2668
3058
|
};
|
|
2669
3059
|
};
|
|
3060
|
+
const deserializeAws_json1_0CreateTLSInspectionConfigurationResponse = (output, context) => {
|
|
3061
|
+
return {
|
|
3062
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
3063
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
3064
|
+
: undefined,
|
|
3065
|
+
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3066
|
+
};
|
|
3067
|
+
};
|
|
2670
3068
|
const deserializeAws_json1_0CustomAction = (output, context) => {
|
|
2671
3069
|
return {
|
|
2672
3070
|
ActionDefinition: output.ActionDefinition != null
|
|
@@ -2709,6 +3107,13 @@ const deserializeAws_json1_0DeleteRuleGroupResponse = (output, context) => {
|
|
|
2709
3107
|
: undefined,
|
|
2710
3108
|
};
|
|
2711
3109
|
};
|
|
3110
|
+
const deserializeAws_json1_0DeleteTLSInspectionConfigurationResponse = (output, context) => {
|
|
3111
|
+
return {
|
|
3112
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
3113
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
3114
|
+
: undefined,
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
2712
3117
|
const deserializeAws_json1_0DescribeFirewallPolicyResponse = (output, context) => {
|
|
2713
3118
|
return {
|
|
2714
3119
|
FirewallPolicy: output.FirewallPolicy != null ? deserializeAws_json1_0FirewallPolicy(output.FirewallPolicy, context) : undefined,
|
|
@@ -2762,6 +3167,17 @@ const deserializeAws_json1_0DescribeRuleGroupResponse = (output, context) => {
|
|
|
2762
3167
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2763
3168
|
};
|
|
2764
3169
|
};
|
|
3170
|
+
const deserializeAws_json1_0DescribeTLSInspectionConfigurationResponse = (output, context) => {
|
|
3171
|
+
return {
|
|
3172
|
+
TLSInspectionConfiguration: output.TLSInspectionConfiguration != null
|
|
3173
|
+
? deserializeAws_json1_0TLSInspectionConfiguration(output.TLSInspectionConfiguration, context)
|
|
3174
|
+
: undefined,
|
|
3175
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
3176
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
3177
|
+
: undefined,
|
|
3178
|
+
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3179
|
+
};
|
|
3180
|
+
};
|
|
2765
3181
|
const deserializeAws_json1_0Dimension = (output, context) => {
|
|
2766
3182
|
return {
|
|
2767
3183
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
@@ -2850,6 +3266,7 @@ const deserializeAws_json1_0FirewallPolicy = (output, context) => {
|
|
|
2850
3266
|
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences != null
|
|
2851
3267
|
? deserializeAws_json1_0StatelessRuleGroupReferences(output.StatelessRuleGroupReferences, context)
|
|
2852
3268
|
: undefined,
|
|
3269
|
+
TLSInspectionConfigurationArn: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationArn),
|
|
2853
3270
|
};
|
|
2854
3271
|
};
|
|
2855
3272
|
const deserializeAws_json1_0FirewallPolicyMetadata = (output, context) => {
|
|
@@ -3022,6 +3439,14 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
3022
3439
|
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
3023
3440
|
};
|
|
3024
3441
|
};
|
|
3442
|
+
const deserializeAws_json1_0ListTLSInspectionConfigurationsResponse = (output, context) => {
|
|
3443
|
+
return {
|
|
3444
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3445
|
+
TLSInspectionConfigurations: output.TLSInspectionConfigurations != null
|
|
3446
|
+
? deserializeAws_json1_0TLSInspectionConfigurations(output.TLSInspectionConfigurations, context)
|
|
3447
|
+
: undefined,
|
|
3448
|
+
};
|
|
3449
|
+
};
|
|
3025
3450
|
const deserializeAws_json1_0LogDestinationConfig = (output, context) => {
|
|
3026
3451
|
return {
|
|
3027
3452
|
LogDestination: output.LogDestination != null
|
|
@@ -3256,6 +3681,61 @@ const deserializeAws_json1_0RuleVariables = (output, context) => {
|
|
|
3256
3681
|
PortSets: output.PortSets != null ? deserializeAws_json1_0PortSets(output.PortSets, context) : undefined,
|
|
3257
3682
|
};
|
|
3258
3683
|
};
|
|
3684
|
+
const deserializeAws_json1_0ServerCertificate = (output, context) => {
|
|
3685
|
+
return {
|
|
3686
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
3687
|
+
};
|
|
3688
|
+
};
|
|
3689
|
+
const deserializeAws_json1_0ServerCertificateConfiguration = (output, context) => {
|
|
3690
|
+
return {
|
|
3691
|
+
Scopes: output.Scopes != null ? deserializeAws_json1_0ServerCertificateScopes(output.Scopes, context) : undefined,
|
|
3692
|
+
ServerCertificates: output.ServerCertificates != null
|
|
3693
|
+
? deserializeAws_json1_0ServerCertificates(output.ServerCertificates, context)
|
|
3694
|
+
: undefined,
|
|
3695
|
+
};
|
|
3696
|
+
};
|
|
3697
|
+
const deserializeAws_json1_0ServerCertificateConfigurations = (output, context) => {
|
|
3698
|
+
const retVal = (output || [])
|
|
3699
|
+
.filter((e) => e != null)
|
|
3700
|
+
.map((entry) => {
|
|
3701
|
+
if (entry === null) {
|
|
3702
|
+
return null;
|
|
3703
|
+
}
|
|
3704
|
+
return deserializeAws_json1_0ServerCertificateConfiguration(entry, context);
|
|
3705
|
+
});
|
|
3706
|
+
return retVal;
|
|
3707
|
+
};
|
|
3708
|
+
const deserializeAws_json1_0ServerCertificates = (output, context) => {
|
|
3709
|
+
const retVal = (output || [])
|
|
3710
|
+
.filter((e) => e != null)
|
|
3711
|
+
.map((entry) => {
|
|
3712
|
+
if (entry === null) {
|
|
3713
|
+
return null;
|
|
3714
|
+
}
|
|
3715
|
+
return deserializeAws_json1_0ServerCertificate(entry, context);
|
|
3716
|
+
});
|
|
3717
|
+
return retVal;
|
|
3718
|
+
};
|
|
3719
|
+
const deserializeAws_json1_0ServerCertificateScope = (output, context) => {
|
|
3720
|
+
return {
|
|
3721
|
+
DestinationPorts: output.DestinationPorts != null ? deserializeAws_json1_0PortRanges(output.DestinationPorts, context) : undefined,
|
|
3722
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_0Addresses(output.Destinations, context) : undefined,
|
|
3723
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_0ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3724
|
+
SourcePorts: output.SourcePorts != null ? deserializeAws_json1_0PortRanges(output.SourcePorts, context) : undefined,
|
|
3725
|
+
Sources: output.Sources != null ? deserializeAws_json1_0Addresses(output.Sources, context) : undefined,
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
const deserializeAws_json1_0ServerCertificateScopes = (output, context) => {
|
|
3729
|
+
const retVal = (output || [])
|
|
3730
|
+
.filter((e) => e != null)
|
|
3731
|
+
.map((entry) => {
|
|
3732
|
+
if (entry === null) {
|
|
3733
|
+
return null;
|
|
3734
|
+
}
|
|
3735
|
+
return deserializeAws_json1_0ServerCertificateScope(entry, context);
|
|
3736
|
+
});
|
|
3737
|
+
return retVal;
|
|
3738
|
+
};
|
|
3259
3739
|
const deserializeAws_json1_0Settings = (output, context) => {
|
|
3260
3740
|
const retVal = (output || [])
|
|
3261
3741
|
.filter((e) => e != null)
|
|
@@ -3481,6 +3961,56 @@ const deserializeAws_json1_0ThrottlingException = (output, context) => {
|
|
|
3481
3961
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3482
3962
|
};
|
|
3483
3963
|
};
|
|
3964
|
+
const deserializeAws_json1_0TlsCertificateData = (output, context) => {
|
|
3965
|
+
return {
|
|
3966
|
+
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
3967
|
+
CertificateSerial: (0, smithy_client_1.expectString)(output.CertificateSerial),
|
|
3968
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3969
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
3970
|
+
};
|
|
3971
|
+
};
|
|
3972
|
+
const deserializeAws_json1_0TLSInspectionConfiguration = (output, context) => {
|
|
3973
|
+
return {
|
|
3974
|
+
ServerCertificateConfigurations: output.ServerCertificateConfigurations != null
|
|
3975
|
+
? deserializeAws_json1_0ServerCertificateConfigurations(output.ServerCertificateConfigurations, context)
|
|
3976
|
+
: undefined,
|
|
3977
|
+
};
|
|
3978
|
+
};
|
|
3979
|
+
const deserializeAws_json1_0TLSInspectionConfigurationMetadata = (output, context) => {
|
|
3980
|
+
return {
|
|
3981
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3982
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3983
|
+
};
|
|
3984
|
+
};
|
|
3985
|
+
const deserializeAws_json1_0TLSInspectionConfigurationResponse = (output, context) => {
|
|
3986
|
+
return {
|
|
3987
|
+
Certificates: output.Certificates != null ? deserializeAws_json1_0Certificates(output.Certificates, context) : undefined,
|
|
3988
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3989
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3990
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3991
|
+
: undefined,
|
|
3992
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3993
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3994
|
+
: undefined,
|
|
3995
|
+
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
3996
|
+
TLSInspectionConfigurationArn: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationArn),
|
|
3997
|
+
TLSInspectionConfigurationId: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationId),
|
|
3998
|
+
TLSInspectionConfigurationName: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationName),
|
|
3999
|
+
TLSInspectionConfigurationStatus: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationStatus),
|
|
4000
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
4003
|
+
const deserializeAws_json1_0TLSInspectionConfigurations = (output, context) => {
|
|
4004
|
+
const retVal = (output || [])
|
|
4005
|
+
.filter((e) => e != null)
|
|
4006
|
+
.map((entry) => {
|
|
4007
|
+
if (entry === null) {
|
|
4008
|
+
return null;
|
|
4009
|
+
}
|
|
4010
|
+
return deserializeAws_json1_0TLSInspectionConfigurationMetadata(entry, context);
|
|
4011
|
+
});
|
|
4012
|
+
return retVal;
|
|
4013
|
+
};
|
|
3484
4014
|
const deserializeAws_json1_0UnsupportedOperationException = (output, context) => {
|
|
3485
4015
|
return {
|
|
3486
4016
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3556,6 +4086,14 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionResponse = (output, cont
|
|
|
3556
4086
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3557
4087
|
};
|
|
3558
4088
|
};
|
|
4089
|
+
const deserializeAws_json1_0UpdateTLSInspectionConfigurationResponse = (output, context) => {
|
|
4090
|
+
return {
|
|
4091
|
+
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
4092
|
+
? deserializeAws_json1_0TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
4093
|
+
: undefined,
|
|
4094
|
+
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
3559
4097
|
const deserializeAws_json1_0VariableDefinitionList = (output, context) => {
|
|
3560
4098
|
const retVal = (output || [])
|
|
3561
4099
|
.filter((e) => e != null)
|