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