@aws-sdk/client-network-firewall 3.490.0 → 3.496.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 (55) hide show
  1. package/dist-cjs/NetworkFirewall.js +1 -83
  2. package/dist-cjs/NetworkFirewallClient.js +1 -43
  3. package/dist-cjs/commands/AssociateFirewallPolicyCommand.js +1 -28
  4. package/dist-cjs/commands/AssociateSubnetsCommand.js +1 -28
  5. package/dist-cjs/commands/CreateFirewallCommand.js +1 -28
  6. package/dist-cjs/commands/CreateFirewallPolicyCommand.js +1 -28
  7. package/dist-cjs/commands/CreateRuleGroupCommand.js +1 -28
  8. package/dist-cjs/commands/CreateTLSInspectionConfigurationCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteFirewallCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteFirewallPolicyCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteRuleGroupCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteTLSInspectionConfigurationCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeFirewallCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeFirewallPolicyCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeResourcePolicyCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeRuleGroupCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeRuleGroupMetadataCommand.js +1 -28
  20. package/dist-cjs/commands/DescribeTLSInspectionConfigurationCommand.js +1 -28
  21. package/dist-cjs/commands/DisassociateSubnetsCommand.js +1 -28
  22. package/dist-cjs/commands/ListFirewallPoliciesCommand.js +1 -28
  23. package/dist-cjs/commands/ListFirewallsCommand.js +1 -28
  24. package/dist-cjs/commands/ListRuleGroupsCommand.js +1 -28
  25. package/dist-cjs/commands/ListTLSInspectionConfigurationsCommand.js +1 -28
  26. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  27. package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
  28. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  29. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  30. package/dist-cjs/commands/UpdateFirewallDeleteProtectionCommand.js +1 -28
  31. package/dist-cjs/commands/UpdateFirewallDescriptionCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateFirewallEncryptionConfigurationCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js +1 -28
  34. package/dist-cjs/commands/UpdateFirewallPolicyCommand.js +1 -28
  35. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +1 -28
  36. package/dist-cjs/commands/UpdateRuleGroupCommand.js +1 -28
  37. package/dist-cjs/commands/UpdateSubnetChangeProtectionCommand.js +1 -28
  38. package/dist-cjs/commands/UpdateTLSInspectionConfigurationCommand.js +1 -28
  39. package/dist-cjs/commands/index.js +1 -39
  40. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  41. package/dist-cjs/extensionConfiguration.js +1 -2
  42. package/dist-cjs/index.js +3453 -11
  43. package/dist-cjs/models/NetworkFirewallServiceException.js +1 -12
  44. package/dist-cjs/models/index.js +1 -4
  45. package/dist-cjs/models/models_0.js +1 -300
  46. package/dist-cjs/pagination/Interfaces.js +1 -2
  47. package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListFirewallsPaginator.js +1 -7
  49. package/dist-cjs/pagination/ListRuleGroupsPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListTLSInspectionConfigurationsPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
  52. package/dist-cjs/pagination/index.js +1 -9
  53. package/dist-cjs/protocols/Aws_json1_0.js +1 -2207
  54. package/dist-cjs/runtimeExtensions.js +1 -22
  55. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3454 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NetworkFirewallServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./NetworkFirewallClient"), exports);
6
- tslib_1.__exportStar(require("./NetworkFirewall"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var NetworkFirewallServiceException_1 = require("./models/NetworkFirewallServiceException");
12
- Object.defineProperty(exports, "NetworkFirewallServiceException", { enumerable: true, get: function () { return NetworkFirewallServiceException_1.NetworkFirewallServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AssociateFirewallPolicyCommand: () => AssociateFirewallPolicyCommand,
25
+ AssociateSubnetsCommand: () => AssociateSubnetsCommand,
26
+ AttachmentStatus: () => AttachmentStatus,
27
+ ConfigurationSyncState: () => ConfigurationSyncState,
28
+ CreateFirewallCommand: () => CreateFirewallCommand,
29
+ CreateFirewallPolicyCommand: () => CreateFirewallPolicyCommand,
30
+ CreateRuleGroupCommand: () => CreateRuleGroupCommand,
31
+ CreateTLSInspectionConfigurationCommand: () => CreateTLSInspectionConfigurationCommand,
32
+ DeleteFirewallCommand: () => DeleteFirewallCommand,
33
+ DeleteFirewallPolicyCommand: () => DeleteFirewallPolicyCommand,
34
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
35
+ DeleteRuleGroupCommand: () => DeleteRuleGroupCommand,
36
+ DeleteTLSInspectionConfigurationCommand: () => DeleteTLSInspectionConfigurationCommand,
37
+ DescribeFirewallCommand: () => DescribeFirewallCommand,
38
+ DescribeFirewallPolicyCommand: () => DescribeFirewallPolicyCommand,
39
+ DescribeLoggingConfigurationCommand: () => DescribeLoggingConfigurationCommand,
40
+ DescribeResourcePolicyCommand: () => DescribeResourcePolicyCommand,
41
+ DescribeRuleGroupCommand: () => DescribeRuleGroupCommand,
42
+ DescribeRuleGroupMetadataCommand: () => DescribeRuleGroupMetadataCommand,
43
+ DescribeTLSInspectionConfigurationCommand: () => DescribeTLSInspectionConfigurationCommand,
44
+ DisassociateSubnetsCommand: () => DisassociateSubnetsCommand,
45
+ EncryptionType: () => EncryptionType,
46
+ FirewallStatusValue: () => FirewallStatusValue,
47
+ GeneratedRulesType: () => GeneratedRulesType,
48
+ IPAddressType: () => IPAddressType,
49
+ IdentifiedType: () => IdentifiedType,
50
+ InsufficientCapacityException: () => InsufficientCapacityException,
51
+ InternalServerError: () => InternalServerError,
52
+ InvalidOperationException: () => InvalidOperationException,
53
+ InvalidRequestException: () => InvalidRequestException,
54
+ InvalidResourcePolicyException: () => InvalidResourcePolicyException,
55
+ InvalidTokenException: () => InvalidTokenException,
56
+ LimitExceededException: () => LimitExceededException,
57
+ ListFirewallPoliciesCommand: () => ListFirewallPoliciesCommand,
58
+ ListFirewallsCommand: () => ListFirewallsCommand,
59
+ ListRuleGroupsCommand: () => ListRuleGroupsCommand,
60
+ ListTLSInspectionConfigurationsCommand: () => ListTLSInspectionConfigurationsCommand,
61
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
62
+ LogDestinationPermissionException: () => LogDestinationPermissionException,
63
+ LogDestinationType: () => LogDestinationType,
64
+ LogType: () => LogType,
65
+ NetworkFirewall: () => NetworkFirewall,
66
+ NetworkFirewallClient: () => NetworkFirewallClient,
67
+ NetworkFirewallServiceException: () => NetworkFirewallServiceException,
68
+ OverrideAction: () => OverrideAction,
69
+ PerObjectSyncStatus: () => PerObjectSyncStatus,
70
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
71
+ ResourceManagedStatus: () => ResourceManagedStatus,
72
+ ResourceManagedType: () => ResourceManagedType,
73
+ ResourceNotFoundException: () => ResourceNotFoundException,
74
+ ResourceOwnerCheckException: () => ResourceOwnerCheckException,
75
+ ResourceStatus: () => ResourceStatus,
76
+ RevocationCheckAction: () => RevocationCheckAction,
77
+ RuleGroupType: () => RuleGroupType,
78
+ RuleOrder: () => RuleOrder,
79
+ StatefulAction: () => StatefulAction,
80
+ StatefulRuleDirection: () => StatefulRuleDirection,
81
+ StatefulRuleProtocol: () => StatefulRuleProtocol,
82
+ StreamExceptionPolicy: () => StreamExceptionPolicy,
83
+ TCPFlag: () => TCPFlag,
84
+ TagResourceCommand: () => TagResourceCommand,
85
+ TargetType: () => TargetType,
86
+ ThrottlingException: () => ThrottlingException,
87
+ UnsupportedOperationException: () => UnsupportedOperationException,
88
+ UntagResourceCommand: () => UntagResourceCommand,
89
+ UpdateFirewallDeleteProtectionCommand: () => UpdateFirewallDeleteProtectionCommand,
90
+ UpdateFirewallDescriptionCommand: () => UpdateFirewallDescriptionCommand,
91
+ UpdateFirewallEncryptionConfigurationCommand: () => UpdateFirewallEncryptionConfigurationCommand,
92
+ UpdateFirewallPolicyChangeProtectionCommand: () => UpdateFirewallPolicyChangeProtectionCommand,
93
+ UpdateFirewallPolicyCommand: () => UpdateFirewallPolicyCommand,
94
+ UpdateLoggingConfigurationCommand: () => UpdateLoggingConfigurationCommand,
95
+ UpdateRuleGroupCommand: () => UpdateRuleGroupCommand,
96
+ UpdateSubnetChangeProtectionCommand: () => UpdateSubnetChangeProtectionCommand,
97
+ UpdateTLSInspectionConfigurationCommand: () => UpdateTLSInspectionConfigurationCommand,
98
+ __Client: () => import_smithy_client.Client,
99
+ paginateListFirewallPolicies: () => paginateListFirewallPolicies,
100
+ paginateListFirewalls: () => paginateListFirewalls,
101
+ paginateListRuleGroups: () => paginateListRuleGroups,
102
+ paginateListTLSInspectionConfigurations: () => paginateListTLSInspectionConfigurations,
103
+ paginateListTagsForResource: () => paginateListTagsForResource
104
+ });
105
+ module.exports = __toCommonJS(src_exports);
106
+
107
+ // src/NetworkFirewallClient.ts
108
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
109
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
110
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
111
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
112
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
113
+ var import_config_resolver = require("@smithy/config-resolver");
114
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
115
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
116
+ var import_middleware_retry = require("@smithy/middleware-retry");
117
+
118
+
119
+ // src/endpoint/EndpointParameters.ts
120
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
121
+ return {
122
+ ...options,
123
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
124
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
125
+ defaultSigningName: "network-firewall"
126
+ };
127
+ }, "resolveClientEndpointParameters");
128
+ var commonParams = {
129
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
130
+ Endpoint: { type: "builtInParams", name: "endpoint" },
131
+ Region: { type: "builtInParams", name: "region" },
132
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
133
+ };
134
+
135
+ // src/NetworkFirewallClient.ts
136
+ var import_runtimeConfig = require("././runtimeConfig");
137
+
138
+ // src/runtimeExtensions.ts
139
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
140
+ var import_protocol_http = require("@smithy/protocol-http");
141
+ var import_smithy_client = require("@smithy/smithy-client");
142
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
143
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
144
+ const extensionConfiguration = {
145
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
146
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
147
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
148
+ };
149
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
150
+ return {
151
+ ...runtimeConfig,
152
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
153
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
154
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
155
+ };
156
+ }, "resolveRuntimeExtensions");
157
+
158
+ // src/NetworkFirewallClient.ts
159
+ var _NetworkFirewallClient = class _NetworkFirewallClient extends import_smithy_client.Client {
160
+ constructor(...[configuration]) {
161
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
162
+ const _config_1 = resolveClientEndpointParameters(_config_0);
163
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
164
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
165
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
166
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
167
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
168
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
169
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
170
+ super(_config_8);
171
+ this.config = _config_8;
172
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
173
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
174
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
175
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
176
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
177
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
178
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
179
+ }
180
+ /**
181
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
182
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
183
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
184
+ */
185
+ destroy() {
186
+ super.destroy();
187
+ }
188
+ };
189
+ __name(_NetworkFirewallClient, "NetworkFirewallClient");
190
+ var NetworkFirewallClient = _NetworkFirewallClient;
191
+
192
+ // src/NetworkFirewall.ts
193
+
194
+
195
+ // src/commands/AssociateFirewallPolicyCommand.ts
196
+
197
+ var import_middleware_serde = require("@smithy/middleware-serde");
198
+
199
+ var import_types = require("@smithy/types");
200
+
201
+ // src/protocols/Aws_json1_0.ts
202
+
203
+
204
+
205
+ // src/models/NetworkFirewallServiceException.ts
206
+
207
+ var _NetworkFirewallServiceException = class _NetworkFirewallServiceException extends import_smithy_client.ServiceException {
208
+ /**
209
+ * @internal
210
+ */
211
+ constructor(options) {
212
+ super(options);
213
+ Object.setPrototypeOf(this, _NetworkFirewallServiceException.prototype);
214
+ }
215
+ };
216
+ __name(_NetworkFirewallServiceException, "NetworkFirewallServiceException");
217
+ var NetworkFirewallServiceException = _NetworkFirewallServiceException;
218
+
219
+ // src/models/models_0.ts
220
+ var IdentifiedType = {
221
+ STATELESS_RULE_CONTAINS_TCP_FLAGS: "STATELESS_RULE_CONTAINS_TCP_FLAGS",
222
+ STATELESS_RULE_FORWARDING_ASYMMETRICALLY: "STATELESS_RULE_FORWARDING_ASYMMETRICALLY"
223
+ };
224
+ var _InternalServerError = class _InternalServerError extends NetworkFirewallServiceException {
225
+ /**
226
+ * @internal
227
+ */
228
+ constructor(opts) {
229
+ super({
230
+ name: "InternalServerError",
231
+ $fault: "server",
232
+ ...opts
233
+ });
234
+ this.name = "InternalServerError";
235
+ this.$fault = "server";
236
+ Object.setPrototypeOf(this, _InternalServerError.prototype);
237
+ this.Message = opts.Message;
238
+ }
239
+ };
240
+ __name(_InternalServerError, "InternalServerError");
241
+ var InternalServerError = _InternalServerError;
242
+ var _InvalidOperationException = class _InvalidOperationException extends NetworkFirewallServiceException {
243
+ /**
244
+ * @internal
245
+ */
246
+ constructor(opts) {
247
+ super({
248
+ name: "InvalidOperationException",
249
+ $fault: "client",
250
+ ...opts
251
+ });
252
+ this.name = "InvalidOperationException";
253
+ this.$fault = "client";
254
+ Object.setPrototypeOf(this, _InvalidOperationException.prototype);
255
+ this.Message = opts.Message;
256
+ }
257
+ };
258
+ __name(_InvalidOperationException, "InvalidOperationException");
259
+ var InvalidOperationException = _InvalidOperationException;
260
+ var _InvalidRequestException = class _InvalidRequestException extends NetworkFirewallServiceException {
261
+ /**
262
+ * @internal
263
+ */
264
+ constructor(opts) {
265
+ super({
266
+ name: "InvalidRequestException",
267
+ $fault: "client",
268
+ ...opts
269
+ });
270
+ this.name = "InvalidRequestException";
271
+ this.$fault = "client";
272
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
273
+ this.Message = opts.Message;
274
+ }
275
+ };
276
+ __name(_InvalidRequestException, "InvalidRequestException");
277
+ var InvalidRequestException = _InvalidRequestException;
278
+ var _InvalidTokenException = class _InvalidTokenException extends NetworkFirewallServiceException {
279
+ /**
280
+ * @internal
281
+ */
282
+ constructor(opts) {
283
+ super({
284
+ name: "InvalidTokenException",
285
+ $fault: "client",
286
+ ...opts
287
+ });
288
+ this.name = "InvalidTokenException";
289
+ this.$fault = "client";
290
+ Object.setPrototypeOf(this, _InvalidTokenException.prototype);
291
+ this.Message = opts.Message;
292
+ }
293
+ };
294
+ __name(_InvalidTokenException, "InvalidTokenException");
295
+ var InvalidTokenException = _InvalidTokenException;
296
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends NetworkFirewallServiceException {
297
+ /**
298
+ * @internal
299
+ */
300
+ constructor(opts) {
301
+ super({
302
+ name: "ResourceNotFoundException",
303
+ $fault: "client",
304
+ ...opts
305
+ });
306
+ this.name = "ResourceNotFoundException";
307
+ this.$fault = "client";
308
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
309
+ this.Message = opts.Message;
310
+ }
311
+ };
312
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
313
+ var ResourceNotFoundException = _ResourceNotFoundException;
314
+ var _ThrottlingException = class _ThrottlingException extends NetworkFirewallServiceException {
315
+ /**
316
+ * @internal
317
+ */
318
+ constructor(opts) {
319
+ super({
320
+ name: "ThrottlingException",
321
+ $fault: "client",
322
+ ...opts
323
+ });
324
+ this.name = "ThrottlingException";
325
+ this.$fault = "client";
326
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
327
+ this.Message = opts.Message;
328
+ }
329
+ };
330
+ __name(_ThrottlingException, "ThrottlingException");
331
+ var ThrottlingException = _ThrottlingException;
332
+ var IPAddressType = {
333
+ DUALSTACK: "DUALSTACK",
334
+ IPV4: "IPV4",
335
+ IPV6: "IPV6"
336
+ };
337
+ var _InsufficientCapacityException = class _InsufficientCapacityException extends NetworkFirewallServiceException {
338
+ /**
339
+ * @internal
340
+ */
341
+ constructor(opts) {
342
+ super({
343
+ name: "InsufficientCapacityException",
344
+ $fault: "server",
345
+ ...opts
346
+ });
347
+ this.name = "InsufficientCapacityException";
348
+ this.$fault = "server";
349
+ Object.setPrototypeOf(this, _InsufficientCapacityException.prototype);
350
+ this.Message = opts.Message;
351
+ }
352
+ };
353
+ __name(_InsufficientCapacityException, "InsufficientCapacityException");
354
+ var InsufficientCapacityException = _InsufficientCapacityException;
355
+ var AttachmentStatus = {
356
+ CREATING: "CREATING",
357
+ DELETING: "DELETING",
358
+ ERROR: "ERROR",
359
+ FAILED: "FAILED",
360
+ READY: "READY",
361
+ SCALING: "SCALING"
362
+ };
363
+ var RevocationCheckAction = {
364
+ DROP: "DROP",
365
+ PASS: "PASS",
366
+ REJECT: "REJECT"
367
+ };
368
+ var ConfigurationSyncState = {
369
+ CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
370
+ IN_SYNC: "IN_SYNC",
371
+ PENDING: "PENDING"
372
+ };
373
+ var EncryptionType = {
374
+ AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
375
+ CUSTOMER_KMS: "CUSTOMER_KMS"
376
+ };
377
+ var FirewallStatusValue = {
378
+ DELETING: "DELETING",
379
+ PROVISIONING: "PROVISIONING",
380
+ READY: "READY"
381
+ };
382
+ var PerObjectSyncStatus = {
383
+ CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
384
+ IN_SYNC: "IN_SYNC",
385
+ PENDING: "PENDING"
386
+ };
387
+ var _LimitExceededException = class _LimitExceededException extends NetworkFirewallServiceException {
388
+ /**
389
+ * @internal
390
+ */
391
+ constructor(opts) {
392
+ super({
393
+ name: "LimitExceededException",
394
+ $fault: "client",
395
+ ...opts
396
+ });
397
+ this.name = "LimitExceededException";
398
+ this.$fault = "client";
399
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
400
+ this.Message = opts.Message;
401
+ }
402
+ };
403
+ __name(_LimitExceededException, "LimitExceededException");
404
+ var LimitExceededException = _LimitExceededException;
405
+ var RuleOrder = {
406
+ DEFAULT_ACTION_ORDER: "DEFAULT_ACTION_ORDER",
407
+ STRICT_ORDER: "STRICT_ORDER"
408
+ };
409
+ var StreamExceptionPolicy = {
410
+ CONTINUE: "CONTINUE",
411
+ DROP: "DROP",
412
+ REJECT: "REJECT"
413
+ };
414
+ var OverrideAction = {
415
+ DROP_TO_ALERT: "DROP_TO_ALERT"
416
+ };
417
+ var ResourceStatus = {
418
+ ACTIVE: "ACTIVE",
419
+ DELETING: "DELETING",
420
+ ERROR: "ERROR"
421
+ };
422
+ var GeneratedRulesType = {
423
+ ALLOWLIST: "ALLOWLIST",
424
+ DENYLIST: "DENYLIST"
425
+ };
426
+ var TargetType = {
427
+ HTTP_HOST: "HTTP_HOST",
428
+ TLS_SNI: "TLS_SNI"
429
+ };
430
+ var StatefulAction = {
431
+ ALERT: "ALERT",
432
+ DROP: "DROP",
433
+ PASS: "PASS",
434
+ REJECT: "REJECT"
435
+ };
436
+ var StatefulRuleDirection = {
437
+ ANY: "ANY",
438
+ FORWARD: "FORWARD"
439
+ };
440
+ var StatefulRuleProtocol = {
441
+ ANY: "IP",
442
+ DCERPC: "DCERPC",
443
+ DHCP: "DHCP",
444
+ DNS: "DNS",
445
+ FTP: "FTP",
446
+ HTTP: "HTTP",
447
+ ICMP: "ICMP",
448
+ IKEV2: "IKEV2",
449
+ IMAP: "IMAP",
450
+ KRB5: "KRB5",
451
+ MSN: "MSN",
452
+ NTP: "NTP",
453
+ SMB: "SMB",
454
+ SMTP: "SMTP",
455
+ SSH: "SSH",
456
+ TCP: "TCP",
457
+ TFTP: "TFTP",
458
+ TLS: "TLS",
459
+ UDP: "UDP"
460
+ };
461
+ var TCPFlag = {
462
+ ACK: "ACK",
463
+ CWR: "CWR",
464
+ ECE: "ECE",
465
+ FIN: "FIN",
466
+ PSH: "PSH",
467
+ RST: "RST",
468
+ SYN: "SYN",
469
+ URG: "URG"
470
+ };
471
+ var RuleGroupType = {
472
+ STATEFUL: "STATEFUL",
473
+ STATELESS: "STATELESS"
474
+ };
475
+ var _UnsupportedOperationException = class _UnsupportedOperationException extends NetworkFirewallServiceException {
476
+ /**
477
+ * @internal
478
+ */
479
+ constructor(opts) {
480
+ super({
481
+ name: "UnsupportedOperationException",
482
+ $fault: "client",
483
+ ...opts
484
+ });
485
+ this.name = "UnsupportedOperationException";
486
+ this.$fault = "client";
487
+ Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
488
+ this.Message = opts.Message;
489
+ }
490
+ };
491
+ __name(_UnsupportedOperationException, "UnsupportedOperationException");
492
+ var UnsupportedOperationException = _UnsupportedOperationException;
493
+ var _InvalidResourcePolicyException = class _InvalidResourcePolicyException extends NetworkFirewallServiceException {
494
+ /**
495
+ * @internal
496
+ */
497
+ constructor(opts) {
498
+ super({
499
+ name: "InvalidResourcePolicyException",
500
+ $fault: "client",
501
+ ...opts
502
+ });
503
+ this.name = "InvalidResourcePolicyException";
504
+ this.$fault = "client";
505
+ Object.setPrototypeOf(this, _InvalidResourcePolicyException.prototype);
506
+ this.Message = opts.Message;
507
+ }
508
+ };
509
+ __name(_InvalidResourcePolicyException, "InvalidResourcePolicyException");
510
+ var InvalidResourcePolicyException = _InvalidResourcePolicyException;
511
+ var LogDestinationType = {
512
+ CLOUDWATCH_LOGS: "CloudWatchLogs",
513
+ KINESIS_DATA_FIREHOSE: "KinesisDataFirehose",
514
+ S3: "S3"
515
+ };
516
+ var LogType = {
517
+ ALERT: "ALERT",
518
+ FLOW: "FLOW"
519
+ };
520
+ var ResourceManagedType = {
521
+ AWS_MANAGED_DOMAIN_LISTS: "AWS_MANAGED_DOMAIN_LISTS",
522
+ AWS_MANAGED_THREAT_SIGNATURES: "AWS_MANAGED_THREAT_SIGNATURES"
523
+ };
524
+ var ResourceManagedStatus = {
525
+ ACCOUNT: "ACCOUNT",
526
+ MANAGED: "MANAGED"
527
+ };
528
+ var _LogDestinationPermissionException = class _LogDestinationPermissionException extends NetworkFirewallServiceException {
529
+ /**
530
+ * @internal
531
+ */
532
+ constructor(opts) {
533
+ super({
534
+ name: "LogDestinationPermissionException",
535
+ $fault: "client",
536
+ ...opts
537
+ });
538
+ this.name = "LogDestinationPermissionException";
539
+ this.$fault = "client";
540
+ Object.setPrototypeOf(this, _LogDestinationPermissionException.prototype);
541
+ this.Message = opts.Message;
542
+ }
543
+ };
544
+ __name(_LogDestinationPermissionException, "LogDestinationPermissionException");
545
+ var LogDestinationPermissionException = _LogDestinationPermissionException;
546
+ var _ResourceOwnerCheckException = class _ResourceOwnerCheckException extends NetworkFirewallServiceException {
547
+ /**
548
+ * @internal
549
+ */
550
+ constructor(opts) {
551
+ super({
552
+ name: "ResourceOwnerCheckException",
553
+ $fault: "client",
554
+ ...opts
555
+ });
556
+ this.name = "ResourceOwnerCheckException";
557
+ this.$fault = "client";
558
+ Object.setPrototypeOf(this, _ResourceOwnerCheckException.prototype);
559
+ this.Message = opts.Message;
560
+ }
561
+ };
562
+ __name(_ResourceOwnerCheckException, "ResourceOwnerCheckException");
563
+ var ResourceOwnerCheckException = _ResourceOwnerCheckException;
564
+
565
+ // src/protocols/Aws_json1_0.ts
566
+ var se_AssociateFirewallPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const headers = sharedHeaders("AssociateFirewallPolicy");
568
+ let body;
569
+ body = JSON.stringify((0, import_smithy_client._json)(input));
570
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
571
+ }, "se_AssociateFirewallPolicyCommand");
572
+ var se_AssociateSubnetsCommand = /* @__PURE__ */ __name(async (input, context) => {
573
+ const headers = sharedHeaders("AssociateSubnets");
574
+ let body;
575
+ body = JSON.stringify((0, import_smithy_client._json)(input));
576
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
577
+ }, "se_AssociateSubnetsCommand");
578
+ var se_CreateFirewallCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const headers = sharedHeaders("CreateFirewall");
580
+ let body;
581
+ body = JSON.stringify((0, import_smithy_client._json)(input));
582
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
583
+ }, "se_CreateFirewallCommand");
584
+ var se_CreateFirewallPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
585
+ const headers = sharedHeaders("CreateFirewallPolicy");
586
+ let body;
587
+ body = JSON.stringify((0, import_smithy_client._json)(input));
588
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
589
+ }, "se_CreateFirewallPolicyCommand");
590
+ var se_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
591
+ const headers = sharedHeaders("CreateRuleGroup");
592
+ let body;
593
+ body = JSON.stringify(se_CreateRuleGroupRequest(input, context));
594
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
595
+ }, "se_CreateRuleGroupCommand");
596
+ var se_CreateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
597
+ const headers = sharedHeaders("CreateTLSInspectionConfiguration");
598
+ let body;
599
+ body = JSON.stringify((0, import_smithy_client._json)(input));
600
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
601
+ }, "se_CreateTLSInspectionConfigurationCommand");
602
+ var se_DeleteFirewallCommand = /* @__PURE__ */ __name(async (input, context) => {
603
+ const headers = sharedHeaders("DeleteFirewall");
604
+ let body;
605
+ body = JSON.stringify((0, import_smithy_client._json)(input));
606
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
607
+ }, "se_DeleteFirewallCommand");
608
+ var se_DeleteFirewallPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const headers = sharedHeaders("DeleteFirewallPolicy");
610
+ let body;
611
+ body = JSON.stringify((0, import_smithy_client._json)(input));
612
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
613
+ }, "se_DeleteFirewallPolicyCommand");
614
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
615
+ const headers = sharedHeaders("DeleteResourcePolicy");
616
+ let body;
617
+ body = JSON.stringify((0, import_smithy_client._json)(input));
618
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
619
+ }, "se_DeleteResourcePolicyCommand");
620
+ var se_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
621
+ const headers = sharedHeaders("DeleteRuleGroup");
622
+ let body;
623
+ body = JSON.stringify((0, import_smithy_client._json)(input));
624
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
625
+ }, "se_DeleteRuleGroupCommand");
626
+ var se_DeleteTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
627
+ const headers = sharedHeaders("DeleteTLSInspectionConfiguration");
628
+ let body;
629
+ body = JSON.stringify((0, import_smithy_client._json)(input));
630
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
631
+ }, "se_DeleteTLSInspectionConfigurationCommand");
632
+ var se_DescribeFirewallCommand = /* @__PURE__ */ __name(async (input, context) => {
633
+ const headers = sharedHeaders("DescribeFirewall");
634
+ let body;
635
+ body = JSON.stringify((0, import_smithy_client._json)(input));
636
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
637
+ }, "se_DescribeFirewallCommand");
638
+ var se_DescribeFirewallPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
639
+ const headers = sharedHeaders("DescribeFirewallPolicy");
640
+ let body;
641
+ body = JSON.stringify((0, import_smithy_client._json)(input));
642
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
643
+ }, "se_DescribeFirewallPolicyCommand");
644
+ var se_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
645
+ const headers = sharedHeaders("DescribeLoggingConfiguration");
646
+ let body;
647
+ body = JSON.stringify((0, import_smithy_client._json)(input));
648
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
649
+ }, "se_DescribeLoggingConfigurationCommand");
650
+ var se_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const headers = sharedHeaders("DescribeResourcePolicy");
652
+ let body;
653
+ body = JSON.stringify((0, import_smithy_client._json)(input));
654
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
655
+ }, "se_DescribeResourcePolicyCommand");
656
+ var se_DescribeRuleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
657
+ const headers = sharedHeaders("DescribeRuleGroup");
658
+ let body;
659
+ body = JSON.stringify((0, import_smithy_client._json)(input));
660
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
661
+ }, "se_DescribeRuleGroupCommand");
662
+ var se_DescribeRuleGroupMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
663
+ const headers = sharedHeaders("DescribeRuleGroupMetadata");
664
+ let body;
665
+ body = JSON.stringify((0, import_smithy_client._json)(input));
666
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
667
+ }, "se_DescribeRuleGroupMetadataCommand");
668
+ var se_DescribeTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
669
+ const headers = sharedHeaders("DescribeTLSInspectionConfiguration");
670
+ let body;
671
+ body = JSON.stringify((0, import_smithy_client._json)(input));
672
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
673
+ }, "se_DescribeTLSInspectionConfigurationCommand");
674
+ var se_DisassociateSubnetsCommand = /* @__PURE__ */ __name(async (input, context) => {
675
+ const headers = sharedHeaders("DisassociateSubnets");
676
+ let body;
677
+ body = JSON.stringify((0, import_smithy_client._json)(input));
678
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
679
+ }, "se_DisassociateSubnetsCommand");
680
+ var se_ListFirewallPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
681
+ const headers = sharedHeaders("ListFirewallPolicies");
682
+ let body;
683
+ body = JSON.stringify((0, import_smithy_client._json)(input));
684
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
685
+ }, "se_ListFirewallPoliciesCommand");
686
+ var se_ListFirewallsCommand = /* @__PURE__ */ __name(async (input, context) => {
687
+ const headers = sharedHeaders("ListFirewalls");
688
+ let body;
689
+ body = JSON.stringify((0, import_smithy_client._json)(input));
690
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
691
+ }, "se_ListFirewallsCommand");
692
+ var se_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
693
+ const headers = sharedHeaders("ListRuleGroups");
694
+ let body;
695
+ body = JSON.stringify((0, import_smithy_client._json)(input));
696
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
697
+ }, "se_ListRuleGroupsCommand");
698
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
699
+ const headers = sharedHeaders("ListTagsForResource");
700
+ let body;
701
+ body = JSON.stringify((0, import_smithy_client._json)(input));
702
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
703
+ }, "se_ListTagsForResourceCommand");
704
+ var se_ListTLSInspectionConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
705
+ const headers = sharedHeaders("ListTLSInspectionConfigurations");
706
+ let body;
707
+ body = JSON.stringify((0, import_smithy_client._json)(input));
708
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
709
+ }, "se_ListTLSInspectionConfigurationsCommand");
710
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
711
+ const headers = sharedHeaders("PutResourcePolicy");
712
+ let body;
713
+ body = JSON.stringify((0, import_smithy_client._json)(input));
714
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
715
+ }, "se_PutResourcePolicyCommand");
716
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
717
+ const headers = sharedHeaders("TagResource");
718
+ let body;
719
+ body = JSON.stringify((0, import_smithy_client._json)(input));
720
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
721
+ }, "se_TagResourceCommand");
722
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
723
+ const headers = sharedHeaders("UntagResource");
724
+ let body;
725
+ body = JSON.stringify((0, import_smithy_client._json)(input));
726
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
727
+ }, "se_UntagResourceCommand");
728
+ var se_UpdateFirewallDeleteProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
729
+ const headers = sharedHeaders("UpdateFirewallDeleteProtection");
730
+ let body;
731
+ body = JSON.stringify((0, import_smithy_client._json)(input));
732
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
733
+ }, "se_UpdateFirewallDeleteProtectionCommand");
734
+ var se_UpdateFirewallDescriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
735
+ const headers = sharedHeaders("UpdateFirewallDescription");
736
+ let body;
737
+ body = JSON.stringify((0, import_smithy_client._json)(input));
738
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
739
+ }, "se_UpdateFirewallDescriptionCommand");
740
+ var se_UpdateFirewallEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
741
+ const headers = sharedHeaders("UpdateFirewallEncryptionConfiguration");
742
+ let body;
743
+ body = JSON.stringify((0, import_smithy_client._json)(input));
744
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
745
+ }, "se_UpdateFirewallEncryptionConfigurationCommand");
746
+ var se_UpdateFirewallPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
747
+ const headers = sharedHeaders("UpdateFirewallPolicy");
748
+ let body;
749
+ body = JSON.stringify((0, import_smithy_client._json)(input));
750
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
751
+ }, "se_UpdateFirewallPolicyCommand");
752
+ var se_UpdateFirewallPolicyChangeProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
753
+ const headers = sharedHeaders("UpdateFirewallPolicyChangeProtection");
754
+ let body;
755
+ body = JSON.stringify((0, import_smithy_client._json)(input));
756
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
757
+ }, "se_UpdateFirewallPolicyChangeProtectionCommand");
758
+ var se_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
759
+ const headers = sharedHeaders("UpdateLoggingConfiguration");
760
+ let body;
761
+ body = JSON.stringify((0, import_smithy_client._json)(input));
762
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
763
+ }, "se_UpdateLoggingConfigurationCommand");
764
+ var se_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
765
+ const headers = sharedHeaders("UpdateRuleGroup");
766
+ let body;
767
+ body = JSON.stringify(se_UpdateRuleGroupRequest(input, context));
768
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
769
+ }, "se_UpdateRuleGroupCommand");
770
+ var se_UpdateSubnetChangeProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
771
+ const headers = sharedHeaders("UpdateSubnetChangeProtection");
772
+ let body;
773
+ body = JSON.stringify((0, import_smithy_client._json)(input));
774
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
775
+ }, "se_UpdateSubnetChangeProtectionCommand");
776
+ var se_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
777
+ const headers = sharedHeaders("UpdateTLSInspectionConfiguration");
778
+ let body;
779
+ body = JSON.stringify((0, import_smithy_client._json)(input));
780
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
781
+ }, "se_UpdateTLSInspectionConfigurationCommand");
782
+ var de_AssociateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
783
+ if (output.statusCode >= 300) {
784
+ return de_AssociateFirewallPolicyCommandError(output, context);
785
+ }
786
+ const data = await parseBody(output.body, context);
787
+ let contents = {};
788
+ contents = (0, import_smithy_client._json)(data);
789
+ const response = {
790
+ $metadata: deserializeMetadata(output),
791
+ ...contents
792
+ };
793
+ return response;
794
+ }, "de_AssociateFirewallPolicyCommand");
795
+ var de_AssociateFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
796
+ const parsedOutput = {
797
+ ...output,
798
+ body: await parseErrorBody(output.body, context)
799
+ };
800
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
801
+ switch (errorCode) {
802
+ case "InternalServerError":
803
+ case "com.amazonaws.networkfirewall#InternalServerError":
804
+ throw await de_InternalServerErrorRes(parsedOutput, context);
805
+ case "InvalidOperationException":
806
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
807
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
808
+ case "InvalidRequestException":
809
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
810
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
811
+ case "InvalidTokenException":
812
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
813
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
814
+ case "ResourceNotFoundException":
815
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
816
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
817
+ case "ThrottlingException":
818
+ case "com.amazonaws.networkfirewall#ThrottlingException":
819
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
820
+ default:
821
+ const parsedBody = parsedOutput.body;
822
+ return throwDefaultError({
823
+ output,
824
+ parsedBody,
825
+ errorCode
826
+ });
827
+ }
828
+ }, "de_AssociateFirewallPolicyCommandError");
829
+ var de_AssociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context) => {
830
+ if (output.statusCode >= 300) {
831
+ return de_AssociateSubnetsCommandError(output, context);
832
+ }
833
+ const data = await parseBody(output.body, context);
834
+ let contents = {};
835
+ contents = (0, import_smithy_client._json)(data);
836
+ const response = {
837
+ $metadata: deserializeMetadata(output),
838
+ ...contents
839
+ };
840
+ return response;
841
+ }, "de_AssociateSubnetsCommand");
842
+ var de_AssociateSubnetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
843
+ const parsedOutput = {
844
+ ...output,
845
+ body: await parseErrorBody(output.body, context)
846
+ };
847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
848
+ switch (errorCode) {
849
+ case "InsufficientCapacityException":
850
+ case "com.amazonaws.networkfirewall#InsufficientCapacityException":
851
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
852
+ case "InternalServerError":
853
+ case "com.amazonaws.networkfirewall#InternalServerError":
854
+ throw await de_InternalServerErrorRes(parsedOutput, context);
855
+ case "InvalidOperationException":
856
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
857
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
858
+ case "InvalidRequestException":
859
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
860
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
861
+ case "InvalidTokenException":
862
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
863
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
864
+ case "ResourceNotFoundException":
865
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
866
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
867
+ case "ThrottlingException":
868
+ case "com.amazonaws.networkfirewall#ThrottlingException":
869
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
870
+ default:
871
+ const parsedBody = parsedOutput.body;
872
+ return throwDefaultError({
873
+ output,
874
+ parsedBody,
875
+ errorCode
876
+ });
877
+ }
878
+ }, "de_AssociateSubnetsCommandError");
879
+ var de_CreateFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
880
+ if (output.statusCode >= 300) {
881
+ return de_CreateFirewallCommandError(output, context);
882
+ }
883
+ const data = await parseBody(output.body, context);
884
+ let contents = {};
885
+ contents = (0, import_smithy_client._json)(data);
886
+ const response = {
887
+ $metadata: deserializeMetadata(output),
888
+ ...contents
889
+ };
890
+ return response;
891
+ }, "de_CreateFirewallCommand");
892
+ var de_CreateFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
893
+ const parsedOutput = {
894
+ ...output,
895
+ body: await parseErrorBody(output.body, context)
896
+ };
897
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
898
+ switch (errorCode) {
899
+ case "InsufficientCapacityException":
900
+ case "com.amazonaws.networkfirewall#InsufficientCapacityException":
901
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
902
+ case "InternalServerError":
903
+ case "com.amazonaws.networkfirewall#InternalServerError":
904
+ throw await de_InternalServerErrorRes(parsedOutput, context);
905
+ case "InvalidOperationException":
906
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
907
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
908
+ case "InvalidRequestException":
909
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
910
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
911
+ case "LimitExceededException":
912
+ case "com.amazonaws.networkfirewall#LimitExceededException":
913
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
914
+ case "ThrottlingException":
915
+ case "com.amazonaws.networkfirewall#ThrottlingException":
916
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
917
+ default:
918
+ const parsedBody = parsedOutput.body;
919
+ return throwDefaultError({
920
+ output,
921
+ parsedBody,
922
+ errorCode
923
+ });
924
+ }
925
+ }, "de_CreateFirewallCommandError");
926
+ var de_CreateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
927
+ if (output.statusCode >= 300) {
928
+ return de_CreateFirewallPolicyCommandError(output, context);
929
+ }
930
+ const data = await parseBody(output.body, context);
931
+ let contents = {};
932
+ contents = de_CreateFirewallPolicyResponse(data, context);
933
+ const response = {
934
+ $metadata: deserializeMetadata(output),
935
+ ...contents
936
+ };
937
+ return response;
938
+ }, "de_CreateFirewallPolicyCommand");
939
+ var de_CreateFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
940
+ const parsedOutput = {
941
+ ...output,
942
+ body: await parseErrorBody(output.body, context)
943
+ };
944
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
945
+ switch (errorCode) {
946
+ case "InsufficientCapacityException":
947
+ case "com.amazonaws.networkfirewall#InsufficientCapacityException":
948
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
949
+ case "InternalServerError":
950
+ case "com.amazonaws.networkfirewall#InternalServerError":
951
+ throw await de_InternalServerErrorRes(parsedOutput, context);
952
+ case "InvalidRequestException":
953
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
954
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
955
+ case "LimitExceededException":
956
+ case "com.amazonaws.networkfirewall#LimitExceededException":
957
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
958
+ case "ThrottlingException":
959
+ case "com.amazonaws.networkfirewall#ThrottlingException":
960
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
961
+ default:
962
+ const parsedBody = parsedOutput.body;
963
+ return throwDefaultError({
964
+ output,
965
+ parsedBody,
966
+ errorCode
967
+ });
968
+ }
969
+ }, "de_CreateFirewallPolicyCommandError");
970
+ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
971
+ if (output.statusCode >= 300) {
972
+ return de_CreateRuleGroupCommandError(output, context);
973
+ }
974
+ const data = await parseBody(output.body, context);
975
+ let contents = {};
976
+ contents = de_CreateRuleGroupResponse(data, context);
977
+ const response = {
978
+ $metadata: deserializeMetadata(output),
979
+ ...contents
980
+ };
981
+ return response;
982
+ }, "de_CreateRuleGroupCommand");
983
+ var de_CreateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
984
+ const parsedOutput = {
985
+ ...output,
986
+ body: await parseErrorBody(output.body, context)
987
+ };
988
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
989
+ switch (errorCode) {
990
+ case "InsufficientCapacityException":
991
+ case "com.amazonaws.networkfirewall#InsufficientCapacityException":
992
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
993
+ case "InternalServerError":
994
+ case "com.amazonaws.networkfirewall#InternalServerError":
995
+ throw await de_InternalServerErrorRes(parsedOutput, context);
996
+ case "InvalidRequestException":
997
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
998
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
999
+ case "LimitExceededException":
1000
+ case "com.amazonaws.networkfirewall#LimitExceededException":
1001
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1002
+ case "ThrottlingException":
1003
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1004
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1005
+ default:
1006
+ const parsedBody = parsedOutput.body;
1007
+ return throwDefaultError({
1008
+ output,
1009
+ parsedBody,
1010
+ errorCode
1011
+ });
1012
+ }
1013
+ }, "de_CreateRuleGroupCommandError");
1014
+ var de_CreateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1015
+ if (output.statusCode >= 300) {
1016
+ return de_CreateTLSInspectionConfigurationCommandError(output, context);
1017
+ }
1018
+ const data = await parseBody(output.body, context);
1019
+ let contents = {};
1020
+ contents = de_CreateTLSInspectionConfigurationResponse(data, context);
1021
+ const response = {
1022
+ $metadata: deserializeMetadata(output),
1023
+ ...contents
1024
+ };
1025
+ return response;
1026
+ }, "de_CreateTLSInspectionConfigurationCommand");
1027
+ var de_CreateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1028
+ const parsedOutput = {
1029
+ ...output,
1030
+ body: await parseErrorBody(output.body, context)
1031
+ };
1032
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1033
+ switch (errorCode) {
1034
+ case "InsufficientCapacityException":
1035
+ case "com.amazonaws.networkfirewall#InsufficientCapacityException":
1036
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1037
+ case "InternalServerError":
1038
+ case "com.amazonaws.networkfirewall#InternalServerError":
1039
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1040
+ case "InvalidRequestException":
1041
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1042
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1043
+ case "LimitExceededException":
1044
+ case "com.amazonaws.networkfirewall#LimitExceededException":
1045
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1046
+ case "ThrottlingException":
1047
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1048
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1049
+ default:
1050
+ const parsedBody = parsedOutput.body;
1051
+ return throwDefaultError({
1052
+ output,
1053
+ parsedBody,
1054
+ errorCode
1055
+ });
1056
+ }
1057
+ }, "de_CreateTLSInspectionConfigurationCommandError");
1058
+ var de_DeleteFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
1059
+ if (output.statusCode >= 300) {
1060
+ return de_DeleteFirewallCommandError(output, context);
1061
+ }
1062
+ const data = await parseBody(output.body, context);
1063
+ let contents = {};
1064
+ contents = (0, import_smithy_client._json)(data);
1065
+ const response = {
1066
+ $metadata: deserializeMetadata(output),
1067
+ ...contents
1068
+ };
1069
+ return response;
1070
+ }, "de_DeleteFirewallCommand");
1071
+ var de_DeleteFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
1072
+ const parsedOutput = {
1073
+ ...output,
1074
+ body: await parseErrorBody(output.body, context)
1075
+ };
1076
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
+ switch (errorCode) {
1078
+ case "InternalServerError":
1079
+ case "com.amazonaws.networkfirewall#InternalServerError":
1080
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1081
+ case "InvalidOperationException":
1082
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1083
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1084
+ case "InvalidRequestException":
1085
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1086
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1087
+ case "ResourceNotFoundException":
1088
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1089
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1090
+ case "ThrottlingException":
1091
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1092
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1093
+ case "UnsupportedOperationException":
1094
+ case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1095
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1096
+ default:
1097
+ const parsedBody = parsedOutput.body;
1098
+ return throwDefaultError({
1099
+ output,
1100
+ parsedBody,
1101
+ errorCode
1102
+ });
1103
+ }
1104
+ }, "de_DeleteFirewallCommandError");
1105
+ var de_DeleteFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1106
+ if (output.statusCode >= 300) {
1107
+ return de_DeleteFirewallPolicyCommandError(output, context);
1108
+ }
1109
+ const data = await parseBody(output.body, context);
1110
+ let contents = {};
1111
+ contents = de_DeleteFirewallPolicyResponse(data, context);
1112
+ const response = {
1113
+ $metadata: deserializeMetadata(output),
1114
+ ...contents
1115
+ };
1116
+ return response;
1117
+ }, "de_DeleteFirewallPolicyCommand");
1118
+ var de_DeleteFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1119
+ const parsedOutput = {
1120
+ ...output,
1121
+ body: await parseErrorBody(output.body, context)
1122
+ };
1123
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1124
+ switch (errorCode) {
1125
+ case "InternalServerError":
1126
+ case "com.amazonaws.networkfirewall#InternalServerError":
1127
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1128
+ case "InvalidOperationException":
1129
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1130
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1131
+ case "InvalidRequestException":
1132
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1133
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1134
+ case "ResourceNotFoundException":
1135
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1136
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1137
+ case "ThrottlingException":
1138
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1139
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1140
+ case "UnsupportedOperationException":
1141
+ case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1142
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1143
+ default:
1144
+ const parsedBody = parsedOutput.body;
1145
+ return throwDefaultError({
1146
+ output,
1147
+ parsedBody,
1148
+ errorCode
1149
+ });
1150
+ }
1151
+ }, "de_DeleteFirewallPolicyCommandError");
1152
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1153
+ if (output.statusCode >= 300) {
1154
+ return de_DeleteResourcePolicyCommandError(output, context);
1155
+ }
1156
+ const data = await parseBody(output.body, context);
1157
+ let contents = {};
1158
+ contents = (0, import_smithy_client._json)(data);
1159
+ const response = {
1160
+ $metadata: deserializeMetadata(output),
1161
+ ...contents
1162
+ };
1163
+ return response;
1164
+ }, "de_DeleteResourcePolicyCommand");
1165
+ var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1166
+ const parsedOutput = {
1167
+ ...output,
1168
+ body: await parseErrorBody(output.body, context)
1169
+ };
1170
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
+ switch (errorCode) {
1172
+ case "InternalServerError":
1173
+ case "com.amazonaws.networkfirewall#InternalServerError":
1174
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1175
+ case "InvalidRequestException":
1176
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1177
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1178
+ case "InvalidResourcePolicyException":
1179
+ case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
1180
+ throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1181
+ case "ResourceNotFoundException":
1182
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1183
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
+ case "ThrottlingException":
1185
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1186
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1187
+ default:
1188
+ const parsedBody = parsedOutput.body;
1189
+ return throwDefaultError({
1190
+ output,
1191
+ parsedBody,
1192
+ errorCode
1193
+ });
1194
+ }
1195
+ }, "de_DeleteResourcePolicyCommandError");
1196
+ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1197
+ if (output.statusCode >= 300) {
1198
+ return de_DeleteRuleGroupCommandError(output, context);
1199
+ }
1200
+ const data = await parseBody(output.body, context);
1201
+ let contents = {};
1202
+ contents = de_DeleteRuleGroupResponse(data, context);
1203
+ const response = {
1204
+ $metadata: deserializeMetadata(output),
1205
+ ...contents
1206
+ };
1207
+ return response;
1208
+ }, "de_DeleteRuleGroupCommand");
1209
+ var de_DeleteRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1210
+ const parsedOutput = {
1211
+ ...output,
1212
+ body: await parseErrorBody(output.body, context)
1213
+ };
1214
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1215
+ switch (errorCode) {
1216
+ case "InternalServerError":
1217
+ case "com.amazonaws.networkfirewall#InternalServerError":
1218
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1219
+ case "InvalidOperationException":
1220
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1221
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1222
+ case "InvalidRequestException":
1223
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1224
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1225
+ case "ResourceNotFoundException":
1226
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1227
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1228
+ case "ThrottlingException":
1229
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1230
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1231
+ case "UnsupportedOperationException":
1232
+ case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1233
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1234
+ default:
1235
+ const parsedBody = parsedOutput.body;
1236
+ return throwDefaultError({
1237
+ output,
1238
+ parsedBody,
1239
+ errorCode
1240
+ });
1241
+ }
1242
+ }, "de_DeleteRuleGroupCommandError");
1243
+ var de_DeleteTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1244
+ if (output.statusCode >= 300) {
1245
+ return de_DeleteTLSInspectionConfigurationCommandError(output, context);
1246
+ }
1247
+ const data = await parseBody(output.body, context);
1248
+ let contents = {};
1249
+ contents = de_DeleteTLSInspectionConfigurationResponse(data, context);
1250
+ const response = {
1251
+ $metadata: deserializeMetadata(output),
1252
+ ...contents
1253
+ };
1254
+ return response;
1255
+ }, "de_DeleteTLSInspectionConfigurationCommand");
1256
+ var de_DeleteTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1257
+ const parsedOutput = {
1258
+ ...output,
1259
+ body: await parseErrorBody(output.body, context)
1260
+ };
1261
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
+ switch (errorCode) {
1263
+ case "InternalServerError":
1264
+ case "com.amazonaws.networkfirewall#InternalServerError":
1265
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1266
+ case "InvalidOperationException":
1267
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1268
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1269
+ case "InvalidRequestException":
1270
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1271
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1272
+ case "ResourceNotFoundException":
1273
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1274
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1275
+ case "ThrottlingException":
1276
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1277
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1278
+ default:
1279
+ const parsedBody = parsedOutput.body;
1280
+ return throwDefaultError({
1281
+ output,
1282
+ parsedBody,
1283
+ errorCode
1284
+ });
1285
+ }
1286
+ }, "de_DeleteTLSInspectionConfigurationCommandError");
1287
+ var de_DescribeFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
1288
+ if (output.statusCode >= 300) {
1289
+ return de_DescribeFirewallCommandError(output, context);
1290
+ }
1291
+ const data = await parseBody(output.body, context);
1292
+ let contents = {};
1293
+ contents = (0, import_smithy_client._json)(data);
1294
+ const response = {
1295
+ $metadata: deserializeMetadata(output),
1296
+ ...contents
1297
+ };
1298
+ return response;
1299
+ }, "de_DescribeFirewallCommand");
1300
+ var de_DescribeFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
1301
+ const parsedOutput = {
1302
+ ...output,
1303
+ body: await parseErrorBody(output.body, context)
1304
+ };
1305
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1306
+ switch (errorCode) {
1307
+ case "InternalServerError":
1308
+ case "com.amazonaws.networkfirewall#InternalServerError":
1309
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1310
+ case "InvalidRequestException":
1311
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1312
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1313
+ case "ResourceNotFoundException":
1314
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1315
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1316
+ case "ThrottlingException":
1317
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1318
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1319
+ default:
1320
+ const parsedBody = parsedOutput.body;
1321
+ return throwDefaultError({
1322
+ output,
1323
+ parsedBody,
1324
+ errorCode
1325
+ });
1326
+ }
1327
+ }, "de_DescribeFirewallCommandError");
1328
+ var de_DescribeFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1329
+ if (output.statusCode >= 300) {
1330
+ return de_DescribeFirewallPolicyCommandError(output, context);
1331
+ }
1332
+ const data = await parseBody(output.body, context);
1333
+ let contents = {};
1334
+ contents = de_DescribeFirewallPolicyResponse(data, context);
1335
+ const response = {
1336
+ $metadata: deserializeMetadata(output),
1337
+ ...contents
1338
+ };
1339
+ return response;
1340
+ }, "de_DescribeFirewallPolicyCommand");
1341
+ var de_DescribeFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1342
+ const parsedOutput = {
1343
+ ...output,
1344
+ body: await parseErrorBody(output.body, context)
1345
+ };
1346
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1347
+ switch (errorCode) {
1348
+ case "InternalServerError":
1349
+ case "com.amazonaws.networkfirewall#InternalServerError":
1350
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1351
+ case "InvalidRequestException":
1352
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1353
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1354
+ case "ResourceNotFoundException":
1355
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1356
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1357
+ case "ThrottlingException":
1358
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1359
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1360
+ default:
1361
+ const parsedBody = parsedOutput.body;
1362
+ return throwDefaultError({
1363
+ output,
1364
+ parsedBody,
1365
+ errorCode
1366
+ });
1367
+ }
1368
+ }, "de_DescribeFirewallPolicyCommandError");
1369
+ var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1370
+ if (output.statusCode >= 300) {
1371
+ return de_DescribeLoggingConfigurationCommandError(output, context);
1372
+ }
1373
+ const data = await parseBody(output.body, context);
1374
+ let contents = {};
1375
+ contents = (0, import_smithy_client._json)(data);
1376
+ const response = {
1377
+ $metadata: deserializeMetadata(output),
1378
+ ...contents
1379
+ };
1380
+ return response;
1381
+ }, "de_DescribeLoggingConfigurationCommand");
1382
+ var de_DescribeLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1383
+ const parsedOutput = {
1384
+ ...output,
1385
+ body: await parseErrorBody(output.body, context)
1386
+ };
1387
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
+ switch (errorCode) {
1389
+ case "InternalServerError":
1390
+ case "com.amazonaws.networkfirewall#InternalServerError":
1391
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1392
+ case "InvalidRequestException":
1393
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1394
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1395
+ case "ResourceNotFoundException":
1396
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1397
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1398
+ case "ThrottlingException":
1399
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1400
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1401
+ default:
1402
+ const parsedBody = parsedOutput.body;
1403
+ return throwDefaultError({
1404
+ output,
1405
+ parsedBody,
1406
+ errorCode
1407
+ });
1408
+ }
1409
+ }, "de_DescribeLoggingConfigurationCommandError");
1410
+ var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1411
+ if (output.statusCode >= 300) {
1412
+ return de_DescribeResourcePolicyCommandError(output, context);
1413
+ }
1414
+ const data = await parseBody(output.body, context);
1415
+ let contents = {};
1416
+ contents = (0, import_smithy_client._json)(data);
1417
+ const response = {
1418
+ $metadata: deserializeMetadata(output),
1419
+ ...contents
1420
+ };
1421
+ return response;
1422
+ }, "de_DescribeResourcePolicyCommand");
1423
+ var de_DescribeResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1424
+ const parsedOutput = {
1425
+ ...output,
1426
+ body: await parseErrorBody(output.body, context)
1427
+ };
1428
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
+ switch (errorCode) {
1430
+ case "InternalServerError":
1431
+ case "com.amazonaws.networkfirewall#InternalServerError":
1432
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1433
+ case "InvalidRequestException":
1434
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1435
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1436
+ case "ResourceNotFoundException":
1437
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1438
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1439
+ case "ThrottlingException":
1440
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1441
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1442
+ default:
1443
+ const parsedBody = parsedOutput.body;
1444
+ return throwDefaultError({
1445
+ output,
1446
+ parsedBody,
1447
+ errorCode
1448
+ });
1449
+ }
1450
+ }, "de_DescribeResourcePolicyCommandError");
1451
+ var de_DescribeRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1452
+ if (output.statusCode >= 300) {
1453
+ return de_DescribeRuleGroupCommandError(output, context);
1454
+ }
1455
+ const data = await parseBody(output.body, context);
1456
+ let contents = {};
1457
+ contents = de_DescribeRuleGroupResponse(data, context);
1458
+ const response = {
1459
+ $metadata: deserializeMetadata(output),
1460
+ ...contents
1461
+ };
1462
+ return response;
1463
+ }, "de_DescribeRuleGroupCommand");
1464
+ var de_DescribeRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1465
+ const parsedOutput = {
1466
+ ...output,
1467
+ body: await parseErrorBody(output.body, context)
1468
+ };
1469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1470
+ switch (errorCode) {
1471
+ case "InternalServerError":
1472
+ case "com.amazonaws.networkfirewall#InternalServerError":
1473
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1474
+ case "InvalidRequestException":
1475
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1476
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1477
+ case "ResourceNotFoundException":
1478
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1479
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1480
+ case "ThrottlingException":
1481
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1482
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1483
+ default:
1484
+ const parsedBody = parsedOutput.body;
1485
+ return throwDefaultError({
1486
+ output,
1487
+ parsedBody,
1488
+ errorCode
1489
+ });
1490
+ }
1491
+ }, "de_DescribeRuleGroupCommandError");
1492
+ var de_DescribeRuleGroupMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1493
+ if (output.statusCode >= 300) {
1494
+ return de_DescribeRuleGroupMetadataCommandError(output, context);
1495
+ }
1496
+ const data = await parseBody(output.body, context);
1497
+ let contents = {};
1498
+ contents = de_DescribeRuleGroupMetadataResponse(data, context);
1499
+ const response = {
1500
+ $metadata: deserializeMetadata(output),
1501
+ ...contents
1502
+ };
1503
+ return response;
1504
+ }, "de_DescribeRuleGroupMetadataCommand");
1505
+ var de_DescribeRuleGroupMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
1506
+ const parsedOutput = {
1507
+ ...output,
1508
+ body: await parseErrorBody(output.body, context)
1509
+ };
1510
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1511
+ switch (errorCode) {
1512
+ case "InternalServerError":
1513
+ case "com.amazonaws.networkfirewall#InternalServerError":
1514
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1515
+ case "InvalidRequestException":
1516
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1517
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1518
+ case "ResourceNotFoundException":
1519
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1520
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1521
+ case "ThrottlingException":
1522
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1523
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1524
+ default:
1525
+ const parsedBody = parsedOutput.body;
1526
+ return throwDefaultError({
1527
+ output,
1528
+ parsedBody,
1529
+ errorCode
1530
+ });
1531
+ }
1532
+ }, "de_DescribeRuleGroupMetadataCommandError");
1533
+ var de_DescribeTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1534
+ if (output.statusCode >= 300) {
1535
+ return de_DescribeTLSInspectionConfigurationCommandError(output, context);
1536
+ }
1537
+ const data = await parseBody(output.body, context);
1538
+ let contents = {};
1539
+ contents = de_DescribeTLSInspectionConfigurationResponse(data, context);
1540
+ const response = {
1541
+ $metadata: deserializeMetadata(output),
1542
+ ...contents
1543
+ };
1544
+ return response;
1545
+ }, "de_DescribeTLSInspectionConfigurationCommand");
1546
+ var de_DescribeTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1547
+ const parsedOutput = {
1548
+ ...output,
1549
+ body: await parseErrorBody(output.body, context)
1550
+ };
1551
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1552
+ switch (errorCode) {
1553
+ case "InternalServerError":
1554
+ case "com.amazonaws.networkfirewall#InternalServerError":
1555
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1556
+ case "InvalidRequestException":
1557
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1558
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1559
+ case "ResourceNotFoundException":
1560
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1561
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1562
+ case "ThrottlingException":
1563
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1564
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1565
+ default:
1566
+ const parsedBody = parsedOutput.body;
1567
+ return throwDefaultError({
1568
+ output,
1569
+ parsedBody,
1570
+ errorCode
1571
+ });
1572
+ }
1573
+ }, "de_DescribeTLSInspectionConfigurationCommandError");
1574
+ var de_DisassociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1575
+ if (output.statusCode >= 300) {
1576
+ return de_DisassociateSubnetsCommandError(output, context);
1577
+ }
1578
+ const data = await parseBody(output.body, context);
1579
+ let contents = {};
1580
+ contents = (0, import_smithy_client._json)(data);
1581
+ const response = {
1582
+ $metadata: deserializeMetadata(output),
1583
+ ...contents
1584
+ };
1585
+ return response;
1586
+ }, "de_DisassociateSubnetsCommand");
1587
+ var de_DisassociateSubnetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1588
+ const parsedOutput = {
1589
+ ...output,
1590
+ body: await parseErrorBody(output.body, context)
1591
+ };
1592
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1593
+ switch (errorCode) {
1594
+ case "InternalServerError":
1595
+ case "com.amazonaws.networkfirewall#InternalServerError":
1596
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1597
+ case "InvalidOperationException":
1598
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1599
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1600
+ case "InvalidRequestException":
1601
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1602
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1603
+ case "InvalidTokenException":
1604
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
1605
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
1606
+ case "ResourceNotFoundException":
1607
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1608
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1609
+ case "ThrottlingException":
1610
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1611
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1612
+ default:
1613
+ const parsedBody = parsedOutput.body;
1614
+ return throwDefaultError({
1615
+ output,
1616
+ parsedBody,
1617
+ errorCode
1618
+ });
1619
+ }
1620
+ }, "de_DisassociateSubnetsCommandError");
1621
+ var de_ListFirewallPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1622
+ if (output.statusCode >= 300) {
1623
+ return de_ListFirewallPoliciesCommandError(output, context);
1624
+ }
1625
+ const data = await parseBody(output.body, context);
1626
+ let contents = {};
1627
+ contents = (0, import_smithy_client._json)(data);
1628
+ const response = {
1629
+ $metadata: deserializeMetadata(output),
1630
+ ...contents
1631
+ };
1632
+ return response;
1633
+ }, "de_ListFirewallPoliciesCommand");
1634
+ var de_ListFirewallPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1635
+ const parsedOutput = {
1636
+ ...output,
1637
+ body: await parseErrorBody(output.body, context)
1638
+ };
1639
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1640
+ switch (errorCode) {
1641
+ case "InternalServerError":
1642
+ case "com.amazonaws.networkfirewall#InternalServerError":
1643
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1644
+ case "InvalidRequestException":
1645
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1646
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1647
+ case "ThrottlingException":
1648
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1649
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1650
+ default:
1651
+ const parsedBody = parsedOutput.body;
1652
+ return throwDefaultError({
1653
+ output,
1654
+ parsedBody,
1655
+ errorCode
1656
+ });
1657
+ }
1658
+ }, "de_ListFirewallPoliciesCommandError");
1659
+ var de_ListFirewallsCommand = /* @__PURE__ */ __name(async (output, context) => {
1660
+ if (output.statusCode >= 300) {
1661
+ return de_ListFirewallsCommandError(output, context);
1662
+ }
1663
+ const data = await parseBody(output.body, context);
1664
+ let contents = {};
1665
+ contents = (0, import_smithy_client._json)(data);
1666
+ const response = {
1667
+ $metadata: deserializeMetadata(output),
1668
+ ...contents
1669
+ };
1670
+ return response;
1671
+ }, "de_ListFirewallsCommand");
1672
+ var de_ListFirewallsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1673
+ const parsedOutput = {
1674
+ ...output,
1675
+ body: await parseErrorBody(output.body, context)
1676
+ };
1677
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1678
+ switch (errorCode) {
1679
+ case "InternalServerError":
1680
+ case "com.amazonaws.networkfirewall#InternalServerError":
1681
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1682
+ case "InvalidRequestException":
1683
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1684
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1685
+ case "ThrottlingException":
1686
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1687
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1688
+ default:
1689
+ const parsedBody = parsedOutput.body;
1690
+ return throwDefaultError({
1691
+ output,
1692
+ parsedBody,
1693
+ errorCode
1694
+ });
1695
+ }
1696
+ }, "de_ListFirewallsCommandError");
1697
+ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1698
+ if (output.statusCode >= 300) {
1699
+ return de_ListRuleGroupsCommandError(output, context);
1700
+ }
1701
+ const data = await parseBody(output.body, context);
1702
+ let contents = {};
1703
+ contents = (0, import_smithy_client._json)(data);
1704
+ const response = {
1705
+ $metadata: deserializeMetadata(output),
1706
+ ...contents
1707
+ };
1708
+ return response;
1709
+ }, "de_ListRuleGroupsCommand");
1710
+ var de_ListRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1711
+ const parsedOutput = {
1712
+ ...output,
1713
+ body: await parseErrorBody(output.body, context)
1714
+ };
1715
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1716
+ switch (errorCode) {
1717
+ case "InternalServerError":
1718
+ case "com.amazonaws.networkfirewall#InternalServerError":
1719
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1720
+ case "InvalidRequestException":
1721
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1722
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1723
+ case "ThrottlingException":
1724
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1725
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1726
+ default:
1727
+ const parsedBody = parsedOutput.body;
1728
+ return throwDefaultError({
1729
+ output,
1730
+ parsedBody,
1731
+ errorCode
1732
+ });
1733
+ }
1734
+ }, "de_ListRuleGroupsCommandError");
1735
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1736
+ if (output.statusCode >= 300) {
1737
+ return de_ListTagsForResourceCommandError(output, context);
1738
+ }
1739
+ const data = await parseBody(output.body, context);
1740
+ let contents = {};
1741
+ contents = (0, import_smithy_client._json)(data);
1742
+ const response = {
1743
+ $metadata: deserializeMetadata(output),
1744
+ ...contents
1745
+ };
1746
+ return response;
1747
+ }, "de_ListTagsForResourceCommand");
1748
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1749
+ const parsedOutput = {
1750
+ ...output,
1751
+ body: await parseErrorBody(output.body, context)
1752
+ };
1753
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1754
+ switch (errorCode) {
1755
+ case "InternalServerError":
1756
+ case "com.amazonaws.networkfirewall#InternalServerError":
1757
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1758
+ case "InvalidRequestException":
1759
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1760
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1761
+ case "ResourceNotFoundException":
1762
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1763
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1764
+ case "ThrottlingException":
1765
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1766
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1767
+ default:
1768
+ const parsedBody = parsedOutput.body;
1769
+ return throwDefaultError({
1770
+ output,
1771
+ parsedBody,
1772
+ errorCode
1773
+ });
1774
+ }
1775
+ }, "de_ListTagsForResourceCommandError");
1776
+ var de_ListTLSInspectionConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1777
+ if (output.statusCode >= 300) {
1778
+ return de_ListTLSInspectionConfigurationsCommandError(output, context);
1779
+ }
1780
+ const data = await parseBody(output.body, context);
1781
+ let contents = {};
1782
+ contents = (0, import_smithy_client._json)(data);
1783
+ const response = {
1784
+ $metadata: deserializeMetadata(output),
1785
+ ...contents
1786
+ };
1787
+ return response;
1788
+ }, "de_ListTLSInspectionConfigurationsCommand");
1789
+ var de_ListTLSInspectionConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1790
+ const parsedOutput = {
1791
+ ...output,
1792
+ body: await parseErrorBody(output.body, context)
1793
+ };
1794
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1795
+ switch (errorCode) {
1796
+ case "InternalServerError":
1797
+ case "com.amazonaws.networkfirewall#InternalServerError":
1798
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1799
+ case "InvalidRequestException":
1800
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1801
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1802
+ case "ThrottlingException":
1803
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1804
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1805
+ default:
1806
+ const parsedBody = parsedOutput.body;
1807
+ return throwDefaultError({
1808
+ output,
1809
+ parsedBody,
1810
+ errorCode
1811
+ });
1812
+ }
1813
+ }, "de_ListTLSInspectionConfigurationsCommandError");
1814
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1815
+ if (output.statusCode >= 300) {
1816
+ return de_PutResourcePolicyCommandError(output, context);
1817
+ }
1818
+ const data = await parseBody(output.body, context);
1819
+ let contents = {};
1820
+ contents = (0, import_smithy_client._json)(data);
1821
+ const response = {
1822
+ $metadata: deserializeMetadata(output),
1823
+ ...contents
1824
+ };
1825
+ return response;
1826
+ }, "de_PutResourcePolicyCommand");
1827
+ var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1828
+ const parsedOutput = {
1829
+ ...output,
1830
+ body: await parseErrorBody(output.body, context)
1831
+ };
1832
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
+ switch (errorCode) {
1834
+ case "InternalServerError":
1835
+ case "com.amazonaws.networkfirewall#InternalServerError":
1836
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1837
+ case "InvalidRequestException":
1838
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1839
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1840
+ case "InvalidResourcePolicyException":
1841
+ case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
1842
+ throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1843
+ case "ResourceNotFoundException":
1844
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1845
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1846
+ case "ThrottlingException":
1847
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1848
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1849
+ default:
1850
+ const parsedBody = parsedOutput.body;
1851
+ return throwDefaultError({
1852
+ output,
1853
+ parsedBody,
1854
+ errorCode
1855
+ });
1856
+ }
1857
+ }, "de_PutResourcePolicyCommandError");
1858
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1859
+ if (output.statusCode >= 300) {
1860
+ return de_TagResourceCommandError(output, context);
1861
+ }
1862
+ const data = await parseBody(output.body, context);
1863
+ let contents = {};
1864
+ contents = (0, import_smithy_client._json)(data);
1865
+ const response = {
1866
+ $metadata: deserializeMetadata(output),
1867
+ ...contents
1868
+ };
1869
+ return response;
1870
+ }, "de_TagResourceCommand");
1871
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1872
+ const parsedOutput = {
1873
+ ...output,
1874
+ body: await parseErrorBody(output.body, context)
1875
+ };
1876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1877
+ switch (errorCode) {
1878
+ case "InternalServerError":
1879
+ case "com.amazonaws.networkfirewall#InternalServerError":
1880
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1881
+ case "InvalidRequestException":
1882
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1883
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1884
+ case "ResourceNotFoundException":
1885
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1886
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1887
+ case "ThrottlingException":
1888
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1889
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1890
+ default:
1891
+ const parsedBody = parsedOutput.body;
1892
+ return throwDefaultError({
1893
+ output,
1894
+ parsedBody,
1895
+ errorCode
1896
+ });
1897
+ }
1898
+ }, "de_TagResourceCommandError");
1899
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1900
+ if (output.statusCode >= 300) {
1901
+ return de_UntagResourceCommandError(output, context);
1902
+ }
1903
+ const data = await parseBody(output.body, context);
1904
+ let contents = {};
1905
+ contents = (0, import_smithy_client._json)(data);
1906
+ const response = {
1907
+ $metadata: deserializeMetadata(output),
1908
+ ...contents
1909
+ };
1910
+ return response;
1911
+ }, "de_UntagResourceCommand");
1912
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1913
+ const parsedOutput = {
1914
+ ...output,
1915
+ body: await parseErrorBody(output.body, context)
1916
+ };
1917
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1918
+ switch (errorCode) {
1919
+ case "InternalServerError":
1920
+ case "com.amazonaws.networkfirewall#InternalServerError":
1921
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1922
+ case "InvalidRequestException":
1923
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1924
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1925
+ case "ResourceNotFoundException":
1926
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1927
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1928
+ case "ThrottlingException":
1929
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1930
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1931
+ default:
1932
+ const parsedBody = parsedOutput.body;
1933
+ return throwDefaultError({
1934
+ output,
1935
+ parsedBody,
1936
+ errorCode
1937
+ });
1938
+ }
1939
+ }, "de_UntagResourceCommandError");
1940
+ var de_UpdateFirewallDeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1941
+ if (output.statusCode >= 300) {
1942
+ return de_UpdateFirewallDeleteProtectionCommandError(output, context);
1943
+ }
1944
+ const data = await parseBody(output.body, context);
1945
+ let contents = {};
1946
+ contents = (0, import_smithy_client._json)(data);
1947
+ const response = {
1948
+ $metadata: deserializeMetadata(output),
1949
+ ...contents
1950
+ };
1951
+ return response;
1952
+ }, "de_UpdateFirewallDeleteProtectionCommand");
1953
+ var de_UpdateFirewallDeleteProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1954
+ const parsedOutput = {
1955
+ ...output,
1956
+ body: await parseErrorBody(output.body, context)
1957
+ };
1958
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1959
+ switch (errorCode) {
1960
+ case "InternalServerError":
1961
+ case "com.amazonaws.networkfirewall#InternalServerError":
1962
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1963
+ case "InvalidRequestException":
1964
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
1965
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1966
+ case "InvalidTokenException":
1967
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
1968
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
1969
+ case "ResourceNotFoundException":
1970
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1971
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1972
+ case "ResourceOwnerCheckException":
1973
+ case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
1974
+ throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
1975
+ case "ThrottlingException":
1976
+ case "com.amazonaws.networkfirewall#ThrottlingException":
1977
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1978
+ default:
1979
+ const parsedBody = parsedOutput.body;
1980
+ return throwDefaultError({
1981
+ output,
1982
+ parsedBody,
1983
+ errorCode
1984
+ });
1985
+ }
1986
+ }, "de_UpdateFirewallDeleteProtectionCommandError");
1987
+ var de_UpdateFirewallDescriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1988
+ if (output.statusCode >= 300) {
1989
+ return de_UpdateFirewallDescriptionCommandError(output, context);
1990
+ }
1991
+ const data = await parseBody(output.body, context);
1992
+ let contents = {};
1993
+ contents = (0, import_smithy_client._json)(data);
1994
+ const response = {
1995
+ $metadata: deserializeMetadata(output),
1996
+ ...contents
1997
+ };
1998
+ return response;
1999
+ }, "de_UpdateFirewallDescriptionCommand");
2000
+ var de_UpdateFirewallDescriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2001
+ const parsedOutput = {
2002
+ ...output,
2003
+ body: await parseErrorBody(output.body, context)
2004
+ };
2005
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2006
+ switch (errorCode) {
2007
+ case "InternalServerError":
2008
+ case "com.amazonaws.networkfirewall#InternalServerError":
2009
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2010
+ case "InvalidRequestException":
2011
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2012
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2013
+ case "InvalidTokenException":
2014
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2015
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2016
+ case "ResourceNotFoundException":
2017
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2018
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2019
+ case "ThrottlingException":
2020
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2021
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2022
+ default:
2023
+ const parsedBody = parsedOutput.body;
2024
+ return throwDefaultError({
2025
+ output,
2026
+ parsedBody,
2027
+ errorCode
2028
+ });
2029
+ }
2030
+ }, "de_UpdateFirewallDescriptionCommandError");
2031
+ var de_UpdateFirewallEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2032
+ if (output.statusCode >= 300) {
2033
+ return de_UpdateFirewallEncryptionConfigurationCommandError(output, context);
2034
+ }
2035
+ const data = await parseBody(output.body, context);
2036
+ let contents = {};
2037
+ contents = (0, import_smithy_client._json)(data);
2038
+ const response = {
2039
+ $metadata: deserializeMetadata(output),
2040
+ ...contents
2041
+ };
2042
+ return response;
2043
+ }, "de_UpdateFirewallEncryptionConfigurationCommand");
2044
+ var de_UpdateFirewallEncryptionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2045
+ const parsedOutput = {
2046
+ ...output,
2047
+ body: await parseErrorBody(output.body, context)
2048
+ };
2049
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2050
+ switch (errorCode) {
2051
+ case "InternalServerError":
2052
+ case "com.amazonaws.networkfirewall#InternalServerError":
2053
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2054
+ case "InvalidRequestException":
2055
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2056
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2057
+ case "InvalidTokenException":
2058
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2059
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2060
+ case "ResourceNotFoundException":
2061
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2062
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2063
+ case "ResourceOwnerCheckException":
2064
+ case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
2065
+ throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
2066
+ case "ThrottlingException":
2067
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2068
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2069
+ default:
2070
+ const parsedBody = parsedOutput.body;
2071
+ return throwDefaultError({
2072
+ output,
2073
+ parsedBody,
2074
+ errorCode
2075
+ });
2076
+ }
2077
+ }, "de_UpdateFirewallEncryptionConfigurationCommandError");
2078
+ var de_UpdateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2079
+ if (output.statusCode >= 300) {
2080
+ return de_UpdateFirewallPolicyCommandError(output, context);
2081
+ }
2082
+ const data = await parseBody(output.body, context);
2083
+ let contents = {};
2084
+ contents = de_UpdateFirewallPolicyResponse(data, context);
2085
+ const response = {
2086
+ $metadata: deserializeMetadata(output),
2087
+ ...contents
2088
+ };
2089
+ return response;
2090
+ }, "de_UpdateFirewallPolicyCommand");
2091
+ var de_UpdateFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2092
+ const parsedOutput = {
2093
+ ...output,
2094
+ body: await parseErrorBody(output.body, context)
2095
+ };
2096
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2097
+ switch (errorCode) {
2098
+ case "InternalServerError":
2099
+ case "com.amazonaws.networkfirewall#InternalServerError":
2100
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2101
+ case "InvalidRequestException":
2102
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2103
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2104
+ case "InvalidTokenException":
2105
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2106
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2107
+ case "ResourceNotFoundException":
2108
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2109
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2110
+ case "ThrottlingException":
2111
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2112
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2113
+ default:
2114
+ const parsedBody = parsedOutput.body;
2115
+ return throwDefaultError({
2116
+ output,
2117
+ parsedBody,
2118
+ errorCode
2119
+ });
2120
+ }
2121
+ }, "de_UpdateFirewallPolicyCommandError");
2122
+ var de_UpdateFirewallPolicyChangeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2123
+ if (output.statusCode >= 300) {
2124
+ return de_UpdateFirewallPolicyChangeProtectionCommandError(output, context);
2125
+ }
2126
+ const data = await parseBody(output.body, context);
2127
+ let contents = {};
2128
+ contents = (0, import_smithy_client._json)(data);
2129
+ const response = {
2130
+ $metadata: deserializeMetadata(output),
2131
+ ...contents
2132
+ };
2133
+ return response;
2134
+ }, "de_UpdateFirewallPolicyChangeProtectionCommand");
2135
+ var de_UpdateFirewallPolicyChangeProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2136
+ const parsedOutput = {
2137
+ ...output,
2138
+ body: await parseErrorBody(output.body, context)
2139
+ };
2140
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2141
+ switch (errorCode) {
2142
+ case "InternalServerError":
2143
+ case "com.amazonaws.networkfirewall#InternalServerError":
2144
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2145
+ case "InvalidRequestException":
2146
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2147
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2148
+ case "InvalidTokenException":
2149
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2150
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2151
+ case "ResourceNotFoundException":
2152
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2153
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2154
+ case "ResourceOwnerCheckException":
2155
+ case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
2156
+ throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
2157
+ case "ThrottlingException":
2158
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2159
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2160
+ default:
2161
+ const parsedBody = parsedOutput.body;
2162
+ return throwDefaultError({
2163
+ output,
2164
+ parsedBody,
2165
+ errorCode
2166
+ });
2167
+ }
2168
+ }, "de_UpdateFirewallPolicyChangeProtectionCommandError");
2169
+ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2170
+ if (output.statusCode >= 300) {
2171
+ return de_UpdateLoggingConfigurationCommandError(output, context);
2172
+ }
2173
+ const data = await parseBody(output.body, context);
2174
+ let contents = {};
2175
+ contents = (0, import_smithy_client._json)(data);
2176
+ const response = {
2177
+ $metadata: deserializeMetadata(output),
2178
+ ...contents
2179
+ };
2180
+ return response;
2181
+ }, "de_UpdateLoggingConfigurationCommand");
2182
+ var de_UpdateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2183
+ const parsedOutput = {
2184
+ ...output,
2185
+ body: await parseErrorBody(output.body, context)
2186
+ };
2187
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2188
+ switch (errorCode) {
2189
+ case "InternalServerError":
2190
+ case "com.amazonaws.networkfirewall#InternalServerError":
2191
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2192
+ case "InvalidRequestException":
2193
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2194
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2195
+ case "InvalidTokenException":
2196
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2197
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2198
+ case "LogDestinationPermissionException":
2199
+ case "com.amazonaws.networkfirewall#LogDestinationPermissionException":
2200
+ throw await de_LogDestinationPermissionExceptionRes(parsedOutput, context);
2201
+ case "ResourceNotFoundException":
2202
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2203
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2204
+ case "ThrottlingException":
2205
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2206
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2207
+ default:
2208
+ const parsedBody = parsedOutput.body;
2209
+ return throwDefaultError({
2210
+ output,
2211
+ parsedBody,
2212
+ errorCode
2213
+ });
2214
+ }
2215
+ }, "de_UpdateLoggingConfigurationCommandError");
2216
+ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2217
+ if (output.statusCode >= 300) {
2218
+ return de_UpdateRuleGroupCommandError(output, context);
2219
+ }
2220
+ const data = await parseBody(output.body, context);
2221
+ let contents = {};
2222
+ contents = de_UpdateRuleGroupResponse(data, context);
2223
+ const response = {
2224
+ $metadata: deserializeMetadata(output),
2225
+ ...contents
2226
+ };
2227
+ return response;
2228
+ }, "de_UpdateRuleGroupCommand");
2229
+ var de_UpdateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2230
+ const parsedOutput = {
2231
+ ...output,
2232
+ body: await parseErrorBody(output.body, context)
2233
+ };
2234
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2235
+ switch (errorCode) {
2236
+ case "InternalServerError":
2237
+ case "com.amazonaws.networkfirewall#InternalServerError":
2238
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2239
+ case "InvalidRequestException":
2240
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2241
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2242
+ case "InvalidTokenException":
2243
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2244
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2245
+ case "ResourceNotFoundException":
2246
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2247
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2248
+ case "ThrottlingException":
2249
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2250
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2251
+ default:
2252
+ const parsedBody = parsedOutput.body;
2253
+ return throwDefaultError({
2254
+ output,
2255
+ parsedBody,
2256
+ errorCode
2257
+ });
2258
+ }
2259
+ }, "de_UpdateRuleGroupCommandError");
2260
+ var de_UpdateSubnetChangeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2261
+ if (output.statusCode >= 300) {
2262
+ return de_UpdateSubnetChangeProtectionCommandError(output, context);
2263
+ }
2264
+ const data = await parseBody(output.body, context);
2265
+ let contents = {};
2266
+ contents = (0, import_smithy_client._json)(data);
2267
+ const response = {
2268
+ $metadata: deserializeMetadata(output),
2269
+ ...contents
2270
+ };
2271
+ return response;
2272
+ }, "de_UpdateSubnetChangeProtectionCommand");
2273
+ var de_UpdateSubnetChangeProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2274
+ const parsedOutput = {
2275
+ ...output,
2276
+ body: await parseErrorBody(output.body, context)
2277
+ };
2278
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
+ switch (errorCode) {
2280
+ case "InternalServerError":
2281
+ case "com.amazonaws.networkfirewall#InternalServerError":
2282
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2283
+ case "InvalidRequestException":
2284
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2285
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2286
+ case "InvalidTokenException":
2287
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2288
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2289
+ case "ResourceNotFoundException":
2290
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2291
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2292
+ case "ResourceOwnerCheckException":
2293
+ case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
2294
+ throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
2295
+ case "ThrottlingException":
2296
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2297
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2298
+ default:
2299
+ const parsedBody = parsedOutput.body;
2300
+ return throwDefaultError({
2301
+ output,
2302
+ parsedBody,
2303
+ errorCode
2304
+ });
2305
+ }
2306
+ }, "de_UpdateSubnetChangeProtectionCommandError");
2307
+ var de_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2308
+ if (output.statusCode >= 300) {
2309
+ return de_UpdateTLSInspectionConfigurationCommandError(output, context);
2310
+ }
2311
+ const data = await parseBody(output.body, context);
2312
+ let contents = {};
2313
+ contents = de_UpdateTLSInspectionConfigurationResponse(data, context);
2314
+ const response = {
2315
+ $metadata: deserializeMetadata(output),
2316
+ ...contents
2317
+ };
2318
+ return response;
2319
+ }, "de_UpdateTLSInspectionConfigurationCommand");
2320
+ var de_UpdateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2321
+ const parsedOutput = {
2322
+ ...output,
2323
+ body: await parseErrorBody(output.body, context)
2324
+ };
2325
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2326
+ switch (errorCode) {
2327
+ case "InternalServerError":
2328
+ case "com.amazonaws.networkfirewall#InternalServerError":
2329
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2330
+ case "InvalidRequestException":
2331
+ case "com.amazonaws.networkfirewall#InvalidRequestException":
2332
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2333
+ case "InvalidTokenException":
2334
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
2335
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2336
+ case "ResourceNotFoundException":
2337
+ case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2338
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2339
+ case "ThrottlingException":
2340
+ case "com.amazonaws.networkfirewall#ThrottlingException":
2341
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2342
+ default:
2343
+ const parsedBody = parsedOutput.body;
2344
+ return throwDefaultError({
2345
+ output,
2346
+ parsedBody,
2347
+ errorCode
2348
+ });
2349
+ }
2350
+ }, "de_UpdateTLSInspectionConfigurationCommandError");
2351
+ var de_InsufficientCapacityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2352
+ const body = parsedOutput.body;
2353
+ const deserialized = (0, import_smithy_client._json)(body);
2354
+ const exception = new InsufficientCapacityException({
2355
+ $metadata: deserializeMetadata(parsedOutput),
2356
+ ...deserialized
2357
+ });
2358
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2359
+ }, "de_InsufficientCapacityExceptionRes");
2360
+ var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2361
+ const body = parsedOutput.body;
2362
+ const deserialized = (0, import_smithy_client._json)(body);
2363
+ const exception = new InternalServerError({
2364
+ $metadata: deserializeMetadata(parsedOutput),
2365
+ ...deserialized
2366
+ });
2367
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2368
+ }, "de_InternalServerErrorRes");
2369
+ var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2370
+ const body = parsedOutput.body;
2371
+ const deserialized = (0, import_smithy_client._json)(body);
2372
+ const exception = new InvalidOperationException({
2373
+ $metadata: deserializeMetadata(parsedOutput),
2374
+ ...deserialized
2375
+ });
2376
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2377
+ }, "de_InvalidOperationExceptionRes");
2378
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2379
+ const body = parsedOutput.body;
2380
+ const deserialized = (0, import_smithy_client._json)(body);
2381
+ const exception = new InvalidRequestException({
2382
+ $metadata: deserializeMetadata(parsedOutput),
2383
+ ...deserialized
2384
+ });
2385
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2386
+ }, "de_InvalidRequestExceptionRes");
2387
+ var de_InvalidResourcePolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2388
+ const body = parsedOutput.body;
2389
+ const deserialized = (0, import_smithy_client._json)(body);
2390
+ const exception = new InvalidResourcePolicyException({
2391
+ $metadata: deserializeMetadata(parsedOutput),
2392
+ ...deserialized
2393
+ });
2394
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2395
+ }, "de_InvalidResourcePolicyExceptionRes");
2396
+ var de_InvalidTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2397
+ const body = parsedOutput.body;
2398
+ const deserialized = (0, import_smithy_client._json)(body);
2399
+ const exception = new InvalidTokenException({
2400
+ $metadata: deserializeMetadata(parsedOutput),
2401
+ ...deserialized
2402
+ });
2403
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2404
+ }, "de_InvalidTokenExceptionRes");
2405
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2406
+ const body = parsedOutput.body;
2407
+ const deserialized = (0, import_smithy_client._json)(body);
2408
+ const exception = new LimitExceededException({
2409
+ $metadata: deserializeMetadata(parsedOutput),
2410
+ ...deserialized
2411
+ });
2412
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2413
+ }, "de_LimitExceededExceptionRes");
2414
+ var de_LogDestinationPermissionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2415
+ const body = parsedOutput.body;
2416
+ const deserialized = (0, import_smithy_client._json)(body);
2417
+ const exception = new LogDestinationPermissionException({
2418
+ $metadata: deserializeMetadata(parsedOutput),
2419
+ ...deserialized
2420
+ });
2421
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2422
+ }, "de_LogDestinationPermissionExceptionRes");
2423
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2424
+ const body = parsedOutput.body;
2425
+ const deserialized = (0, import_smithy_client._json)(body);
2426
+ const exception = new ResourceNotFoundException({
2427
+ $metadata: deserializeMetadata(parsedOutput),
2428
+ ...deserialized
2429
+ });
2430
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2431
+ }, "de_ResourceNotFoundExceptionRes");
2432
+ var de_ResourceOwnerCheckExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2433
+ const body = parsedOutput.body;
2434
+ const deserialized = (0, import_smithy_client._json)(body);
2435
+ const exception = new ResourceOwnerCheckException({
2436
+ $metadata: deserializeMetadata(parsedOutput),
2437
+ ...deserialized
2438
+ });
2439
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2440
+ }, "de_ResourceOwnerCheckExceptionRes");
2441
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2442
+ const body = parsedOutput.body;
2443
+ const deserialized = (0, import_smithy_client._json)(body);
2444
+ const exception = new ThrottlingException({
2445
+ $metadata: deserializeMetadata(parsedOutput),
2446
+ ...deserialized
2447
+ });
2448
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2449
+ }, "de_ThrottlingExceptionRes");
2450
+ var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2451
+ const body = parsedOutput.body;
2452
+ const deserialized = (0, import_smithy_client._json)(body);
2453
+ const exception = new UnsupportedOperationException({
2454
+ $metadata: deserializeMetadata(parsedOutput),
2455
+ ...deserialized
2456
+ });
2457
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2458
+ }, "de_UnsupportedOperationExceptionRes");
2459
+ var se_CreateRuleGroupRequest = /* @__PURE__ */ __name((input, context) => {
2460
+ return (0, import_smithy_client.take)(input, {
2461
+ AnalyzeRuleGroup: [],
2462
+ Capacity: [],
2463
+ Description: [],
2464
+ DryRun: [],
2465
+ EncryptionConfiguration: import_smithy_client._json,
2466
+ RuleGroup: import_smithy_client._json,
2467
+ RuleGroupName: [],
2468
+ Rules: [],
2469
+ SourceMetadata: import_smithy_client._json,
2470
+ Tags: import_smithy_client._json,
2471
+ Type: []
2472
+ });
2473
+ }, "se_CreateRuleGroupRequest");
2474
+ var se_UpdateRuleGroupRequest = /* @__PURE__ */ __name((input, context) => {
2475
+ return (0, import_smithy_client.take)(input, {
2476
+ AnalyzeRuleGroup: [],
2477
+ Description: [],
2478
+ DryRun: [],
2479
+ EncryptionConfiguration: import_smithy_client._json,
2480
+ RuleGroup: import_smithy_client._json,
2481
+ RuleGroupArn: [],
2482
+ RuleGroupName: [],
2483
+ Rules: [],
2484
+ SourceMetadata: import_smithy_client._json,
2485
+ Type: [],
2486
+ UpdateToken: []
2487
+ });
2488
+ }, "se_UpdateRuleGroupRequest");
2489
+ var de_CreateFirewallPolicyResponse = /* @__PURE__ */ __name((output, context) => {
2490
+ return (0, import_smithy_client.take)(output, {
2491
+ FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
2492
+ UpdateToken: import_smithy_client.expectString
2493
+ });
2494
+ }, "de_CreateFirewallPolicyResponse");
2495
+ var de_CreateRuleGroupResponse = /* @__PURE__ */ __name((output, context) => {
2496
+ return (0, import_smithy_client.take)(output, {
2497
+ RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
2498
+ UpdateToken: import_smithy_client.expectString
2499
+ });
2500
+ }, "de_CreateRuleGroupResponse");
2501
+ var de_CreateTLSInspectionConfigurationResponse = /* @__PURE__ */ __name((output, context) => {
2502
+ return (0, import_smithy_client.take)(output, {
2503
+ TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
2504
+ UpdateToken: import_smithy_client.expectString
2505
+ });
2506
+ }, "de_CreateTLSInspectionConfigurationResponse");
2507
+ var de_DeleteFirewallPolicyResponse = /* @__PURE__ */ __name((output, context) => {
2508
+ return (0, import_smithy_client.take)(output, {
2509
+ FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context)
2510
+ });
2511
+ }, "de_DeleteFirewallPolicyResponse");
2512
+ var de_DeleteRuleGroupResponse = /* @__PURE__ */ __name((output, context) => {
2513
+ return (0, import_smithy_client.take)(output, {
2514
+ RuleGroupResponse: (_) => de_RuleGroupResponse(_, context)
2515
+ });
2516
+ }, "de_DeleteRuleGroupResponse");
2517
+ var de_DeleteTLSInspectionConfigurationResponse = /* @__PURE__ */ __name((output, context) => {
2518
+ return (0, import_smithy_client.take)(output, {
2519
+ TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context)
2520
+ });
2521
+ }, "de_DeleteTLSInspectionConfigurationResponse");
2522
+ var de_DescribeFirewallPolicyResponse = /* @__PURE__ */ __name((output, context) => {
2523
+ return (0, import_smithy_client.take)(output, {
2524
+ FirewallPolicy: import_smithy_client._json,
2525
+ FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
2526
+ UpdateToken: import_smithy_client.expectString
2527
+ });
2528
+ }, "de_DescribeFirewallPolicyResponse");
2529
+ var de_DescribeRuleGroupMetadataResponse = /* @__PURE__ */ __name((output, context) => {
2530
+ return (0, import_smithy_client.take)(output, {
2531
+ Capacity: import_smithy_client.expectInt32,
2532
+ Description: import_smithy_client.expectString,
2533
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2534
+ RuleGroupArn: import_smithy_client.expectString,
2535
+ RuleGroupName: import_smithy_client.expectString,
2536
+ StatefulRuleOptions: import_smithy_client._json,
2537
+ Type: import_smithy_client.expectString
2538
+ });
2539
+ }, "de_DescribeRuleGroupMetadataResponse");
2540
+ var de_DescribeRuleGroupResponse = /* @__PURE__ */ __name((output, context) => {
2541
+ return (0, import_smithy_client.take)(output, {
2542
+ RuleGroup: import_smithy_client._json,
2543
+ RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
2544
+ UpdateToken: import_smithy_client.expectString
2545
+ });
2546
+ }, "de_DescribeRuleGroupResponse");
2547
+ var de_DescribeTLSInspectionConfigurationResponse = /* @__PURE__ */ __name((output, context) => {
2548
+ return (0, import_smithy_client.take)(output, {
2549
+ TLSInspectionConfiguration: import_smithy_client._json,
2550
+ TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
2551
+ UpdateToken: import_smithy_client.expectString
2552
+ });
2553
+ }, "de_DescribeTLSInspectionConfigurationResponse");
2554
+ var de_FirewallPolicyResponse = /* @__PURE__ */ __name((output, context) => {
2555
+ return (0, import_smithy_client.take)(output, {
2556
+ ConsumedStatefulRuleCapacity: import_smithy_client.expectInt32,
2557
+ ConsumedStatelessRuleCapacity: import_smithy_client.expectInt32,
2558
+ Description: import_smithy_client.expectString,
2559
+ EncryptionConfiguration: import_smithy_client._json,
2560
+ FirewallPolicyArn: import_smithy_client.expectString,
2561
+ FirewallPolicyId: import_smithy_client.expectString,
2562
+ FirewallPolicyName: import_smithy_client.expectString,
2563
+ FirewallPolicyStatus: import_smithy_client.expectString,
2564
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2565
+ NumberOfAssociations: import_smithy_client.expectInt32,
2566
+ Tags: import_smithy_client._json
2567
+ });
2568
+ }, "de_FirewallPolicyResponse");
2569
+ var de_RuleGroupResponse = /* @__PURE__ */ __name((output, context) => {
2570
+ return (0, import_smithy_client.take)(output, {
2571
+ AnalysisResults: import_smithy_client._json,
2572
+ Capacity: import_smithy_client.expectInt32,
2573
+ ConsumedCapacity: import_smithy_client.expectInt32,
2574
+ Description: import_smithy_client.expectString,
2575
+ EncryptionConfiguration: import_smithy_client._json,
2576
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2577
+ NumberOfAssociations: import_smithy_client.expectInt32,
2578
+ RuleGroupArn: import_smithy_client.expectString,
2579
+ RuleGroupId: import_smithy_client.expectString,
2580
+ RuleGroupName: import_smithy_client.expectString,
2581
+ RuleGroupStatus: import_smithy_client.expectString,
2582
+ SnsTopic: import_smithy_client.expectString,
2583
+ SourceMetadata: import_smithy_client._json,
2584
+ Tags: import_smithy_client._json,
2585
+ Type: import_smithy_client.expectString
2586
+ });
2587
+ }, "de_RuleGroupResponse");
2588
+ var de_TLSInspectionConfigurationResponse = /* @__PURE__ */ __name((output, context) => {
2589
+ return (0, import_smithy_client.take)(output, {
2590
+ CertificateAuthority: import_smithy_client._json,
2591
+ Certificates: import_smithy_client._json,
2592
+ Description: import_smithy_client.expectString,
2593
+ EncryptionConfiguration: import_smithy_client._json,
2594
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2595
+ NumberOfAssociations: import_smithy_client.expectInt32,
2596
+ TLSInspectionConfigurationArn: import_smithy_client.expectString,
2597
+ TLSInspectionConfigurationId: import_smithy_client.expectString,
2598
+ TLSInspectionConfigurationName: import_smithy_client.expectString,
2599
+ TLSInspectionConfigurationStatus: import_smithy_client.expectString,
2600
+ Tags: import_smithy_client._json
2601
+ });
2602
+ }, "de_TLSInspectionConfigurationResponse");
2603
+ var de_UpdateFirewallPolicyResponse = /* @__PURE__ */ __name((output, context) => {
2604
+ return (0, import_smithy_client.take)(output, {
2605
+ FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
2606
+ UpdateToken: import_smithy_client.expectString
2607
+ });
2608
+ }, "de_UpdateFirewallPolicyResponse");
2609
+ var de_UpdateRuleGroupResponse = /* @__PURE__ */ __name((output, context) => {
2610
+ return (0, import_smithy_client.take)(output, {
2611
+ RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
2612
+ UpdateToken: import_smithy_client.expectString
2613
+ });
2614
+ }, "de_UpdateRuleGroupResponse");
2615
+ var de_UpdateTLSInspectionConfigurationResponse = /* @__PURE__ */ __name((output, context) => {
2616
+ return (0, import_smithy_client.take)(output, {
2617
+ TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
2618
+ UpdateToken: import_smithy_client.expectString
2619
+ });
2620
+ }, "de_UpdateTLSInspectionConfigurationResponse");
2621
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2622
+ httpStatusCode: output.statusCode,
2623
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2624
+ extendedRequestId: output.headers["x-amz-id-2"],
2625
+ cfId: output.headers["x-amz-cf-id"]
2626
+ }), "deserializeMetadata");
2627
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2628
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(NetworkFirewallServiceException);
2629
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2630
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2631
+ const contents = {
2632
+ protocol,
2633
+ hostname,
2634
+ port,
2635
+ method: "POST",
2636
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2637
+ headers
2638
+ };
2639
+ if (resolvedHostname !== void 0) {
2640
+ contents.hostname = resolvedHostname;
2641
+ }
2642
+ if (body !== void 0) {
2643
+ contents.body = body;
2644
+ }
2645
+ return new import_protocol_http.HttpRequest(contents);
2646
+ }, "buildHttpRpcRequest");
2647
+ function sharedHeaders(operation) {
2648
+ return {
2649
+ "content-type": "application/x-amz-json-1.0",
2650
+ "x-amz-target": `NetworkFirewall_20201112.${operation}`
2651
+ };
2652
+ }
2653
+ __name(sharedHeaders, "sharedHeaders");
2654
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2655
+ if (encoded.length) {
2656
+ return JSON.parse(encoded);
2657
+ }
2658
+ return {};
2659
+ }), "parseBody");
2660
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2661
+ const value = await parseBody(errorBody, context);
2662
+ value.message = value.message ?? value.Message;
2663
+ return value;
2664
+ }, "parseErrorBody");
2665
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2666
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2667
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2668
+ let cleanValue = rawValue;
2669
+ if (typeof cleanValue === "number") {
2670
+ cleanValue = cleanValue.toString();
2671
+ }
2672
+ if (cleanValue.indexOf(",") >= 0) {
2673
+ cleanValue = cleanValue.split(",")[0];
2674
+ }
2675
+ if (cleanValue.indexOf(":") >= 0) {
2676
+ cleanValue = cleanValue.split(":")[0];
2677
+ }
2678
+ if (cleanValue.indexOf("#") >= 0) {
2679
+ cleanValue = cleanValue.split("#")[1];
2680
+ }
2681
+ return cleanValue;
2682
+ }, "sanitizeErrorCode");
2683
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2684
+ if (headerKey !== void 0) {
2685
+ return sanitizeErrorCode(output.headers[headerKey]);
2686
+ }
2687
+ if (data.code !== void 0) {
2688
+ return sanitizeErrorCode(data.code);
2689
+ }
2690
+ if (data["__type"] !== void 0) {
2691
+ return sanitizeErrorCode(data["__type"]);
2692
+ }
2693
+ }, "loadRestJsonErrorCode");
2694
+
2695
+ // src/commands/AssociateFirewallPolicyCommand.ts
2696
+ var _AssociateFirewallPolicyCommand = class _AssociateFirewallPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2697
+ ...commonParams
2698
+ }).m(function(Command, cs, config, o) {
2699
+ return [
2700
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2701
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2702
+ ];
2703
+ }).s("NetworkFirewall_20201112", "AssociateFirewallPolicy", {}).n("NetworkFirewallClient", "AssociateFirewallPolicyCommand").f(void 0, void 0).ser(se_AssociateFirewallPolicyCommand).de(de_AssociateFirewallPolicyCommand).build() {
2704
+ };
2705
+ __name(_AssociateFirewallPolicyCommand, "AssociateFirewallPolicyCommand");
2706
+ var AssociateFirewallPolicyCommand = _AssociateFirewallPolicyCommand;
2707
+
2708
+ // src/commands/AssociateSubnetsCommand.ts
2709
+
2710
+
2711
+
2712
+
2713
+ var _AssociateSubnetsCommand = class _AssociateSubnetsCommand extends import_smithy_client.Command.classBuilder().ep({
2714
+ ...commonParams
2715
+ }).m(function(Command, cs, config, o) {
2716
+ return [
2717
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2718
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2719
+ ];
2720
+ }).s("NetworkFirewall_20201112", "AssociateSubnets", {}).n("NetworkFirewallClient", "AssociateSubnetsCommand").f(void 0, void 0).ser(se_AssociateSubnetsCommand).de(de_AssociateSubnetsCommand).build() {
2721
+ };
2722
+ __name(_AssociateSubnetsCommand, "AssociateSubnetsCommand");
2723
+ var AssociateSubnetsCommand = _AssociateSubnetsCommand;
2724
+
2725
+ // src/commands/CreateFirewallCommand.ts
2726
+
2727
+
2728
+
2729
+
2730
+ var _CreateFirewallCommand = class _CreateFirewallCommand extends import_smithy_client.Command.classBuilder().ep({
2731
+ ...commonParams
2732
+ }).m(function(Command, cs, config, o) {
2733
+ return [
2734
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2735
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2736
+ ];
2737
+ }).s("NetworkFirewall_20201112", "CreateFirewall", {}).n("NetworkFirewallClient", "CreateFirewallCommand").f(void 0, void 0).ser(se_CreateFirewallCommand).de(de_CreateFirewallCommand).build() {
2738
+ };
2739
+ __name(_CreateFirewallCommand, "CreateFirewallCommand");
2740
+ var CreateFirewallCommand = _CreateFirewallCommand;
2741
+
2742
+ // src/commands/CreateFirewallPolicyCommand.ts
2743
+
2744
+
2745
+
2746
+
2747
+ var _CreateFirewallPolicyCommand = class _CreateFirewallPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2748
+ ...commonParams
2749
+ }).m(function(Command, cs, config, o) {
2750
+ return [
2751
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2752
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2753
+ ];
2754
+ }).s("NetworkFirewall_20201112", "CreateFirewallPolicy", {}).n("NetworkFirewallClient", "CreateFirewallPolicyCommand").f(void 0, void 0).ser(se_CreateFirewallPolicyCommand).de(de_CreateFirewallPolicyCommand).build() {
2755
+ };
2756
+ __name(_CreateFirewallPolicyCommand, "CreateFirewallPolicyCommand");
2757
+ var CreateFirewallPolicyCommand = _CreateFirewallPolicyCommand;
2758
+
2759
+ // src/commands/CreateRuleGroupCommand.ts
2760
+
2761
+
2762
+
2763
+
2764
+ var _CreateRuleGroupCommand = class _CreateRuleGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2765
+ ...commonParams
2766
+ }).m(function(Command, cs, config, o) {
2767
+ return [
2768
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2769
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2770
+ ];
2771
+ }).s("NetworkFirewall_20201112", "CreateRuleGroup", {}).n("NetworkFirewallClient", "CreateRuleGroupCommand").f(void 0, void 0).ser(se_CreateRuleGroupCommand).de(de_CreateRuleGroupCommand).build() {
2772
+ };
2773
+ __name(_CreateRuleGroupCommand, "CreateRuleGroupCommand");
2774
+ var CreateRuleGroupCommand = _CreateRuleGroupCommand;
2775
+
2776
+ // src/commands/CreateTLSInspectionConfigurationCommand.ts
2777
+
2778
+
2779
+
2780
+
2781
+ var _CreateTLSInspectionConfigurationCommand = class _CreateTLSInspectionConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2782
+ ...commonParams
2783
+ }).m(function(Command, cs, config, o) {
2784
+ return [
2785
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2786
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2787
+ ];
2788
+ }).s("NetworkFirewall_20201112", "CreateTLSInspectionConfiguration", {}).n("NetworkFirewallClient", "CreateTLSInspectionConfigurationCommand").f(void 0, void 0).ser(se_CreateTLSInspectionConfigurationCommand).de(de_CreateTLSInspectionConfigurationCommand).build() {
2789
+ };
2790
+ __name(_CreateTLSInspectionConfigurationCommand, "CreateTLSInspectionConfigurationCommand");
2791
+ var CreateTLSInspectionConfigurationCommand = _CreateTLSInspectionConfigurationCommand;
2792
+
2793
+ // src/commands/DeleteFirewallCommand.ts
2794
+
2795
+
2796
+
2797
+
2798
+ var _DeleteFirewallCommand = class _DeleteFirewallCommand extends import_smithy_client.Command.classBuilder().ep({
2799
+ ...commonParams
2800
+ }).m(function(Command, cs, config, o) {
2801
+ return [
2802
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2803
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2804
+ ];
2805
+ }).s("NetworkFirewall_20201112", "DeleteFirewall", {}).n("NetworkFirewallClient", "DeleteFirewallCommand").f(void 0, void 0).ser(se_DeleteFirewallCommand).de(de_DeleteFirewallCommand).build() {
2806
+ };
2807
+ __name(_DeleteFirewallCommand, "DeleteFirewallCommand");
2808
+ var DeleteFirewallCommand = _DeleteFirewallCommand;
2809
+
2810
+ // src/commands/DeleteFirewallPolicyCommand.ts
2811
+
2812
+
2813
+
2814
+
2815
+ var _DeleteFirewallPolicyCommand = class _DeleteFirewallPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2816
+ ...commonParams
2817
+ }).m(function(Command, cs, config, o) {
2818
+ return [
2819
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2820
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2821
+ ];
2822
+ }).s("NetworkFirewall_20201112", "DeleteFirewallPolicy", {}).n("NetworkFirewallClient", "DeleteFirewallPolicyCommand").f(void 0, void 0).ser(se_DeleteFirewallPolicyCommand).de(de_DeleteFirewallPolicyCommand).build() {
2823
+ };
2824
+ __name(_DeleteFirewallPolicyCommand, "DeleteFirewallPolicyCommand");
2825
+ var DeleteFirewallPolicyCommand = _DeleteFirewallPolicyCommand;
2826
+
2827
+ // src/commands/DeleteResourcePolicyCommand.ts
2828
+
2829
+
2830
+
2831
+
2832
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2833
+ ...commonParams
2834
+ }).m(function(Command, cs, config, o) {
2835
+ return [
2836
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2837
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2838
+ ];
2839
+ }).s("NetworkFirewall_20201112", "DeleteResourcePolicy", {}).n("NetworkFirewallClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
2840
+ };
2841
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
2842
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
2843
+
2844
+ // src/commands/DeleteRuleGroupCommand.ts
2845
+
2846
+
2847
+
2848
+
2849
+ var _DeleteRuleGroupCommand = class _DeleteRuleGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2850
+ ...commonParams
2851
+ }).m(function(Command, cs, config, o) {
2852
+ return [
2853
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2854
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2855
+ ];
2856
+ }).s("NetworkFirewall_20201112", "DeleteRuleGroup", {}).n("NetworkFirewallClient", "DeleteRuleGroupCommand").f(void 0, void 0).ser(se_DeleteRuleGroupCommand).de(de_DeleteRuleGroupCommand).build() {
2857
+ };
2858
+ __name(_DeleteRuleGroupCommand, "DeleteRuleGroupCommand");
2859
+ var DeleteRuleGroupCommand = _DeleteRuleGroupCommand;
2860
+
2861
+ // src/commands/DeleteTLSInspectionConfigurationCommand.ts
2862
+
2863
+
2864
+
2865
+
2866
+ var _DeleteTLSInspectionConfigurationCommand = class _DeleteTLSInspectionConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2867
+ ...commonParams
2868
+ }).m(function(Command, cs, config, o) {
2869
+ return [
2870
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2871
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2872
+ ];
2873
+ }).s("NetworkFirewall_20201112", "DeleteTLSInspectionConfiguration", {}).n("NetworkFirewallClient", "DeleteTLSInspectionConfigurationCommand").f(void 0, void 0).ser(se_DeleteTLSInspectionConfigurationCommand).de(de_DeleteTLSInspectionConfigurationCommand).build() {
2874
+ };
2875
+ __name(_DeleteTLSInspectionConfigurationCommand, "DeleteTLSInspectionConfigurationCommand");
2876
+ var DeleteTLSInspectionConfigurationCommand = _DeleteTLSInspectionConfigurationCommand;
2877
+
2878
+ // src/commands/DescribeFirewallCommand.ts
2879
+
2880
+
2881
+
2882
+
2883
+ var _DescribeFirewallCommand = class _DescribeFirewallCommand extends import_smithy_client.Command.classBuilder().ep({
2884
+ ...commonParams
2885
+ }).m(function(Command, cs, config, o) {
2886
+ return [
2887
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2888
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2889
+ ];
2890
+ }).s("NetworkFirewall_20201112", "DescribeFirewall", {}).n("NetworkFirewallClient", "DescribeFirewallCommand").f(void 0, void 0).ser(se_DescribeFirewallCommand).de(de_DescribeFirewallCommand).build() {
2891
+ };
2892
+ __name(_DescribeFirewallCommand, "DescribeFirewallCommand");
2893
+ var DescribeFirewallCommand = _DescribeFirewallCommand;
2894
+
2895
+ // src/commands/DescribeFirewallPolicyCommand.ts
2896
+
2897
+
2898
+
2899
+
2900
+ var _DescribeFirewallPolicyCommand = class _DescribeFirewallPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2901
+ ...commonParams
2902
+ }).m(function(Command, cs, config, o) {
2903
+ return [
2904
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2905
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2906
+ ];
2907
+ }).s("NetworkFirewall_20201112", "DescribeFirewallPolicy", {}).n("NetworkFirewallClient", "DescribeFirewallPolicyCommand").f(void 0, void 0).ser(se_DescribeFirewallPolicyCommand).de(de_DescribeFirewallPolicyCommand).build() {
2908
+ };
2909
+ __name(_DescribeFirewallPolicyCommand, "DescribeFirewallPolicyCommand");
2910
+ var DescribeFirewallPolicyCommand = _DescribeFirewallPolicyCommand;
2911
+
2912
+ // src/commands/DescribeLoggingConfigurationCommand.ts
2913
+
2914
+
2915
+
2916
+
2917
+ var _DescribeLoggingConfigurationCommand = class _DescribeLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2918
+ ...commonParams
2919
+ }).m(function(Command, cs, config, o) {
2920
+ return [
2921
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2922
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2923
+ ];
2924
+ }).s("NetworkFirewall_20201112", "DescribeLoggingConfiguration", {}).n("NetworkFirewallClient", "DescribeLoggingConfigurationCommand").f(void 0, void 0).ser(se_DescribeLoggingConfigurationCommand).de(de_DescribeLoggingConfigurationCommand).build() {
2925
+ };
2926
+ __name(_DescribeLoggingConfigurationCommand, "DescribeLoggingConfigurationCommand");
2927
+ var DescribeLoggingConfigurationCommand = _DescribeLoggingConfigurationCommand;
2928
+
2929
+ // src/commands/DescribeResourcePolicyCommand.ts
2930
+
2931
+
2932
+
2933
+
2934
+ var _DescribeResourcePolicyCommand = class _DescribeResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2935
+ ...commonParams
2936
+ }).m(function(Command, cs, config, o) {
2937
+ return [
2938
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2939
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2940
+ ];
2941
+ }).s("NetworkFirewall_20201112", "DescribeResourcePolicy", {}).n("NetworkFirewallClient", "DescribeResourcePolicyCommand").f(void 0, void 0).ser(se_DescribeResourcePolicyCommand).de(de_DescribeResourcePolicyCommand).build() {
2942
+ };
2943
+ __name(_DescribeResourcePolicyCommand, "DescribeResourcePolicyCommand");
2944
+ var DescribeResourcePolicyCommand = _DescribeResourcePolicyCommand;
2945
+
2946
+ // src/commands/DescribeRuleGroupCommand.ts
2947
+
2948
+
2949
+
2950
+
2951
+ var _DescribeRuleGroupCommand = class _DescribeRuleGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2952
+ ...commonParams
2953
+ }).m(function(Command, cs, config, o) {
2954
+ return [
2955
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2956
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2957
+ ];
2958
+ }).s("NetworkFirewall_20201112", "DescribeRuleGroup", {}).n("NetworkFirewallClient", "DescribeRuleGroupCommand").f(void 0, void 0).ser(se_DescribeRuleGroupCommand).de(de_DescribeRuleGroupCommand).build() {
2959
+ };
2960
+ __name(_DescribeRuleGroupCommand, "DescribeRuleGroupCommand");
2961
+ var DescribeRuleGroupCommand = _DescribeRuleGroupCommand;
2962
+
2963
+ // src/commands/DescribeRuleGroupMetadataCommand.ts
2964
+
2965
+
2966
+
2967
+
2968
+ var _DescribeRuleGroupMetadataCommand = class _DescribeRuleGroupMetadataCommand extends import_smithy_client.Command.classBuilder().ep({
2969
+ ...commonParams
2970
+ }).m(function(Command, cs, config, o) {
2971
+ return [
2972
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2973
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2974
+ ];
2975
+ }).s("NetworkFirewall_20201112", "DescribeRuleGroupMetadata", {}).n("NetworkFirewallClient", "DescribeRuleGroupMetadataCommand").f(void 0, void 0).ser(se_DescribeRuleGroupMetadataCommand).de(de_DescribeRuleGroupMetadataCommand).build() {
2976
+ };
2977
+ __name(_DescribeRuleGroupMetadataCommand, "DescribeRuleGroupMetadataCommand");
2978
+ var DescribeRuleGroupMetadataCommand = _DescribeRuleGroupMetadataCommand;
2979
+
2980
+ // src/commands/DescribeTLSInspectionConfigurationCommand.ts
2981
+
2982
+
2983
+
2984
+
2985
+ var _DescribeTLSInspectionConfigurationCommand = class _DescribeTLSInspectionConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2986
+ ...commonParams
2987
+ }).m(function(Command, cs, config, o) {
2988
+ return [
2989
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2990
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2991
+ ];
2992
+ }).s("NetworkFirewall_20201112", "DescribeTLSInspectionConfiguration", {}).n("NetworkFirewallClient", "DescribeTLSInspectionConfigurationCommand").f(void 0, void 0).ser(se_DescribeTLSInspectionConfigurationCommand).de(de_DescribeTLSInspectionConfigurationCommand).build() {
2993
+ };
2994
+ __name(_DescribeTLSInspectionConfigurationCommand, "DescribeTLSInspectionConfigurationCommand");
2995
+ var DescribeTLSInspectionConfigurationCommand = _DescribeTLSInspectionConfigurationCommand;
2996
+
2997
+ // src/commands/DisassociateSubnetsCommand.ts
2998
+
2999
+
3000
+
3001
+
3002
+ var _DisassociateSubnetsCommand = class _DisassociateSubnetsCommand extends import_smithy_client.Command.classBuilder().ep({
3003
+ ...commonParams
3004
+ }).m(function(Command, cs, config, o) {
3005
+ return [
3006
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3007
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3008
+ ];
3009
+ }).s("NetworkFirewall_20201112", "DisassociateSubnets", {}).n("NetworkFirewallClient", "DisassociateSubnetsCommand").f(void 0, void 0).ser(se_DisassociateSubnetsCommand).de(de_DisassociateSubnetsCommand).build() {
3010
+ };
3011
+ __name(_DisassociateSubnetsCommand, "DisassociateSubnetsCommand");
3012
+ var DisassociateSubnetsCommand = _DisassociateSubnetsCommand;
3013
+
3014
+ // src/commands/ListFirewallPoliciesCommand.ts
3015
+
3016
+
3017
+
3018
+
3019
+ var _ListFirewallPoliciesCommand = class _ListFirewallPoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
3020
+ ...commonParams
3021
+ }).m(function(Command, cs, config, o) {
3022
+ return [
3023
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3024
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3025
+ ];
3026
+ }).s("NetworkFirewall_20201112", "ListFirewallPolicies", {}).n("NetworkFirewallClient", "ListFirewallPoliciesCommand").f(void 0, void 0).ser(se_ListFirewallPoliciesCommand).de(de_ListFirewallPoliciesCommand).build() {
3027
+ };
3028
+ __name(_ListFirewallPoliciesCommand, "ListFirewallPoliciesCommand");
3029
+ var ListFirewallPoliciesCommand = _ListFirewallPoliciesCommand;
3030
+
3031
+ // src/commands/ListFirewallsCommand.ts
3032
+
3033
+
3034
+
3035
+
3036
+ var _ListFirewallsCommand = class _ListFirewallsCommand extends import_smithy_client.Command.classBuilder().ep({
3037
+ ...commonParams
3038
+ }).m(function(Command, cs, config, o) {
3039
+ return [
3040
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3041
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3042
+ ];
3043
+ }).s("NetworkFirewall_20201112", "ListFirewalls", {}).n("NetworkFirewallClient", "ListFirewallsCommand").f(void 0, void 0).ser(se_ListFirewallsCommand).de(de_ListFirewallsCommand).build() {
3044
+ };
3045
+ __name(_ListFirewallsCommand, "ListFirewallsCommand");
3046
+ var ListFirewallsCommand = _ListFirewallsCommand;
3047
+
3048
+ // src/commands/ListRuleGroupsCommand.ts
3049
+
3050
+
3051
+
3052
+
3053
+ var _ListRuleGroupsCommand = class _ListRuleGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
3054
+ ...commonParams
3055
+ }).m(function(Command, cs, config, o) {
3056
+ return [
3057
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3058
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3059
+ ];
3060
+ }).s("NetworkFirewall_20201112", "ListRuleGroups", {}).n("NetworkFirewallClient", "ListRuleGroupsCommand").f(void 0, void 0).ser(se_ListRuleGroupsCommand).de(de_ListRuleGroupsCommand).build() {
3061
+ };
3062
+ __name(_ListRuleGroupsCommand, "ListRuleGroupsCommand");
3063
+ var ListRuleGroupsCommand = _ListRuleGroupsCommand;
3064
+
3065
+ // src/commands/ListTagsForResourceCommand.ts
3066
+
3067
+
3068
+
3069
+
3070
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3071
+ ...commonParams
3072
+ }).m(function(Command, cs, config, o) {
3073
+ return [
3074
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3075
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3076
+ ];
3077
+ }).s("NetworkFirewall_20201112", "ListTagsForResource", {}).n("NetworkFirewallClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
3078
+ };
3079
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
3080
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
3081
+
3082
+ // src/commands/ListTLSInspectionConfigurationsCommand.ts
3083
+
3084
+
3085
+
3086
+
3087
+ var _ListTLSInspectionConfigurationsCommand = class _ListTLSInspectionConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
3088
+ ...commonParams
3089
+ }).m(function(Command, cs, config, o) {
3090
+ return [
3091
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3092
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3093
+ ];
3094
+ }).s("NetworkFirewall_20201112", "ListTLSInspectionConfigurations", {}).n("NetworkFirewallClient", "ListTLSInspectionConfigurationsCommand").f(void 0, void 0).ser(se_ListTLSInspectionConfigurationsCommand).de(de_ListTLSInspectionConfigurationsCommand).build() {
3095
+ };
3096
+ __name(_ListTLSInspectionConfigurationsCommand, "ListTLSInspectionConfigurationsCommand");
3097
+ var ListTLSInspectionConfigurationsCommand = _ListTLSInspectionConfigurationsCommand;
3098
+
3099
+ // src/commands/PutResourcePolicyCommand.ts
3100
+
3101
+
3102
+
3103
+
3104
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
3105
+ ...commonParams
3106
+ }).m(function(Command, cs, config, o) {
3107
+ return [
3108
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3109
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3110
+ ];
3111
+ }).s("NetworkFirewall_20201112", "PutResourcePolicy", {}).n("NetworkFirewallClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
3112
+ };
3113
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
3114
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
3115
+
3116
+ // src/commands/TagResourceCommand.ts
3117
+
3118
+
3119
+
3120
+
3121
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3122
+ ...commonParams
3123
+ }).m(function(Command, cs, config, o) {
3124
+ return [
3125
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3126
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3127
+ ];
3128
+ }).s("NetworkFirewall_20201112", "TagResource", {}).n("NetworkFirewallClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
3129
+ };
3130
+ __name(_TagResourceCommand, "TagResourceCommand");
3131
+ var TagResourceCommand = _TagResourceCommand;
3132
+
3133
+ // src/commands/UntagResourceCommand.ts
3134
+
3135
+
3136
+
3137
+
3138
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3139
+ ...commonParams
3140
+ }).m(function(Command, cs, config, o) {
3141
+ return [
3142
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3143
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3144
+ ];
3145
+ }).s("NetworkFirewall_20201112", "UntagResource", {}).n("NetworkFirewallClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3146
+ };
3147
+ __name(_UntagResourceCommand, "UntagResourceCommand");
3148
+ var UntagResourceCommand = _UntagResourceCommand;
3149
+
3150
+ // src/commands/UpdateFirewallDeleteProtectionCommand.ts
3151
+
3152
+
3153
+
3154
+
3155
+ var _UpdateFirewallDeleteProtectionCommand = class _UpdateFirewallDeleteProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
3156
+ ...commonParams
3157
+ }).m(function(Command, cs, config, o) {
3158
+ return [
3159
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3160
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3161
+ ];
3162
+ }).s("NetworkFirewall_20201112", "UpdateFirewallDeleteProtection", {}).n("NetworkFirewallClient", "UpdateFirewallDeleteProtectionCommand").f(void 0, void 0).ser(se_UpdateFirewallDeleteProtectionCommand).de(de_UpdateFirewallDeleteProtectionCommand).build() {
3163
+ };
3164
+ __name(_UpdateFirewallDeleteProtectionCommand, "UpdateFirewallDeleteProtectionCommand");
3165
+ var UpdateFirewallDeleteProtectionCommand = _UpdateFirewallDeleteProtectionCommand;
3166
+
3167
+ // src/commands/UpdateFirewallDescriptionCommand.ts
3168
+
3169
+
3170
+
3171
+
3172
+ var _UpdateFirewallDescriptionCommand = class _UpdateFirewallDescriptionCommand extends import_smithy_client.Command.classBuilder().ep({
3173
+ ...commonParams
3174
+ }).m(function(Command, cs, config, o) {
3175
+ return [
3176
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3177
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3178
+ ];
3179
+ }).s("NetworkFirewall_20201112", "UpdateFirewallDescription", {}).n("NetworkFirewallClient", "UpdateFirewallDescriptionCommand").f(void 0, void 0).ser(se_UpdateFirewallDescriptionCommand).de(de_UpdateFirewallDescriptionCommand).build() {
3180
+ };
3181
+ __name(_UpdateFirewallDescriptionCommand, "UpdateFirewallDescriptionCommand");
3182
+ var UpdateFirewallDescriptionCommand = _UpdateFirewallDescriptionCommand;
3183
+
3184
+ // src/commands/UpdateFirewallEncryptionConfigurationCommand.ts
3185
+
3186
+
3187
+
3188
+
3189
+ var _UpdateFirewallEncryptionConfigurationCommand = class _UpdateFirewallEncryptionConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
3190
+ ...commonParams
3191
+ }).m(function(Command, cs, config, o) {
3192
+ return [
3193
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3194
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3195
+ ];
3196
+ }).s("NetworkFirewall_20201112", "UpdateFirewallEncryptionConfiguration", {}).n("NetworkFirewallClient", "UpdateFirewallEncryptionConfigurationCommand").f(void 0, void 0).ser(se_UpdateFirewallEncryptionConfigurationCommand).de(de_UpdateFirewallEncryptionConfigurationCommand).build() {
3197
+ };
3198
+ __name(_UpdateFirewallEncryptionConfigurationCommand, "UpdateFirewallEncryptionConfigurationCommand");
3199
+ var UpdateFirewallEncryptionConfigurationCommand = _UpdateFirewallEncryptionConfigurationCommand;
3200
+
3201
+ // src/commands/UpdateFirewallPolicyChangeProtectionCommand.ts
3202
+
3203
+
3204
+
3205
+
3206
+ var _UpdateFirewallPolicyChangeProtectionCommand = class _UpdateFirewallPolicyChangeProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
3207
+ ...commonParams
3208
+ }).m(function(Command, cs, config, o) {
3209
+ return [
3210
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3211
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3212
+ ];
3213
+ }).s("NetworkFirewall_20201112", "UpdateFirewallPolicyChangeProtection", {}).n("NetworkFirewallClient", "UpdateFirewallPolicyChangeProtectionCommand").f(void 0, void 0).ser(se_UpdateFirewallPolicyChangeProtectionCommand).de(de_UpdateFirewallPolicyChangeProtectionCommand).build() {
3214
+ };
3215
+ __name(_UpdateFirewallPolicyChangeProtectionCommand, "UpdateFirewallPolicyChangeProtectionCommand");
3216
+ var UpdateFirewallPolicyChangeProtectionCommand = _UpdateFirewallPolicyChangeProtectionCommand;
3217
+
3218
+ // src/commands/UpdateFirewallPolicyCommand.ts
3219
+
3220
+
3221
+
3222
+
3223
+ var _UpdateFirewallPolicyCommand = class _UpdateFirewallPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
3224
+ ...commonParams
3225
+ }).m(function(Command, cs, config, o) {
3226
+ return [
3227
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3228
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3229
+ ];
3230
+ }).s("NetworkFirewall_20201112", "UpdateFirewallPolicy", {}).n("NetworkFirewallClient", "UpdateFirewallPolicyCommand").f(void 0, void 0).ser(se_UpdateFirewallPolicyCommand).de(de_UpdateFirewallPolicyCommand).build() {
3231
+ };
3232
+ __name(_UpdateFirewallPolicyCommand, "UpdateFirewallPolicyCommand");
3233
+ var UpdateFirewallPolicyCommand = _UpdateFirewallPolicyCommand;
3234
+
3235
+ // src/commands/UpdateLoggingConfigurationCommand.ts
3236
+
3237
+
3238
+
3239
+
3240
+ var _UpdateLoggingConfigurationCommand = class _UpdateLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
3241
+ ...commonParams
3242
+ }).m(function(Command, cs, config, o) {
3243
+ return [
3244
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3245
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3246
+ ];
3247
+ }).s("NetworkFirewall_20201112", "UpdateLoggingConfiguration", {}).n("NetworkFirewallClient", "UpdateLoggingConfigurationCommand").f(void 0, void 0).ser(se_UpdateLoggingConfigurationCommand).de(de_UpdateLoggingConfigurationCommand).build() {
3248
+ };
3249
+ __name(_UpdateLoggingConfigurationCommand, "UpdateLoggingConfigurationCommand");
3250
+ var UpdateLoggingConfigurationCommand = _UpdateLoggingConfigurationCommand;
3251
+
3252
+ // src/commands/UpdateRuleGroupCommand.ts
3253
+
3254
+
3255
+
3256
+
3257
+ var _UpdateRuleGroupCommand = class _UpdateRuleGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3258
+ ...commonParams
3259
+ }).m(function(Command, cs, config, o) {
3260
+ return [
3261
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3262
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3263
+ ];
3264
+ }).s("NetworkFirewall_20201112", "UpdateRuleGroup", {}).n("NetworkFirewallClient", "UpdateRuleGroupCommand").f(void 0, void 0).ser(se_UpdateRuleGroupCommand).de(de_UpdateRuleGroupCommand).build() {
3265
+ };
3266
+ __name(_UpdateRuleGroupCommand, "UpdateRuleGroupCommand");
3267
+ var UpdateRuleGroupCommand = _UpdateRuleGroupCommand;
3268
+
3269
+ // src/commands/UpdateSubnetChangeProtectionCommand.ts
3270
+
3271
+
3272
+
3273
+
3274
+ var _UpdateSubnetChangeProtectionCommand = class _UpdateSubnetChangeProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
3275
+ ...commonParams
3276
+ }).m(function(Command, cs, config, o) {
3277
+ return [
3278
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3279
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3280
+ ];
3281
+ }).s("NetworkFirewall_20201112", "UpdateSubnetChangeProtection", {}).n("NetworkFirewallClient", "UpdateSubnetChangeProtectionCommand").f(void 0, void 0).ser(se_UpdateSubnetChangeProtectionCommand).de(de_UpdateSubnetChangeProtectionCommand).build() {
3282
+ };
3283
+ __name(_UpdateSubnetChangeProtectionCommand, "UpdateSubnetChangeProtectionCommand");
3284
+ var UpdateSubnetChangeProtectionCommand = _UpdateSubnetChangeProtectionCommand;
3285
+
3286
+ // src/commands/UpdateTLSInspectionConfigurationCommand.ts
3287
+
3288
+
3289
+
3290
+
3291
+ var _UpdateTLSInspectionConfigurationCommand = class _UpdateTLSInspectionConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
3292
+ ...commonParams
3293
+ }).m(function(Command, cs, config, o) {
3294
+ return [
3295
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3296
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3297
+ ];
3298
+ }).s("NetworkFirewall_20201112", "UpdateTLSInspectionConfiguration", {}).n("NetworkFirewallClient", "UpdateTLSInspectionConfigurationCommand").f(void 0, void 0).ser(se_UpdateTLSInspectionConfigurationCommand).de(de_UpdateTLSInspectionConfigurationCommand).build() {
3299
+ };
3300
+ __name(_UpdateTLSInspectionConfigurationCommand, "UpdateTLSInspectionConfigurationCommand");
3301
+ var UpdateTLSInspectionConfigurationCommand = _UpdateTLSInspectionConfigurationCommand;
3302
+
3303
+ // src/NetworkFirewall.ts
3304
+ var commands = {
3305
+ AssociateFirewallPolicyCommand,
3306
+ AssociateSubnetsCommand,
3307
+ CreateFirewallCommand,
3308
+ CreateFirewallPolicyCommand,
3309
+ CreateRuleGroupCommand,
3310
+ CreateTLSInspectionConfigurationCommand,
3311
+ DeleteFirewallCommand,
3312
+ DeleteFirewallPolicyCommand,
3313
+ DeleteResourcePolicyCommand,
3314
+ DeleteRuleGroupCommand,
3315
+ DeleteTLSInspectionConfigurationCommand,
3316
+ DescribeFirewallCommand,
3317
+ DescribeFirewallPolicyCommand,
3318
+ DescribeLoggingConfigurationCommand,
3319
+ DescribeResourcePolicyCommand,
3320
+ DescribeRuleGroupCommand,
3321
+ DescribeRuleGroupMetadataCommand,
3322
+ DescribeTLSInspectionConfigurationCommand,
3323
+ DisassociateSubnetsCommand,
3324
+ ListFirewallPoliciesCommand,
3325
+ ListFirewallsCommand,
3326
+ ListRuleGroupsCommand,
3327
+ ListTagsForResourceCommand,
3328
+ ListTLSInspectionConfigurationsCommand,
3329
+ PutResourcePolicyCommand,
3330
+ TagResourceCommand,
3331
+ UntagResourceCommand,
3332
+ UpdateFirewallDeleteProtectionCommand,
3333
+ UpdateFirewallDescriptionCommand,
3334
+ UpdateFirewallEncryptionConfigurationCommand,
3335
+ UpdateFirewallPolicyCommand,
3336
+ UpdateFirewallPolicyChangeProtectionCommand,
3337
+ UpdateLoggingConfigurationCommand,
3338
+ UpdateRuleGroupCommand,
3339
+ UpdateSubnetChangeProtectionCommand,
3340
+ UpdateTLSInspectionConfigurationCommand
3341
+ };
3342
+ var _NetworkFirewall = class _NetworkFirewall extends NetworkFirewallClient {
3343
+ };
3344
+ __name(_NetworkFirewall, "NetworkFirewall");
3345
+ var NetworkFirewall = _NetworkFirewall;
3346
+ (0, import_smithy_client.createAggregatedClient)(commands, NetworkFirewall);
3347
+
3348
+ // src/pagination/ListFirewallPoliciesPaginator.ts
3349
+ var import_core = require("@smithy/core");
3350
+ var paginateListFirewallPolicies = (0, import_core.createPaginator)(NetworkFirewallClient, ListFirewallPoliciesCommand, "NextToken", "NextToken", "MaxResults");
3351
+
3352
+ // src/pagination/ListFirewallsPaginator.ts
3353
+
3354
+ var paginateListFirewalls = (0, import_core.createPaginator)(NetworkFirewallClient, ListFirewallsCommand, "NextToken", "NextToken", "MaxResults");
3355
+
3356
+ // src/pagination/ListRuleGroupsPaginator.ts
3357
+
3358
+ var paginateListRuleGroups = (0, import_core.createPaginator)(NetworkFirewallClient, ListRuleGroupsCommand, "NextToken", "NextToken", "MaxResults");
3359
+
3360
+ // src/pagination/ListTLSInspectionConfigurationsPaginator.ts
3361
+
3362
+ var paginateListTLSInspectionConfigurations = (0, import_core.createPaginator)(NetworkFirewallClient, ListTLSInspectionConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
3363
+
3364
+ // src/pagination/ListTagsForResourcePaginator.ts
3365
+
3366
+ var paginateListTagsForResource = (0, import_core.createPaginator)(NetworkFirewallClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
3367
+
3368
+ // src/index.ts
3369
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3370
+ // Annotate the CommonJS export names for ESM import in node:
3371
+
3372
+ 0 && (module.exports = {
3373
+ AssociateFirewallPolicyCommand,
3374
+ AssociateSubnetsCommand,
3375
+ AttachmentStatus,
3376
+ ConfigurationSyncState,
3377
+ CreateFirewallCommand,
3378
+ CreateFirewallPolicyCommand,
3379
+ CreateRuleGroupCommand,
3380
+ CreateTLSInspectionConfigurationCommand,
3381
+ DeleteFirewallCommand,
3382
+ DeleteFirewallPolicyCommand,
3383
+ DeleteResourcePolicyCommand,
3384
+ DeleteRuleGroupCommand,
3385
+ DeleteTLSInspectionConfigurationCommand,
3386
+ DescribeFirewallCommand,
3387
+ DescribeFirewallPolicyCommand,
3388
+ DescribeLoggingConfigurationCommand,
3389
+ DescribeResourcePolicyCommand,
3390
+ DescribeRuleGroupCommand,
3391
+ DescribeRuleGroupMetadataCommand,
3392
+ DescribeTLSInspectionConfigurationCommand,
3393
+ DisassociateSubnetsCommand,
3394
+ EncryptionType,
3395
+ FirewallStatusValue,
3396
+ GeneratedRulesType,
3397
+ IPAddressType,
3398
+ IdentifiedType,
3399
+ InsufficientCapacityException,
3400
+ InternalServerError,
3401
+ InvalidOperationException,
3402
+ InvalidRequestException,
3403
+ InvalidResourcePolicyException,
3404
+ InvalidTokenException,
3405
+ LimitExceededException,
3406
+ ListFirewallPoliciesCommand,
3407
+ ListFirewallsCommand,
3408
+ ListRuleGroupsCommand,
3409
+ ListTLSInspectionConfigurationsCommand,
3410
+ ListTagsForResourceCommand,
3411
+ LogDestinationPermissionException,
3412
+ LogDestinationType,
3413
+ LogType,
3414
+ NetworkFirewall,
3415
+ NetworkFirewallClient,
3416
+ NetworkFirewallServiceException,
3417
+ OverrideAction,
3418
+ PerObjectSyncStatus,
3419
+ PutResourcePolicyCommand,
3420
+ ResourceManagedStatus,
3421
+ ResourceManagedType,
3422
+ ResourceNotFoundException,
3423
+ ResourceOwnerCheckException,
3424
+ ResourceStatus,
3425
+ RevocationCheckAction,
3426
+ RuleGroupType,
3427
+ RuleOrder,
3428
+ StatefulAction,
3429
+ StatefulRuleDirection,
3430
+ StatefulRuleProtocol,
3431
+ StreamExceptionPolicy,
3432
+ TCPFlag,
3433
+ TagResourceCommand,
3434
+ TargetType,
3435
+ ThrottlingException,
3436
+ UnsupportedOperationException,
3437
+ UntagResourceCommand,
3438
+ UpdateFirewallDeleteProtectionCommand,
3439
+ UpdateFirewallDescriptionCommand,
3440
+ UpdateFirewallEncryptionConfigurationCommand,
3441
+ UpdateFirewallPolicyChangeProtectionCommand,
3442
+ UpdateFirewallPolicyCommand,
3443
+ UpdateLoggingConfigurationCommand,
3444
+ UpdateRuleGroupCommand,
3445
+ UpdateSubnetChangeProtectionCommand,
3446
+ UpdateTLSInspectionConfigurationCommand,
3447
+ __Client,
3448
+ paginateListFirewallPolicies,
3449
+ paginateListFirewalls,
3450
+ paginateListRuleGroups,
3451
+ paginateListTLSInspectionConfigurations,
3452
+ paginateListTagsForResource
3453
+ });
3454
+