@aws-sdk/client-network-firewall 3.927.0 → 3.928.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.
Files changed (78) hide show
  1. package/dist-cjs/index.js +2205 -1977
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/NetworkFirewallClient.js +2 -0
  4. package/dist-es/commands/AcceptNetworkFirewallTransitGatewayAttachmentCommand.js +3 -9
  5. package/dist-es/commands/AssociateAvailabilityZonesCommand.js +3 -9
  6. package/dist-es/commands/AssociateFirewallPolicyCommand.js +3 -9
  7. package/dist-es/commands/AssociateSubnetsCommand.js +3 -9
  8. package/dist-es/commands/CreateFirewallCommand.js +3 -9
  9. package/dist-es/commands/CreateFirewallPolicyCommand.js +3 -9
  10. package/dist-es/commands/CreateRuleGroupCommand.js +3 -9
  11. package/dist-es/commands/CreateTLSInspectionConfigurationCommand.js +3 -9
  12. package/dist-es/commands/CreateVpcEndpointAssociationCommand.js +3 -9
  13. package/dist-es/commands/DeleteFirewallCommand.js +3 -9
  14. package/dist-es/commands/DeleteFirewallPolicyCommand.js +3 -9
  15. package/dist-es/commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand.js +3 -9
  16. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  17. package/dist-es/commands/DeleteRuleGroupCommand.js +3 -9
  18. package/dist-es/commands/DeleteTLSInspectionConfigurationCommand.js +3 -9
  19. package/dist-es/commands/DeleteVpcEndpointAssociationCommand.js +3 -9
  20. package/dist-es/commands/DescribeFirewallCommand.js +3 -9
  21. package/dist-es/commands/DescribeFirewallMetadataCommand.js +3 -9
  22. package/dist-es/commands/DescribeFirewallPolicyCommand.js +3 -9
  23. package/dist-es/commands/DescribeFlowOperationCommand.js +3 -9
  24. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +3 -9
  25. package/dist-es/commands/DescribeResourcePolicyCommand.js +3 -9
  26. package/dist-es/commands/DescribeRuleGroupCommand.js +3 -9
  27. package/dist-es/commands/DescribeRuleGroupMetadataCommand.js +3 -9
  28. package/dist-es/commands/DescribeRuleGroupSummaryCommand.js +3 -9
  29. package/dist-es/commands/DescribeTLSInspectionConfigurationCommand.js +3 -9
  30. package/dist-es/commands/DescribeVpcEndpointAssociationCommand.js +3 -9
  31. package/dist-es/commands/DisassociateAvailabilityZonesCommand.js +3 -9
  32. package/dist-es/commands/DisassociateSubnetsCommand.js +3 -9
  33. package/dist-es/commands/GetAnalysisReportResultsCommand.js +3 -9
  34. package/dist-es/commands/ListAnalysisReportsCommand.js +3 -9
  35. package/dist-es/commands/ListFirewallPoliciesCommand.js +3 -9
  36. package/dist-es/commands/ListFirewallsCommand.js +3 -9
  37. package/dist-es/commands/ListFlowOperationResultsCommand.js +3 -9
  38. package/dist-es/commands/ListFlowOperationsCommand.js +3 -9
  39. package/dist-es/commands/ListRuleGroupsCommand.js +3 -9
  40. package/dist-es/commands/ListTLSInspectionConfigurationsCommand.js +3 -9
  41. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  42. package/dist-es/commands/ListVpcEndpointAssociationsCommand.js +3 -9
  43. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  44. package/dist-es/commands/RejectNetworkFirewallTransitGatewayAttachmentCommand.js +3 -9
  45. package/dist-es/commands/StartAnalysisReportCommand.js +3 -9
  46. package/dist-es/commands/StartFlowCaptureCommand.js +3 -9
  47. package/dist-es/commands/StartFlowFlushCommand.js +3 -9
  48. package/dist-es/commands/TagResourceCommand.js +3 -9
  49. package/dist-es/commands/UntagResourceCommand.js +3 -9
  50. package/dist-es/commands/UpdateAvailabilityZoneChangeProtectionCommand.js +3 -9
  51. package/dist-es/commands/UpdateFirewallAnalysisSettingsCommand.js +3 -9
  52. package/dist-es/commands/UpdateFirewallDeleteProtectionCommand.js +3 -9
  53. package/dist-es/commands/UpdateFirewallDescriptionCommand.js +3 -9
  54. package/dist-es/commands/UpdateFirewallEncryptionConfigurationCommand.js +3 -9
  55. package/dist-es/commands/UpdateFirewallPolicyChangeProtectionCommand.js +3 -9
  56. package/dist-es/commands/UpdateFirewallPolicyCommand.js +3 -9
  57. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -9
  58. package/dist-es/commands/UpdateRuleGroupCommand.js +3 -9
  59. package/dist-es/commands/UpdateSubnetChangeProtectionCommand.js +3 -9
  60. package/dist-es/commands/UpdateTLSInspectionConfigurationCommand.js +3 -9
  61. package/dist-es/runtimeConfig.shared.js +7 -0
  62. package/dist-es/schemas/schemas_0.js +2070 -0
  63. package/dist-types/NetworkFirewallClient.d.ts +10 -1
  64. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  65. package/dist-types/runtimeConfig.d.ts +1 -0
  66. package/dist-types/runtimeConfig.native.d.ts +1 -0
  67. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  68. package/dist-types/schemas/schemas_0.d.ts +316 -0
  69. package/dist-types/ts3.4/NetworkFirewallClient.d.ts +4 -0
  70. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  71. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  72. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  73. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  74. package/dist-types/ts3.4/schemas/schemas_0.d.ts +322 -0
  75. package/package.json +5 -5
  76. package/dist-es/protocols/Aws_json1_0.js +0 -1546
  77. package/dist-types/protocols/Aws_json1_0.d.ts +0 -515
  78. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -689
@@ -1,1546 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { InsufficientCapacityException, InternalServerError, InvalidOperationException, InvalidRequestException, InvalidResourcePolicyException, InvalidTokenException, LimitExceededException, LogDestinationPermissionException, ResourceNotFoundException, ResourceOwnerCheckException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
5
- import { NetworkFirewallServiceException as __BaseException } from "../models/NetworkFirewallServiceException";
6
- export const se_AcceptNetworkFirewallTransitGatewayAttachmentCommand = async (input, context) => {
7
- const headers = sharedHeaders("AcceptNetworkFirewallTransitGatewayAttachment");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_AssociateAvailabilityZonesCommand = async (input, context) => {
13
- const headers = sharedHeaders("AssociateAvailabilityZones");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_AssociateFirewallPolicyCommand = async (input, context) => {
19
- const headers = sharedHeaders("AssociateFirewallPolicy");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_AssociateSubnetsCommand = async (input, context) => {
25
- const headers = sharedHeaders("AssociateSubnets");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CreateFirewallCommand = async (input, context) => {
31
- const headers = sharedHeaders("CreateFirewall");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_CreateFirewallPolicyCommand = async (input, context) => {
37
- const headers = sharedHeaders("CreateFirewallPolicy");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_CreateRuleGroupCommand = async (input, context) => {
43
- const headers = sharedHeaders("CreateRuleGroup");
44
- let body;
45
- body = JSON.stringify(se_CreateRuleGroupRequest(input, context));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CreateTLSInspectionConfigurationCommand = async (input, context) => {
49
- const headers = sharedHeaders("CreateTLSInspectionConfiguration");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateVpcEndpointAssociationCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateVpcEndpointAssociation");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_DeleteFirewallCommand = async (input, context) => {
61
- const headers = sharedHeaders("DeleteFirewall");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_DeleteFirewallPolicyCommand = async (input, context) => {
67
- const headers = sharedHeaders("DeleteFirewallPolicy");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_DeleteNetworkFirewallTransitGatewayAttachmentCommand = async (input, context) => {
73
- const headers = sharedHeaders("DeleteNetworkFirewallTransitGatewayAttachment");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_DeleteResourcePolicyCommand = async (input, context) => {
79
- const headers = sharedHeaders("DeleteResourcePolicy");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_DeleteRuleGroupCommand = async (input, context) => {
85
- const headers = sharedHeaders("DeleteRuleGroup");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_DeleteTLSInspectionConfigurationCommand = async (input, context) => {
91
- const headers = sharedHeaders("DeleteTLSInspectionConfiguration");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DeleteVpcEndpointAssociationCommand = async (input, context) => {
97
- const headers = sharedHeaders("DeleteVpcEndpointAssociation");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_DescribeFirewallCommand = async (input, context) => {
103
- const headers = sharedHeaders("DescribeFirewall");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_DescribeFirewallMetadataCommand = async (input, context) => {
109
- const headers = sharedHeaders("DescribeFirewallMetadata");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_DescribeFirewallPolicyCommand = async (input, context) => {
115
- const headers = sharedHeaders("DescribeFirewallPolicy");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_DescribeFlowOperationCommand = async (input, context) => {
121
- const headers = sharedHeaders("DescribeFlowOperation");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_DescribeLoggingConfigurationCommand = async (input, context) => {
127
- const headers = sharedHeaders("DescribeLoggingConfiguration");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_DescribeResourcePolicyCommand = async (input, context) => {
133
- const headers = sharedHeaders("DescribeResourcePolicy");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_DescribeRuleGroupCommand = async (input, context) => {
139
- const headers = sharedHeaders("DescribeRuleGroup");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_DescribeRuleGroupMetadataCommand = async (input, context) => {
145
- const headers = sharedHeaders("DescribeRuleGroupMetadata");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_DescribeRuleGroupSummaryCommand = async (input, context) => {
151
- const headers = sharedHeaders("DescribeRuleGroupSummary");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_DescribeTLSInspectionConfigurationCommand = async (input, context) => {
157
- const headers = sharedHeaders("DescribeTLSInspectionConfiguration");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_DescribeVpcEndpointAssociationCommand = async (input, context) => {
163
- const headers = sharedHeaders("DescribeVpcEndpointAssociation");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_DisassociateAvailabilityZonesCommand = async (input, context) => {
169
- const headers = sharedHeaders("DisassociateAvailabilityZones");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_DisassociateSubnetsCommand = async (input, context) => {
175
- const headers = sharedHeaders("DisassociateSubnets");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_GetAnalysisReportResultsCommand = async (input, context) => {
181
- const headers = sharedHeaders("GetAnalysisReportResults");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_ListAnalysisReportsCommand = async (input, context) => {
187
- const headers = sharedHeaders("ListAnalysisReports");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_ListFirewallPoliciesCommand = async (input, context) => {
193
- const headers = sharedHeaders("ListFirewallPolicies");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_ListFirewallsCommand = async (input, context) => {
199
- const headers = sharedHeaders("ListFirewalls");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_ListFlowOperationResultsCommand = async (input, context) => {
205
- const headers = sharedHeaders("ListFlowOperationResults");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_ListFlowOperationsCommand = async (input, context) => {
211
- const headers = sharedHeaders("ListFlowOperations");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_ListRuleGroupsCommand = async (input, context) => {
217
- const headers = sharedHeaders("ListRuleGroups");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_ListTagsForResourceCommand = async (input, context) => {
223
- const headers = sharedHeaders("ListTagsForResource");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_ListTLSInspectionConfigurationsCommand = async (input, context) => {
229
- const headers = sharedHeaders("ListTLSInspectionConfigurations");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_ListVpcEndpointAssociationsCommand = async (input, context) => {
235
- const headers = sharedHeaders("ListVpcEndpointAssociations");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_PutResourcePolicyCommand = async (input, context) => {
241
- const headers = sharedHeaders("PutResourcePolicy");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_RejectNetworkFirewallTransitGatewayAttachmentCommand = async (input, context) => {
247
- const headers = sharedHeaders("RejectNetworkFirewallTransitGatewayAttachment");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_StartAnalysisReportCommand = async (input, context) => {
253
- const headers = sharedHeaders("StartAnalysisReport");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_StartFlowCaptureCommand = async (input, context) => {
259
- const headers = sharedHeaders("StartFlowCapture");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_StartFlowFlushCommand = async (input, context) => {
265
- const headers = sharedHeaders("StartFlowFlush");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_TagResourceCommand = async (input, context) => {
271
- const headers = sharedHeaders("TagResource");
272
- let body;
273
- body = JSON.stringify(_json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_UntagResourceCommand = async (input, context) => {
277
- const headers = sharedHeaders("UntagResource");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_UpdateAvailabilityZoneChangeProtectionCommand = async (input, context) => {
283
- const headers = sharedHeaders("UpdateAvailabilityZoneChangeProtection");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_UpdateFirewallAnalysisSettingsCommand = async (input, context) => {
289
- const headers = sharedHeaders("UpdateFirewallAnalysisSettings");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_UpdateFirewallDeleteProtectionCommand = async (input, context) => {
295
- const headers = sharedHeaders("UpdateFirewallDeleteProtection");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_UpdateFirewallDescriptionCommand = async (input, context) => {
301
- const headers = sharedHeaders("UpdateFirewallDescription");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_UpdateFirewallEncryptionConfigurationCommand = async (input, context) => {
307
- const headers = sharedHeaders("UpdateFirewallEncryptionConfiguration");
308
- let body;
309
- body = JSON.stringify(_json(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_UpdateFirewallPolicyCommand = async (input, context) => {
313
- const headers = sharedHeaders("UpdateFirewallPolicy");
314
- let body;
315
- body = JSON.stringify(_json(input));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_UpdateFirewallPolicyChangeProtectionCommand = async (input, context) => {
319
- const headers = sharedHeaders("UpdateFirewallPolicyChangeProtection");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
325
- const headers = sharedHeaders("UpdateLoggingConfiguration");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_UpdateRuleGroupCommand = async (input, context) => {
331
- const headers = sharedHeaders("UpdateRuleGroup");
332
- let body;
333
- body = JSON.stringify(se_UpdateRuleGroupRequest(input, context));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_UpdateSubnetChangeProtectionCommand = async (input, context) => {
337
- const headers = sharedHeaders("UpdateSubnetChangeProtection");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_UpdateTLSInspectionConfigurationCommand = async (input, context) => {
343
- const headers = sharedHeaders("UpdateTLSInspectionConfiguration");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const de_AcceptNetworkFirewallTransitGatewayAttachmentCommand = async (output, context) => {
349
- if (output.statusCode >= 300) {
350
- return de_CommandError(output, context);
351
- }
352
- const data = await parseBody(output.body, context);
353
- let contents = {};
354
- contents = _json(data);
355
- const response = {
356
- $metadata: deserializeMetadata(output),
357
- ...contents,
358
- };
359
- return response;
360
- };
361
- export const de_AssociateAvailabilityZonesCommand = async (output, context) => {
362
- if (output.statusCode >= 300) {
363
- return de_CommandError(output, context);
364
- }
365
- const data = await parseBody(output.body, context);
366
- let contents = {};
367
- contents = _json(data);
368
- const response = {
369
- $metadata: deserializeMetadata(output),
370
- ...contents,
371
- };
372
- return response;
373
- };
374
- export const de_AssociateFirewallPolicyCommand = async (output, context) => {
375
- if (output.statusCode >= 300) {
376
- return de_CommandError(output, context);
377
- }
378
- const data = await parseBody(output.body, context);
379
- let contents = {};
380
- contents = _json(data);
381
- const response = {
382
- $metadata: deserializeMetadata(output),
383
- ...contents,
384
- };
385
- return response;
386
- };
387
- export const de_AssociateSubnetsCommand = async (output, context) => {
388
- if (output.statusCode >= 300) {
389
- return de_CommandError(output, context);
390
- }
391
- const data = await parseBody(output.body, context);
392
- let contents = {};
393
- contents = _json(data);
394
- const response = {
395
- $metadata: deserializeMetadata(output),
396
- ...contents,
397
- };
398
- return response;
399
- };
400
- export const de_CreateFirewallCommand = async (output, context) => {
401
- if (output.statusCode >= 300) {
402
- return de_CommandError(output, context);
403
- }
404
- const data = await parseBody(output.body, context);
405
- let contents = {};
406
- contents = _json(data);
407
- const response = {
408
- $metadata: deserializeMetadata(output),
409
- ...contents,
410
- };
411
- return response;
412
- };
413
- export const de_CreateFirewallPolicyCommand = async (output, context) => {
414
- if (output.statusCode >= 300) {
415
- return de_CommandError(output, context);
416
- }
417
- const data = await parseBody(output.body, context);
418
- let contents = {};
419
- contents = de_CreateFirewallPolicyResponse(data, context);
420
- const response = {
421
- $metadata: deserializeMetadata(output),
422
- ...contents,
423
- };
424
- return response;
425
- };
426
- export const de_CreateRuleGroupCommand = async (output, context) => {
427
- if (output.statusCode >= 300) {
428
- return de_CommandError(output, context);
429
- }
430
- const data = await parseBody(output.body, context);
431
- let contents = {};
432
- contents = de_CreateRuleGroupResponse(data, context);
433
- const response = {
434
- $metadata: deserializeMetadata(output),
435
- ...contents,
436
- };
437
- return response;
438
- };
439
- export const de_CreateTLSInspectionConfigurationCommand = async (output, context) => {
440
- if (output.statusCode >= 300) {
441
- return de_CommandError(output, context);
442
- }
443
- const data = await parseBody(output.body, context);
444
- let contents = {};
445
- contents = de_CreateTLSInspectionConfigurationResponse(data, context);
446
- const response = {
447
- $metadata: deserializeMetadata(output),
448
- ...contents,
449
- };
450
- return response;
451
- };
452
- export const de_CreateVpcEndpointAssociationCommand = async (output, context) => {
453
- if (output.statusCode >= 300) {
454
- return de_CommandError(output, context);
455
- }
456
- const data = await parseBody(output.body, context);
457
- let contents = {};
458
- contents = _json(data);
459
- const response = {
460
- $metadata: deserializeMetadata(output),
461
- ...contents,
462
- };
463
- return response;
464
- };
465
- export const de_DeleteFirewallCommand = async (output, context) => {
466
- if (output.statusCode >= 300) {
467
- return de_CommandError(output, context);
468
- }
469
- const data = await parseBody(output.body, context);
470
- let contents = {};
471
- contents = _json(data);
472
- const response = {
473
- $metadata: deserializeMetadata(output),
474
- ...contents,
475
- };
476
- return response;
477
- };
478
- export const de_DeleteFirewallPolicyCommand = async (output, context) => {
479
- if (output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const data = await parseBody(output.body, context);
483
- let contents = {};
484
- contents = de_DeleteFirewallPolicyResponse(data, context);
485
- const response = {
486
- $metadata: deserializeMetadata(output),
487
- ...contents,
488
- };
489
- return response;
490
- };
491
- export const de_DeleteNetworkFirewallTransitGatewayAttachmentCommand = async (output, context) => {
492
- if (output.statusCode >= 300) {
493
- return de_CommandError(output, context);
494
- }
495
- const data = await parseBody(output.body, context);
496
- let contents = {};
497
- contents = _json(data);
498
- const response = {
499
- $metadata: deserializeMetadata(output),
500
- ...contents,
501
- };
502
- return response;
503
- };
504
- export const de_DeleteResourcePolicyCommand = async (output, context) => {
505
- if (output.statusCode >= 300) {
506
- return de_CommandError(output, context);
507
- }
508
- const data = await parseBody(output.body, context);
509
- let contents = {};
510
- contents = _json(data);
511
- const response = {
512
- $metadata: deserializeMetadata(output),
513
- ...contents,
514
- };
515
- return response;
516
- };
517
- export const de_DeleteRuleGroupCommand = async (output, context) => {
518
- if (output.statusCode >= 300) {
519
- return de_CommandError(output, context);
520
- }
521
- const data = await parseBody(output.body, context);
522
- let contents = {};
523
- contents = de_DeleteRuleGroupResponse(data, context);
524
- const response = {
525
- $metadata: deserializeMetadata(output),
526
- ...contents,
527
- };
528
- return response;
529
- };
530
- export const de_DeleteTLSInspectionConfigurationCommand = async (output, context) => {
531
- if (output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const data = await parseBody(output.body, context);
535
- let contents = {};
536
- contents = de_DeleteTLSInspectionConfigurationResponse(data, context);
537
- const response = {
538
- $metadata: deserializeMetadata(output),
539
- ...contents,
540
- };
541
- return response;
542
- };
543
- export const de_DeleteVpcEndpointAssociationCommand = async (output, context) => {
544
- if (output.statusCode >= 300) {
545
- return de_CommandError(output, context);
546
- }
547
- const data = await parseBody(output.body, context);
548
- let contents = {};
549
- contents = _json(data);
550
- const response = {
551
- $metadata: deserializeMetadata(output),
552
- ...contents,
553
- };
554
- return response;
555
- };
556
- export const de_DescribeFirewallCommand = async (output, context) => {
557
- if (output.statusCode >= 300) {
558
- return de_CommandError(output, context);
559
- }
560
- const data = await parseBody(output.body, context);
561
- let contents = {};
562
- contents = _json(data);
563
- const response = {
564
- $metadata: deserializeMetadata(output),
565
- ...contents,
566
- };
567
- return response;
568
- };
569
- export const de_DescribeFirewallMetadataCommand = async (output, context) => {
570
- if (output.statusCode >= 300) {
571
- return de_CommandError(output, context);
572
- }
573
- const data = await parseBody(output.body, context);
574
- let contents = {};
575
- contents = _json(data);
576
- const response = {
577
- $metadata: deserializeMetadata(output),
578
- ...contents,
579
- };
580
- return response;
581
- };
582
- export const de_DescribeFirewallPolicyCommand = async (output, context) => {
583
- if (output.statusCode >= 300) {
584
- return de_CommandError(output, context);
585
- }
586
- const data = await parseBody(output.body, context);
587
- let contents = {};
588
- contents = de_DescribeFirewallPolicyResponse(data, context);
589
- const response = {
590
- $metadata: deserializeMetadata(output),
591
- ...contents,
592
- };
593
- return response;
594
- };
595
- export const de_DescribeFlowOperationCommand = async (output, context) => {
596
- if (output.statusCode >= 300) {
597
- return de_CommandError(output, context);
598
- }
599
- const data = await parseBody(output.body, context);
600
- let contents = {};
601
- contents = de_DescribeFlowOperationResponse(data, context);
602
- const response = {
603
- $metadata: deserializeMetadata(output),
604
- ...contents,
605
- };
606
- return response;
607
- };
608
- export const de_DescribeLoggingConfigurationCommand = async (output, context) => {
609
- if (output.statusCode >= 300) {
610
- return de_CommandError(output, context);
611
- }
612
- const data = await parseBody(output.body, context);
613
- let contents = {};
614
- contents = _json(data);
615
- const response = {
616
- $metadata: deserializeMetadata(output),
617
- ...contents,
618
- };
619
- return response;
620
- };
621
- export const de_DescribeResourcePolicyCommand = async (output, context) => {
622
- if (output.statusCode >= 300) {
623
- return de_CommandError(output, context);
624
- }
625
- const data = await parseBody(output.body, context);
626
- let contents = {};
627
- contents = _json(data);
628
- const response = {
629
- $metadata: deserializeMetadata(output),
630
- ...contents,
631
- };
632
- return response;
633
- };
634
- export const de_DescribeRuleGroupCommand = async (output, context) => {
635
- if (output.statusCode >= 300) {
636
- return de_CommandError(output, context);
637
- }
638
- const data = await parseBody(output.body, context);
639
- let contents = {};
640
- contents = de_DescribeRuleGroupResponse(data, context);
641
- const response = {
642
- $metadata: deserializeMetadata(output),
643
- ...contents,
644
- };
645
- return response;
646
- };
647
- export const de_DescribeRuleGroupMetadataCommand = async (output, context) => {
648
- if (output.statusCode >= 300) {
649
- return de_CommandError(output, context);
650
- }
651
- const data = await parseBody(output.body, context);
652
- let contents = {};
653
- contents = de_DescribeRuleGroupMetadataResponse(data, context);
654
- const response = {
655
- $metadata: deserializeMetadata(output),
656
- ...contents,
657
- };
658
- return response;
659
- };
660
- export const de_DescribeRuleGroupSummaryCommand = async (output, context) => {
661
- if (output.statusCode >= 300) {
662
- return de_CommandError(output, context);
663
- }
664
- const data = await parseBody(output.body, context);
665
- let contents = {};
666
- contents = _json(data);
667
- const response = {
668
- $metadata: deserializeMetadata(output),
669
- ...contents,
670
- };
671
- return response;
672
- };
673
- export const de_DescribeTLSInspectionConfigurationCommand = async (output, context) => {
674
- if (output.statusCode >= 300) {
675
- return de_CommandError(output, context);
676
- }
677
- const data = await parseBody(output.body, context);
678
- let contents = {};
679
- contents = de_DescribeTLSInspectionConfigurationResponse(data, context);
680
- const response = {
681
- $metadata: deserializeMetadata(output),
682
- ...contents,
683
- };
684
- return response;
685
- };
686
- export const de_DescribeVpcEndpointAssociationCommand = async (output, context) => {
687
- if (output.statusCode >= 300) {
688
- return de_CommandError(output, context);
689
- }
690
- const data = await parseBody(output.body, context);
691
- let contents = {};
692
- contents = _json(data);
693
- const response = {
694
- $metadata: deserializeMetadata(output),
695
- ...contents,
696
- };
697
- return response;
698
- };
699
- export const de_DisassociateAvailabilityZonesCommand = async (output, context) => {
700
- if (output.statusCode >= 300) {
701
- return de_CommandError(output, context);
702
- }
703
- const data = await parseBody(output.body, context);
704
- let contents = {};
705
- contents = _json(data);
706
- const response = {
707
- $metadata: deserializeMetadata(output),
708
- ...contents,
709
- };
710
- return response;
711
- };
712
- export const de_DisassociateSubnetsCommand = async (output, context) => {
713
- if (output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const data = await parseBody(output.body, context);
717
- let contents = {};
718
- contents = _json(data);
719
- const response = {
720
- $metadata: deserializeMetadata(output),
721
- ...contents,
722
- };
723
- return response;
724
- };
725
- export const de_GetAnalysisReportResultsCommand = async (output, context) => {
726
- if (output.statusCode >= 300) {
727
- return de_CommandError(output, context);
728
- }
729
- const data = await parseBody(output.body, context);
730
- let contents = {};
731
- contents = de_GetAnalysisReportResultsResponse(data, context);
732
- const response = {
733
- $metadata: deserializeMetadata(output),
734
- ...contents,
735
- };
736
- return response;
737
- };
738
- export const de_ListAnalysisReportsCommand = async (output, context) => {
739
- if (output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const data = await parseBody(output.body, context);
743
- let contents = {};
744
- contents = de_ListAnalysisReportsResponse(data, context);
745
- const response = {
746
- $metadata: deserializeMetadata(output),
747
- ...contents,
748
- };
749
- return response;
750
- };
751
- export const de_ListFirewallPoliciesCommand = async (output, context) => {
752
- if (output.statusCode >= 300) {
753
- return de_CommandError(output, context);
754
- }
755
- const data = await parseBody(output.body, context);
756
- let contents = {};
757
- contents = _json(data);
758
- const response = {
759
- $metadata: deserializeMetadata(output),
760
- ...contents,
761
- };
762
- return response;
763
- };
764
- export const de_ListFirewallsCommand = async (output, context) => {
765
- if (output.statusCode >= 300) {
766
- return de_CommandError(output, context);
767
- }
768
- const data = await parseBody(output.body, context);
769
- let contents = {};
770
- contents = _json(data);
771
- const response = {
772
- $metadata: deserializeMetadata(output),
773
- ...contents,
774
- };
775
- return response;
776
- };
777
- export const de_ListFlowOperationResultsCommand = async (output, context) => {
778
- if (output.statusCode >= 300) {
779
- return de_CommandError(output, context);
780
- }
781
- const data = await parseBody(output.body, context);
782
- let contents = {};
783
- contents = de_ListFlowOperationResultsResponse(data, context);
784
- const response = {
785
- $metadata: deserializeMetadata(output),
786
- ...contents,
787
- };
788
- return response;
789
- };
790
- export const de_ListFlowOperationsCommand = async (output, context) => {
791
- if (output.statusCode >= 300) {
792
- return de_CommandError(output, context);
793
- }
794
- const data = await parseBody(output.body, context);
795
- let contents = {};
796
- contents = de_ListFlowOperationsResponse(data, context);
797
- const response = {
798
- $metadata: deserializeMetadata(output),
799
- ...contents,
800
- };
801
- return response;
802
- };
803
- export const de_ListRuleGroupsCommand = async (output, context) => {
804
- if (output.statusCode >= 300) {
805
- return de_CommandError(output, context);
806
- }
807
- const data = await parseBody(output.body, context);
808
- let contents = {};
809
- contents = _json(data);
810
- const response = {
811
- $metadata: deserializeMetadata(output),
812
- ...contents,
813
- };
814
- return response;
815
- };
816
- export const de_ListTagsForResourceCommand = async (output, context) => {
817
- if (output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const data = await parseBody(output.body, context);
821
- let contents = {};
822
- contents = _json(data);
823
- const response = {
824
- $metadata: deserializeMetadata(output),
825
- ...contents,
826
- };
827
- return response;
828
- };
829
- export const de_ListTLSInspectionConfigurationsCommand = async (output, context) => {
830
- if (output.statusCode >= 300) {
831
- return de_CommandError(output, context);
832
- }
833
- const data = await parseBody(output.body, context);
834
- let contents = {};
835
- contents = _json(data);
836
- const response = {
837
- $metadata: deserializeMetadata(output),
838
- ...contents,
839
- };
840
- return response;
841
- };
842
- export const de_ListVpcEndpointAssociationsCommand = async (output, context) => {
843
- if (output.statusCode >= 300) {
844
- return de_CommandError(output, context);
845
- }
846
- const data = await parseBody(output.body, context);
847
- let contents = {};
848
- contents = _json(data);
849
- const response = {
850
- $metadata: deserializeMetadata(output),
851
- ...contents,
852
- };
853
- return response;
854
- };
855
- export const de_PutResourcePolicyCommand = async (output, context) => {
856
- if (output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const data = await parseBody(output.body, context);
860
- let contents = {};
861
- contents = _json(data);
862
- const response = {
863
- $metadata: deserializeMetadata(output),
864
- ...contents,
865
- };
866
- return response;
867
- };
868
- export const de_RejectNetworkFirewallTransitGatewayAttachmentCommand = async (output, context) => {
869
- if (output.statusCode >= 300) {
870
- return de_CommandError(output, context);
871
- }
872
- const data = await parseBody(output.body, context);
873
- let contents = {};
874
- contents = _json(data);
875
- const response = {
876
- $metadata: deserializeMetadata(output),
877
- ...contents,
878
- };
879
- return response;
880
- };
881
- export const de_StartAnalysisReportCommand = async (output, context) => {
882
- if (output.statusCode >= 300) {
883
- return de_CommandError(output, context);
884
- }
885
- const data = await parseBody(output.body, context);
886
- let contents = {};
887
- contents = _json(data);
888
- const response = {
889
- $metadata: deserializeMetadata(output),
890
- ...contents,
891
- };
892
- return response;
893
- };
894
- export const de_StartFlowCaptureCommand = async (output, context) => {
895
- if (output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const data = await parseBody(output.body, context);
899
- let contents = {};
900
- contents = _json(data);
901
- const response = {
902
- $metadata: deserializeMetadata(output),
903
- ...contents,
904
- };
905
- return response;
906
- };
907
- export const de_StartFlowFlushCommand = async (output, context) => {
908
- if (output.statusCode >= 300) {
909
- return de_CommandError(output, context);
910
- }
911
- const data = await parseBody(output.body, context);
912
- let contents = {};
913
- contents = _json(data);
914
- const response = {
915
- $metadata: deserializeMetadata(output),
916
- ...contents,
917
- };
918
- return response;
919
- };
920
- export const de_TagResourceCommand = async (output, context) => {
921
- if (output.statusCode >= 300) {
922
- return de_CommandError(output, context);
923
- }
924
- const data = await parseBody(output.body, context);
925
- let contents = {};
926
- contents = _json(data);
927
- const response = {
928
- $metadata: deserializeMetadata(output),
929
- ...contents,
930
- };
931
- return response;
932
- };
933
- export const de_UntagResourceCommand = async (output, context) => {
934
- if (output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- const data = await parseBody(output.body, context);
938
- let contents = {};
939
- contents = _json(data);
940
- const response = {
941
- $metadata: deserializeMetadata(output),
942
- ...contents,
943
- };
944
- return response;
945
- };
946
- export const de_UpdateAvailabilityZoneChangeProtectionCommand = async (output, context) => {
947
- if (output.statusCode >= 300) {
948
- return de_CommandError(output, context);
949
- }
950
- const data = await parseBody(output.body, context);
951
- let contents = {};
952
- contents = _json(data);
953
- const response = {
954
- $metadata: deserializeMetadata(output),
955
- ...contents,
956
- };
957
- return response;
958
- };
959
- export const de_UpdateFirewallAnalysisSettingsCommand = async (output, context) => {
960
- if (output.statusCode >= 300) {
961
- return de_CommandError(output, context);
962
- }
963
- const data = await parseBody(output.body, context);
964
- let contents = {};
965
- contents = _json(data);
966
- const response = {
967
- $metadata: deserializeMetadata(output),
968
- ...contents,
969
- };
970
- return response;
971
- };
972
- export const de_UpdateFirewallDeleteProtectionCommand = async (output, context) => {
973
- if (output.statusCode >= 300) {
974
- return de_CommandError(output, context);
975
- }
976
- const data = await parseBody(output.body, context);
977
- let contents = {};
978
- contents = _json(data);
979
- const response = {
980
- $metadata: deserializeMetadata(output),
981
- ...contents,
982
- };
983
- return response;
984
- };
985
- export const de_UpdateFirewallDescriptionCommand = async (output, context) => {
986
- if (output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const data = await parseBody(output.body, context);
990
- let contents = {};
991
- contents = _json(data);
992
- const response = {
993
- $metadata: deserializeMetadata(output),
994
- ...contents,
995
- };
996
- return response;
997
- };
998
- export const de_UpdateFirewallEncryptionConfigurationCommand = async (output, context) => {
999
- if (output.statusCode >= 300) {
1000
- return de_CommandError(output, context);
1001
- }
1002
- const data = await parseBody(output.body, context);
1003
- let contents = {};
1004
- contents = _json(data);
1005
- const response = {
1006
- $metadata: deserializeMetadata(output),
1007
- ...contents,
1008
- };
1009
- return response;
1010
- };
1011
- export const de_UpdateFirewallPolicyCommand = async (output, context) => {
1012
- if (output.statusCode >= 300) {
1013
- return de_CommandError(output, context);
1014
- }
1015
- const data = await parseBody(output.body, context);
1016
- let contents = {};
1017
- contents = de_UpdateFirewallPolicyResponse(data, context);
1018
- const response = {
1019
- $metadata: deserializeMetadata(output),
1020
- ...contents,
1021
- };
1022
- return response;
1023
- };
1024
- export const de_UpdateFirewallPolicyChangeProtectionCommand = async (output, context) => {
1025
- if (output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const data = await parseBody(output.body, context);
1029
- let contents = {};
1030
- contents = _json(data);
1031
- const response = {
1032
- $metadata: deserializeMetadata(output),
1033
- ...contents,
1034
- };
1035
- return response;
1036
- };
1037
- export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
1038
- if (output.statusCode >= 300) {
1039
- return de_CommandError(output, context);
1040
- }
1041
- const data = await parseBody(output.body, context);
1042
- let contents = {};
1043
- contents = _json(data);
1044
- const response = {
1045
- $metadata: deserializeMetadata(output),
1046
- ...contents,
1047
- };
1048
- return response;
1049
- };
1050
- export const de_UpdateRuleGroupCommand = async (output, context) => {
1051
- if (output.statusCode >= 300) {
1052
- return de_CommandError(output, context);
1053
- }
1054
- const data = await parseBody(output.body, context);
1055
- let contents = {};
1056
- contents = de_UpdateRuleGroupResponse(data, context);
1057
- const response = {
1058
- $metadata: deserializeMetadata(output),
1059
- ...contents,
1060
- };
1061
- return response;
1062
- };
1063
- export const de_UpdateSubnetChangeProtectionCommand = async (output, context) => {
1064
- if (output.statusCode >= 300) {
1065
- return de_CommandError(output, context);
1066
- }
1067
- const data = await parseBody(output.body, context);
1068
- let contents = {};
1069
- contents = _json(data);
1070
- const response = {
1071
- $metadata: deserializeMetadata(output),
1072
- ...contents,
1073
- };
1074
- return response;
1075
- };
1076
- export const de_UpdateTLSInspectionConfigurationCommand = async (output, context) => {
1077
- if (output.statusCode >= 300) {
1078
- return de_CommandError(output, context);
1079
- }
1080
- const data = await parseBody(output.body, context);
1081
- let contents = {};
1082
- contents = de_UpdateTLSInspectionConfigurationResponse(data, context);
1083
- const response = {
1084
- $metadata: deserializeMetadata(output),
1085
- ...contents,
1086
- };
1087
- return response;
1088
- };
1089
- const de_CommandError = async (output, context) => {
1090
- const parsedOutput = {
1091
- ...output,
1092
- body: await parseErrorBody(output.body, context),
1093
- };
1094
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1095
- switch (errorCode) {
1096
- case "InternalServerError":
1097
- case "com.amazonaws.networkfirewall#InternalServerError":
1098
- throw await de_InternalServerErrorRes(parsedOutput, context);
1099
- case "InvalidRequestException":
1100
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1101
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1102
- case "ResourceNotFoundException":
1103
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1104
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1105
- case "ThrottlingException":
1106
- case "com.amazonaws.networkfirewall#ThrottlingException":
1107
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1108
- case "InsufficientCapacityException":
1109
- case "com.amazonaws.networkfirewall#InsufficientCapacityException":
1110
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1111
- case "InvalidOperationException":
1112
- case "com.amazonaws.networkfirewall#InvalidOperationException":
1113
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1114
- case "InvalidTokenException":
1115
- case "com.amazonaws.networkfirewall#InvalidTokenException":
1116
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
1117
- case "LimitExceededException":
1118
- case "com.amazonaws.networkfirewall#LimitExceededException":
1119
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1120
- case "UnsupportedOperationException":
1121
- case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1122
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1123
- case "InvalidResourcePolicyException":
1124
- case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
1125
- throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1126
- case "ResourceOwnerCheckException":
1127
- case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
1128
- throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
1129
- case "LogDestinationPermissionException":
1130
- case "com.amazonaws.networkfirewall#LogDestinationPermissionException":
1131
- throw await de_LogDestinationPermissionExceptionRes(parsedOutput, context);
1132
- default:
1133
- const parsedBody = parsedOutput.body;
1134
- return throwDefaultError({
1135
- output,
1136
- parsedBody,
1137
- errorCode,
1138
- });
1139
- }
1140
- };
1141
- const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
1142
- const body = parsedOutput.body;
1143
- const deserialized = _json(body);
1144
- const exception = new InsufficientCapacityException({
1145
- $metadata: deserializeMetadata(parsedOutput),
1146
- ...deserialized,
1147
- });
1148
- return __decorateServiceException(exception, body);
1149
- };
1150
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
1151
- const body = parsedOutput.body;
1152
- const deserialized = _json(body);
1153
- const exception = new InternalServerError({
1154
- $metadata: deserializeMetadata(parsedOutput),
1155
- ...deserialized,
1156
- });
1157
- return __decorateServiceException(exception, body);
1158
- };
1159
- const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
1160
- const body = parsedOutput.body;
1161
- const deserialized = _json(body);
1162
- const exception = new InvalidOperationException({
1163
- $metadata: deserializeMetadata(parsedOutput),
1164
- ...deserialized,
1165
- });
1166
- return __decorateServiceException(exception, body);
1167
- };
1168
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1169
- const body = parsedOutput.body;
1170
- const deserialized = _json(body);
1171
- const exception = new InvalidRequestException({
1172
- $metadata: deserializeMetadata(parsedOutput),
1173
- ...deserialized,
1174
- });
1175
- return __decorateServiceException(exception, body);
1176
- };
1177
- const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
1178
- const body = parsedOutput.body;
1179
- const deserialized = _json(body);
1180
- const exception = new InvalidResourcePolicyException({
1181
- $metadata: deserializeMetadata(parsedOutput),
1182
- ...deserialized,
1183
- });
1184
- return __decorateServiceException(exception, body);
1185
- };
1186
- const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
1187
- const body = parsedOutput.body;
1188
- const deserialized = _json(body);
1189
- const exception = new InvalidTokenException({
1190
- $metadata: deserializeMetadata(parsedOutput),
1191
- ...deserialized,
1192
- });
1193
- return __decorateServiceException(exception, body);
1194
- };
1195
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1196
- const body = parsedOutput.body;
1197
- const deserialized = _json(body);
1198
- const exception = new LimitExceededException({
1199
- $metadata: deserializeMetadata(parsedOutput),
1200
- ...deserialized,
1201
- });
1202
- return __decorateServiceException(exception, body);
1203
- };
1204
- const de_LogDestinationPermissionExceptionRes = async (parsedOutput, context) => {
1205
- const body = parsedOutput.body;
1206
- const deserialized = _json(body);
1207
- const exception = new LogDestinationPermissionException({
1208
- $metadata: deserializeMetadata(parsedOutput),
1209
- ...deserialized,
1210
- });
1211
- return __decorateServiceException(exception, body);
1212
- };
1213
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1214
- const body = parsedOutput.body;
1215
- const deserialized = _json(body);
1216
- const exception = new ResourceNotFoundException({
1217
- $metadata: deserializeMetadata(parsedOutput),
1218
- ...deserialized,
1219
- });
1220
- return __decorateServiceException(exception, body);
1221
- };
1222
- const de_ResourceOwnerCheckExceptionRes = async (parsedOutput, context) => {
1223
- const body = parsedOutput.body;
1224
- const deserialized = _json(body);
1225
- const exception = new ResourceOwnerCheckException({
1226
- $metadata: deserializeMetadata(parsedOutput),
1227
- ...deserialized,
1228
- });
1229
- return __decorateServiceException(exception, body);
1230
- };
1231
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1232
- const body = parsedOutput.body;
1233
- const deserialized = _json(body);
1234
- const exception = new ThrottlingException({
1235
- $metadata: deserializeMetadata(parsedOutput),
1236
- ...deserialized,
1237
- });
1238
- return __decorateServiceException(exception, body);
1239
- };
1240
- const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1241
- const body = parsedOutput.body;
1242
- const deserialized = _json(body);
1243
- const exception = new UnsupportedOperationException({
1244
- $metadata: deserializeMetadata(parsedOutput),
1245
- ...deserialized,
1246
- });
1247
- return __decorateServiceException(exception, body);
1248
- };
1249
- const se_CreateRuleGroupRequest = (input, context) => {
1250
- return take(input, {
1251
- AnalyzeRuleGroup: [],
1252
- Capacity: [],
1253
- Description: [],
1254
- DryRun: [],
1255
- EncryptionConfiguration: _json,
1256
- RuleGroup: _json,
1257
- RuleGroupName: [],
1258
- Rules: [],
1259
- SourceMetadata: _json,
1260
- SummaryConfiguration: _json,
1261
- Tags: _json,
1262
- Type: [],
1263
- });
1264
- };
1265
- const se_UpdateRuleGroupRequest = (input, context) => {
1266
- return take(input, {
1267
- AnalyzeRuleGroup: [],
1268
- Description: [],
1269
- DryRun: [],
1270
- EncryptionConfiguration: _json,
1271
- RuleGroup: _json,
1272
- RuleGroupArn: [],
1273
- RuleGroupName: [],
1274
- Rules: [],
1275
- SourceMetadata: _json,
1276
- SummaryConfiguration: _json,
1277
- Type: [],
1278
- UpdateToken: [],
1279
- });
1280
- };
1281
- const de_AnalysisReport = (output, context) => {
1282
- return take(output, {
1283
- AnalysisReportId: __expectString,
1284
- AnalysisType: __expectString,
1285
- ReportTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1286
- Status: __expectString,
1287
- });
1288
- };
1289
- const de_AnalysisReportResults = (output, context) => {
1290
- const retVal = (output || [])
1291
- .filter((e) => e != null)
1292
- .map((entry) => {
1293
- return de_AnalysisTypeReportResult(entry, context);
1294
- });
1295
- return retVal;
1296
- };
1297
- const de_AnalysisReports = (output, context) => {
1298
- const retVal = (output || [])
1299
- .filter((e) => e != null)
1300
- .map((entry) => {
1301
- return de_AnalysisReport(entry, context);
1302
- });
1303
- return retVal;
1304
- };
1305
- const de_AnalysisTypeReportResult = (output, context) => {
1306
- return take(output, {
1307
- Domain: __expectString,
1308
- FirstAccessed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1309
- Hits: _json,
1310
- LastAccessed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1311
- Protocol: __expectString,
1312
- UniqueSources: _json,
1313
- });
1314
- };
1315
- const de_CreateFirewallPolicyResponse = (output, context) => {
1316
- return take(output, {
1317
- FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
1318
- UpdateToken: __expectString,
1319
- });
1320
- };
1321
- const de_CreateRuleGroupResponse = (output, context) => {
1322
- return take(output, {
1323
- RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
1324
- UpdateToken: __expectString,
1325
- });
1326
- };
1327
- const de_CreateTLSInspectionConfigurationResponse = (output, context) => {
1328
- return take(output, {
1329
- TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
1330
- UpdateToken: __expectString,
1331
- });
1332
- };
1333
- const de_DeleteFirewallPolicyResponse = (output, context) => {
1334
- return take(output, {
1335
- FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
1336
- });
1337
- };
1338
- const de_DeleteRuleGroupResponse = (output, context) => {
1339
- return take(output, {
1340
- RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
1341
- });
1342
- };
1343
- const de_DeleteTLSInspectionConfigurationResponse = (output, context) => {
1344
- return take(output, {
1345
- TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
1346
- });
1347
- };
1348
- const de_DescribeFirewallPolicyResponse = (output, context) => {
1349
- return take(output, {
1350
- FirewallPolicy: _json,
1351
- FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
1352
- UpdateToken: __expectString,
1353
- });
1354
- };
1355
- const de_DescribeFlowOperationResponse = (output, context) => {
1356
- return take(output, {
1357
- AvailabilityZone: __expectString,
1358
- FirewallArn: __expectString,
1359
- FlowOperation: _json,
1360
- FlowOperationId: __expectString,
1361
- FlowOperationStatus: __expectString,
1362
- FlowOperationType: __expectString,
1363
- FlowRequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1364
- StatusMessage: __expectString,
1365
- VpcEndpointAssociationArn: __expectString,
1366
- VpcEndpointId: __expectString,
1367
- });
1368
- };
1369
- const de_DescribeRuleGroupMetadataResponse = (output, context) => {
1370
- return take(output, {
1371
- Capacity: __expectInt32,
1372
- Description: __expectString,
1373
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1374
- RuleGroupArn: __expectString,
1375
- RuleGroupName: __expectString,
1376
- StatefulRuleOptions: _json,
1377
- Type: __expectString,
1378
- });
1379
- };
1380
- const de_DescribeRuleGroupResponse = (output, context) => {
1381
- return take(output, {
1382
- RuleGroup: _json,
1383
- RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
1384
- UpdateToken: __expectString,
1385
- });
1386
- };
1387
- const de_DescribeTLSInspectionConfigurationResponse = (output, context) => {
1388
- return take(output, {
1389
- TLSInspectionConfiguration: _json,
1390
- TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
1391
- UpdateToken: __expectString,
1392
- });
1393
- };
1394
- const de_FirewallPolicyResponse = (output, context) => {
1395
- return take(output, {
1396
- ConsumedStatefulRuleCapacity: __expectInt32,
1397
- ConsumedStatelessRuleCapacity: __expectInt32,
1398
- Description: __expectString,
1399
- EncryptionConfiguration: _json,
1400
- FirewallPolicyArn: __expectString,
1401
- FirewallPolicyId: __expectString,
1402
- FirewallPolicyName: __expectString,
1403
- FirewallPolicyStatus: __expectString,
1404
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1405
- NumberOfAssociations: __expectInt32,
1406
- Tags: _json,
1407
- });
1408
- };
1409
- const de_FlowOperationMetadata = (output, context) => {
1410
- return take(output, {
1411
- FlowOperationId: __expectString,
1412
- FlowOperationStatus: __expectString,
1413
- FlowOperationType: __expectString,
1414
- FlowRequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1415
- });
1416
- };
1417
- const de_FlowOperations = (output, context) => {
1418
- const retVal = (output || [])
1419
- .filter((e) => e != null)
1420
- .map((entry) => {
1421
- return de_FlowOperationMetadata(entry, context);
1422
- });
1423
- return retVal;
1424
- };
1425
- const de_GetAnalysisReportResultsResponse = (output, context) => {
1426
- return take(output, {
1427
- AnalysisReportResults: (_) => de_AnalysisReportResults(_, context),
1428
- AnalysisType: __expectString,
1429
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1430
- NextToken: __expectString,
1431
- ReportTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1432
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1433
- Status: __expectString,
1434
- });
1435
- };
1436
- const de_ListAnalysisReportsResponse = (output, context) => {
1437
- return take(output, {
1438
- AnalysisReports: (_) => de_AnalysisReports(_, context),
1439
- NextToken: __expectString,
1440
- });
1441
- };
1442
- const de_ListFlowOperationResultsResponse = (output, context) => {
1443
- return take(output, {
1444
- AvailabilityZone: __expectString,
1445
- FirewallArn: __expectString,
1446
- FlowOperationId: __expectString,
1447
- FlowOperationStatus: __expectString,
1448
- FlowRequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1449
- Flows: _json,
1450
- NextToken: __expectString,
1451
- StatusMessage: __expectString,
1452
- VpcEndpointAssociationArn: __expectString,
1453
- VpcEndpointId: __expectString,
1454
- });
1455
- };
1456
- const de_ListFlowOperationsResponse = (output, context) => {
1457
- return take(output, {
1458
- FlowOperations: (_) => de_FlowOperations(_, context),
1459
- NextToken: __expectString,
1460
- });
1461
- };
1462
- const de_RuleGroupResponse = (output, context) => {
1463
- return take(output, {
1464
- AnalysisResults: _json,
1465
- Capacity: __expectInt32,
1466
- ConsumedCapacity: __expectInt32,
1467
- Description: __expectString,
1468
- EncryptionConfiguration: _json,
1469
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1470
- NumberOfAssociations: __expectInt32,
1471
- RuleGroupArn: __expectString,
1472
- RuleGroupId: __expectString,
1473
- RuleGroupName: __expectString,
1474
- RuleGroupStatus: __expectString,
1475
- SnsTopic: __expectString,
1476
- SourceMetadata: _json,
1477
- SummaryConfiguration: _json,
1478
- Tags: _json,
1479
- Type: __expectString,
1480
- });
1481
- };
1482
- const de_TLSInspectionConfigurationResponse = (output, context) => {
1483
- return take(output, {
1484
- CertificateAuthority: _json,
1485
- Certificates: _json,
1486
- Description: __expectString,
1487
- EncryptionConfiguration: _json,
1488
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1489
- NumberOfAssociations: __expectInt32,
1490
- TLSInspectionConfigurationArn: __expectString,
1491
- TLSInspectionConfigurationId: __expectString,
1492
- TLSInspectionConfigurationName: __expectString,
1493
- TLSInspectionConfigurationStatus: __expectString,
1494
- Tags: _json,
1495
- });
1496
- };
1497
- const de_UpdateFirewallPolicyResponse = (output, context) => {
1498
- return take(output, {
1499
- FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
1500
- UpdateToken: __expectString,
1501
- });
1502
- };
1503
- const de_UpdateRuleGroupResponse = (output, context) => {
1504
- return take(output, {
1505
- RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
1506
- UpdateToken: __expectString,
1507
- });
1508
- };
1509
- const de_UpdateTLSInspectionConfigurationResponse = (output, context) => {
1510
- return take(output, {
1511
- TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
1512
- UpdateToken: __expectString,
1513
- });
1514
- };
1515
- const deserializeMetadata = (output) => ({
1516
- httpStatusCode: output.statusCode,
1517
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1518
- extendedRequestId: output.headers["x-amz-id-2"],
1519
- cfId: output.headers["x-amz-cf-id"],
1520
- });
1521
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1522
- const throwDefaultError = withBaseException(__BaseException);
1523
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1524
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1525
- const contents = {
1526
- protocol,
1527
- hostname,
1528
- port,
1529
- method: "POST",
1530
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1531
- headers,
1532
- };
1533
- if (resolvedHostname !== undefined) {
1534
- contents.hostname = resolvedHostname;
1535
- }
1536
- if (body !== undefined) {
1537
- contents.body = body;
1538
- }
1539
- return new __HttpRequest(contents);
1540
- };
1541
- function sharedHeaders(operation) {
1542
- return {
1543
- "content-type": "application/x-amz-json-1.0",
1544
- "x-amz-target": `NetworkFirewall_20201112.${operation}`,
1545
- };
1546
- }