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