@aws-sdk/client-network-firewall 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_0.js +262 -2051
- package/dist-es/protocols/Aws_json1_0.js +263 -2052
- package/package.json +6 -6
|
@@ -9,28 +9,28 @@ const NetworkFirewallServiceException_1 = require("../models/NetworkFirewallServ
|
|
|
9
9
|
const se_AssociateFirewallPolicyCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("AssociateFirewallPolicy");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_AssociateFirewallPolicyCommand = se_AssociateFirewallPolicyCommand;
|
|
16
16
|
const se_AssociateSubnetsCommand = async (input, context) => {
|
|
17
17
|
const headers = sharedHeaders("AssociateSubnets");
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
21
|
};
|
|
22
22
|
exports.se_AssociateSubnetsCommand = se_AssociateSubnetsCommand;
|
|
23
23
|
const se_CreateFirewallCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateFirewall");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_CreateFirewallCommand = se_CreateFirewallCommand;
|
|
30
30
|
const se_CreateFirewallPolicyCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("CreateFirewallPolicy");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_CreateFirewallPolicyCommand = se_CreateFirewallPolicyCommand;
|
|
@@ -44,196 +44,196 @@ exports.se_CreateRuleGroupCommand = se_CreateRuleGroupCommand;
|
|
|
44
44
|
const se_CreateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("CreateTLSInspectionConfiguration");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_CreateTLSInspectionConfigurationCommand = se_CreateTLSInspectionConfigurationCommand;
|
|
51
51
|
const se_DeleteFirewallCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("DeleteFirewall");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_DeleteFirewallCommand = se_DeleteFirewallCommand;
|
|
58
58
|
const se_DeleteFirewallPolicyCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("DeleteFirewallPolicy");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_DeleteFirewallPolicyCommand = se_DeleteFirewallPolicyCommand;
|
|
65
65
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
72
72
|
const se_DeleteRuleGroupCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("DeleteRuleGroup");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.se_DeleteRuleGroupCommand = se_DeleteRuleGroupCommand;
|
|
79
79
|
const se_DeleteTLSInspectionConfigurationCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("DeleteTLSInspectionConfiguration");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
exports.se_DeleteTLSInspectionConfigurationCommand = se_DeleteTLSInspectionConfigurationCommand;
|
|
86
86
|
const se_DescribeFirewallCommand = async (input, context) => {
|
|
87
87
|
const headers = sharedHeaders("DescribeFirewall");
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
91
|
};
|
|
92
92
|
exports.se_DescribeFirewallCommand = se_DescribeFirewallCommand;
|
|
93
93
|
const se_DescribeFirewallPolicyCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("DescribeFirewallPolicy");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_DescribeFirewallPolicyCommand = se_DescribeFirewallPolicyCommand;
|
|
100
100
|
const se_DescribeLoggingConfigurationCommand = async (input, context) => {
|
|
101
101
|
const headers = sharedHeaders("DescribeLoggingConfiguration");
|
|
102
102
|
let body;
|
|
103
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
105
|
};
|
|
106
106
|
exports.se_DescribeLoggingConfigurationCommand = se_DescribeLoggingConfigurationCommand;
|
|
107
107
|
const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
exports.se_DescribeResourcePolicyCommand = se_DescribeResourcePolicyCommand;
|
|
114
114
|
const se_DescribeRuleGroupCommand = async (input, context) => {
|
|
115
115
|
const headers = sharedHeaders("DescribeRuleGroup");
|
|
116
116
|
let body;
|
|
117
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
119
|
};
|
|
120
120
|
exports.se_DescribeRuleGroupCommand = se_DescribeRuleGroupCommand;
|
|
121
121
|
const se_DescribeRuleGroupMetadataCommand = async (input, context) => {
|
|
122
122
|
const headers = sharedHeaders("DescribeRuleGroupMetadata");
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
127
|
exports.se_DescribeRuleGroupMetadataCommand = se_DescribeRuleGroupMetadataCommand;
|
|
128
128
|
const se_DescribeTLSInspectionConfigurationCommand = async (input, context) => {
|
|
129
129
|
const headers = sharedHeaders("DescribeTLSInspectionConfiguration");
|
|
130
130
|
let body;
|
|
131
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
133
|
};
|
|
134
134
|
exports.se_DescribeTLSInspectionConfigurationCommand = se_DescribeTLSInspectionConfigurationCommand;
|
|
135
135
|
const se_DisassociateSubnetsCommand = async (input, context) => {
|
|
136
136
|
const headers = sharedHeaders("DisassociateSubnets");
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
141
|
exports.se_DisassociateSubnetsCommand = se_DisassociateSubnetsCommand;
|
|
142
142
|
const se_ListFirewallPoliciesCommand = async (input, context) => {
|
|
143
143
|
const headers = sharedHeaders("ListFirewallPolicies");
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
148
|
exports.se_ListFirewallPoliciesCommand = se_ListFirewallPoliciesCommand;
|
|
149
149
|
const se_ListFirewallsCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("ListFirewalls");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
exports.se_ListFirewallsCommand = se_ListFirewallsCommand;
|
|
156
156
|
const se_ListRuleGroupsCommand = async (input, context) => {
|
|
157
157
|
const headers = sharedHeaders("ListRuleGroups");
|
|
158
158
|
let body;
|
|
159
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
161
|
};
|
|
162
162
|
exports.se_ListRuleGroupsCommand = se_ListRuleGroupsCommand;
|
|
163
163
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
164
164
|
const headers = sharedHeaders("ListTagsForResource");
|
|
165
165
|
let body;
|
|
166
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
168
|
};
|
|
169
169
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
170
170
|
const se_ListTLSInspectionConfigurationsCommand = async (input, context) => {
|
|
171
171
|
const headers = sharedHeaders("ListTLSInspectionConfigurations");
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
176
|
exports.se_ListTLSInspectionConfigurationsCommand = se_ListTLSInspectionConfigurationsCommand;
|
|
177
177
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
178
178
|
const headers = sharedHeaders("PutResourcePolicy");
|
|
179
179
|
let body;
|
|
180
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
182
|
};
|
|
183
183
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
184
184
|
const se_TagResourceCommand = async (input, context) => {
|
|
185
185
|
const headers = sharedHeaders("TagResource");
|
|
186
186
|
let body;
|
|
187
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
189
|
};
|
|
190
190
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
191
191
|
const se_UntagResourceCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("UntagResource");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
198
198
|
const se_UpdateFirewallDeleteProtectionCommand = async (input, context) => {
|
|
199
199
|
const headers = sharedHeaders("UpdateFirewallDeleteProtection");
|
|
200
200
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
203
|
};
|
|
204
204
|
exports.se_UpdateFirewallDeleteProtectionCommand = se_UpdateFirewallDeleteProtectionCommand;
|
|
205
205
|
const se_UpdateFirewallDescriptionCommand = async (input, context) => {
|
|
206
206
|
const headers = sharedHeaders("UpdateFirewallDescription");
|
|
207
207
|
let body;
|
|
208
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
210
|
};
|
|
211
211
|
exports.se_UpdateFirewallDescriptionCommand = se_UpdateFirewallDescriptionCommand;
|
|
212
212
|
const se_UpdateFirewallEncryptionConfigurationCommand = async (input, context) => {
|
|
213
213
|
const headers = sharedHeaders("UpdateFirewallEncryptionConfiguration");
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
218
|
exports.se_UpdateFirewallEncryptionConfigurationCommand = se_UpdateFirewallEncryptionConfigurationCommand;
|
|
219
219
|
const se_UpdateFirewallPolicyCommand = async (input, context) => {
|
|
220
220
|
const headers = sharedHeaders("UpdateFirewallPolicy");
|
|
221
221
|
let body;
|
|
222
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
224
|
};
|
|
225
225
|
exports.se_UpdateFirewallPolicyCommand = se_UpdateFirewallPolicyCommand;
|
|
226
226
|
const se_UpdateFirewallPolicyChangeProtectionCommand = async (input, context) => {
|
|
227
227
|
const headers = sharedHeaders("UpdateFirewallPolicyChangeProtection");
|
|
228
228
|
let body;
|
|
229
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
231
|
};
|
|
232
232
|
exports.se_UpdateFirewallPolicyChangeProtectionCommand = se_UpdateFirewallPolicyChangeProtectionCommand;
|
|
233
233
|
const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
234
234
|
const headers = sharedHeaders("UpdateLoggingConfiguration");
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
239
|
exports.se_UpdateLoggingConfigurationCommand = se_UpdateLoggingConfigurationCommand;
|
|
@@ -247,14 +247,14 @@ exports.se_UpdateRuleGroupCommand = se_UpdateRuleGroupCommand;
|
|
|
247
247
|
const se_UpdateSubnetChangeProtectionCommand = async (input, context) => {
|
|
248
248
|
const headers = sharedHeaders("UpdateSubnetChangeProtection");
|
|
249
249
|
let body;
|
|
250
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
252
|
};
|
|
253
253
|
exports.se_UpdateSubnetChangeProtectionCommand = se_UpdateSubnetChangeProtectionCommand;
|
|
254
254
|
const se_UpdateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
255
255
|
const headers = sharedHeaders("UpdateTLSInspectionConfiguration");
|
|
256
256
|
let body;
|
|
257
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
259
|
};
|
|
260
260
|
exports.se_UpdateTLSInspectionConfigurationCommand = se_UpdateTLSInspectionConfigurationCommand;
|
|
@@ -264,12 +264,12 @@ const de_AssociateFirewallPolicyCommand = async (output, context) => {
|
|
|
264
264
|
}
|
|
265
265
|
const data = await parseBody(output.body, context);
|
|
266
266
|
let contents = {};
|
|
267
|
-
contents =
|
|
267
|
+
contents = (0, smithy_client_1._json)(data);
|
|
268
268
|
const response = {
|
|
269
269
|
$metadata: deserializeMetadata(output),
|
|
270
270
|
...contents,
|
|
271
271
|
};
|
|
272
|
-
return
|
|
272
|
+
return response;
|
|
273
273
|
};
|
|
274
274
|
exports.de_AssociateFirewallPolicyCommand = de_AssociateFirewallPolicyCommand;
|
|
275
275
|
const de_AssociateFirewallPolicyCommandError = async (output, context) => {
|
|
@@ -299,10 +299,9 @@ const de_AssociateFirewallPolicyCommandError = async (output, context) => {
|
|
|
299
299
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
300
300
|
default:
|
|
301
301
|
const parsedBody = parsedOutput.body;
|
|
302
|
-
|
|
302
|
+
return throwDefaultError({
|
|
303
303
|
output,
|
|
304
304
|
parsedBody,
|
|
305
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
306
305
|
errorCode,
|
|
307
306
|
});
|
|
308
307
|
}
|
|
@@ -313,12 +312,12 @@ const de_AssociateSubnetsCommand = async (output, context) => {
|
|
|
313
312
|
}
|
|
314
313
|
const data = await parseBody(output.body, context);
|
|
315
314
|
let contents = {};
|
|
316
|
-
contents =
|
|
315
|
+
contents = (0, smithy_client_1._json)(data);
|
|
317
316
|
const response = {
|
|
318
317
|
$metadata: deserializeMetadata(output),
|
|
319
318
|
...contents,
|
|
320
319
|
};
|
|
321
|
-
return
|
|
320
|
+
return response;
|
|
322
321
|
};
|
|
323
322
|
exports.de_AssociateSubnetsCommand = de_AssociateSubnetsCommand;
|
|
324
323
|
const de_AssociateSubnetsCommandError = async (output, context) => {
|
|
@@ -351,10 +350,9 @@ const de_AssociateSubnetsCommandError = async (output, context) => {
|
|
|
351
350
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
352
351
|
default:
|
|
353
352
|
const parsedBody = parsedOutput.body;
|
|
354
|
-
|
|
353
|
+
return throwDefaultError({
|
|
355
354
|
output,
|
|
356
355
|
parsedBody,
|
|
357
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
358
356
|
errorCode,
|
|
359
357
|
});
|
|
360
358
|
}
|
|
@@ -365,12 +363,12 @@ const de_CreateFirewallCommand = async (output, context) => {
|
|
|
365
363
|
}
|
|
366
364
|
const data = await parseBody(output.body, context);
|
|
367
365
|
let contents = {};
|
|
368
|
-
contents =
|
|
366
|
+
contents = (0, smithy_client_1._json)(data);
|
|
369
367
|
const response = {
|
|
370
368
|
$metadata: deserializeMetadata(output),
|
|
371
369
|
...contents,
|
|
372
370
|
};
|
|
373
|
-
return
|
|
371
|
+
return response;
|
|
374
372
|
};
|
|
375
373
|
exports.de_CreateFirewallCommand = de_CreateFirewallCommand;
|
|
376
374
|
const de_CreateFirewallCommandError = async (output, context) => {
|
|
@@ -400,10 +398,9 @@ const de_CreateFirewallCommandError = async (output, context) => {
|
|
|
400
398
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
401
399
|
default:
|
|
402
400
|
const parsedBody = parsedOutput.body;
|
|
403
|
-
|
|
401
|
+
return throwDefaultError({
|
|
404
402
|
output,
|
|
405
403
|
parsedBody,
|
|
406
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
407
404
|
errorCode,
|
|
408
405
|
});
|
|
409
406
|
}
|
|
@@ -419,7 +416,7 @@ const de_CreateFirewallPolicyCommand = async (output, context) => {
|
|
|
419
416
|
$metadata: deserializeMetadata(output),
|
|
420
417
|
...contents,
|
|
421
418
|
};
|
|
422
|
-
return
|
|
419
|
+
return response;
|
|
423
420
|
};
|
|
424
421
|
exports.de_CreateFirewallPolicyCommand = de_CreateFirewallPolicyCommand;
|
|
425
422
|
const de_CreateFirewallPolicyCommandError = async (output, context) => {
|
|
@@ -446,10 +443,9 @@ const de_CreateFirewallPolicyCommandError = async (output, context) => {
|
|
|
446
443
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
447
444
|
default:
|
|
448
445
|
const parsedBody = parsedOutput.body;
|
|
449
|
-
|
|
446
|
+
return throwDefaultError({
|
|
450
447
|
output,
|
|
451
448
|
parsedBody,
|
|
452
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
453
449
|
errorCode,
|
|
454
450
|
});
|
|
455
451
|
}
|
|
@@ -465,7 +461,7 @@ const de_CreateRuleGroupCommand = async (output, context) => {
|
|
|
465
461
|
$metadata: deserializeMetadata(output),
|
|
466
462
|
...contents,
|
|
467
463
|
};
|
|
468
|
-
return
|
|
464
|
+
return response;
|
|
469
465
|
};
|
|
470
466
|
exports.de_CreateRuleGroupCommand = de_CreateRuleGroupCommand;
|
|
471
467
|
const de_CreateRuleGroupCommandError = async (output, context) => {
|
|
@@ -492,10 +488,9 @@ const de_CreateRuleGroupCommandError = async (output, context) => {
|
|
|
492
488
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
493
489
|
default:
|
|
494
490
|
const parsedBody = parsedOutput.body;
|
|
495
|
-
|
|
491
|
+
return throwDefaultError({
|
|
496
492
|
output,
|
|
497
493
|
parsedBody,
|
|
498
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
499
494
|
errorCode,
|
|
500
495
|
});
|
|
501
496
|
}
|
|
@@ -511,7 +506,7 @@ const de_CreateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
|
511
506
|
$metadata: deserializeMetadata(output),
|
|
512
507
|
...contents,
|
|
513
508
|
};
|
|
514
|
-
return
|
|
509
|
+
return response;
|
|
515
510
|
};
|
|
516
511
|
exports.de_CreateTLSInspectionConfigurationCommand = de_CreateTLSInspectionConfigurationCommand;
|
|
517
512
|
const de_CreateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
@@ -532,10 +527,9 @@ const de_CreateTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
532
527
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
533
528
|
default:
|
|
534
529
|
const parsedBody = parsedOutput.body;
|
|
535
|
-
|
|
530
|
+
return throwDefaultError({
|
|
536
531
|
output,
|
|
537
532
|
parsedBody,
|
|
538
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
539
533
|
errorCode,
|
|
540
534
|
});
|
|
541
535
|
}
|
|
@@ -546,12 +540,12 @@ const de_DeleteFirewallCommand = async (output, context) => {
|
|
|
546
540
|
}
|
|
547
541
|
const data = await parseBody(output.body, context);
|
|
548
542
|
let contents = {};
|
|
549
|
-
contents =
|
|
543
|
+
contents = (0, smithy_client_1._json)(data);
|
|
550
544
|
const response = {
|
|
551
545
|
$metadata: deserializeMetadata(output),
|
|
552
546
|
...contents,
|
|
553
547
|
};
|
|
554
|
-
return
|
|
548
|
+
return response;
|
|
555
549
|
};
|
|
556
550
|
exports.de_DeleteFirewallCommand = de_DeleteFirewallCommand;
|
|
557
551
|
const de_DeleteFirewallCommandError = async (output, context) => {
|
|
@@ -581,10 +575,9 @@ const de_DeleteFirewallCommandError = async (output, context) => {
|
|
|
581
575
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
582
576
|
default:
|
|
583
577
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
578
|
+
return throwDefaultError({
|
|
585
579
|
output,
|
|
586
580
|
parsedBody,
|
|
587
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
588
581
|
errorCode,
|
|
589
582
|
});
|
|
590
583
|
}
|
|
@@ -600,7 +593,7 @@ const de_DeleteFirewallPolicyCommand = async (output, context) => {
|
|
|
600
593
|
$metadata: deserializeMetadata(output),
|
|
601
594
|
...contents,
|
|
602
595
|
};
|
|
603
|
-
return
|
|
596
|
+
return response;
|
|
604
597
|
};
|
|
605
598
|
exports.de_DeleteFirewallPolicyCommand = de_DeleteFirewallPolicyCommand;
|
|
606
599
|
const de_DeleteFirewallPolicyCommandError = async (output, context) => {
|
|
@@ -630,10 +623,9 @@ const de_DeleteFirewallPolicyCommandError = async (output, context) => {
|
|
|
630
623
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
631
624
|
default:
|
|
632
625
|
const parsedBody = parsedOutput.body;
|
|
633
|
-
|
|
626
|
+
return throwDefaultError({
|
|
634
627
|
output,
|
|
635
628
|
parsedBody,
|
|
636
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
637
629
|
errorCode,
|
|
638
630
|
});
|
|
639
631
|
}
|
|
@@ -644,12 +636,12 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
644
636
|
}
|
|
645
637
|
const data = await parseBody(output.body, context);
|
|
646
638
|
let contents = {};
|
|
647
|
-
contents =
|
|
639
|
+
contents = (0, smithy_client_1._json)(data);
|
|
648
640
|
const response = {
|
|
649
641
|
$metadata: deserializeMetadata(output),
|
|
650
642
|
...contents,
|
|
651
643
|
};
|
|
652
|
-
return
|
|
644
|
+
return response;
|
|
653
645
|
};
|
|
654
646
|
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
655
647
|
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
@@ -676,10 +668,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
676
668
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
677
669
|
default:
|
|
678
670
|
const parsedBody = parsedOutput.body;
|
|
679
|
-
|
|
671
|
+
return throwDefaultError({
|
|
680
672
|
output,
|
|
681
673
|
parsedBody,
|
|
682
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
683
674
|
errorCode,
|
|
684
675
|
});
|
|
685
676
|
}
|
|
@@ -695,7 +686,7 @@ const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
|
695
686
|
$metadata: deserializeMetadata(output),
|
|
696
687
|
...contents,
|
|
697
688
|
};
|
|
698
|
-
return
|
|
689
|
+
return response;
|
|
699
690
|
};
|
|
700
691
|
exports.de_DeleteRuleGroupCommand = de_DeleteRuleGroupCommand;
|
|
701
692
|
const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
@@ -725,10 +716,9 @@ const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
|
725
716
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
726
717
|
default:
|
|
727
718
|
const parsedBody = parsedOutput.body;
|
|
728
|
-
|
|
719
|
+
return throwDefaultError({
|
|
729
720
|
output,
|
|
730
721
|
parsedBody,
|
|
731
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
732
722
|
errorCode,
|
|
733
723
|
});
|
|
734
724
|
}
|
|
@@ -744,7 +734,7 @@ const de_DeleteTLSInspectionConfigurationCommand = async (output, context) => {
|
|
|
744
734
|
$metadata: deserializeMetadata(output),
|
|
745
735
|
...contents,
|
|
746
736
|
};
|
|
747
|
-
return
|
|
737
|
+
return response;
|
|
748
738
|
};
|
|
749
739
|
exports.de_DeleteTLSInspectionConfigurationCommand = de_DeleteTLSInspectionConfigurationCommand;
|
|
750
740
|
const de_DeleteTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
@@ -771,10 +761,9 @@ const de_DeleteTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
771
761
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
772
762
|
default:
|
|
773
763
|
const parsedBody = parsedOutput.body;
|
|
774
|
-
|
|
764
|
+
return throwDefaultError({
|
|
775
765
|
output,
|
|
776
766
|
parsedBody,
|
|
777
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
778
767
|
errorCode,
|
|
779
768
|
});
|
|
780
769
|
}
|
|
@@ -785,12 +774,12 @@ const de_DescribeFirewallCommand = async (output, context) => {
|
|
|
785
774
|
}
|
|
786
775
|
const data = await parseBody(output.body, context);
|
|
787
776
|
let contents = {};
|
|
788
|
-
contents =
|
|
777
|
+
contents = (0, smithy_client_1._json)(data);
|
|
789
778
|
const response = {
|
|
790
779
|
$metadata: deserializeMetadata(output),
|
|
791
780
|
...contents,
|
|
792
781
|
};
|
|
793
|
-
return
|
|
782
|
+
return response;
|
|
794
783
|
};
|
|
795
784
|
exports.de_DescribeFirewallCommand = de_DescribeFirewallCommand;
|
|
796
785
|
const de_DescribeFirewallCommandError = async (output, context) => {
|
|
@@ -814,10 +803,9 @@ const de_DescribeFirewallCommandError = async (output, context) => {
|
|
|
814
803
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
815
804
|
default:
|
|
816
805
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
|
|
806
|
+
return throwDefaultError({
|
|
818
807
|
output,
|
|
819
808
|
parsedBody,
|
|
820
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
821
809
|
errorCode,
|
|
822
810
|
});
|
|
823
811
|
}
|
|
@@ -833,7 +821,7 @@ const de_DescribeFirewallPolicyCommand = async (output, context) => {
|
|
|
833
821
|
$metadata: deserializeMetadata(output),
|
|
834
822
|
...contents,
|
|
835
823
|
};
|
|
836
|
-
return
|
|
824
|
+
return response;
|
|
837
825
|
};
|
|
838
826
|
exports.de_DescribeFirewallPolicyCommand = de_DescribeFirewallPolicyCommand;
|
|
839
827
|
const de_DescribeFirewallPolicyCommandError = async (output, context) => {
|
|
@@ -857,10 +845,9 @@ const de_DescribeFirewallPolicyCommandError = async (output, context) => {
|
|
|
857
845
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
846
|
default:
|
|
859
847
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
|
|
848
|
+
return throwDefaultError({
|
|
861
849
|
output,
|
|
862
850
|
parsedBody,
|
|
863
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
864
851
|
errorCode,
|
|
865
852
|
});
|
|
866
853
|
}
|
|
@@ -871,12 +858,12 @@ const de_DescribeLoggingConfigurationCommand = async (output, context) => {
|
|
|
871
858
|
}
|
|
872
859
|
const data = await parseBody(output.body, context);
|
|
873
860
|
let contents = {};
|
|
874
|
-
contents =
|
|
861
|
+
contents = (0, smithy_client_1._json)(data);
|
|
875
862
|
const response = {
|
|
876
863
|
$metadata: deserializeMetadata(output),
|
|
877
864
|
...contents,
|
|
878
865
|
};
|
|
879
|
-
return
|
|
866
|
+
return response;
|
|
880
867
|
};
|
|
881
868
|
exports.de_DescribeLoggingConfigurationCommand = de_DescribeLoggingConfigurationCommand;
|
|
882
869
|
const de_DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
@@ -900,10 +887,9 @@ const de_DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
|
900
887
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
901
888
|
default:
|
|
902
889
|
const parsedBody = parsedOutput.body;
|
|
903
|
-
|
|
890
|
+
return throwDefaultError({
|
|
904
891
|
output,
|
|
905
892
|
parsedBody,
|
|
906
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
907
893
|
errorCode,
|
|
908
894
|
});
|
|
909
895
|
}
|
|
@@ -914,12 +900,12 @@ const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
|
914
900
|
}
|
|
915
901
|
const data = await parseBody(output.body, context);
|
|
916
902
|
let contents = {};
|
|
917
|
-
contents =
|
|
903
|
+
contents = (0, smithy_client_1._json)(data);
|
|
918
904
|
const response = {
|
|
919
905
|
$metadata: deserializeMetadata(output),
|
|
920
906
|
...contents,
|
|
921
907
|
};
|
|
922
|
-
return
|
|
908
|
+
return response;
|
|
923
909
|
};
|
|
924
910
|
exports.de_DescribeResourcePolicyCommand = de_DescribeResourcePolicyCommand;
|
|
925
911
|
const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
@@ -943,10 +929,9 @@ const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
|
943
929
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
944
930
|
default:
|
|
945
931
|
const parsedBody = parsedOutput.body;
|
|
946
|
-
|
|
932
|
+
return throwDefaultError({
|
|
947
933
|
output,
|
|
948
934
|
parsedBody,
|
|
949
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
950
935
|
errorCode,
|
|
951
936
|
});
|
|
952
937
|
}
|
|
@@ -962,7 +947,7 @@ const de_DescribeRuleGroupCommand = async (output, context) => {
|
|
|
962
947
|
$metadata: deserializeMetadata(output),
|
|
963
948
|
...contents,
|
|
964
949
|
};
|
|
965
|
-
return
|
|
950
|
+
return response;
|
|
966
951
|
};
|
|
967
952
|
exports.de_DescribeRuleGroupCommand = de_DescribeRuleGroupCommand;
|
|
968
953
|
const de_DescribeRuleGroupCommandError = async (output, context) => {
|
|
@@ -986,10 +971,9 @@ const de_DescribeRuleGroupCommandError = async (output, context) => {
|
|
|
986
971
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
987
972
|
default:
|
|
988
973
|
const parsedBody = parsedOutput.body;
|
|
989
|
-
|
|
974
|
+
return throwDefaultError({
|
|
990
975
|
output,
|
|
991
976
|
parsedBody,
|
|
992
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
993
977
|
errorCode,
|
|
994
978
|
});
|
|
995
979
|
}
|
|
@@ -1005,7 +989,7 @@ const de_DescribeRuleGroupMetadataCommand = async (output, context) => {
|
|
|
1005
989
|
$metadata: deserializeMetadata(output),
|
|
1006
990
|
...contents,
|
|
1007
991
|
};
|
|
1008
|
-
return
|
|
992
|
+
return response;
|
|
1009
993
|
};
|
|
1010
994
|
exports.de_DescribeRuleGroupMetadataCommand = de_DescribeRuleGroupMetadataCommand;
|
|
1011
995
|
const de_DescribeRuleGroupMetadataCommandError = async (output, context) => {
|
|
@@ -1029,10 +1013,9 @@ const de_DescribeRuleGroupMetadataCommandError = async (output, context) => {
|
|
|
1029
1013
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1030
1014
|
default:
|
|
1031
1015
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
|
|
1016
|
+
return throwDefaultError({
|
|
1033
1017
|
output,
|
|
1034
1018
|
parsedBody,
|
|
1035
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1036
1019
|
errorCode,
|
|
1037
1020
|
});
|
|
1038
1021
|
}
|
|
@@ -1048,7 +1031,7 @@ const de_DescribeTLSInspectionConfigurationCommand = async (output, context) =>
|
|
|
1048
1031
|
$metadata: deserializeMetadata(output),
|
|
1049
1032
|
...contents,
|
|
1050
1033
|
};
|
|
1051
|
-
return
|
|
1034
|
+
return response;
|
|
1052
1035
|
};
|
|
1053
1036
|
exports.de_DescribeTLSInspectionConfigurationCommand = de_DescribeTLSInspectionConfigurationCommand;
|
|
1054
1037
|
const de_DescribeTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
@@ -1072,10 +1055,9 @@ const de_DescribeTLSInspectionConfigurationCommandError = async (output, context
|
|
|
1072
1055
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
1056
|
default:
|
|
1074
1057
|
const parsedBody = parsedOutput.body;
|
|
1075
|
-
|
|
1058
|
+
return throwDefaultError({
|
|
1076
1059
|
output,
|
|
1077
1060
|
parsedBody,
|
|
1078
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1079
1061
|
errorCode,
|
|
1080
1062
|
});
|
|
1081
1063
|
}
|
|
@@ -1086,12 +1068,12 @@ const de_DisassociateSubnetsCommand = async (output, context) => {
|
|
|
1086
1068
|
}
|
|
1087
1069
|
const data = await parseBody(output.body, context);
|
|
1088
1070
|
let contents = {};
|
|
1089
|
-
contents =
|
|
1071
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1090
1072
|
const response = {
|
|
1091
1073
|
$metadata: deserializeMetadata(output),
|
|
1092
1074
|
...contents,
|
|
1093
1075
|
};
|
|
1094
|
-
return
|
|
1076
|
+
return response;
|
|
1095
1077
|
};
|
|
1096
1078
|
exports.de_DisassociateSubnetsCommand = de_DisassociateSubnetsCommand;
|
|
1097
1079
|
const de_DisassociateSubnetsCommandError = async (output, context) => {
|
|
@@ -1121,10 +1103,9 @@ const de_DisassociateSubnetsCommandError = async (output, context) => {
|
|
|
1121
1103
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1122
1104
|
default:
|
|
1123
1105
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1106
|
+
return throwDefaultError({
|
|
1125
1107
|
output,
|
|
1126
1108
|
parsedBody,
|
|
1127
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1128
1109
|
errorCode,
|
|
1129
1110
|
});
|
|
1130
1111
|
}
|
|
@@ -1135,12 +1116,12 @@ const de_ListFirewallPoliciesCommand = async (output, context) => {
|
|
|
1135
1116
|
}
|
|
1136
1117
|
const data = await parseBody(output.body, context);
|
|
1137
1118
|
let contents = {};
|
|
1138
|
-
contents =
|
|
1119
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1139
1120
|
const response = {
|
|
1140
1121
|
$metadata: deserializeMetadata(output),
|
|
1141
1122
|
...contents,
|
|
1142
1123
|
};
|
|
1143
|
-
return
|
|
1124
|
+
return response;
|
|
1144
1125
|
};
|
|
1145
1126
|
exports.de_ListFirewallPoliciesCommand = de_ListFirewallPoliciesCommand;
|
|
1146
1127
|
const de_ListFirewallPoliciesCommandError = async (output, context) => {
|
|
@@ -1161,10 +1142,9 @@ const de_ListFirewallPoliciesCommandError = async (output, context) => {
|
|
|
1161
1142
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1162
1143
|
default:
|
|
1163
1144
|
const parsedBody = parsedOutput.body;
|
|
1164
|
-
|
|
1145
|
+
return throwDefaultError({
|
|
1165
1146
|
output,
|
|
1166
1147
|
parsedBody,
|
|
1167
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1168
1148
|
errorCode,
|
|
1169
1149
|
});
|
|
1170
1150
|
}
|
|
@@ -1175,12 +1155,12 @@ const de_ListFirewallsCommand = async (output, context) => {
|
|
|
1175
1155
|
}
|
|
1176
1156
|
const data = await parseBody(output.body, context);
|
|
1177
1157
|
let contents = {};
|
|
1178
|
-
contents =
|
|
1158
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1179
1159
|
const response = {
|
|
1180
1160
|
$metadata: deserializeMetadata(output),
|
|
1181
1161
|
...contents,
|
|
1182
1162
|
};
|
|
1183
|
-
return
|
|
1163
|
+
return response;
|
|
1184
1164
|
};
|
|
1185
1165
|
exports.de_ListFirewallsCommand = de_ListFirewallsCommand;
|
|
1186
1166
|
const de_ListFirewallsCommandError = async (output, context) => {
|
|
@@ -1201,10 +1181,9 @@ const de_ListFirewallsCommandError = async (output, context) => {
|
|
|
1201
1181
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1202
1182
|
default:
|
|
1203
1183
|
const parsedBody = parsedOutput.body;
|
|
1204
|
-
|
|
1184
|
+
return throwDefaultError({
|
|
1205
1185
|
output,
|
|
1206
1186
|
parsedBody,
|
|
1207
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1208
1187
|
errorCode,
|
|
1209
1188
|
});
|
|
1210
1189
|
}
|
|
@@ -1215,12 +1194,12 @@ const de_ListRuleGroupsCommand = async (output, context) => {
|
|
|
1215
1194
|
}
|
|
1216
1195
|
const data = await parseBody(output.body, context);
|
|
1217
1196
|
let contents = {};
|
|
1218
|
-
contents =
|
|
1197
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1219
1198
|
const response = {
|
|
1220
1199
|
$metadata: deserializeMetadata(output),
|
|
1221
1200
|
...contents,
|
|
1222
1201
|
};
|
|
1223
|
-
return
|
|
1202
|
+
return response;
|
|
1224
1203
|
};
|
|
1225
1204
|
exports.de_ListRuleGroupsCommand = de_ListRuleGroupsCommand;
|
|
1226
1205
|
const de_ListRuleGroupsCommandError = async (output, context) => {
|
|
@@ -1241,10 +1220,9 @@ const de_ListRuleGroupsCommandError = async (output, context) => {
|
|
|
1241
1220
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1242
1221
|
default:
|
|
1243
1222
|
const parsedBody = parsedOutput.body;
|
|
1244
|
-
|
|
1223
|
+
return throwDefaultError({
|
|
1245
1224
|
output,
|
|
1246
1225
|
parsedBody,
|
|
1247
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1248
1226
|
errorCode,
|
|
1249
1227
|
});
|
|
1250
1228
|
}
|
|
@@ -1255,12 +1233,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1255
1233
|
}
|
|
1256
1234
|
const data = await parseBody(output.body, context);
|
|
1257
1235
|
let contents = {};
|
|
1258
|
-
contents =
|
|
1236
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1259
1237
|
const response = {
|
|
1260
1238
|
$metadata: deserializeMetadata(output),
|
|
1261
1239
|
...contents,
|
|
1262
1240
|
};
|
|
1263
|
-
return
|
|
1241
|
+
return response;
|
|
1264
1242
|
};
|
|
1265
1243
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1266
1244
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1284,10 +1262,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1284
1262
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1285
1263
|
default:
|
|
1286
1264
|
const parsedBody = parsedOutput.body;
|
|
1287
|
-
|
|
1265
|
+
return throwDefaultError({
|
|
1288
1266
|
output,
|
|
1289
1267
|
parsedBody,
|
|
1290
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1291
1268
|
errorCode,
|
|
1292
1269
|
});
|
|
1293
1270
|
}
|
|
@@ -1298,12 +1275,12 @@ const de_ListTLSInspectionConfigurationsCommand = async (output, context) => {
|
|
|
1298
1275
|
}
|
|
1299
1276
|
const data = await parseBody(output.body, context);
|
|
1300
1277
|
let contents = {};
|
|
1301
|
-
contents =
|
|
1278
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1302
1279
|
const response = {
|
|
1303
1280
|
$metadata: deserializeMetadata(output),
|
|
1304
1281
|
...contents,
|
|
1305
1282
|
};
|
|
1306
|
-
return
|
|
1283
|
+
return response;
|
|
1307
1284
|
};
|
|
1308
1285
|
exports.de_ListTLSInspectionConfigurationsCommand = de_ListTLSInspectionConfigurationsCommand;
|
|
1309
1286
|
const de_ListTLSInspectionConfigurationsCommandError = async (output, context) => {
|
|
@@ -1324,10 +1301,9 @@ const de_ListTLSInspectionConfigurationsCommandError = async (output, context) =
|
|
|
1324
1301
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1325
1302
|
default:
|
|
1326
1303
|
const parsedBody = parsedOutput.body;
|
|
1327
|
-
|
|
1304
|
+
return throwDefaultError({
|
|
1328
1305
|
output,
|
|
1329
1306
|
parsedBody,
|
|
1330
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1331
1307
|
errorCode,
|
|
1332
1308
|
});
|
|
1333
1309
|
}
|
|
@@ -1338,12 +1314,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1338
1314
|
}
|
|
1339
1315
|
const data = await parseBody(output.body, context);
|
|
1340
1316
|
let contents = {};
|
|
1341
|
-
contents =
|
|
1317
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1342
1318
|
const response = {
|
|
1343
1319
|
$metadata: deserializeMetadata(output),
|
|
1344
1320
|
...contents,
|
|
1345
1321
|
};
|
|
1346
|
-
return
|
|
1322
|
+
return response;
|
|
1347
1323
|
};
|
|
1348
1324
|
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1349
1325
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1370,10 +1346,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1370
1346
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1371
1347
|
default:
|
|
1372
1348
|
const parsedBody = parsedOutput.body;
|
|
1373
|
-
|
|
1349
|
+
return throwDefaultError({
|
|
1374
1350
|
output,
|
|
1375
1351
|
parsedBody,
|
|
1376
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1377
1352
|
errorCode,
|
|
1378
1353
|
});
|
|
1379
1354
|
}
|
|
@@ -1384,12 +1359,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1384
1359
|
}
|
|
1385
1360
|
const data = await parseBody(output.body, context);
|
|
1386
1361
|
let contents = {};
|
|
1387
|
-
contents =
|
|
1362
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1388
1363
|
const response = {
|
|
1389
1364
|
$metadata: deserializeMetadata(output),
|
|
1390
1365
|
...contents,
|
|
1391
1366
|
};
|
|
1392
|
-
return
|
|
1367
|
+
return response;
|
|
1393
1368
|
};
|
|
1394
1369
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1395
1370
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1413,10 +1388,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1413
1388
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1414
1389
|
default:
|
|
1415
1390
|
const parsedBody = parsedOutput.body;
|
|
1416
|
-
|
|
1391
|
+
return throwDefaultError({
|
|
1417
1392
|
output,
|
|
1418
1393
|
parsedBody,
|
|
1419
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1420
1394
|
errorCode,
|
|
1421
1395
|
});
|
|
1422
1396
|
}
|
|
@@ -1427,12 +1401,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1427
1401
|
}
|
|
1428
1402
|
const data = await parseBody(output.body, context);
|
|
1429
1403
|
let contents = {};
|
|
1430
|
-
contents =
|
|
1404
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1431
1405
|
const response = {
|
|
1432
1406
|
$metadata: deserializeMetadata(output),
|
|
1433
1407
|
...contents,
|
|
1434
1408
|
};
|
|
1435
|
-
return
|
|
1409
|
+
return response;
|
|
1436
1410
|
};
|
|
1437
1411
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1438
1412
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1456,10 +1430,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1456
1430
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1457
1431
|
default:
|
|
1458
1432
|
const parsedBody = parsedOutput.body;
|
|
1459
|
-
|
|
1433
|
+
return throwDefaultError({
|
|
1460
1434
|
output,
|
|
1461
1435
|
parsedBody,
|
|
1462
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1463
1436
|
errorCode,
|
|
1464
1437
|
});
|
|
1465
1438
|
}
|
|
@@ -1470,12 +1443,12 @@ const de_UpdateFirewallDeleteProtectionCommand = async (output, context) => {
|
|
|
1470
1443
|
}
|
|
1471
1444
|
const data = await parseBody(output.body, context);
|
|
1472
1445
|
let contents = {};
|
|
1473
|
-
contents =
|
|
1446
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1474
1447
|
const response = {
|
|
1475
1448
|
$metadata: deserializeMetadata(output),
|
|
1476
1449
|
...contents,
|
|
1477
1450
|
};
|
|
1478
|
-
return
|
|
1451
|
+
return response;
|
|
1479
1452
|
};
|
|
1480
1453
|
exports.de_UpdateFirewallDeleteProtectionCommand = de_UpdateFirewallDeleteProtectionCommand;
|
|
1481
1454
|
const de_UpdateFirewallDeleteProtectionCommandError = async (output, context) => {
|
|
@@ -1505,10 +1478,9 @@ const de_UpdateFirewallDeleteProtectionCommandError = async (output, context) =>
|
|
|
1505
1478
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1506
1479
|
default:
|
|
1507
1480
|
const parsedBody = parsedOutput.body;
|
|
1508
|
-
|
|
1481
|
+
return throwDefaultError({
|
|
1509
1482
|
output,
|
|
1510
1483
|
parsedBody,
|
|
1511
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1512
1484
|
errorCode,
|
|
1513
1485
|
});
|
|
1514
1486
|
}
|
|
@@ -1519,12 +1491,12 @@ const de_UpdateFirewallDescriptionCommand = async (output, context) => {
|
|
|
1519
1491
|
}
|
|
1520
1492
|
const data = await parseBody(output.body, context);
|
|
1521
1493
|
let contents = {};
|
|
1522
|
-
contents =
|
|
1494
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1523
1495
|
const response = {
|
|
1524
1496
|
$metadata: deserializeMetadata(output),
|
|
1525
1497
|
...contents,
|
|
1526
1498
|
};
|
|
1527
|
-
return
|
|
1499
|
+
return response;
|
|
1528
1500
|
};
|
|
1529
1501
|
exports.de_UpdateFirewallDescriptionCommand = de_UpdateFirewallDescriptionCommand;
|
|
1530
1502
|
const de_UpdateFirewallDescriptionCommandError = async (output, context) => {
|
|
@@ -1551,10 +1523,9 @@ const de_UpdateFirewallDescriptionCommandError = async (output, context) => {
|
|
|
1551
1523
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1552
1524
|
default:
|
|
1553
1525
|
const parsedBody = parsedOutput.body;
|
|
1554
|
-
|
|
1526
|
+
return throwDefaultError({
|
|
1555
1527
|
output,
|
|
1556
1528
|
parsedBody,
|
|
1557
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1558
1529
|
errorCode,
|
|
1559
1530
|
});
|
|
1560
1531
|
}
|
|
@@ -1565,12 +1536,12 @@ const de_UpdateFirewallEncryptionConfigurationCommand = async (output, context)
|
|
|
1565
1536
|
}
|
|
1566
1537
|
const data = await parseBody(output.body, context);
|
|
1567
1538
|
let contents = {};
|
|
1568
|
-
contents =
|
|
1539
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1569
1540
|
const response = {
|
|
1570
1541
|
$metadata: deserializeMetadata(output),
|
|
1571
1542
|
...contents,
|
|
1572
1543
|
};
|
|
1573
|
-
return
|
|
1544
|
+
return response;
|
|
1574
1545
|
};
|
|
1575
1546
|
exports.de_UpdateFirewallEncryptionConfigurationCommand = de_UpdateFirewallEncryptionConfigurationCommand;
|
|
1576
1547
|
const de_UpdateFirewallEncryptionConfigurationCommandError = async (output, context) => {
|
|
@@ -1600,10 +1571,9 @@ const de_UpdateFirewallEncryptionConfigurationCommandError = async (output, cont
|
|
|
1600
1571
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1601
1572
|
default:
|
|
1602
1573
|
const parsedBody = parsedOutput.body;
|
|
1603
|
-
|
|
1574
|
+
return throwDefaultError({
|
|
1604
1575
|
output,
|
|
1605
1576
|
parsedBody,
|
|
1606
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1607
1577
|
errorCode,
|
|
1608
1578
|
});
|
|
1609
1579
|
}
|
|
@@ -1619,7 +1589,7 @@ const de_UpdateFirewallPolicyCommand = async (output, context) => {
|
|
|
1619
1589
|
$metadata: deserializeMetadata(output),
|
|
1620
1590
|
...contents,
|
|
1621
1591
|
};
|
|
1622
|
-
return
|
|
1592
|
+
return response;
|
|
1623
1593
|
};
|
|
1624
1594
|
exports.de_UpdateFirewallPolicyCommand = de_UpdateFirewallPolicyCommand;
|
|
1625
1595
|
const de_UpdateFirewallPolicyCommandError = async (output, context) => {
|
|
@@ -1646,10 +1616,9 @@ const de_UpdateFirewallPolicyCommandError = async (output, context) => {
|
|
|
1646
1616
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1647
1617
|
default:
|
|
1648
1618
|
const parsedBody = parsedOutput.body;
|
|
1649
|
-
|
|
1619
|
+
return throwDefaultError({
|
|
1650
1620
|
output,
|
|
1651
1621
|
parsedBody,
|
|
1652
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1653
1622
|
errorCode,
|
|
1654
1623
|
});
|
|
1655
1624
|
}
|
|
@@ -1660,12 +1629,12 @@ const de_UpdateFirewallPolicyChangeProtectionCommand = async (output, context) =
|
|
|
1660
1629
|
}
|
|
1661
1630
|
const data = await parseBody(output.body, context);
|
|
1662
1631
|
let contents = {};
|
|
1663
|
-
contents =
|
|
1632
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1664
1633
|
const response = {
|
|
1665
1634
|
$metadata: deserializeMetadata(output),
|
|
1666
1635
|
...contents,
|
|
1667
1636
|
};
|
|
1668
|
-
return
|
|
1637
|
+
return response;
|
|
1669
1638
|
};
|
|
1670
1639
|
exports.de_UpdateFirewallPolicyChangeProtectionCommand = de_UpdateFirewallPolicyChangeProtectionCommand;
|
|
1671
1640
|
const de_UpdateFirewallPolicyChangeProtectionCommandError = async (output, context) => {
|
|
@@ -1695,10 +1664,9 @@ const de_UpdateFirewallPolicyChangeProtectionCommandError = async (output, conte
|
|
|
1695
1664
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1696
1665
|
default:
|
|
1697
1666
|
const parsedBody = parsedOutput.body;
|
|
1698
|
-
|
|
1667
|
+
return throwDefaultError({
|
|
1699
1668
|
output,
|
|
1700
1669
|
parsedBody,
|
|
1701
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1702
1670
|
errorCode,
|
|
1703
1671
|
});
|
|
1704
1672
|
}
|
|
@@ -1709,12 +1677,12 @@ const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
|
1709
1677
|
}
|
|
1710
1678
|
const data = await parseBody(output.body, context);
|
|
1711
1679
|
let contents = {};
|
|
1712
|
-
contents =
|
|
1680
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1713
1681
|
const response = {
|
|
1714
1682
|
$metadata: deserializeMetadata(output),
|
|
1715
1683
|
...contents,
|
|
1716
1684
|
};
|
|
1717
|
-
return
|
|
1685
|
+
return response;
|
|
1718
1686
|
};
|
|
1719
1687
|
exports.de_UpdateLoggingConfigurationCommand = de_UpdateLoggingConfigurationCommand;
|
|
1720
1688
|
const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
@@ -1744,10 +1712,9 @@ const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
|
1744
1712
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1745
1713
|
default:
|
|
1746
1714
|
const parsedBody = parsedOutput.body;
|
|
1747
|
-
|
|
1715
|
+
return throwDefaultError({
|
|
1748
1716
|
output,
|
|
1749
1717
|
parsedBody,
|
|
1750
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1751
1718
|
errorCode,
|
|
1752
1719
|
});
|
|
1753
1720
|
}
|
|
@@ -1763,7 +1730,7 @@ const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
|
1763
1730
|
$metadata: deserializeMetadata(output),
|
|
1764
1731
|
...contents,
|
|
1765
1732
|
};
|
|
1766
|
-
return
|
|
1733
|
+
return response;
|
|
1767
1734
|
};
|
|
1768
1735
|
exports.de_UpdateRuleGroupCommand = de_UpdateRuleGroupCommand;
|
|
1769
1736
|
const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
@@ -1790,10 +1757,9 @@ const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
|
1790
1757
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1791
1758
|
default:
|
|
1792
1759
|
const parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1760
|
+
return throwDefaultError({
|
|
1794
1761
|
output,
|
|
1795
1762
|
parsedBody,
|
|
1796
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1797
1763
|
errorCode,
|
|
1798
1764
|
});
|
|
1799
1765
|
}
|
|
@@ -1804,12 +1770,12 @@ const de_UpdateSubnetChangeProtectionCommand = async (output, context) => {
|
|
|
1804
1770
|
}
|
|
1805
1771
|
const data = await parseBody(output.body, context);
|
|
1806
1772
|
let contents = {};
|
|
1807
|
-
contents =
|
|
1773
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1808
1774
|
const response = {
|
|
1809
1775
|
$metadata: deserializeMetadata(output),
|
|
1810
1776
|
...contents,
|
|
1811
1777
|
};
|
|
1812
|
-
return
|
|
1778
|
+
return response;
|
|
1813
1779
|
};
|
|
1814
1780
|
exports.de_UpdateSubnetChangeProtectionCommand = de_UpdateSubnetChangeProtectionCommand;
|
|
1815
1781
|
const de_UpdateSubnetChangeProtectionCommandError = async (output, context) => {
|
|
@@ -1839,10 +1805,9 @@ const de_UpdateSubnetChangeProtectionCommandError = async (output, context) => {
|
|
|
1839
1805
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1840
1806
|
default:
|
|
1841
1807
|
const parsedBody = parsedOutput.body;
|
|
1842
|
-
|
|
1808
|
+
return throwDefaultError({
|
|
1843
1809
|
output,
|
|
1844
1810
|
parsedBody,
|
|
1845
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1846
1811
|
errorCode,
|
|
1847
1812
|
});
|
|
1848
1813
|
}
|
|
@@ -1858,7 +1823,7 @@ const de_UpdateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
|
1858
1823
|
$metadata: deserializeMetadata(output),
|
|
1859
1824
|
...contents,
|
|
1860
1825
|
};
|
|
1861
|
-
return
|
|
1826
|
+
return response;
|
|
1862
1827
|
};
|
|
1863
1828
|
exports.de_UpdateTLSInspectionConfigurationCommand = de_UpdateTLSInspectionConfigurationCommand;
|
|
1864
1829
|
const de_UpdateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
@@ -1885,17 +1850,16 @@ const de_UpdateTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
1885
1850
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1886
1851
|
default:
|
|
1887
1852
|
const parsedBody = parsedOutput.body;
|
|
1888
|
-
|
|
1853
|
+
return throwDefaultError({
|
|
1889
1854
|
output,
|
|
1890
1855
|
parsedBody,
|
|
1891
|
-
exceptionCtor: NetworkFirewallServiceException_1.NetworkFirewallServiceException,
|
|
1892
1856
|
errorCode,
|
|
1893
1857
|
});
|
|
1894
1858
|
}
|
|
1895
1859
|
};
|
|
1896
1860
|
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
1897
1861
|
const body = parsedOutput.body;
|
|
1898
|
-
const deserialized =
|
|
1862
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1899
1863
|
const exception = new models_0_1.InsufficientCapacityException({
|
|
1900
1864
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1901
1865
|
...deserialized,
|
|
@@ -1904,7 +1868,7 @@ const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
|
1904
1868
|
};
|
|
1905
1869
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1906
1870
|
const body = parsedOutput.body;
|
|
1907
|
-
const deserialized =
|
|
1871
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1908
1872
|
const exception = new models_0_1.InternalServerError({
|
|
1909
1873
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1910
1874
|
...deserialized,
|
|
@@ -1913,7 +1877,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
1913
1877
|
};
|
|
1914
1878
|
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
1915
1879
|
const body = parsedOutput.body;
|
|
1916
|
-
const deserialized =
|
|
1880
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1917
1881
|
const exception = new models_0_1.InvalidOperationException({
|
|
1918
1882
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1919
1883
|
...deserialized,
|
|
@@ -1922,7 +1886,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
1922
1886
|
};
|
|
1923
1887
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1924
1888
|
const body = parsedOutput.body;
|
|
1925
|
-
const deserialized =
|
|
1889
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1926
1890
|
const exception = new models_0_1.InvalidRequestException({
|
|
1927
1891
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1928
1892
|
...deserialized,
|
|
@@ -1931,7 +1895,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1931
1895
|
};
|
|
1932
1896
|
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
1933
1897
|
const body = parsedOutput.body;
|
|
1934
|
-
const deserialized =
|
|
1898
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1935
1899
|
const exception = new models_0_1.InvalidResourcePolicyException({
|
|
1936
1900
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1937
1901
|
...deserialized,
|
|
@@ -1940,7 +1904,7 @@ const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
1940
1904
|
};
|
|
1941
1905
|
const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
1942
1906
|
const body = parsedOutput.body;
|
|
1943
|
-
const deserialized =
|
|
1907
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1944
1908
|
const exception = new models_0_1.InvalidTokenException({
|
|
1945
1909
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1946
1910
|
...deserialized,
|
|
@@ -1949,7 +1913,7 @@ const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1949
1913
|
};
|
|
1950
1914
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1951
1915
|
const body = parsedOutput.body;
|
|
1952
|
-
const deserialized =
|
|
1916
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1953
1917
|
const exception = new models_0_1.LimitExceededException({
|
|
1954
1918
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1955
1919
|
...deserialized,
|
|
@@ -1958,7 +1922,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1958
1922
|
};
|
|
1959
1923
|
const de_LogDestinationPermissionExceptionRes = async (parsedOutput, context) => {
|
|
1960
1924
|
const body = parsedOutput.body;
|
|
1961
|
-
const deserialized =
|
|
1925
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1962
1926
|
const exception = new models_0_1.LogDestinationPermissionException({
|
|
1963
1927
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1964
1928
|
...deserialized,
|
|
@@ -1967,7 +1931,7 @@ const de_LogDestinationPermissionExceptionRes = async (parsedOutput, context) =>
|
|
|
1967
1931
|
};
|
|
1968
1932
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1969
1933
|
const body = parsedOutput.body;
|
|
1970
|
-
const deserialized =
|
|
1934
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1971
1935
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1972
1936
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1973
1937
|
...deserialized,
|
|
@@ -1976,7 +1940,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1976
1940
|
};
|
|
1977
1941
|
const de_ResourceOwnerCheckExceptionRes = async (parsedOutput, context) => {
|
|
1978
1942
|
const body = parsedOutput.body;
|
|
1979
|
-
const deserialized =
|
|
1943
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1980
1944
|
const exception = new models_0_1.ResourceOwnerCheckException({
|
|
1981
1945
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1982
1946
|
...deserialized,
|
|
@@ -1985,7 +1949,7 @@ const de_ResourceOwnerCheckExceptionRes = async (parsedOutput, context) => {
|
|
|
1985
1949
|
};
|
|
1986
1950
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1987
1951
|
const body = parsedOutput.body;
|
|
1988
|
-
const deserialized =
|
|
1952
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1989
1953
|
const exception = new models_0_1.ThrottlingException({
|
|
1990
1954
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1991
1955
|
...deserialized,
|
|
@@ -1994,1924 +1958,170 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1994
1958
|
};
|
|
1995
1959
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1996
1960
|
const body = parsedOutput.body;
|
|
1997
|
-
const deserialized =
|
|
1961
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1998
1962
|
const exception = new models_0_1.UnsupportedOperationException({
|
|
1999
1963
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2000
1964
|
...deserialized,
|
|
2001
1965
|
});
|
|
2002
1966
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2003
1967
|
};
|
|
2004
|
-
const
|
|
2005
|
-
return {
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
const se_Addresses = (input, context) => {
|
|
2017
|
-
return input
|
|
2018
|
-
.filter((e) => e != null)
|
|
2019
|
-
.map((entry) => {
|
|
2020
|
-
return se_Address(entry, context);
|
|
2021
|
-
});
|
|
2022
|
-
};
|
|
2023
|
-
const se_AssociateFirewallPolicyRequest = (input, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2026
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2027
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2028
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2029
|
-
};
|
|
2030
|
-
};
|
|
2031
|
-
const se_AssociateSubnetsRequest = (input, context) => {
|
|
2032
|
-
return {
|
|
2033
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2034
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2035
|
-
...(input.SubnetMappings != null && { SubnetMappings: se_SubnetMappings(input.SubnetMappings, context) }),
|
|
2036
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2037
|
-
};
|
|
2038
|
-
};
|
|
2039
|
-
const se_AzSubnets = (input, context) => {
|
|
2040
|
-
return input
|
|
2041
|
-
.filter((e) => e != null)
|
|
2042
|
-
.map((entry) => {
|
|
2043
|
-
return entry;
|
|
2044
|
-
});
|
|
2045
|
-
};
|
|
2046
|
-
const se_CreateFirewallPolicyRequest = (input, context) => {
|
|
2047
|
-
return {
|
|
2048
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2049
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2050
|
-
...(input.EncryptionConfiguration != null && {
|
|
2051
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2052
|
-
}),
|
|
2053
|
-
...(input.FirewallPolicy != null && { FirewallPolicy: se_FirewallPolicy(input.FirewallPolicy, context) }),
|
|
2054
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2055
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2056
|
-
};
|
|
2057
|
-
};
|
|
2058
|
-
const se_CreateFirewallRequest = (input, context) => {
|
|
2059
|
-
return {
|
|
2060
|
-
...(input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection }),
|
|
2061
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2062
|
-
...(input.EncryptionConfiguration != null && {
|
|
2063
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2064
|
-
}),
|
|
2065
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2066
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2067
|
-
...(input.FirewallPolicyChangeProtection != null && {
|
|
2068
|
-
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
2069
|
-
}),
|
|
2070
|
-
...(input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
2071
|
-
...(input.SubnetMappings != null && { SubnetMappings: se_SubnetMappings(input.SubnetMappings, context) }),
|
|
2072
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2073
|
-
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
2074
|
-
};
|
|
2075
|
-
};
|
|
2076
|
-
const se_CreateRuleGroupRequest = (input, context) => {
|
|
2077
|
-
return {
|
|
2078
|
-
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
2079
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2080
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2081
|
-
...(input.EncryptionConfiguration != null && {
|
|
2082
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2083
|
-
}),
|
|
2084
|
-
...(input.RuleGroup != null && { RuleGroup: se_RuleGroup(input.RuleGroup, context) }),
|
|
2085
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2086
|
-
...(input.Rules != null && { Rules: input.Rules }),
|
|
2087
|
-
...(input.SourceMetadata != null && { SourceMetadata: se_SourceMetadata(input.SourceMetadata, context) }),
|
|
2088
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2089
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const se_CreateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2095
|
-
...(input.EncryptionConfiguration != null && {
|
|
2096
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2097
|
-
}),
|
|
2098
|
-
...(input.TLSInspectionConfiguration != null && {
|
|
2099
|
-
TLSInspectionConfiguration: se_TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2100
|
-
}),
|
|
2101
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2102
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2103
|
-
}),
|
|
2104
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const se_CustomAction = (input, context) => {
|
|
2108
|
-
return {
|
|
2109
|
-
...(input.ActionDefinition != null && { ActionDefinition: se_ActionDefinition(input.ActionDefinition, context) }),
|
|
2110
|
-
...(input.ActionName != null && { ActionName: input.ActionName }),
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
const se_CustomActions = (input, context) => {
|
|
2114
|
-
return input
|
|
2115
|
-
.filter((e) => e != null)
|
|
2116
|
-
.map((entry) => {
|
|
2117
|
-
return se_CustomAction(entry, context);
|
|
2118
|
-
});
|
|
2119
|
-
};
|
|
2120
|
-
const se_DeleteFirewallPolicyRequest = (input, context) => {
|
|
2121
|
-
return {
|
|
2122
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2123
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2124
|
-
};
|
|
2125
|
-
};
|
|
2126
|
-
const se_DeleteFirewallRequest = (input, context) => {
|
|
2127
|
-
return {
|
|
2128
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2129
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2130
|
-
};
|
|
2131
|
-
};
|
|
2132
|
-
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
2133
|
-
return {
|
|
2134
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
const se_DeleteRuleGroupRequest = (input, context) => {
|
|
2138
|
-
return {
|
|
2139
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2140
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2141
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2142
|
-
};
|
|
2143
|
-
};
|
|
2144
|
-
const se_DeleteTLSInspectionConfigurationRequest = (input, context) => {
|
|
2145
|
-
return {
|
|
2146
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2147
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2148
|
-
}),
|
|
2149
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2150
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2151
|
-
}),
|
|
2152
|
-
};
|
|
2153
|
-
};
|
|
2154
|
-
const se_DescribeFirewallPolicyRequest = (input, context) => {
|
|
2155
|
-
return {
|
|
2156
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2157
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
const se_DescribeFirewallRequest = (input, context) => {
|
|
2161
|
-
return {
|
|
2162
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2163
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2164
|
-
};
|
|
2165
|
-
};
|
|
2166
|
-
const se_DescribeLoggingConfigurationRequest = (input, context) => {
|
|
2167
|
-
return {
|
|
2168
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2169
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2170
|
-
};
|
|
2171
|
-
};
|
|
2172
|
-
const se_DescribeResourcePolicyRequest = (input, context) => {
|
|
2173
|
-
return {
|
|
2174
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const se_DescribeRuleGroupMetadataRequest = (input, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2180
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2181
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2182
|
-
};
|
|
2183
|
-
};
|
|
2184
|
-
const se_DescribeRuleGroupRequest = (input, context) => {
|
|
2185
|
-
return {
|
|
2186
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2187
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2188
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2189
|
-
};
|
|
2190
|
-
};
|
|
2191
|
-
const se_DescribeTLSInspectionConfigurationRequest = (input, context) => {
|
|
2192
|
-
return {
|
|
2193
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2194
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2195
|
-
}),
|
|
2196
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2197
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2198
|
-
}),
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
const se_Dimension = (input, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
const se_Dimensions = (input, context) => {
|
|
2207
|
-
return input
|
|
2208
|
-
.filter((e) => e != null)
|
|
2209
|
-
.map((entry) => {
|
|
2210
|
-
return se_Dimension(entry, context);
|
|
2211
|
-
});
|
|
2212
|
-
};
|
|
2213
|
-
const se_DisassociateSubnetsRequest = (input, context) => {
|
|
2214
|
-
return {
|
|
2215
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2216
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2217
|
-
...(input.SubnetIds != null && { SubnetIds: se_AzSubnets(input.SubnetIds, context) }),
|
|
2218
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2219
|
-
};
|
|
2220
|
-
};
|
|
2221
|
-
const se_EncryptionConfiguration = (input, context) => {
|
|
2222
|
-
return {
|
|
2223
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2224
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2225
|
-
};
|
|
2226
|
-
};
|
|
2227
|
-
const se_FirewallPolicy = (input, context) => {
|
|
2228
|
-
return {
|
|
2229
|
-
...(input.StatefulDefaultActions != null && {
|
|
2230
|
-
StatefulDefaultActions: se_StatefulActions(input.StatefulDefaultActions, context),
|
|
2231
|
-
}),
|
|
2232
|
-
...(input.StatefulEngineOptions != null && {
|
|
2233
|
-
StatefulEngineOptions: se_StatefulEngineOptions(input.StatefulEngineOptions, context),
|
|
2234
|
-
}),
|
|
2235
|
-
...(input.StatefulRuleGroupReferences != null && {
|
|
2236
|
-
StatefulRuleGroupReferences: se_StatefulRuleGroupReferences(input.StatefulRuleGroupReferences, context),
|
|
2237
|
-
}),
|
|
2238
|
-
...(input.StatelessCustomActions != null && {
|
|
2239
|
-
StatelessCustomActions: se_CustomActions(input.StatelessCustomActions, context),
|
|
2240
|
-
}),
|
|
2241
|
-
...(input.StatelessDefaultActions != null && {
|
|
2242
|
-
StatelessDefaultActions: se_StatelessActions(input.StatelessDefaultActions, context),
|
|
2243
|
-
}),
|
|
2244
|
-
...(input.StatelessFragmentDefaultActions != null && {
|
|
2245
|
-
StatelessFragmentDefaultActions: se_StatelessActions(input.StatelessFragmentDefaultActions, context),
|
|
2246
|
-
}),
|
|
2247
|
-
...(input.StatelessRuleGroupReferences != null && {
|
|
2248
|
-
StatelessRuleGroupReferences: se_StatelessRuleGroupReferences(input.StatelessRuleGroupReferences, context),
|
|
2249
|
-
}),
|
|
2250
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2251
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2252
|
-
}),
|
|
2253
|
-
};
|
|
2254
|
-
};
|
|
2255
|
-
const se_Flags = (input, context) => {
|
|
2256
|
-
return input
|
|
2257
|
-
.filter((e) => e != null)
|
|
2258
|
-
.map((entry) => {
|
|
2259
|
-
return entry;
|
|
2260
|
-
});
|
|
2261
|
-
};
|
|
2262
|
-
const se_Header = (input, context) => {
|
|
2263
|
-
return {
|
|
2264
|
-
...(input.Destination != null && { Destination: input.Destination }),
|
|
2265
|
-
...(input.DestinationPort != null && { DestinationPort: input.DestinationPort }),
|
|
2266
|
-
...(input.Direction != null && { Direction: input.Direction }),
|
|
2267
|
-
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
2268
|
-
...(input.Source != null && { Source: input.Source }),
|
|
2269
|
-
...(input.SourcePort != null && { SourcePort: input.SourcePort }),
|
|
2270
|
-
};
|
|
2271
|
-
};
|
|
2272
|
-
const se_IPSet = (input, context) => {
|
|
2273
|
-
return {
|
|
2274
|
-
...(input.Definition != null && { Definition: se_VariableDefinitionList(input.Definition, context) }),
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
|
-
const se_IPSetReference = (input, context) => {
|
|
2278
|
-
return {
|
|
2279
|
-
...(input.ReferenceArn != null && { ReferenceArn: input.ReferenceArn }),
|
|
2280
|
-
};
|
|
2281
|
-
};
|
|
2282
|
-
const se_IPSetReferenceMap = (input, context) => {
|
|
2283
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2284
|
-
if (value === null) {
|
|
2285
|
-
return acc;
|
|
2286
|
-
}
|
|
2287
|
-
acc[key] = se_IPSetReference(value, context);
|
|
2288
|
-
return acc;
|
|
2289
|
-
}, {});
|
|
2290
|
-
};
|
|
2291
|
-
const se_IPSets = (input, context) => {
|
|
2292
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2293
|
-
if (value === null) {
|
|
2294
|
-
return acc;
|
|
2295
|
-
}
|
|
2296
|
-
acc[key] = se_IPSet(value, context);
|
|
2297
|
-
return acc;
|
|
2298
|
-
}, {});
|
|
2299
|
-
};
|
|
2300
|
-
const se_ListFirewallPoliciesRequest = (input, context) => {
|
|
2301
|
-
return {
|
|
2302
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2303
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2304
|
-
};
|
|
2305
|
-
};
|
|
2306
|
-
const se_ListFirewallsRequest = (input, context) => {
|
|
2307
|
-
return {
|
|
2308
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2309
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2310
|
-
...(input.VpcIds != null && { VpcIds: se_VpcIds(input.VpcIds, context) }),
|
|
2311
|
-
};
|
|
2312
|
-
};
|
|
2313
|
-
const se_ListRuleGroupsRequest = (input, context) => {
|
|
2314
|
-
return {
|
|
2315
|
-
...(input.ManagedType != null && { ManagedType: input.ManagedType }),
|
|
2316
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2317
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2318
|
-
...(input.Scope != null && { Scope: input.Scope }),
|
|
2319
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2320
|
-
};
|
|
2321
|
-
};
|
|
2322
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2323
|
-
return {
|
|
2324
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2325
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2326
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
const se_ListTLSInspectionConfigurationsRequest = (input, context) => {
|
|
2330
|
-
return {
|
|
2331
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2332
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
const se_LogDestinationConfig = (input, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
...(input.LogDestination != null && { LogDestination: se_LogDestinationMap(input.LogDestination, context) }),
|
|
2338
|
-
...(input.LogDestinationType != null && { LogDestinationType: input.LogDestinationType }),
|
|
2339
|
-
...(input.LogType != null && { LogType: input.LogType }),
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
const se_LogDestinationConfigs = (input, context) => {
|
|
2343
|
-
return input
|
|
2344
|
-
.filter((e) => e != null)
|
|
2345
|
-
.map((entry) => {
|
|
2346
|
-
return se_LogDestinationConfig(entry, context);
|
|
2347
|
-
});
|
|
2348
|
-
};
|
|
2349
|
-
const se_LogDestinationMap = (input, context) => {
|
|
2350
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2351
|
-
if (value === null) {
|
|
2352
|
-
return acc;
|
|
2353
|
-
}
|
|
2354
|
-
acc[key] = value;
|
|
2355
|
-
return acc;
|
|
2356
|
-
}, {});
|
|
2357
|
-
};
|
|
2358
|
-
const se_LoggingConfiguration = (input, context) => {
|
|
2359
|
-
return {
|
|
2360
|
-
...(input.LogDestinationConfigs != null && {
|
|
2361
|
-
LogDestinationConfigs: se_LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
2362
|
-
}),
|
|
2363
|
-
};
|
|
2364
|
-
};
|
|
2365
|
-
const se_MatchAttributes = (input, context) => {
|
|
2366
|
-
return {
|
|
2367
|
-
...(input.DestinationPorts != null && { DestinationPorts: se_PortRanges(input.DestinationPorts, context) }),
|
|
2368
|
-
...(input.Destinations != null && { Destinations: se_Addresses(input.Destinations, context) }),
|
|
2369
|
-
...(input.Protocols != null && { Protocols: se_ProtocolNumbers(input.Protocols, context) }),
|
|
2370
|
-
...(input.SourcePorts != null && { SourcePorts: se_PortRanges(input.SourcePorts, context) }),
|
|
2371
|
-
...(input.Sources != null && { Sources: se_Addresses(input.Sources, context) }),
|
|
2372
|
-
...(input.TCPFlags != null && { TCPFlags: se_TCPFlags(input.TCPFlags, context) }),
|
|
2373
|
-
};
|
|
2374
|
-
};
|
|
2375
|
-
const se_PortRange = (input, context) => {
|
|
2376
|
-
return {
|
|
2377
|
-
...(input.FromPort != null && { FromPort: input.FromPort }),
|
|
2378
|
-
...(input.ToPort != null && { ToPort: input.ToPort }),
|
|
2379
|
-
};
|
|
2380
|
-
};
|
|
2381
|
-
const se_PortRanges = (input, context) => {
|
|
2382
|
-
return input
|
|
2383
|
-
.filter((e) => e != null)
|
|
2384
|
-
.map((entry) => {
|
|
2385
|
-
return se_PortRange(entry, context);
|
|
2386
|
-
});
|
|
2387
|
-
};
|
|
2388
|
-
const se_PortSet = (input, context) => {
|
|
2389
|
-
return {
|
|
2390
|
-
...(input.Definition != null && { Definition: se_VariableDefinitionList(input.Definition, context) }),
|
|
2391
|
-
};
|
|
2392
|
-
};
|
|
2393
|
-
const se_PortSets = (input, context) => {
|
|
2394
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2395
|
-
if (value === null) {
|
|
2396
|
-
return acc;
|
|
2397
|
-
}
|
|
2398
|
-
acc[key] = se_PortSet(value, context);
|
|
2399
|
-
return acc;
|
|
2400
|
-
}, {});
|
|
2401
|
-
};
|
|
2402
|
-
const se_ProtocolNumbers = (input, context) => {
|
|
2403
|
-
return input
|
|
2404
|
-
.filter((e) => e != null)
|
|
2405
|
-
.map((entry) => {
|
|
2406
|
-
return entry;
|
|
2407
|
-
});
|
|
2408
|
-
};
|
|
2409
|
-
const se_PublishMetricAction = (input, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
2412
|
-
};
|
|
2413
|
-
};
|
|
2414
|
-
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2415
|
-
return {
|
|
2416
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
2417
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2418
|
-
};
|
|
2419
|
-
};
|
|
2420
|
-
const se_ReferenceSets = (input, context) => {
|
|
2421
|
-
return {
|
|
2422
|
-
...(input.IPSetReferences != null && { IPSetReferences: se_IPSetReferenceMap(input.IPSetReferences, context) }),
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
const se_RuleDefinition = (input, context) => {
|
|
2426
|
-
return {
|
|
2427
|
-
...(input.Actions != null && { Actions: se_StatelessActions(input.Actions, context) }),
|
|
2428
|
-
...(input.MatchAttributes != null && { MatchAttributes: se_MatchAttributes(input.MatchAttributes, context) }),
|
|
2429
|
-
};
|
|
2430
|
-
};
|
|
2431
|
-
const se_RuleGroup = (input, context) => {
|
|
2432
|
-
return {
|
|
2433
|
-
...(input.ReferenceSets != null && { ReferenceSets: se_ReferenceSets(input.ReferenceSets, context) }),
|
|
2434
|
-
...(input.RuleVariables != null && { RuleVariables: se_RuleVariables(input.RuleVariables, context) }),
|
|
2435
|
-
...(input.RulesSource != null && { RulesSource: se_RulesSource(input.RulesSource, context) }),
|
|
2436
|
-
...(input.StatefulRuleOptions != null && {
|
|
2437
|
-
StatefulRuleOptions: se_StatefulRuleOptions(input.StatefulRuleOptions, context),
|
|
2438
|
-
}),
|
|
2439
|
-
};
|
|
2440
|
-
};
|
|
2441
|
-
const se_RuleOption = (input, context) => {
|
|
2442
|
-
return {
|
|
2443
|
-
...(input.Keyword != null && { Keyword: input.Keyword }),
|
|
2444
|
-
...(input.Settings != null && { Settings: se_Settings(input.Settings, context) }),
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
const se_RuleOptions = (input, context) => {
|
|
2448
|
-
return input
|
|
2449
|
-
.filter((e) => e != null)
|
|
2450
|
-
.map((entry) => {
|
|
2451
|
-
return se_RuleOption(entry, context);
|
|
2452
|
-
});
|
|
2453
|
-
};
|
|
2454
|
-
const se_RulesSource = (input, context) => {
|
|
2455
|
-
return {
|
|
2456
|
-
...(input.RulesSourceList != null && { RulesSourceList: se_RulesSourceList(input.RulesSourceList, context) }),
|
|
2457
|
-
...(input.RulesString != null && { RulesString: input.RulesString }),
|
|
2458
|
-
...(input.StatefulRules != null && { StatefulRules: se_StatefulRules(input.StatefulRules, context) }),
|
|
2459
|
-
...(input.StatelessRulesAndCustomActions != null && {
|
|
2460
|
-
StatelessRulesAndCustomActions: se_StatelessRulesAndCustomActions(input.StatelessRulesAndCustomActions, context),
|
|
2461
|
-
}),
|
|
2462
|
-
};
|
|
2463
|
-
};
|
|
2464
|
-
const se_RulesSourceList = (input, context) => {
|
|
2465
|
-
return {
|
|
2466
|
-
...(input.GeneratedRulesType != null && { GeneratedRulesType: input.GeneratedRulesType }),
|
|
2467
|
-
...(input.TargetTypes != null && { TargetTypes: se_TargetTypes(input.TargetTypes, context) }),
|
|
2468
|
-
...(input.Targets != null && { Targets: se_RuleTargets(input.Targets, context) }),
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
const se_RuleTargets = (input, context) => {
|
|
2472
|
-
return input
|
|
2473
|
-
.filter((e) => e != null)
|
|
2474
|
-
.map((entry) => {
|
|
2475
|
-
return entry;
|
|
2476
|
-
});
|
|
2477
|
-
};
|
|
2478
|
-
const se_RuleVariables = (input, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
...(input.IPSets != null && { IPSets: se_IPSets(input.IPSets, context) }),
|
|
2481
|
-
...(input.PortSets != null && { PortSets: se_PortSets(input.PortSets, context) }),
|
|
2482
|
-
};
|
|
2483
|
-
};
|
|
2484
|
-
const se_ServerCertificate = (input, context) => {
|
|
2485
|
-
return {
|
|
2486
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2487
|
-
};
|
|
2488
|
-
};
|
|
2489
|
-
const se_ServerCertificateConfiguration = (input, context) => {
|
|
2490
|
-
return {
|
|
2491
|
-
...(input.Scopes != null && { Scopes: se_ServerCertificateScopes(input.Scopes, context) }),
|
|
2492
|
-
...(input.ServerCertificates != null && {
|
|
2493
|
-
ServerCertificates: se_ServerCertificates(input.ServerCertificates, context),
|
|
2494
|
-
}),
|
|
2495
|
-
};
|
|
2496
|
-
};
|
|
2497
|
-
const se_ServerCertificateConfigurations = (input, context) => {
|
|
2498
|
-
return input
|
|
2499
|
-
.filter((e) => e != null)
|
|
2500
|
-
.map((entry) => {
|
|
2501
|
-
return se_ServerCertificateConfiguration(entry, context);
|
|
2502
|
-
});
|
|
2503
|
-
};
|
|
2504
|
-
const se_ServerCertificates = (input, context) => {
|
|
2505
|
-
return input
|
|
2506
|
-
.filter((e) => e != null)
|
|
2507
|
-
.map((entry) => {
|
|
2508
|
-
return se_ServerCertificate(entry, context);
|
|
2509
|
-
});
|
|
2510
|
-
};
|
|
2511
|
-
const se_ServerCertificateScope = (input, context) => {
|
|
2512
|
-
return {
|
|
2513
|
-
...(input.DestinationPorts != null && { DestinationPorts: se_PortRanges(input.DestinationPorts, context) }),
|
|
2514
|
-
...(input.Destinations != null && { Destinations: se_Addresses(input.Destinations, context) }),
|
|
2515
|
-
...(input.Protocols != null && { Protocols: se_ProtocolNumbers(input.Protocols, context) }),
|
|
2516
|
-
...(input.SourcePorts != null && { SourcePorts: se_PortRanges(input.SourcePorts, context) }),
|
|
2517
|
-
...(input.Sources != null && { Sources: se_Addresses(input.Sources, context) }),
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
const se_ServerCertificateScopes = (input, context) => {
|
|
2521
|
-
return input
|
|
2522
|
-
.filter((e) => e != null)
|
|
2523
|
-
.map((entry) => {
|
|
2524
|
-
return se_ServerCertificateScope(entry, context);
|
|
2525
|
-
});
|
|
2526
|
-
};
|
|
2527
|
-
const se_Settings = (input, context) => {
|
|
2528
|
-
return input
|
|
2529
|
-
.filter((e) => e != null)
|
|
2530
|
-
.map((entry) => {
|
|
2531
|
-
return entry;
|
|
2532
|
-
});
|
|
2533
|
-
};
|
|
2534
|
-
const se_SourceMetadata = (input, context) => {
|
|
2535
|
-
return {
|
|
2536
|
-
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
2537
|
-
...(input.SourceUpdateToken != null && { SourceUpdateToken: input.SourceUpdateToken }),
|
|
2538
|
-
};
|
|
2539
|
-
};
|
|
2540
|
-
const se_StatefulActions = (input, context) => {
|
|
2541
|
-
return input
|
|
2542
|
-
.filter((e) => e != null)
|
|
2543
|
-
.map((entry) => {
|
|
2544
|
-
return entry;
|
|
2545
|
-
});
|
|
2546
|
-
};
|
|
2547
|
-
const se_StatefulEngineOptions = (input, context) => {
|
|
2548
|
-
return {
|
|
2549
|
-
...(input.RuleOrder != null && { RuleOrder: input.RuleOrder }),
|
|
2550
|
-
...(input.StreamExceptionPolicy != null && { StreamExceptionPolicy: input.StreamExceptionPolicy }),
|
|
2551
|
-
};
|
|
2552
|
-
};
|
|
2553
|
-
const se_StatefulRule = (input, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
...(input.Action != null && { Action: input.Action }),
|
|
2556
|
-
...(input.Header != null && { Header: se_Header(input.Header, context) }),
|
|
2557
|
-
...(input.RuleOptions != null && { RuleOptions: se_RuleOptions(input.RuleOptions, context) }),
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
|
-
const se_StatefulRuleGroupOverride = (input, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
...(input.Action != null && { Action: input.Action }),
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
const se_StatefulRuleGroupReference = (input, context) => {
|
|
2566
|
-
return {
|
|
2567
|
-
...(input.Override != null && { Override: se_StatefulRuleGroupOverride(input.Override, context) }),
|
|
2568
|
-
...(input.Priority != null && { Priority: input.Priority }),
|
|
2569
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
|
-
const se_StatefulRuleGroupReferences = (input, context) => {
|
|
2573
|
-
return input
|
|
2574
|
-
.filter((e) => e != null)
|
|
2575
|
-
.map((entry) => {
|
|
2576
|
-
return se_StatefulRuleGroupReference(entry, context);
|
|
2577
|
-
});
|
|
2578
|
-
};
|
|
2579
|
-
const se_StatefulRuleOptions = (input, context) => {
|
|
2580
|
-
return {
|
|
2581
|
-
...(input.RuleOrder != null && { RuleOrder: input.RuleOrder }),
|
|
2582
|
-
};
|
|
2583
|
-
};
|
|
2584
|
-
const se_StatefulRules = (input, context) => {
|
|
2585
|
-
return input
|
|
2586
|
-
.filter((e) => e != null)
|
|
2587
|
-
.map((entry) => {
|
|
2588
|
-
return se_StatefulRule(entry, context);
|
|
2589
|
-
});
|
|
2590
|
-
};
|
|
2591
|
-
const se_StatelessActions = (input, context) => {
|
|
2592
|
-
return input
|
|
2593
|
-
.filter((e) => e != null)
|
|
2594
|
-
.map((entry) => {
|
|
2595
|
-
return entry;
|
|
2596
|
-
});
|
|
2597
|
-
};
|
|
2598
|
-
const se_StatelessRule = (input, context) => {
|
|
2599
|
-
return {
|
|
2600
|
-
...(input.Priority != null && { Priority: input.Priority }),
|
|
2601
|
-
...(input.RuleDefinition != null && { RuleDefinition: se_RuleDefinition(input.RuleDefinition, context) }),
|
|
2602
|
-
};
|
|
2603
|
-
};
|
|
2604
|
-
const se_StatelessRuleGroupReference = (input, context) => {
|
|
2605
|
-
return {
|
|
2606
|
-
...(input.Priority != null && { Priority: input.Priority }),
|
|
2607
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2608
|
-
};
|
|
2609
|
-
};
|
|
2610
|
-
const se_StatelessRuleGroupReferences = (input, context) => {
|
|
2611
|
-
return input
|
|
2612
|
-
.filter((e) => e != null)
|
|
2613
|
-
.map((entry) => {
|
|
2614
|
-
return se_StatelessRuleGroupReference(entry, context);
|
|
2615
|
-
});
|
|
2616
|
-
};
|
|
2617
|
-
const se_StatelessRules = (input, context) => {
|
|
2618
|
-
return input
|
|
2619
|
-
.filter((e) => e != null)
|
|
2620
|
-
.map((entry) => {
|
|
2621
|
-
return se_StatelessRule(entry, context);
|
|
2622
|
-
});
|
|
2623
|
-
};
|
|
2624
|
-
const se_StatelessRulesAndCustomActions = (input, context) => {
|
|
2625
|
-
return {
|
|
2626
|
-
...(input.CustomActions != null && { CustomActions: se_CustomActions(input.CustomActions, context) }),
|
|
2627
|
-
...(input.StatelessRules != null && { StatelessRules: se_StatelessRules(input.StatelessRules, context) }),
|
|
2628
|
-
};
|
|
2629
|
-
};
|
|
2630
|
-
const se_SubnetMapping = (input, context) => {
|
|
2631
|
-
return {
|
|
2632
|
-
...(input.IPAddressType != null && { IPAddressType: input.IPAddressType }),
|
|
2633
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
const se_SubnetMappings = (input, context) => {
|
|
2637
|
-
return input
|
|
2638
|
-
.filter((e) => e != null)
|
|
2639
|
-
.map((entry) => {
|
|
2640
|
-
return se_SubnetMapping(entry, context);
|
|
2641
|
-
});
|
|
2642
|
-
};
|
|
2643
|
-
const se_Tag = (input, context) => {
|
|
2644
|
-
return {
|
|
2645
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2646
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2647
|
-
};
|
|
2648
|
-
};
|
|
2649
|
-
const se_TagKeyList = (input, context) => {
|
|
2650
|
-
return input
|
|
2651
|
-
.filter((e) => e != null)
|
|
2652
|
-
.map((entry) => {
|
|
2653
|
-
return entry;
|
|
2654
|
-
});
|
|
2655
|
-
};
|
|
2656
|
-
const se_TagList = (input, context) => {
|
|
2657
|
-
return input
|
|
2658
|
-
.filter((e) => e != null)
|
|
2659
|
-
.map((entry) => {
|
|
2660
|
-
return se_Tag(entry, context);
|
|
2661
|
-
});
|
|
2662
|
-
};
|
|
2663
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2664
|
-
return {
|
|
2665
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2666
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2667
|
-
};
|
|
2668
|
-
};
|
|
2669
|
-
const se_TargetTypes = (input, context) => {
|
|
2670
|
-
return input
|
|
2671
|
-
.filter((e) => e != null)
|
|
2672
|
-
.map((entry) => {
|
|
2673
|
-
return entry;
|
|
2674
|
-
});
|
|
2675
|
-
};
|
|
2676
|
-
const se_TCPFlagField = (input, context) => {
|
|
2677
|
-
return {
|
|
2678
|
-
...(input.Flags != null && { Flags: se_Flags(input.Flags, context) }),
|
|
2679
|
-
...(input.Masks != null && { Masks: se_Flags(input.Masks, context) }),
|
|
2680
|
-
};
|
|
2681
|
-
};
|
|
2682
|
-
const se_TCPFlags = (input, context) => {
|
|
2683
|
-
return input
|
|
2684
|
-
.filter((e) => e != null)
|
|
2685
|
-
.map((entry) => {
|
|
2686
|
-
return se_TCPFlagField(entry, context);
|
|
2687
|
-
});
|
|
2688
|
-
};
|
|
2689
|
-
const se_TLSInspectionConfiguration = (input, context) => {
|
|
2690
|
-
return {
|
|
2691
|
-
...(input.ServerCertificateConfigurations != null && {
|
|
2692
|
-
ServerCertificateConfigurations: se_ServerCertificateConfigurations(input.ServerCertificateConfigurations, context),
|
|
2693
|
-
}),
|
|
2694
|
-
};
|
|
2695
|
-
};
|
|
2696
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2697
|
-
return {
|
|
2698
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2699
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2700
|
-
};
|
|
2701
|
-
};
|
|
2702
|
-
const se_UpdateFirewallDeleteProtectionRequest = (input, context) => {
|
|
2703
|
-
return {
|
|
2704
|
-
...(input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection }),
|
|
2705
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2706
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2707
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2708
|
-
};
|
|
2709
|
-
};
|
|
2710
|
-
const se_UpdateFirewallDescriptionRequest = (input, context) => {
|
|
2711
|
-
return {
|
|
2712
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2713
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2714
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2715
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2716
|
-
};
|
|
2717
|
-
};
|
|
2718
|
-
const se_UpdateFirewallEncryptionConfigurationRequest = (input, context) => {
|
|
2719
|
-
return {
|
|
2720
|
-
...(input.EncryptionConfiguration != null && {
|
|
2721
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2722
|
-
}),
|
|
2723
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2724
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2725
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2726
|
-
};
|
|
2727
|
-
};
|
|
2728
|
-
const se_UpdateFirewallPolicyChangeProtectionRequest = (input, context) => {
|
|
2729
|
-
return {
|
|
2730
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2731
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2732
|
-
...(input.FirewallPolicyChangeProtection != null && {
|
|
2733
|
-
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
2734
|
-
}),
|
|
2735
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2736
|
-
};
|
|
2737
|
-
};
|
|
2738
|
-
const se_UpdateFirewallPolicyRequest = (input, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2741
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2742
|
-
...(input.EncryptionConfiguration != null && {
|
|
2743
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2744
|
-
}),
|
|
2745
|
-
...(input.FirewallPolicy != null && { FirewallPolicy: se_FirewallPolicy(input.FirewallPolicy, context) }),
|
|
2746
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2747
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2748
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2749
|
-
};
|
|
2750
|
-
};
|
|
2751
|
-
const se_UpdateLoggingConfigurationRequest = (input, context) => {
|
|
2752
|
-
return {
|
|
2753
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2754
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2755
|
-
...(input.LoggingConfiguration != null && {
|
|
2756
|
-
LoggingConfiguration: se_LoggingConfiguration(input.LoggingConfiguration, context),
|
|
2757
|
-
}),
|
|
2758
|
-
};
|
|
2759
|
-
};
|
|
2760
|
-
const se_UpdateRuleGroupRequest = (input, context) => {
|
|
2761
|
-
return {
|
|
2762
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2763
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2764
|
-
...(input.EncryptionConfiguration != null && {
|
|
2765
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2766
|
-
}),
|
|
2767
|
-
...(input.RuleGroup != null && { RuleGroup: se_RuleGroup(input.RuleGroup, context) }),
|
|
2768
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2769
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2770
|
-
...(input.Rules != null && { Rules: input.Rules }),
|
|
2771
|
-
...(input.SourceMetadata != null && { SourceMetadata: se_SourceMetadata(input.SourceMetadata, context) }),
|
|
2772
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2773
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2774
|
-
};
|
|
2775
|
-
};
|
|
2776
|
-
const se_UpdateSubnetChangeProtectionRequest = (input, context) => {
|
|
2777
|
-
return {
|
|
2778
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2779
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2780
|
-
...(input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
2781
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2782
|
-
};
|
|
2783
|
-
};
|
|
2784
|
-
const se_UpdateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2785
|
-
return {
|
|
2786
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2787
|
-
...(input.EncryptionConfiguration != null && {
|
|
2788
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2789
|
-
}),
|
|
2790
|
-
...(input.TLSInspectionConfiguration != null && {
|
|
2791
|
-
TLSInspectionConfiguration: se_TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2792
|
-
}),
|
|
2793
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2794
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2795
|
-
}),
|
|
2796
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2797
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2798
|
-
}),
|
|
2799
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2800
|
-
};
|
|
2801
|
-
};
|
|
2802
|
-
const se_VariableDefinitionList = (input, context) => {
|
|
2803
|
-
return input
|
|
2804
|
-
.filter((e) => e != null)
|
|
2805
|
-
.map((entry) => {
|
|
2806
|
-
return entry;
|
|
2807
|
-
});
|
|
2808
|
-
};
|
|
2809
|
-
const se_VpcIds = (input, context) => {
|
|
2810
|
-
return input
|
|
2811
|
-
.filter((e) => e != null)
|
|
2812
|
-
.map((entry) => {
|
|
2813
|
-
return entry;
|
|
2814
|
-
});
|
|
2815
|
-
};
|
|
2816
|
-
const de_ActionDefinition = (output, context) => {
|
|
2817
|
-
return {
|
|
2818
|
-
PublishMetricAction: output.PublishMetricAction != null ? de_PublishMetricAction(output.PublishMetricAction, context) : undefined,
|
|
2819
|
-
};
|
|
2820
|
-
};
|
|
2821
|
-
const de_Address = (output, context) => {
|
|
2822
|
-
return {
|
|
2823
|
-
AddressDefinition: (0, smithy_client_1.expectString)(output.AddressDefinition),
|
|
2824
|
-
};
|
|
2825
|
-
};
|
|
2826
|
-
const de_Addresses = (output, context) => {
|
|
2827
|
-
const retVal = (output || [])
|
|
2828
|
-
.filter((e) => e != null)
|
|
2829
|
-
.map((entry) => {
|
|
2830
|
-
if (entry === null) {
|
|
2831
|
-
return null;
|
|
2832
|
-
}
|
|
2833
|
-
return de_Address(entry, context);
|
|
2834
|
-
});
|
|
2835
|
-
return retVal;
|
|
2836
|
-
};
|
|
2837
|
-
const de_AssociateFirewallPolicyResponse = (output, context) => {
|
|
2838
|
-
return {
|
|
2839
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2840
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
2841
|
-
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
2842
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2843
|
-
};
|
|
2844
|
-
};
|
|
2845
|
-
const de_AssociateSubnetsResponse = (output, context) => {
|
|
2846
|
-
return {
|
|
2847
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2848
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
2849
|
-
SubnetMappings: output.SubnetMappings != null ? de_SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2850
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2851
|
-
};
|
|
2852
|
-
};
|
|
2853
|
-
const de_Attachment = (output, context) => {
|
|
2854
|
-
return {
|
|
2855
|
-
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2856
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2857
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
2858
|
-
SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
|
|
2859
|
-
};
|
|
2860
|
-
};
|
|
2861
|
-
const de_CapacityUsageSummary = (output, context) => {
|
|
2862
|
-
return {
|
|
2863
|
-
CIDRs: output.CIDRs != null ? de_CIDRSummary(output.CIDRs, context) : undefined,
|
|
2864
|
-
};
|
|
2865
|
-
};
|
|
2866
|
-
const de_Certificates = (output, context) => {
|
|
2867
|
-
const retVal = (output || [])
|
|
2868
|
-
.filter((e) => e != null)
|
|
2869
|
-
.map((entry) => {
|
|
2870
|
-
if (entry === null) {
|
|
2871
|
-
return null;
|
|
2872
|
-
}
|
|
2873
|
-
return de_TlsCertificateData(entry, context);
|
|
2874
|
-
});
|
|
2875
|
-
return retVal;
|
|
2876
|
-
};
|
|
2877
|
-
const de_CIDRSummary = (output, context) => {
|
|
2878
|
-
return {
|
|
2879
|
-
AvailableCIDRCount: (0, smithy_client_1.expectInt32)(output.AvailableCIDRCount),
|
|
2880
|
-
IPSetReferences: output.IPSetReferences != null ? de_IPSetMetadataMap(output.IPSetReferences, context) : undefined,
|
|
2881
|
-
UtilizedCIDRCount: (0, smithy_client_1.expectInt32)(output.UtilizedCIDRCount),
|
|
2882
|
-
};
|
|
2883
|
-
};
|
|
2884
|
-
const de_CreateFirewallPolicyResponse = (output, context) => {
|
|
2885
|
-
return {
|
|
2886
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2887
|
-
? de_FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2888
|
-
: undefined,
|
|
2889
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2890
|
-
};
|
|
2891
|
-
};
|
|
2892
|
-
const de_CreateFirewallResponse = (output, context) => {
|
|
2893
|
-
return {
|
|
2894
|
-
Firewall: output.Firewall != null ? de_Firewall(output.Firewall, context) : undefined,
|
|
2895
|
-
FirewallStatus: output.FirewallStatus != null ? de_FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2896
|
-
};
|
|
2897
|
-
};
|
|
2898
|
-
const de_CreateRuleGroupResponse = (output, context) => {
|
|
2899
|
-
return {
|
|
2900
|
-
RuleGroupResponse: output.RuleGroupResponse != null ? de_RuleGroupResponse(output.RuleGroupResponse, context) : undefined,
|
|
2901
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2904
|
-
const de_CreateTLSInspectionConfigurationResponse = (output, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
2907
|
-
? de_TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
2908
|
-
: undefined,
|
|
2909
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2910
|
-
};
|
|
2911
|
-
};
|
|
2912
|
-
const de_CustomAction = (output, context) => {
|
|
2913
|
-
return {
|
|
2914
|
-
ActionDefinition: output.ActionDefinition != null ? de_ActionDefinition(output.ActionDefinition, context) : undefined,
|
|
2915
|
-
ActionName: (0, smithy_client_1.expectString)(output.ActionName),
|
|
2916
|
-
};
|
|
2917
|
-
};
|
|
2918
|
-
const de_CustomActions = (output, context) => {
|
|
2919
|
-
const retVal = (output || [])
|
|
2920
|
-
.filter((e) => e != null)
|
|
2921
|
-
.map((entry) => {
|
|
2922
|
-
if (entry === null) {
|
|
2923
|
-
return null;
|
|
2924
|
-
}
|
|
2925
|
-
return de_CustomAction(entry, context);
|
|
2926
|
-
});
|
|
2927
|
-
return retVal;
|
|
2928
|
-
};
|
|
2929
|
-
const de_DeleteFirewallPolicyResponse = (output, context) => {
|
|
2930
|
-
return {
|
|
2931
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2932
|
-
? de_FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2933
|
-
: undefined,
|
|
2934
|
-
};
|
|
2935
|
-
};
|
|
2936
|
-
const de_DeleteFirewallResponse = (output, context) => {
|
|
2937
|
-
return {
|
|
2938
|
-
Firewall: output.Firewall != null ? de_Firewall(output.Firewall, context) : undefined,
|
|
2939
|
-
FirewallStatus: output.FirewallStatus != null ? de_FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2940
|
-
};
|
|
2941
|
-
};
|
|
2942
|
-
const de_DeleteResourcePolicyResponse = (output, context) => {
|
|
2943
|
-
return {};
|
|
2944
|
-
};
|
|
2945
|
-
const de_DeleteRuleGroupResponse = (output, context) => {
|
|
2946
|
-
return {
|
|
2947
|
-
RuleGroupResponse: output.RuleGroupResponse != null ? de_RuleGroupResponse(output.RuleGroupResponse, context) : undefined,
|
|
2948
|
-
};
|
|
2949
|
-
};
|
|
2950
|
-
const de_DeleteTLSInspectionConfigurationResponse = (output, context) => {
|
|
2951
|
-
return {
|
|
2952
|
-
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
2953
|
-
? de_TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
2954
|
-
: undefined,
|
|
2955
|
-
};
|
|
2956
|
-
};
|
|
2957
|
-
const de_DescribeFirewallPolicyResponse = (output, context) => {
|
|
2958
|
-
return {
|
|
2959
|
-
FirewallPolicy: output.FirewallPolicy != null ? de_FirewallPolicy(output.FirewallPolicy, context) : undefined,
|
|
2960
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2961
|
-
? de_FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2962
|
-
: undefined,
|
|
2963
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2964
|
-
};
|
|
2965
|
-
};
|
|
2966
|
-
const de_DescribeFirewallResponse = (output, context) => {
|
|
2967
|
-
return {
|
|
2968
|
-
Firewall: output.Firewall != null ? de_Firewall(output.Firewall, context) : undefined,
|
|
2969
|
-
FirewallStatus: output.FirewallStatus != null ? de_FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2970
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2971
|
-
};
|
|
2972
|
-
};
|
|
2973
|
-
const de_DescribeLoggingConfigurationResponse = (output, context) => {
|
|
2974
|
-
return {
|
|
2975
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2976
|
-
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
2977
|
-
};
|
|
2978
|
-
};
|
|
2979
|
-
const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
2980
|
-
return {
|
|
2981
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2982
|
-
};
|
|
2983
|
-
};
|
|
2984
|
-
const de_DescribeRuleGroupMetadataResponse = (output, context) => {
|
|
2985
|
-
return {
|
|
2986
|
-
Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
|
|
2987
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2988
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
2989
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
2990
|
-
: undefined,
|
|
2991
|
-
RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
|
|
2992
|
-
RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
|
|
2993
|
-
StatefulRuleOptions: output.StatefulRuleOptions != null ? de_StatefulRuleOptions(output.StatefulRuleOptions, context) : undefined,
|
|
2994
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2995
|
-
};
|
|
2996
|
-
};
|
|
2997
|
-
const de_DescribeRuleGroupResponse = (output, context) => {
|
|
2998
|
-
return {
|
|
2999
|
-
RuleGroup: output.RuleGroup != null ? de_RuleGroup(output.RuleGroup, context) : undefined,
|
|
3000
|
-
RuleGroupResponse: output.RuleGroupResponse != null ? de_RuleGroupResponse(output.RuleGroupResponse, context) : undefined,
|
|
3001
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3002
|
-
};
|
|
3003
|
-
};
|
|
3004
|
-
const de_DescribeTLSInspectionConfigurationResponse = (output, context) => {
|
|
3005
|
-
return {
|
|
3006
|
-
TLSInspectionConfiguration: output.TLSInspectionConfiguration != null
|
|
3007
|
-
? de_TLSInspectionConfiguration(output.TLSInspectionConfiguration, context)
|
|
3008
|
-
: undefined,
|
|
3009
|
-
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
3010
|
-
? de_TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
3011
|
-
: undefined,
|
|
3012
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3013
|
-
};
|
|
3014
|
-
};
|
|
3015
|
-
const de_Dimension = (output, context) => {
|
|
3016
|
-
return {
|
|
3017
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3018
|
-
};
|
|
3019
|
-
};
|
|
3020
|
-
const de_Dimensions = (output, context) => {
|
|
3021
|
-
const retVal = (output || [])
|
|
3022
|
-
.filter((e) => e != null)
|
|
3023
|
-
.map((entry) => {
|
|
3024
|
-
if (entry === null) {
|
|
3025
|
-
return null;
|
|
3026
|
-
}
|
|
3027
|
-
return de_Dimension(entry, context);
|
|
3028
|
-
});
|
|
3029
|
-
return retVal;
|
|
3030
|
-
};
|
|
3031
|
-
const de_DisassociateSubnetsResponse = (output, context) => {
|
|
3032
|
-
return {
|
|
3033
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3034
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3035
|
-
SubnetMappings: output.SubnetMappings != null ? de_SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
3036
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3037
|
-
};
|
|
3038
|
-
};
|
|
3039
|
-
const de_EncryptionConfiguration = (output, context) => {
|
|
3040
|
-
return {
|
|
3041
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
3042
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3043
|
-
};
|
|
3044
|
-
};
|
|
3045
|
-
const de_Firewall = (output, context) => {
|
|
3046
|
-
return {
|
|
3047
|
-
DeleteProtection: (0, smithy_client_1.expectBoolean)(output.DeleteProtection),
|
|
3048
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3049
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3050
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3051
|
-
: undefined,
|
|
3052
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3053
|
-
FirewallId: (0, smithy_client_1.expectString)(output.FirewallId),
|
|
3054
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3055
|
-
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
3056
|
-
FirewallPolicyChangeProtection: (0, smithy_client_1.expectBoolean)(output.FirewallPolicyChangeProtection),
|
|
3057
|
-
SubnetChangeProtection: (0, smithy_client_1.expectBoolean)(output.SubnetChangeProtection),
|
|
3058
|
-
SubnetMappings: output.SubnetMappings != null ? de_SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
3059
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3060
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
3061
|
-
};
|
|
3062
|
-
};
|
|
3063
|
-
const de_FirewallMetadata = (output, context) => {
|
|
3064
|
-
return {
|
|
3065
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3066
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3067
|
-
};
|
|
3068
|
-
};
|
|
3069
|
-
const de_FirewallPolicies = (output, context) => {
|
|
3070
|
-
const retVal = (output || [])
|
|
3071
|
-
.filter((e) => e != null)
|
|
3072
|
-
.map((entry) => {
|
|
3073
|
-
if (entry === null) {
|
|
3074
|
-
return null;
|
|
3075
|
-
}
|
|
3076
|
-
return de_FirewallPolicyMetadata(entry, context);
|
|
3077
|
-
});
|
|
3078
|
-
return retVal;
|
|
3079
|
-
};
|
|
3080
|
-
const de_FirewallPolicy = (output, context) => {
|
|
3081
|
-
return {
|
|
3082
|
-
StatefulDefaultActions: output.StatefulDefaultActions != null ? de_StatefulActions(output.StatefulDefaultActions, context) : undefined,
|
|
3083
|
-
StatefulEngineOptions: output.StatefulEngineOptions != null
|
|
3084
|
-
? de_StatefulEngineOptions(output.StatefulEngineOptions, context)
|
|
3085
|
-
: undefined,
|
|
3086
|
-
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences != null
|
|
3087
|
-
? de_StatefulRuleGroupReferences(output.StatefulRuleGroupReferences, context)
|
|
3088
|
-
: undefined,
|
|
3089
|
-
StatelessCustomActions: output.StatelessCustomActions != null ? de_CustomActions(output.StatelessCustomActions, context) : undefined,
|
|
3090
|
-
StatelessDefaultActions: output.StatelessDefaultActions != null ? de_StatelessActions(output.StatelessDefaultActions, context) : undefined,
|
|
3091
|
-
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions != null
|
|
3092
|
-
? de_StatelessActions(output.StatelessFragmentDefaultActions, context)
|
|
3093
|
-
: undefined,
|
|
3094
|
-
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences != null
|
|
3095
|
-
? de_StatelessRuleGroupReferences(output.StatelessRuleGroupReferences, context)
|
|
3096
|
-
: undefined,
|
|
3097
|
-
TLSInspectionConfigurationArn: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationArn),
|
|
3098
|
-
};
|
|
3099
|
-
};
|
|
3100
|
-
const de_FirewallPolicyMetadata = (output, context) => {
|
|
3101
|
-
return {
|
|
3102
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3103
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3104
|
-
};
|
|
3105
|
-
};
|
|
3106
|
-
const de_FirewallPolicyResponse = (output, context) => {
|
|
3107
|
-
return {
|
|
3108
|
-
ConsumedStatefulRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatefulRuleCapacity),
|
|
3109
|
-
ConsumedStatelessRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatelessRuleCapacity),
|
|
3110
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3111
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3112
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3113
|
-
: undefined,
|
|
3114
|
-
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
3115
|
-
FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
|
|
3116
|
-
FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
|
|
3117
|
-
FirewallPolicyStatus: (0, smithy_client_1.expectString)(output.FirewallPolicyStatus),
|
|
3118
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
3119
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3120
|
-
: undefined,
|
|
3121
|
-
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
3122
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
const de_Firewalls = (output, context) => {
|
|
3126
|
-
const retVal = (output || [])
|
|
3127
|
-
.filter((e) => e != null)
|
|
3128
|
-
.map((entry) => {
|
|
3129
|
-
if (entry === null) {
|
|
3130
|
-
return null;
|
|
3131
|
-
}
|
|
3132
|
-
return de_FirewallMetadata(entry, context);
|
|
3133
|
-
});
|
|
3134
|
-
return retVal;
|
|
3135
|
-
};
|
|
3136
|
-
const de_FirewallStatus = (output, context) => {
|
|
3137
|
-
return {
|
|
3138
|
-
CapacityUsageSummary: output.CapacityUsageSummary != null ? de_CapacityUsageSummary(output.CapacityUsageSummary, context) : undefined,
|
|
3139
|
-
ConfigurationSyncStateSummary: (0, smithy_client_1.expectString)(output.ConfigurationSyncStateSummary),
|
|
3140
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3141
|
-
SyncStates: output.SyncStates != null ? de_SyncStates(output.SyncStates, context) : undefined,
|
|
3142
|
-
};
|
|
3143
|
-
};
|
|
3144
|
-
const de_Flags = (output, context) => {
|
|
3145
|
-
const retVal = (output || [])
|
|
3146
|
-
.filter((e) => e != null)
|
|
3147
|
-
.map((entry) => {
|
|
3148
|
-
if (entry === null) {
|
|
3149
|
-
return null;
|
|
3150
|
-
}
|
|
3151
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3152
|
-
});
|
|
3153
|
-
return retVal;
|
|
3154
|
-
};
|
|
3155
|
-
const de_Header = (output, context) => {
|
|
3156
|
-
return {
|
|
3157
|
-
Destination: (0, smithy_client_1.expectString)(output.Destination),
|
|
3158
|
-
DestinationPort: (0, smithy_client_1.expectString)(output.DestinationPort),
|
|
3159
|
-
Direction: (0, smithy_client_1.expectString)(output.Direction),
|
|
3160
|
-
Protocol: (0, smithy_client_1.expectString)(output.Protocol),
|
|
3161
|
-
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
3162
|
-
SourcePort: (0, smithy_client_1.expectString)(output.SourcePort),
|
|
3163
|
-
};
|
|
3164
|
-
};
|
|
3165
|
-
const de_InsufficientCapacityException = (output, context) => {
|
|
3166
|
-
return {
|
|
3167
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3168
|
-
};
|
|
3169
|
-
};
|
|
3170
|
-
const de_InternalServerError = (output, context) => {
|
|
3171
|
-
return {
|
|
3172
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3173
|
-
};
|
|
3174
|
-
};
|
|
3175
|
-
const de_InvalidOperationException = (output, context) => {
|
|
3176
|
-
return {
|
|
3177
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3178
|
-
};
|
|
3179
|
-
};
|
|
3180
|
-
const de_InvalidRequestException = (output, context) => {
|
|
3181
|
-
return {
|
|
3182
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3183
|
-
};
|
|
3184
|
-
};
|
|
3185
|
-
const de_InvalidResourcePolicyException = (output, context) => {
|
|
3186
|
-
return {
|
|
3187
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3188
|
-
};
|
|
3189
|
-
};
|
|
3190
|
-
const de_InvalidTokenException = (output, context) => {
|
|
3191
|
-
return {
|
|
3192
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3193
|
-
};
|
|
3194
|
-
};
|
|
3195
|
-
const de_IPSet = (output, context) => {
|
|
3196
|
-
return {
|
|
3197
|
-
Definition: output.Definition != null ? de_VariableDefinitionList(output.Definition, context) : undefined,
|
|
3198
|
-
};
|
|
3199
|
-
};
|
|
3200
|
-
const de_IPSetMetadata = (output, context) => {
|
|
3201
|
-
return {
|
|
3202
|
-
ResolvedCIDRCount: (0, smithy_client_1.expectInt32)(output.ResolvedCIDRCount),
|
|
3203
|
-
};
|
|
3204
|
-
};
|
|
3205
|
-
const de_IPSetMetadataMap = (output, context) => {
|
|
3206
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3207
|
-
if (value === null) {
|
|
3208
|
-
return acc;
|
|
3209
|
-
}
|
|
3210
|
-
acc[key] = de_IPSetMetadata(value, context);
|
|
3211
|
-
return acc;
|
|
3212
|
-
}, {});
|
|
3213
|
-
};
|
|
3214
|
-
const de_IPSetReference = (output, context) => {
|
|
3215
|
-
return {
|
|
3216
|
-
ReferenceArn: (0, smithy_client_1.expectString)(output.ReferenceArn),
|
|
3217
|
-
};
|
|
3218
|
-
};
|
|
3219
|
-
const de_IPSetReferenceMap = (output, context) => {
|
|
3220
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3221
|
-
if (value === null) {
|
|
3222
|
-
return acc;
|
|
3223
|
-
}
|
|
3224
|
-
acc[key] = de_IPSetReference(value, context);
|
|
3225
|
-
return acc;
|
|
3226
|
-
}, {});
|
|
3227
|
-
};
|
|
3228
|
-
const de_IPSets = (output, context) => {
|
|
3229
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3230
|
-
if (value === null) {
|
|
3231
|
-
return acc;
|
|
3232
|
-
}
|
|
3233
|
-
acc[key] = de_IPSet(value, context);
|
|
3234
|
-
return acc;
|
|
3235
|
-
}, {});
|
|
3236
|
-
};
|
|
3237
|
-
const de_LimitExceededException = (output, context) => {
|
|
3238
|
-
return {
|
|
3239
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3240
|
-
};
|
|
3241
|
-
};
|
|
3242
|
-
const de_ListFirewallPoliciesResponse = (output, context) => {
|
|
3243
|
-
return {
|
|
3244
|
-
FirewallPolicies: output.FirewallPolicies != null ? de_FirewallPolicies(output.FirewallPolicies, context) : undefined,
|
|
3245
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3246
|
-
};
|
|
3247
|
-
};
|
|
3248
|
-
const de_ListFirewallsResponse = (output, context) => {
|
|
3249
|
-
return {
|
|
3250
|
-
Firewalls: output.Firewalls != null ? de_Firewalls(output.Firewalls, context) : undefined,
|
|
3251
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3252
|
-
};
|
|
3253
|
-
};
|
|
3254
|
-
const de_ListRuleGroupsResponse = (output, context) => {
|
|
3255
|
-
return {
|
|
3256
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3257
|
-
RuleGroups: output.RuleGroups != null ? de_RuleGroups(output.RuleGroups, context) : undefined,
|
|
3258
|
-
};
|
|
3259
|
-
};
|
|
3260
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3261
|
-
return {
|
|
3262
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3263
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3264
|
-
};
|
|
3265
|
-
};
|
|
3266
|
-
const de_ListTLSInspectionConfigurationsResponse = (output, context) => {
|
|
3267
|
-
return {
|
|
3268
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3269
|
-
TLSInspectionConfigurations: output.TLSInspectionConfigurations != null
|
|
3270
|
-
? de_TLSInspectionConfigurations(output.TLSInspectionConfigurations, context)
|
|
3271
|
-
: undefined,
|
|
3272
|
-
};
|
|
3273
|
-
};
|
|
3274
|
-
const de_LogDestinationConfig = (output, context) => {
|
|
3275
|
-
return {
|
|
3276
|
-
LogDestination: output.LogDestination != null ? de_LogDestinationMap(output.LogDestination, context) : undefined,
|
|
3277
|
-
LogDestinationType: (0, smithy_client_1.expectString)(output.LogDestinationType),
|
|
3278
|
-
LogType: (0, smithy_client_1.expectString)(output.LogType),
|
|
3279
|
-
};
|
|
3280
|
-
};
|
|
3281
|
-
const de_LogDestinationConfigs = (output, context) => {
|
|
3282
|
-
const retVal = (output || [])
|
|
3283
|
-
.filter((e) => e != null)
|
|
3284
|
-
.map((entry) => {
|
|
3285
|
-
if (entry === null) {
|
|
3286
|
-
return null;
|
|
3287
|
-
}
|
|
3288
|
-
return de_LogDestinationConfig(entry, context);
|
|
3289
|
-
});
|
|
3290
|
-
return retVal;
|
|
3291
|
-
};
|
|
3292
|
-
const de_LogDestinationMap = (output, context) => {
|
|
3293
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3294
|
-
if (value === null) {
|
|
3295
|
-
return acc;
|
|
3296
|
-
}
|
|
3297
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3298
|
-
return acc;
|
|
3299
|
-
}, {});
|
|
3300
|
-
};
|
|
3301
|
-
const de_LogDestinationPermissionException = (output, context) => {
|
|
3302
|
-
return {
|
|
3303
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3304
|
-
};
|
|
3305
|
-
};
|
|
3306
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
3307
|
-
return {
|
|
3308
|
-
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
3309
|
-
? de_LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
3310
|
-
: undefined,
|
|
3311
|
-
};
|
|
3312
|
-
};
|
|
3313
|
-
const de_MatchAttributes = (output, context) => {
|
|
3314
|
-
return {
|
|
3315
|
-
DestinationPorts: output.DestinationPorts != null ? de_PortRanges(output.DestinationPorts, context) : undefined,
|
|
3316
|
-
Destinations: output.Destinations != null ? de_Addresses(output.Destinations, context) : undefined,
|
|
3317
|
-
Protocols: output.Protocols != null ? de_ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3318
|
-
SourcePorts: output.SourcePorts != null ? de_PortRanges(output.SourcePorts, context) : undefined,
|
|
3319
|
-
Sources: output.Sources != null ? de_Addresses(output.Sources, context) : undefined,
|
|
3320
|
-
TCPFlags: output.TCPFlags != null ? de_TCPFlags(output.TCPFlags, context) : undefined,
|
|
3321
|
-
};
|
|
3322
|
-
};
|
|
3323
|
-
const de_PerObjectStatus = (output, context) => {
|
|
3324
|
-
return {
|
|
3325
|
-
SyncStatus: (0, smithy_client_1.expectString)(output.SyncStatus),
|
|
3326
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3327
|
-
};
|
|
3328
|
-
};
|
|
3329
|
-
const de_PortRange = (output, context) => {
|
|
3330
|
-
return {
|
|
3331
|
-
FromPort: (0, smithy_client_1.expectInt32)(output.FromPort),
|
|
3332
|
-
ToPort: (0, smithy_client_1.expectInt32)(output.ToPort),
|
|
3333
|
-
};
|
|
3334
|
-
};
|
|
3335
|
-
const de_PortRanges = (output, context) => {
|
|
3336
|
-
const retVal = (output || [])
|
|
3337
|
-
.filter((e) => e != null)
|
|
3338
|
-
.map((entry) => {
|
|
3339
|
-
if (entry === null) {
|
|
3340
|
-
return null;
|
|
3341
|
-
}
|
|
3342
|
-
return de_PortRange(entry, context);
|
|
3343
|
-
});
|
|
3344
|
-
return retVal;
|
|
3345
|
-
};
|
|
3346
|
-
const de_PortSet = (output, context) => {
|
|
3347
|
-
return {
|
|
3348
|
-
Definition: output.Definition != null ? de_VariableDefinitionList(output.Definition, context) : undefined,
|
|
3349
|
-
};
|
|
3350
|
-
};
|
|
3351
|
-
const de_PortSets = (output, context) => {
|
|
3352
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3353
|
-
if (value === null) {
|
|
3354
|
-
return acc;
|
|
3355
|
-
}
|
|
3356
|
-
acc[key] = de_PortSet(value, context);
|
|
3357
|
-
return acc;
|
|
3358
|
-
}, {});
|
|
3359
|
-
};
|
|
3360
|
-
const de_ProtocolNumbers = (output, context) => {
|
|
3361
|
-
const retVal = (output || [])
|
|
3362
|
-
.filter((e) => e != null)
|
|
3363
|
-
.map((entry) => {
|
|
3364
|
-
if (entry === null) {
|
|
3365
|
-
return null;
|
|
3366
|
-
}
|
|
3367
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
1968
|
+
const se_CreateRuleGroupRequest = (input, context) => {
|
|
1969
|
+
return (0, smithy_client_1.take)(input, {
|
|
1970
|
+
Capacity: [],
|
|
1971
|
+
Description: [],
|
|
1972
|
+
DryRun: [],
|
|
1973
|
+
EncryptionConfiguration: smithy_client_1._json,
|
|
1974
|
+
RuleGroup: smithy_client_1._json,
|
|
1975
|
+
RuleGroupName: [],
|
|
1976
|
+
Rules: [],
|
|
1977
|
+
SourceMetadata: smithy_client_1._json,
|
|
1978
|
+
Tags: smithy_client_1._json,
|
|
1979
|
+
Type: [],
|
|
3368
1980
|
});
|
|
3369
|
-
return retVal;
|
|
3370
|
-
};
|
|
3371
|
-
const de_PublishMetricAction = (output, context) => {
|
|
3372
|
-
return {
|
|
3373
|
-
Dimensions: output.Dimensions != null ? de_Dimensions(output.Dimensions, context) : undefined,
|
|
3374
|
-
};
|
|
3375
|
-
};
|
|
3376
|
-
const de_PutResourcePolicyResponse = (output, context) => {
|
|
3377
|
-
return {};
|
|
3378
|
-
};
|
|
3379
|
-
const de_ReferenceSets = (output, context) => {
|
|
3380
|
-
return {
|
|
3381
|
-
IPSetReferences: output.IPSetReferences != null ? de_IPSetReferenceMap(output.IPSetReferences, context) : undefined,
|
|
3382
|
-
};
|
|
3383
|
-
};
|
|
3384
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
3385
|
-
return {
|
|
3386
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3387
|
-
};
|
|
3388
|
-
};
|
|
3389
|
-
const de_ResourceOwnerCheckException = (output, context) => {
|
|
3390
|
-
return {
|
|
3391
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3392
|
-
};
|
|
3393
|
-
};
|
|
3394
|
-
const de_RuleDefinition = (output, context) => {
|
|
3395
|
-
return {
|
|
3396
|
-
Actions: output.Actions != null ? de_StatelessActions(output.Actions, context) : undefined,
|
|
3397
|
-
MatchAttributes: output.MatchAttributes != null ? de_MatchAttributes(output.MatchAttributes, context) : undefined,
|
|
3398
|
-
};
|
|
3399
|
-
};
|
|
3400
|
-
const de_RuleGroup = (output, context) => {
|
|
3401
|
-
return {
|
|
3402
|
-
ReferenceSets: output.ReferenceSets != null ? de_ReferenceSets(output.ReferenceSets, context) : undefined,
|
|
3403
|
-
RuleVariables: output.RuleVariables != null ? de_RuleVariables(output.RuleVariables, context) : undefined,
|
|
3404
|
-
RulesSource: output.RulesSource != null ? de_RulesSource(output.RulesSource, context) : undefined,
|
|
3405
|
-
StatefulRuleOptions: output.StatefulRuleOptions != null ? de_StatefulRuleOptions(output.StatefulRuleOptions, context) : undefined,
|
|
3406
|
-
};
|
|
3407
|
-
};
|
|
3408
|
-
const de_RuleGroupMetadata = (output, context) => {
|
|
3409
|
-
return {
|
|
3410
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3411
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3412
|
-
};
|
|
3413
1981
|
};
|
|
3414
|
-
const
|
|
3415
|
-
return {
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
|
|
3427
|
-
RuleGroupId: (0, smithy_client_1.expectString)(output.RuleGroupId),
|
|
3428
|
-
RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
|
|
3429
|
-
RuleGroupStatus: (0, smithy_client_1.expectString)(output.RuleGroupStatus),
|
|
3430
|
-
SnsTopic: (0, smithy_client_1.expectString)(output.SnsTopic),
|
|
3431
|
-
SourceMetadata: output.SourceMetadata != null ? de_SourceMetadata(output.SourceMetadata, context) : undefined,
|
|
3432
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3433
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3434
|
-
};
|
|
3435
|
-
};
|
|
3436
|
-
const de_RuleGroups = (output, context) => {
|
|
3437
|
-
const retVal = (output || [])
|
|
3438
|
-
.filter((e) => e != null)
|
|
3439
|
-
.map((entry) => {
|
|
3440
|
-
if (entry === null) {
|
|
3441
|
-
return null;
|
|
3442
|
-
}
|
|
3443
|
-
return de_RuleGroupMetadata(entry, context);
|
|
1982
|
+
const se_UpdateRuleGroupRequest = (input, context) => {
|
|
1983
|
+
return (0, smithy_client_1.take)(input, {
|
|
1984
|
+
Description: [],
|
|
1985
|
+
DryRun: [],
|
|
1986
|
+
EncryptionConfiguration: smithy_client_1._json,
|
|
1987
|
+
RuleGroup: smithy_client_1._json,
|
|
1988
|
+
RuleGroupArn: [],
|
|
1989
|
+
RuleGroupName: [],
|
|
1990
|
+
Rules: [],
|
|
1991
|
+
SourceMetadata: smithy_client_1._json,
|
|
1992
|
+
Type: [],
|
|
1993
|
+
UpdateToken: [],
|
|
3444
1994
|
});
|
|
3445
|
-
return retVal;
|
|
3446
1995
|
};
|
|
3447
|
-
const
|
|
3448
|
-
return {
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
};
|
|
3452
|
-
};
|
|
3453
|
-
const de_RuleOptions = (output, context) => {
|
|
3454
|
-
const retVal = (output || [])
|
|
3455
|
-
.filter((e) => e != null)
|
|
3456
|
-
.map((entry) => {
|
|
3457
|
-
if (entry === null) {
|
|
3458
|
-
return null;
|
|
3459
|
-
}
|
|
3460
|
-
return de_RuleOption(entry, context);
|
|
1996
|
+
const de_CreateFirewallPolicyResponse = (output, context) => {
|
|
1997
|
+
return (0, smithy_client_1.take)(output, {
|
|
1998
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
1999
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3461
2000
|
});
|
|
3462
|
-
return retVal;
|
|
3463
|
-
};
|
|
3464
|
-
const de_RulesSource = (output, context) => {
|
|
3465
|
-
return {
|
|
3466
|
-
RulesSourceList: output.RulesSourceList != null ? de_RulesSourceList(output.RulesSourceList, context) : undefined,
|
|
3467
|
-
RulesString: (0, smithy_client_1.expectString)(output.RulesString),
|
|
3468
|
-
StatefulRules: output.StatefulRules != null ? de_StatefulRules(output.StatefulRules, context) : undefined,
|
|
3469
|
-
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions != null
|
|
3470
|
-
? de_StatelessRulesAndCustomActions(output.StatelessRulesAndCustomActions, context)
|
|
3471
|
-
: undefined,
|
|
3472
|
-
};
|
|
3473
2001
|
};
|
|
3474
|
-
const
|
|
3475
|
-
return {
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
Targets: output.Targets != null ? de_RuleTargets(output.Targets, context) : undefined,
|
|
3479
|
-
};
|
|
3480
|
-
};
|
|
3481
|
-
const de_RuleTargets = (output, context) => {
|
|
3482
|
-
const retVal = (output || [])
|
|
3483
|
-
.filter((e) => e != null)
|
|
3484
|
-
.map((entry) => {
|
|
3485
|
-
if (entry === null) {
|
|
3486
|
-
return null;
|
|
3487
|
-
}
|
|
3488
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2002
|
+
const de_CreateRuleGroupResponse = (output, context) => {
|
|
2003
|
+
return (0, smithy_client_1.take)(output, {
|
|
2004
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
2005
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3489
2006
|
});
|
|
3490
|
-
return retVal;
|
|
3491
|
-
};
|
|
3492
|
-
const de_RuleVariables = (output, context) => {
|
|
3493
|
-
return {
|
|
3494
|
-
IPSets: output.IPSets != null ? de_IPSets(output.IPSets, context) : undefined,
|
|
3495
|
-
PortSets: output.PortSets != null ? de_PortSets(output.PortSets, context) : undefined,
|
|
3496
|
-
};
|
|
3497
|
-
};
|
|
3498
|
-
const de_ServerCertificate = (output, context) => {
|
|
3499
|
-
return {
|
|
3500
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
3501
|
-
};
|
|
3502
|
-
};
|
|
3503
|
-
const de_ServerCertificateConfiguration = (output, context) => {
|
|
3504
|
-
return {
|
|
3505
|
-
Scopes: output.Scopes != null ? de_ServerCertificateScopes(output.Scopes, context) : undefined,
|
|
3506
|
-
ServerCertificates: output.ServerCertificates != null ? de_ServerCertificates(output.ServerCertificates, context) : undefined,
|
|
3507
|
-
};
|
|
3508
2007
|
};
|
|
3509
|
-
const
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
.
|
|
3513
|
-
if (entry === null) {
|
|
3514
|
-
return null;
|
|
3515
|
-
}
|
|
3516
|
-
return de_ServerCertificateConfiguration(entry, context);
|
|
3517
|
-
});
|
|
3518
|
-
return retVal;
|
|
3519
|
-
};
|
|
3520
|
-
const de_ServerCertificates = (output, context) => {
|
|
3521
|
-
const retVal = (output || [])
|
|
3522
|
-
.filter((e) => e != null)
|
|
3523
|
-
.map((entry) => {
|
|
3524
|
-
if (entry === null) {
|
|
3525
|
-
return null;
|
|
3526
|
-
}
|
|
3527
|
-
return de_ServerCertificate(entry, context);
|
|
2008
|
+
const de_CreateTLSInspectionConfigurationResponse = (output, context) => {
|
|
2009
|
+
return (0, smithy_client_1.take)(output, {
|
|
2010
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
2011
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3528
2012
|
});
|
|
3529
|
-
return retVal;
|
|
3530
2013
|
};
|
|
3531
|
-
const
|
|
3532
|
-
return {
|
|
3533
|
-
|
|
3534
|
-
Destinations: output.Destinations != null ? de_Addresses(output.Destinations, context) : undefined,
|
|
3535
|
-
Protocols: output.Protocols != null ? de_ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3536
|
-
SourcePorts: output.SourcePorts != null ? de_PortRanges(output.SourcePorts, context) : undefined,
|
|
3537
|
-
Sources: output.Sources != null ? de_Addresses(output.Sources, context) : undefined,
|
|
3538
|
-
};
|
|
3539
|
-
};
|
|
3540
|
-
const de_ServerCertificateScopes = (output, context) => {
|
|
3541
|
-
const retVal = (output || [])
|
|
3542
|
-
.filter((e) => e != null)
|
|
3543
|
-
.map((entry) => {
|
|
3544
|
-
if (entry === null) {
|
|
3545
|
-
return null;
|
|
3546
|
-
}
|
|
3547
|
-
return de_ServerCertificateScope(entry, context);
|
|
3548
|
-
});
|
|
3549
|
-
return retVal;
|
|
3550
|
-
};
|
|
3551
|
-
const de_Settings = (output, context) => {
|
|
3552
|
-
const retVal = (output || [])
|
|
3553
|
-
.filter((e) => e != null)
|
|
3554
|
-
.map((entry) => {
|
|
3555
|
-
if (entry === null) {
|
|
3556
|
-
return null;
|
|
3557
|
-
}
|
|
3558
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2014
|
+
const de_DeleteFirewallPolicyResponse = (output, context) => {
|
|
2015
|
+
return (0, smithy_client_1.take)(output, {
|
|
2016
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
3559
2017
|
});
|
|
3560
|
-
return retVal;
|
|
3561
|
-
};
|
|
3562
|
-
const de_SourceMetadata = (output, context) => {
|
|
3563
|
-
return {
|
|
3564
|
-
SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
|
|
3565
|
-
SourceUpdateToken: (0, smithy_client_1.expectString)(output.SourceUpdateToken),
|
|
3566
|
-
};
|
|
3567
2018
|
};
|
|
3568
|
-
const
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
.map((entry) => {
|
|
3572
|
-
if (entry === null) {
|
|
3573
|
-
return null;
|
|
3574
|
-
}
|
|
3575
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2019
|
+
const de_DeleteRuleGroupResponse = (output, context) => {
|
|
2020
|
+
return (0, smithy_client_1.take)(output, {
|
|
2021
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
3576
2022
|
});
|
|
3577
|
-
return retVal;
|
|
3578
|
-
};
|
|
3579
|
-
const de_StatefulEngineOptions = (output, context) => {
|
|
3580
|
-
return {
|
|
3581
|
-
RuleOrder: (0, smithy_client_1.expectString)(output.RuleOrder),
|
|
3582
|
-
StreamExceptionPolicy: (0, smithy_client_1.expectString)(output.StreamExceptionPolicy),
|
|
3583
|
-
};
|
|
3584
|
-
};
|
|
3585
|
-
const de_StatefulRule = (output, context) => {
|
|
3586
|
-
return {
|
|
3587
|
-
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
3588
|
-
Header: output.Header != null ? de_Header(output.Header, context) : undefined,
|
|
3589
|
-
RuleOptions: output.RuleOptions != null ? de_RuleOptions(output.RuleOptions, context) : undefined,
|
|
3590
|
-
};
|
|
3591
|
-
};
|
|
3592
|
-
const de_StatefulRuleGroupOverride = (output, context) => {
|
|
3593
|
-
return {
|
|
3594
|
-
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
const de_StatefulRuleGroupReference = (output, context) => {
|
|
3598
|
-
return {
|
|
3599
|
-
Override: output.Override != null ? de_StatefulRuleGroupOverride(output.Override, context) : undefined,
|
|
3600
|
-
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
3601
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
3602
|
-
};
|
|
3603
2023
|
};
|
|
3604
|
-
const
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
.map((entry) => {
|
|
3608
|
-
if (entry === null) {
|
|
3609
|
-
return null;
|
|
3610
|
-
}
|
|
3611
|
-
return de_StatefulRuleGroupReference(entry, context);
|
|
2024
|
+
const de_DeleteTLSInspectionConfigurationResponse = (output, context) => {
|
|
2025
|
+
return (0, smithy_client_1.take)(output, {
|
|
2026
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
3612
2027
|
});
|
|
3613
|
-
return retVal;
|
|
3614
|
-
};
|
|
3615
|
-
const de_StatefulRuleOptions = (output, context) => {
|
|
3616
|
-
return {
|
|
3617
|
-
RuleOrder: (0, smithy_client_1.expectString)(output.RuleOrder),
|
|
3618
|
-
};
|
|
3619
2028
|
};
|
|
3620
|
-
const
|
|
3621
|
-
|
|
3622
|
-
.
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
return null;
|
|
3626
|
-
}
|
|
3627
|
-
return de_StatefulRule(entry, context);
|
|
3628
|
-
});
|
|
3629
|
-
return retVal;
|
|
3630
|
-
};
|
|
3631
|
-
const de_StatelessActions = (output, context) => {
|
|
3632
|
-
const retVal = (output || [])
|
|
3633
|
-
.filter((e) => e != null)
|
|
3634
|
-
.map((entry) => {
|
|
3635
|
-
if (entry === null) {
|
|
3636
|
-
return null;
|
|
3637
|
-
}
|
|
3638
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2029
|
+
const de_DescribeFirewallPolicyResponse = (output, context) => {
|
|
2030
|
+
return (0, smithy_client_1.take)(output, {
|
|
2031
|
+
FirewallPolicy: smithy_client_1._json,
|
|
2032
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
2033
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3639
2034
|
});
|
|
3640
|
-
return retVal;
|
|
3641
|
-
};
|
|
3642
|
-
const de_StatelessRule = (output, context) => {
|
|
3643
|
-
return {
|
|
3644
|
-
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
3645
|
-
RuleDefinition: output.RuleDefinition != null ? de_RuleDefinition(output.RuleDefinition, context) : undefined,
|
|
3646
|
-
};
|
|
3647
2035
|
};
|
|
3648
|
-
const
|
|
3649
|
-
return {
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
.
|
|
3657
|
-
.map((entry) => {
|
|
3658
|
-
if (entry === null) {
|
|
3659
|
-
return null;
|
|
3660
|
-
}
|
|
3661
|
-
return de_StatelessRuleGroupReference(entry, context);
|
|
3662
|
-
});
|
|
3663
|
-
return retVal;
|
|
3664
|
-
};
|
|
3665
|
-
const de_StatelessRules = (output, context) => {
|
|
3666
|
-
const retVal = (output || [])
|
|
3667
|
-
.filter((e) => e != null)
|
|
3668
|
-
.map((entry) => {
|
|
3669
|
-
if (entry === null) {
|
|
3670
|
-
return null;
|
|
3671
|
-
}
|
|
3672
|
-
return de_StatelessRule(entry, context);
|
|
2036
|
+
const de_DescribeRuleGroupMetadataResponse = (output, context) => {
|
|
2037
|
+
return (0, smithy_client_1.take)(output, {
|
|
2038
|
+
Capacity: smithy_client_1.expectInt32,
|
|
2039
|
+
Description: smithy_client_1.expectString,
|
|
2040
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2041
|
+
RuleGroupArn: smithy_client_1.expectString,
|
|
2042
|
+
RuleGroupName: smithy_client_1.expectString,
|
|
2043
|
+
StatefulRuleOptions: smithy_client_1._json,
|
|
2044
|
+
Type: smithy_client_1.expectString,
|
|
3673
2045
|
});
|
|
3674
|
-
return retVal;
|
|
3675
|
-
};
|
|
3676
|
-
const de_StatelessRulesAndCustomActions = (output, context) => {
|
|
3677
|
-
return {
|
|
3678
|
-
CustomActions: output.CustomActions != null ? de_CustomActions(output.CustomActions, context) : undefined,
|
|
3679
|
-
StatelessRules: output.StatelessRules != null ? de_StatelessRules(output.StatelessRules, context) : undefined,
|
|
3680
|
-
};
|
|
3681
|
-
};
|
|
3682
|
-
const de_SubnetMapping = (output, context) => {
|
|
3683
|
-
return {
|
|
3684
|
-
IPAddressType: (0, smithy_client_1.expectString)(output.IPAddressType),
|
|
3685
|
-
SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
|
|
3686
|
-
};
|
|
3687
2046
|
};
|
|
3688
|
-
const
|
|
3689
|
-
|
|
3690
|
-
.
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
return null;
|
|
3694
|
-
}
|
|
3695
|
-
return de_SubnetMapping(entry, context);
|
|
2047
|
+
const de_DescribeRuleGroupResponse = (output, context) => {
|
|
2048
|
+
return (0, smithy_client_1.take)(output, {
|
|
2049
|
+
RuleGroup: smithy_client_1._json,
|
|
2050
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
2051
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3696
2052
|
});
|
|
3697
|
-
return retVal;
|
|
3698
|
-
};
|
|
3699
|
-
const de_SyncState = (output, context) => {
|
|
3700
|
-
return {
|
|
3701
|
-
Attachment: output.Attachment != null ? de_Attachment(output.Attachment, context) : undefined,
|
|
3702
|
-
Config: output.Config != null ? de_SyncStateConfig(output.Config, context) : undefined,
|
|
3703
|
-
};
|
|
3704
|
-
};
|
|
3705
|
-
const de_SyncStateConfig = (output, context) => {
|
|
3706
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3707
|
-
if (value === null) {
|
|
3708
|
-
return acc;
|
|
3709
|
-
}
|
|
3710
|
-
acc[key] = de_PerObjectStatus(value, context);
|
|
3711
|
-
return acc;
|
|
3712
|
-
}, {});
|
|
3713
|
-
};
|
|
3714
|
-
const de_SyncStates = (output, context) => {
|
|
3715
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3716
|
-
if (value === null) {
|
|
3717
|
-
return acc;
|
|
3718
|
-
}
|
|
3719
|
-
acc[key] = de_SyncState(value, context);
|
|
3720
|
-
return acc;
|
|
3721
|
-
}, {});
|
|
3722
|
-
};
|
|
3723
|
-
const de_Tag = (output, context) => {
|
|
3724
|
-
return {
|
|
3725
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3726
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3727
|
-
};
|
|
3728
2053
|
};
|
|
3729
|
-
const
|
|
3730
|
-
|
|
3731
|
-
.
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
return null;
|
|
3735
|
-
}
|
|
3736
|
-
return de_Tag(entry, context);
|
|
2054
|
+
const de_DescribeTLSInspectionConfigurationResponse = (output, context) => {
|
|
2055
|
+
return (0, smithy_client_1.take)(output, {
|
|
2056
|
+
TLSInspectionConfiguration: smithy_client_1._json,
|
|
2057
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
2058
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3737
2059
|
});
|
|
3738
|
-
return retVal;
|
|
3739
|
-
};
|
|
3740
|
-
const de_TagResourceResponse = (output, context) => {
|
|
3741
|
-
return {};
|
|
3742
2060
|
};
|
|
3743
|
-
const
|
|
3744
|
-
|
|
3745
|
-
.
|
|
3746
|
-
.
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
2061
|
+
const de_FirewallPolicyResponse = (output, context) => {
|
|
2062
|
+
return (0, smithy_client_1.take)(output, {
|
|
2063
|
+
ConsumedStatefulRuleCapacity: smithy_client_1.expectInt32,
|
|
2064
|
+
ConsumedStatelessRuleCapacity: smithy_client_1.expectInt32,
|
|
2065
|
+
Description: smithy_client_1.expectString,
|
|
2066
|
+
EncryptionConfiguration: smithy_client_1._json,
|
|
2067
|
+
FirewallPolicyArn: smithy_client_1.expectString,
|
|
2068
|
+
FirewallPolicyId: smithy_client_1.expectString,
|
|
2069
|
+
FirewallPolicyName: smithy_client_1.expectString,
|
|
2070
|
+
FirewallPolicyStatus: smithy_client_1.expectString,
|
|
2071
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2072
|
+
NumberOfAssociations: smithy_client_1.expectInt32,
|
|
2073
|
+
Tags: smithy_client_1._json,
|
|
3751
2074
|
});
|
|
3752
|
-
return retVal;
|
|
3753
|
-
};
|
|
3754
|
-
const de_TCPFlagField = (output, context) => {
|
|
3755
|
-
return {
|
|
3756
|
-
Flags: output.Flags != null ? de_Flags(output.Flags, context) : undefined,
|
|
3757
|
-
Masks: output.Masks != null ? de_Flags(output.Masks, context) : undefined,
|
|
3758
|
-
};
|
|
3759
2075
|
};
|
|
3760
|
-
const
|
|
3761
|
-
|
|
3762
|
-
.
|
|
3763
|
-
.
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
2076
|
+
const de_RuleGroupResponse = (output, context) => {
|
|
2077
|
+
return (0, smithy_client_1.take)(output, {
|
|
2078
|
+
Capacity: smithy_client_1.expectInt32,
|
|
2079
|
+
ConsumedCapacity: smithy_client_1.expectInt32,
|
|
2080
|
+
Description: smithy_client_1.expectString,
|
|
2081
|
+
EncryptionConfiguration: smithy_client_1._json,
|
|
2082
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2083
|
+
NumberOfAssociations: smithy_client_1.expectInt32,
|
|
2084
|
+
RuleGroupArn: smithy_client_1.expectString,
|
|
2085
|
+
RuleGroupId: smithy_client_1.expectString,
|
|
2086
|
+
RuleGroupName: smithy_client_1.expectString,
|
|
2087
|
+
RuleGroupStatus: smithy_client_1.expectString,
|
|
2088
|
+
SnsTopic: smithy_client_1.expectString,
|
|
2089
|
+
SourceMetadata: smithy_client_1._json,
|
|
2090
|
+
Tags: smithy_client_1._json,
|
|
2091
|
+
Type: smithy_client_1.expectString,
|
|
3768
2092
|
});
|
|
3769
|
-
return retVal;
|
|
3770
|
-
};
|
|
3771
|
-
const de_ThrottlingException = (output, context) => {
|
|
3772
|
-
return {
|
|
3773
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3774
|
-
};
|
|
3775
|
-
};
|
|
3776
|
-
const de_TlsCertificateData = (output, context) => {
|
|
3777
|
-
return {
|
|
3778
|
-
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
3779
|
-
CertificateSerial: (0, smithy_client_1.expectString)(output.CertificateSerial),
|
|
3780
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3781
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
3782
|
-
};
|
|
3783
|
-
};
|
|
3784
|
-
const de_TLSInspectionConfiguration = (output, context) => {
|
|
3785
|
-
return {
|
|
3786
|
-
ServerCertificateConfigurations: output.ServerCertificateConfigurations != null
|
|
3787
|
-
? de_ServerCertificateConfigurations(output.ServerCertificateConfigurations, context)
|
|
3788
|
-
: undefined,
|
|
3789
|
-
};
|
|
3790
|
-
};
|
|
3791
|
-
const de_TLSInspectionConfigurationMetadata = (output, context) => {
|
|
3792
|
-
return {
|
|
3793
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3794
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3795
|
-
};
|
|
3796
2093
|
};
|
|
3797
2094
|
const de_TLSInspectionConfigurationResponse = (output, context) => {
|
|
3798
|
-
return {
|
|
3799
|
-
Certificates:
|
|
3800
|
-
Description:
|
|
3801
|
-
EncryptionConfiguration:
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
TLSInspectionConfigurationId: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationId),
|
|
3810
|
-
TLSInspectionConfigurationName: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationName),
|
|
3811
|
-
TLSInspectionConfigurationStatus: (0, smithy_client_1.expectString)(output.TLSInspectionConfigurationStatus),
|
|
3812
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3813
|
-
};
|
|
3814
|
-
};
|
|
3815
|
-
const de_TLSInspectionConfigurations = (output, context) => {
|
|
3816
|
-
const retVal = (output || [])
|
|
3817
|
-
.filter((e) => e != null)
|
|
3818
|
-
.map((entry) => {
|
|
3819
|
-
if (entry === null) {
|
|
3820
|
-
return null;
|
|
3821
|
-
}
|
|
3822
|
-
return de_TLSInspectionConfigurationMetadata(entry, context);
|
|
2095
|
+
return (0, smithy_client_1.take)(output, {
|
|
2096
|
+
Certificates: smithy_client_1._json,
|
|
2097
|
+
Description: smithy_client_1.expectString,
|
|
2098
|
+
EncryptionConfiguration: smithy_client_1._json,
|
|
2099
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2100
|
+
NumberOfAssociations: smithy_client_1.expectInt32,
|
|
2101
|
+
TLSInspectionConfigurationArn: smithy_client_1.expectString,
|
|
2102
|
+
TLSInspectionConfigurationId: smithy_client_1.expectString,
|
|
2103
|
+
TLSInspectionConfigurationName: smithy_client_1.expectString,
|
|
2104
|
+
TLSInspectionConfigurationStatus: smithy_client_1.expectString,
|
|
2105
|
+
Tags: smithy_client_1._json,
|
|
3823
2106
|
});
|
|
3824
|
-
return retVal;
|
|
3825
|
-
};
|
|
3826
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
3827
|
-
return {
|
|
3828
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3829
|
-
};
|
|
3830
|
-
};
|
|
3831
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
3832
|
-
return {};
|
|
3833
|
-
};
|
|
3834
|
-
const de_UpdateFirewallDeleteProtectionResponse = (output, context) => {
|
|
3835
|
-
return {
|
|
3836
|
-
DeleteProtection: (0, smithy_client_1.expectBoolean)(output.DeleteProtection),
|
|
3837
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3838
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3839
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3840
|
-
};
|
|
3841
|
-
};
|
|
3842
|
-
const de_UpdateFirewallDescriptionResponse = (output, context) => {
|
|
3843
|
-
return {
|
|
3844
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3845
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3846
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3847
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3848
|
-
};
|
|
3849
|
-
};
|
|
3850
|
-
const de_UpdateFirewallEncryptionConfigurationResponse = (output, context) => {
|
|
3851
|
-
return {
|
|
3852
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3853
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3854
|
-
: undefined,
|
|
3855
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3856
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3857
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3858
|
-
};
|
|
3859
|
-
};
|
|
3860
|
-
const de_UpdateFirewallPolicyChangeProtectionResponse = (output, context) => {
|
|
3861
|
-
return {
|
|
3862
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3863
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3864
|
-
FirewallPolicyChangeProtection: (0, smithy_client_1.expectBoolean)(output.FirewallPolicyChangeProtection),
|
|
3865
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3866
|
-
};
|
|
3867
2107
|
};
|
|
3868
2108
|
const de_UpdateFirewallPolicyResponse = (output, context) => {
|
|
3869
|
-
return {
|
|
3870
|
-
FirewallPolicyResponse:
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3874
|
-
};
|
|
3875
|
-
};
|
|
3876
|
-
const de_UpdateLoggingConfigurationResponse = (output, context) => {
|
|
3877
|
-
return {
|
|
3878
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3879
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3880
|
-
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
3881
|
-
};
|
|
2109
|
+
return (0, smithy_client_1.take)(output, {
|
|
2110
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
2111
|
+
UpdateToken: smithy_client_1.expectString,
|
|
2112
|
+
});
|
|
3882
2113
|
};
|
|
3883
2114
|
const de_UpdateRuleGroupResponse = (output, context) => {
|
|
3884
|
-
return {
|
|
3885
|
-
RuleGroupResponse:
|
|
3886
|
-
UpdateToken:
|
|
3887
|
-
};
|
|
3888
|
-
};
|
|
3889
|
-
const de_UpdateSubnetChangeProtectionResponse = (output, context) => {
|
|
3890
|
-
return {
|
|
3891
|
-
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3892
|
-
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3893
|
-
SubnetChangeProtection: (0, smithy_client_1.expectBoolean)(output.SubnetChangeProtection),
|
|
3894
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3895
|
-
};
|
|
2115
|
+
return (0, smithy_client_1.take)(output, {
|
|
2116
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
2117
|
+
UpdateToken: smithy_client_1.expectString,
|
|
2118
|
+
});
|
|
3896
2119
|
};
|
|
3897
2120
|
const de_UpdateTLSInspectionConfigurationResponse = (output, context) => {
|
|
3898
|
-
return {
|
|
3899
|
-
TLSInspectionConfigurationResponse:
|
|
3900
|
-
|
|
3901
|
-
: undefined,
|
|
3902
|
-
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3903
|
-
};
|
|
3904
|
-
};
|
|
3905
|
-
const de_VariableDefinitionList = (output, context) => {
|
|
3906
|
-
const retVal = (output || [])
|
|
3907
|
-
.filter((e) => e != null)
|
|
3908
|
-
.map((entry) => {
|
|
3909
|
-
if (entry === null) {
|
|
3910
|
-
return null;
|
|
3911
|
-
}
|
|
3912
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2121
|
+
return (0, smithy_client_1.take)(output, {
|
|
2122
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
2123
|
+
UpdateToken: smithy_client_1.expectString,
|
|
3913
2124
|
});
|
|
3914
|
-
return retVal;
|
|
3915
2125
|
};
|
|
3916
2126
|
const deserializeMetadata = (output) => ({
|
|
3917
2127
|
httpStatusCode: output.statusCode,
|
|
@@ -3926,6 +2136,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3926
2136
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3927
2137
|
};
|
|
3928
2138
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2139
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(NetworkFirewallServiceException_1.NetworkFirewallServiceException);
|
|
3929
2140
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3930
2141
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3931
2142
|
const contents = {
|