@aws-sdk/client-shield 3.490.0 → 3.495.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 (54) hide show
  1. package/dist-cjs/Shield.js +1 -83
  2. package/dist-cjs/ShieldClient.js +1 -43
  3. package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +1 -28
  4. package/dist-cjs/commands/AssociateDRTRoleCommand.js +1 -28
  5. package/dist-cjs/commands/AssociateHealthCheckCommand.js +1 -28
  6. package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +1 -28
  7. package/dist-cjs/commands/CreateProtectionCommand.js +1 -28
  8. package/dist-cjs/commands/CreateProtectionGroupCommand.js +1 -28
  9. package/dist-cjs/commands/CreateSubscriptionCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteProtectionCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteProtectionGroupCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteSubscriptionCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeAttackCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeDRTAccessCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeProtectionCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeProtectionGroupCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeSubscriptionCommand.js +1 -28
  20. package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +1 -28
  21. package/dist-cjs/commands/DisableProactiveEngagementCommand.js +1 -28
  22. package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +1 -28
  23. package/dist-cjs/commands/DisassociateDRTRoleCommand.js +1 -28
  24. package/dist-cjs/commands/DisassociateHealthCheckCommand.js +1 -28
  25. package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +1 -28
  26. package/dist-cjs/commands/EnableProactiveEngagementCommand.js +1 -28
  27. package/dist-cjs/commands/GetSubscriptionStateCommand.js +1 -28
  28. package/dist-cjs/commands/ListAttacksCommand.js +1 -28
  29. package/dist-cjs/commands/ListProtectionGroupsCommand.js +1 -28
  30. package/dist-cjs/commands/ListProtectionsCommand.js +1 -28
  31. package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +1 -28
  32. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  33. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  34. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  35. package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +1 -28
  36. package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +1 -28
  37. package/dist-cjs/commands/UpdateProtectionGroupCommand.js +1 -28
  38. package/dist-cjs/commands/UpdateSubscriptionCommand.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 +3267 -11
  43. package/dist-cjs/models/ShieldServiceException.js +1 -12
  44. package/dist-cjs/models/index.js +1 -4
  45. package/dist-cjs/models/models_0.js +1 -242
  46. package/dist-cjs/pagination/Interfaces.js +1 -2
  47. package/dist-cjs/pagination/ListAttacksPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListProtectionGroupsPaginator.js +1 -7
  49. package/dist-cjs/pagination/ListProtectionsPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js +1 -7
  51. package/dist-cjs/pagination/index.js +1 -8
  52. package/dist-cjs/protocols/Aws_json1_1.js +1 -2113
  53. package/dist-cjs/runtimeExtensions.js +1 -22
  54. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3268 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShieldServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ShieldClient"), exports);
6
- tslib_1.__exportStar(require("./Shield"), 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 ShieldServiceException_1 = require("./models/ShieldServiceException");
12
- Object.defineProperty(exports, "ShieldServiceException", { enumerable: true, get: function () { return ShieldServiceException_1.ShieldServiceException; } });
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
+ AccessDeniedException: () => AccessDeniedException,
25
+ AccessDeniedForDependencyException: () => AccessDeniedForDependencyException,
26
+ ApplicationLayerAutomaticResponseStatus: () => ApplicationLayerAutomaticResponseStatus,
27
+ AssociateDRTLogBucketCommand: () => AssociateDRTLogBucketCommand,
28
+ AssociateDRTRoleCommand: () => AssociateDRTRoleCommand,
29
+ AssociateHealthCheckCommand: () => AssociateHealthCheckCommand,
30
+ AssociateProactiveEngagementDetailsCommand: () => AssociateProactiveEngagementDetailsCommand,
31
+ AttackLayer: () => AttackLayer,
32
+ AttackPropertyIdentifier: () => AttackPropertyIdentifier,
33
+ AutoRenew: () => AutoRenew,
34
+ CreateProtectionCommand: () => CreateProtectionCommand,
35
+ CreateProtectionGroupCommand: () => CreateProtectionGroupCommand,
36
+ CreateSubscriptionCommand: () => CreateSubscriptionCommand,
37
+ DeleteProtectionCommand: () => DeleteProtectionCommand,
38
+ DeleteProtectionGroupCommand: () => DeleteProtectionGroupCommand,
39
+ DeleteSubscriptionCommand: () => DeleteSubscriptionCommand,
40
+ DescribeAttackCommand: () => DescribeAttackCommand,
41
+ DescribeAttackStatisticsCommand: () => DescribeAttackStatisticsCommand,
42
+ DescribeDRTAccessCommand: () => DescribeDRTAccessCommand,
43
+ DescribeEmergencyContactSettingsCommand: () => DescribeEmergencyContactSettingsCommand,
44
+ DescribeProtectionCommand: () => DescribeProtectionCommand,
45
+ DescribeProtectionGroupCommand: () => DescribeProtectionGroupCommand,
46
+ DescribeSubscriptionCommand: () => DescribeSubscriptionCommand,
47
+ DisableApplicationLayerAutomaticResponseCommand: () => DisableApplicationLayerAutomaticResponseCommand,
48
+ DisableProactiveEngagementCommand: () => DisableProactiveEngagementCommand,
49
+ DisassociateDRTLogBucketCommand: () => DisassociateDRTLogBucketCommand,
50
+ DisassociateDRTRoleCommand: () => DisassociateDRTRoleCommand,
51
+ DisassociateHealthCheckCommand: () => DisassociateHealthCheckCommand,
52
+ EnableApplicationLayerAutomaticResponseCommand: () => EnableApplicationLayerAutomaticResponseCommand,
53
+ EnableProactiveEngagementCommand: () => EnableProactiveEngagementCommand,
54
+ GetSubscriptionStateCommand: () => GetSubscriptionStateCommand,
55
+ InternalErrorException: () => InternalErrorException,
56
+ InvalidOperationException: () => InvalidOperationException,
57
+ InvalidPaginationTokenException: () => InvalidPaginationTokenException,
58
+ InvalidParameterException: () => InvalidParameterException,
59
+ InvalidResourceException: () => InvalidResourceException,
60
+ LimitsExceededException: () => LimitsExceededException,
61
+ ListAttacksCommand: () => ListAttacksCommand,
62
+ ListProtectionGroupsCommand: () => ListProtectionGroupsCommand,
63
+ ListProtectionsCommand: () => ListProtectionsCommand,
64
+ ListResourcesInProtectionGroupCommand: () => ListResourcesInProtectionGroupCommand,
65
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
66
+ LockedSubscriptionException: () => LockedSubscriptionException,
67
+ NoAssociatedRoleException: () => NoAssociatedRoleException,
68
+ OptimisticLockException: () => OptimisticLockException,
69
+ ProactiveEngagementStatus: () => ProactiveEngagementStatus,
70
+ ProtectedResourceType: () => ProtectedResourceType,
71
+ ProtectionGroupAggregation: () => ProtectionGroupAggregation,
72
+ ProtectionGroupPattern: () => ProtectionGroupPattern,
73
+ ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
74
+ ResourceNotFoundException: () => ResourceNotFoundException,
75
+ Shield: () => Shield,
76
+ ShieldClient: () => ShieldClient,
77
+ ShieldServiceException: () => ShieldServiceException,
78
+ SubResourceType: () => SubResourceType,
79
+ SubscriptionState: () => SubscriptionState,
80
+ TagResourceCommand: () => TagResourceCommand,
81
+ Unit: () => Unit,
82
+ UntagResourceCommand: () => UntagResourceCommand,
83
+ UpdateApplicationLayerAutomaticResponseCommand: () => UpdateApplicationLayerAutomaticResponseCommand,
84
+ UpdateEmergencyContactSettingsCommand: () => UpdateEmergencyContactSettingsCommand,
85
+ UpdateProtectionGroupCommand: () => UpdateProtectionGroupCommand,
86
+ UpdateSubscriptionCommand: () => UpdateSubscriptionCommand,
87
+ ValidationExceptionReason: () => ValidationExceptionReason,
88
+ __Client: () => import_smithy_client.Client,
89
+ paginateListAttacks: () => paginateListAttacks,
90
+ paginateListProtectionGroups: () => paginateListProtectionGroups,
91
+ paginateListProtections: () => paginateListProtections,
92
+ paginateListResourcesInProtectionGroup: () => paginateListResourcesInProtectionGroup
93
+ });
94
+ module.exports = __toCommonJS(src_exports);
95
+
96
+ // src/ShieldClient.ts
97
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
98
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
99
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
100
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
101
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
102
+ var import_config_resolver = require("@smithy/config-resolver");
103
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
104
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
105
+ var import_middleware_retry = require("@smithy/middleware-retry");
106
+
107
+
108
+ // src/endpoint/EndpointParameters.ts
109
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
110
+ return {
111
+ ...options,
112
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
113
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
114
+ defaultSigningName: "shield"
115
+ };
116
+ }, "resolveClientEndpointParameters");
117
+ var commonParams = {
118
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
119
+ Endpoint: { type: "builtInParams", name: "endpoint" },
120
+ Region: { type: "builtInParams", name: "region" },
121
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
122
+ };
123
+
124
+ // src/ShieldClient.ts
125
+ var import_runtimeConfig = require("././runtimeConfig");
126
+
127
+ // src/runtimeExtensions.ts
128
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
129
+ var import_protocol_http = require("@smithy/protocol-http");
130
+ var import_smithy_client = require("@smithy/smithy-client");
131
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
132
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
133
+ const extensionConfiguration = {
134
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
135
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
136
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
137
+ };
138
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
139
+ return {
140
+ ...runtimeConfig,
141
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
142
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
143
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
144
+ };
145
+ }, "resolveRuntimeExtensions");
146
+
147
+ // src/ShieldClient.ts
148
+ var _ShieldClient = class _ShieldClient extends import_smithy_client.Client {
149
+ constructor(...[configuration]) {
150
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
151
+ const _config_1 = resolveClientEndpointParameters(_config_0);
152
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
153
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
154
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
155
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
156
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
157
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
158
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
159
+ super(_config_8);
160
+ this.config = _config_8;
161
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
162
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
164
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
165
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
166
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
167
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
168
+ }
169
+ /**
170
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
171
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
172
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
173
+ */
174
+ destroy() {
175
+ super.destroy();
176
+ }
177
+ };
178
+ __name(_ShieldClient, "ShieldClient");
179
+ var ShieldClient = _ShieldClient;
180
+
181
+ // src/Shield.ts
182
+
183
+
184
+ // src/commands/AssociateDRTLogBucketCommand.ts
185
+
186
+ var import_middleware_serde = require("@smithy/middleware-serde");
187
+
188
+ var import_types = require("@smithy/types");
189
+
190
+ // src/protocols/Aws_json1_1.ts
191
+
192
+
193
+
194
+ // src/models/ShieldServiceException.ts
195
+
196
+ var _ShieldServiceException = class _ShieldServiceException extends import_smithy_client.ServiceException {
197
+ /**
198
+ * @internal
199
+ */
200
+ constructor(options) {
201
+ super(options);
202
+ Object.setPrototypeOf(this, _ShieldServiceException.prototype);
203
+ }
204
+ };
205
+ __name(_ShieldServiceException, "ShieldServiceException");
206
+ var ShieldServiceException = _ShieldServiceException;
207
+
208
+ // src/models/models_0.ts
209
+ var _AccessDeniedException = class _AccessDeniedException extends ShieldServiceException {
210
+ /**
211
+ * @internal
212
+ */
213
+ constructor(opts) {
214
+ super({
215
+ name: "AccessDeniedException",
216
+ $fault: "client",
217
+ ...opts
218
+ });
219
+ this.name = "AccessDeniedException";
220
+ this.$fault = "client";
221
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
222
+ }
223
+ };
224
+ __name(_AccessDeniedException, "AccessDeniedException");
225
+ var AccessDeniedException = _AccessDeniedException;
226
+ var _AccessDeniedForDependencyException = class _AccessDeniedForDependencyException extends ShieldServiceException {
227
+ /**
228
+ * @internal
229
+ */
230
+ constructor(opts) {
231
+ super({
232
+ name: "AccessDeniedForDependencyException",
233
+ $fault: "client",
234
+ ...opts
235
+ });
236
+ this.name = "AccessDeniedForDependencyException";
237
+ this.$fault = "client";
238
+ Object.setPrototypeOf(this, _AccessDeniedForDependencyException.prototype);
239
+ }
240
+ };
241
+ __name(_AccessDeniedForDependencyException, "AccessDeniedForDependencyException");
242
+ var AccessDeniedForDependencyException = _AccessDeniedForDependencyException;
243
+ var ApplicationLayerAutomaticResponseStatus = {
244
+ DISABLED: "DISABLED",
245
+ ENABLED: "ENABLED"
246
+ };
247
+ var _InternalErrorException = class _InternalErrorException extends ShieldServiceException {
248
+ /**
249
+ * @internal
250
+ */
251
+ constructor(opts) {
252
+ super({
253
+ name: "InternalErrorException",
254
+ $fault: "server",
255
+ ...opts
256
+ });
257
+ this.name = "InternalErrorException";
258
+ this.$fault = "server";
259
+ Object.setPrototypeOf(this, _InternalErrorException.prototype);
260
+ }
261
+ };
262
+ __name(_InternalErrorException, "InternalErrorException");
263
+ var InternalErrorException = _InternalErrorException;
264
+ var _InvalidOperationException = class _InvalidOperationException extends ShieldServiceException {
265
+ /**
266
+ * @internal
267
+ */
268
+ constructor(opts) {
269
+ super({
270
+ name: "InvalidOperationException",
271
+ $fault: "client",
272
+ ...opts
273
+ });
274
+ this.name = "InvalidOperationException";
275
+ this.$fault = "client";
276
+ Object.setPrototypeOf(this, _InvalidOperationException.prototype);
277
+ }
278
+ };
279
+ __name(_InvalidOperationException, "InvalidOperationException");
280
+ var InvalidOperationException = _InvalidOperationException;
281
+ var ValidationExceptionReason = {
282
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
283
+ OTHER: "OTHER"
284
+ };
285
+ var _InvalidParameterException = class _InvalidParameterException extends ShieldServiceException {
286
+ /**
287
+ * @internal
288
+ */
289
+ constructor(opts) {
290
+ super({
291
+ name: "InvalidParameterException",
292
+ $fault: "client",
293
+ ...opts
294
+ });
295
+ this.name = "InvalidParameterException";
296
+ this.$fault = "client";
297
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
298
+ this.reason = opts.reason;
299
+ this.fields = opts.fields;
300
+ }
301
+ };
302
+ __name(_InvalidParameterException, "InvalidParameterException");
303
+ var InvalidParameterException = _InvalidParameterException;
304
+ var _LimitsExceededException = class _LimitsExceededException extends ShieldServiceException {
305
+ /**
306
+ * @internal
307
+ */
308
+ constructor(opts) {
309
+ super({
310
+ name: "LimitsExceededException",
311
+ $fault: "client",
312
+ ...opts
313
+ });
314
+ this.name = "LimitsExceededException";
315
+ this.$fault = "client";
316
+ Object.setPrototypeOf(this, _LimitsExceededException.prototype);
317
+ this.Type = opts.Type;
318
+ this.Limit = opts.Limit;
319
+ }
320
+ };
321
+ __name(_LimitsExceededException, "LimitsExceededException");
322
+ var LimitsExceededException = _LimitsExceededException;
323
+ var _NoAssociatedRoleException = class _NoAssociatedRoleException extends ShieldServiceException {
324
+ /**
325
+ * @internal
326
+ */
327
+ constructor(opts) {
328
+ super({
329
+ name: "NoAssociatedRoleException",
330
+ $fault: "client",
331
+ ...opts
332
+ });
333
+ this.name = "NoAssociatedRoleException";
334
+ this.$fault = "client";
335
+ Object.setPrototypeOf(this, _NoAssociatedRoleException.prototype);
336
+ }
337
+ };
338
+ __name(_NoAssociatedRoleException, "NoAssociatedRoleException");
339
+ var NoAssociatedRoleException = _NoAssociatedRoleException;
340
+ var _OptimisticLockException = class _OptimisticLockException extends ShieldServiceException {
341
+ /**
342
+ * @internal
343
+ */
344
+ constructor(opts) {
345
+ super({
346
+ name: "OptimisticLockException",
347
+ $fault: "client",
348
+ ...opts
349
+ });
350
+ this.name = "OptimisticLockException";
351
+ this.$fault = "client";
352
+ Object.setPrototypeOf(this, _OptimisticLockException.prototype);
353
+ }
354
+ };
355
+ __name(_OptimisticLockException, "OptimisticLockException");
356
+ var OptimisticLockException = _OptimisticLockException;
357
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ShieldServiceException {
358
+ /**
359
+ * @internal
360
+ */
361
+ constructor(opts) {
362
+ super({
363
+ name: "ResourceNotFoundException",
364
+ $fault: "client",
365
+ ...opts
366
+ });
367
+ this.name = "ResourceNotFoundException";
368
+ this.$fault = "client";
369
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
370
+ this.resourceType = opts.resourceType;
371
+ }
372
+ };
373
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
374
+ var ResourceNotFoundException = _ResourceNotFoundException;
375
+ var _InvalidResourceException = class _InvalidResourceException extends ShieldServiceException {
376
+ /**
377
+ * @internal
378
+ */
379
+ constructor(opts) {
380
+ super({
381
+ name: "InvalidResourceException",
382
+ $fault: "client",
383
+ ...opts
384
+ });
385
+ this.name = "InvalidResourceException";
386
+ this.$fault = "client";
387
+ Object.setPrototypeOf(this, _InvalidResourceException.prototype);
388
+ }
389
+ };
390
+ __name(_InvalidResourceException, "InvalidResourceException");
391
+ var InvalidResourceException = _InvalidResourceException;
392
+ var AttackLayer = {
393
+ APPLICATION: "APPLICATION",
394
+ NETWORK: "NETWORK"
395
+ };
396
+ var AttackPropertyIdentifier = {
397
+ DESTINATION_URL: "DESTINATION_URL",
398
+ REFERRER: "REFERRER",
399
+ SOURCE_ASN: "SOURCE_ASN",
400
+ SOURCE_COUNTRY: "SOURCE_COUNTRY",
401
+ SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS",
402
+ SOURCE_USER_AGENT: "SOURCE_USER_AGENT",
403
+ WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR",
404
+ WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE"
405
+ };
406
+ var Unit = {
407
+ BITS: "BITS",
408
+ BYTES: "BYTES",
409
+ PACKETS: "PACKETS",
410
+ REQUESTS: "REQUESTS"
411
+ };
412
+ var SubResourceType = {
413
+ IP: "IP",
414
+ URL: "URL"
415
+ };
416
+ var AutoRenew = {
417
+ DISABLED: "DISABLED",
418
+ ENABLED: "ENABLED"
419
+ };
420
+ var _ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ShieldServiceException {
421
+ /**
422
+ * @internal
423
+ */
424
+ constructor(opts) {
425
+ super({
426
+ name: "ResourceAlreadyExistsException",
427
+ $fault: "client",
428
+ ...opts
429
+ });
430
+ this.name = "ResourceAlreadyExistsException";
431
+ this.$fault = "client";
432
+ Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
433
+ this.resourceType = opts.resourceType;
434
+ }
435
+ };
436
+ __name(_ResourceAlreadyExistsException, "ResourceAlreadyExistsException");
437
+ var ResourceAlreadyExistsException = _ResourceAlreadyExistsException;
438
+ var ProtectionGroupAggregation = {
439
+ MAX: "MAX",
440
+ MEAN: "MEAN",
441
+ SUM: "SUM"
442
+ };
443
+ var ProtectionGroupPattern = {
444
+ ALL: "ALL",
445
+ ARBITRARY: "ARBITRARY",
446
+ BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE"
447
+ };
448
+ var ProtectedResourceType = {
449
+ APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
450
+ CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER",
451
+ CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION",
452
+ ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION",
453
+ GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR",
454
+ ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE"
455
+ };
456
+ var _LockedSubscriptionException = class _LockedSubscriptionException extends ShieldServiceException {
457
+ /**
458
+ * @internal
459
+ */
460
+ constructor(opts) {
461
+ super({
462
+ name: "LockedSubscriptionException",
463
+ $fault: "client",
464
+ ...opts
465
+ });
466
+ this.name = "LockedSubscriptionException";
467
+ this.$fault = "client";
468
+ Object.setPrototypeOf(this, _LockedSubscriptionException.prototype);
469
+ }
470
+ };
471
+ __name(_LockedSubscriptionException, "LockedSubscriptionException");
472
+ var LockedSubscriptionException = _LockedSubscriptionException;
473
+ var ProactiveEngagementStatus = {
474
+ DISABLED: "DISABLED",
475
+ ENABLED: "ENABLED",
476
+ PENDING: "PENDING"
477
+ };
478
+ var SubscriptionState = {
479
+ ACTIVE: "ACTIVE",
480
+ INACTIVE: "INACTIVE"
481
+ };
482
+ var _InvalidPaginationTokenException = class _InvalidPaginationTokenException extends ShieldServiceException {
483
+ /**
484
+ * @internal
485
+ */
486
+ constructor(opts) {
487
+ super({
488
+ name: "InvalidPaginationTokenException",
489
+ $fault: "client",
490
+ ...opts
491
+ });
492
+ this.name = "InvalidPaginationTokenException";
493
+ this.$fault = "client";
494
+ Object.setPrototypeOf(this, _InvalidPaginationTokenException.prototype);
495
+ }
496
+ };
497
+ __name(_InvalidPaginationTokenException, "InvalidPaginationTokenException");
498
+ var InvalidPaginationTokenException = _InvalidPaginationTokenException;
499
+
500
+ // src/protocols/Aws_json1_1.ts
501
+ var se_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
502
+ const headers = sharedHeaders("AssociateDRTLogBucket");
503
+ let body;
504
+ body = JSON.stringify((0, import_smithy_client._json)(input));
505
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
506
+ }, "se_AssociateDRTLogBucketCommand");
507
+ var se_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
508
+ const headers = sharedHeaders("AssociateDRTRole");
509
+ let body;
510
+ body = JSON.stringify((0, import_smithy_client._json)(input));
511
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
512
+ }, "se_AssociateDRTRoleCommand");
513
+ var se_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (input, context) => {
514
+ const headers = sharedHeaders("AssociateHealthCheck");
515
+ let body;
516
+ body = JSON.stringify((0, import_smithy_client._json)(input));
517
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
518
+ }, "se_AssociateHealthCheckCommand");
519
+ var se_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
520
+ const headers = sharedHeaders("AssociateProactiveEngagementDetails");
521
+ let body;
522
+ body = JSON.stringify((0, import_smithy_client._json)(input));
523
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
524
+ }, "se_AssociateProactiveEngagementDetailsCommand");
525
+ var se_CreateProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
526
+ const headers = sharedHeaders("CreateProtection");
527
+ let body;
528
+ body = JSON.stringify((0, import_smithy_client._json)(input));
529
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
530
+ }, "se_CreateProtectionCommand");
531
+ var se_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
532
+ const headers = sharedHeaders("CreateProtectionGroup");
533
+ let body;
534
+ body = JSON.stringify((0, import_smithy_client._json)(input));
535
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
536
+ }, "se_CreateProtectionGroupCommand");
537
+ var se_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
538
+ const headers = sharedHeaders("CreateSubscription");
539
+ let body;
540
+ body = JSON.stringify((0, import_smithy_client._json)(input));
541
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
542
+ }, "se_CreateSubscriptionCommand");
543
+ var se_DeleteProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
544
+ const headers = sharedHeaders("DeleteProtection");
545
+ let body;
546
+ body = JSON.stringify((0, import_smithy_client._json)(input));
547
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
548
+ }, "se_DeleteProtectionCommand");
549
+ var se_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const headers = sharedHeaders("DeleteProtectionGroup");
551
+ let body;
552
+ body = JSON.stringify((0, import_smithy_client._json)(input));
553
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
554
+ }, "se_DeleteProtectionGroupCommand");
555
+ var se_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
556
+ const headers = sharedHeaders("DeleteSubscription");
557
+ let body;
558
+ body = JSON.stringify((0, import_smithy_client._json)(input));
559
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
560
+ }, "se_DeleteSubscriptionCommand");
561
+ var se_DescribeAttackCommand = /* @__PURE__ */ __name(async (input, context) => {
562
+ const headers = sharedHeaders("DescribeAttack");
563
+ let body;
564
+ body = JSON.stringify((0, import_smithy_client._json)(input));
565
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
566
+ }, "se_DescribeAttackCommand");
567
+ var se_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (input, context) => {
568
+ const headers = sharedHeaders("DescribeAttackStatistics");
569
+ let body;
570
+ body = JSON.stringify((0, import_smithy_client._json)(input));
571
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
572
+ }, "se_DescribeAttackStatisticsCommand");
573
+ var se_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (input, context) => {
574
+ const headers = sharedHeaders("DescribeDRTAccess");
575
+ let body;
576
+ body = JSON.stringify((0, import_smithy_client._json)(input));
577
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
578
+ }, "se_DescribeDRTAccessCommand");
579
+ var se_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
580
+ const headers = sharedHeaders("DescribeEmergencyContactSettings");
581
+ let body;
582
+ body = JSON.stringify((0, import_smithy_client._json)(input));
583
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
584
+ }, "se_DescribeEmergencyContactSettingsCommand");
585
+ var se_DescribeProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
586
+ const headers = sharedHeaders("DescribeProtection");
587
+ let body;
588
+ body = JSON.stringify((0, import_smithy_client._json)(input));
589
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
590
+ }, "se_DescribeProtectionCommand");
591
+ var se_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const headers = sharedHeaders("DescribeProtectionGroup");
593
+ let body;
594
+ body = JSON.stringify((0, import_smithy_client._json)(input));
595
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
596
+ }, "se_DescribeProtectionGroupCommand");
597
+ var se_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
598
+ const headers = sharedHeaders("DescribeSubscription");
599
+ let body;
600
+ body = JSON.stringify((0, import_smithy_client._json)(input));
601
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
602
+ }, "se_DescribeSubscriptionCommand");
603
+ var se_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
604
+ const headers = sharedHeaders("DisableApplicationLayerAutomaticResponse");
605
+ let body;
606
+ body = JSON.stringify((0, import_smithy_client._json)(input));
607
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
608
+ }, "se_DisableApplicationLayerAutomaticResponseCommand");
609
+ var se_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
610
+ const headers = sharedHeaders("DisableProactiveEngagement");
611
+ let body;
612
+ body = JSON.stringify((0, import_smithy_client._json)(input));
613
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
614
+ }, "se_DisableProactiveEngagementCommand");
615
+ var se_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
616
+ const headers = sharedHeaders("DisassociateDRTLogBucket");
617
+ let body;
618
+ body = JSON.stringify((0, import_smithy_client._json)(input));
619
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
620
+ }, "se_DisassociateDRTLogBucketCommand");
621
+ var se_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
622
+ const headers = sharedHeaders("DisassociateDRTRole");
623
+ let body;
624
+ body = JSON.stringify((0, import_smithy_client._json)(input));
625
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
626
+ }, "se_DisassociateDRTRoleCommand");
627
+ var se_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const headers = sharedHeaders("DisassociateHealthCheck");
629
+ let body;
630
+ body = JSON.stringify((0, import_smithy_client._json)(input));
631
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
632
+ }, "se_DisassociateHealthCheckCommand");
633
+ var se_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const headers = sharedHeaders("EnableApplicationLayerAutomaticResponse");
635
+ let body;
636
+ body = JSON.stringify((0, import_smithy_client._json)(input));
637
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
638
+ }, "se_EnableApplicationLayerAutomaticResponseCommand");
639
+ var se_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
640
+ const headers = sharedHeaders("EnableProactiveEngagement");
641
+ let body;
642
+ body = JSON.stringify((0, import_smithy_client._json)(input));
643
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
644
+ }, "se_EnableProactiveEngagementCommand");
645
+ var se_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const headers = sharedHeaders("GetSubscriptionState");
647
+ let body;
648
+ body = JSON.stringify((0, import_smithy_client._json)(input));
649
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
650
+ }, "se_GetSubscriptionStateCommand");
651
+ var se_ListAttacksCommand = /* @__PURE__ */ __name(async (input, context) => {
652
+ const headers = sharedHeaders("ListAttacks");
653
+ let body;
654
+ body = JSON.stringify(se_ListAttacksRequest(input, context));
655
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
656
+ }, "se_ListAttacksCommand");
657
+ var se_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
658
+ const headers = sharedHeaders("ListProtectionGroups");
659
+ let body;
660
+ body = JSON.stringify((0, import_smithy_client._json)(input));
661
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
662
+ }, "se_ListProtectionGroupsCommand");
663
+ var se_ListProtectionsCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const headers = sharedHeaders("ListProtections");
665
+ let body;
666
+ body = JSON.stringify((0, import_smithy_client._json)(input));
667
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
668
+ }, "se_ListProtectionsCommand");
669
+ var se_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
670
+ const headers = sharedHeaders("ListResourcesInProtectionGroup");
671
+ let body;
672
+ body = JSON.stringify((0, import_smithy_client._json)(input));
673
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
674
+ }, "se_ListResourcesInProtectionGroupCommand");
675
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
676
+ const headers = sharedHeaders("ListTagsForResource");
677
+ let body;
678
+ body = JSON.stringify((0, import_smithy_client._json)(input));
679
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
680
+ }, "se_ListTagsForResourceCommand");
681
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
682
+ const headers = sharedHeaders("TagResource");
683
+ let body;
684
+ body = JSON.stringify((0, import_smithy_client._json)(input));
685
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
686
+ }, "se_TagResourceCommand");
687
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
688
+ const headers = sharedHeaders("UntagResource");
689
+ let body;
690
+ body = JSON.stringify((0, import_smithy_client._json)(input));
691
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
692
+ }, "se_UntagResourceCommand");
693
+ var se_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
694
+ const headers = sharedHeaders("UpdateApplicationLayerAutomaticResponse");
695
+ let body;
696
+ body = JSON.stringify((0, import_smithy_client._json)(input));
697
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
698
+ }, "se_UpdateApplicationLayerAutomaticResponseCommand");
699
+ var se_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
700
+ const headers = sharedHeaders("UpdateEmergencyContactSettings");
701
+ let body;
702
+ body = JSON.stringify((0, import_smithy_client._json)(input));
703
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
704
+ }, "se_UpdateEmergencyContactSettingsCommand");
705
+ var se_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
706
+ const headers = sharedHeaders("UpdateProtectionGroup");
707
+ let body;
708
+ body = JSON.stringify((0, import_smithy_client._json)(input));
709
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
710
+ }, "se_UpdateProtectionGroupCommand");
711
+ var se_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
712
+ const headers = sharedHeaders("UpdateSubscription");
713
+ let body;
714
+ body = JSON.stringify((0, import_smithy_client._json)(input));
715
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
716
+ }, "se_UpdateSubscriptionCommand");
717
+ var de_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
718
+ if (output.statusCode >= 300) {
719
+ return de_AssociateDRTLogBucketCommandError(output, context);
720
+ }
721
+ const data = await parseBody(output.body, context);
722
+ let contents = {};
723
+ contents = (0, import_smithy_client._json)(data);
724
+ const response = {
725
+ $metadata: deserializeMetadata(output),
726
+ ...contents
727
+ };
728
+ return response;
729
+ }, "de_AssociateDRTLogBucketCommand");
730
+ var de_AssociateDRTLogBucketCommandError = /* @__PURE__ */ __name(async (output, context) => {
731
+ const parsedOutput = {
732
+ ...output,
733
+ body: await parseErrorBody(output.body, context)
734
+ };
735
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
736
+ switch (errorCode) {
737
+ case "AccessDeniedForDependencyException":
738
+ case "com.amazonaws.shield#AccessDeniedForDependencyException":
739
+ throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
740
+ case "InternalErrorException":
741
+ case "com.amazonaws.shield#InternalErrorException":
742
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
743
+ case "InvalidOperationException":
744
+ case "com.amazonaws.shield#InvalidOperationException":
745
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
746
+ case "InvalidParameterException":
747
+ case "com.amazonaws.shield#InvalidParameterException":
748
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
749
+ case "LimitsExceededException":
750
+ case "com.amazonaws.shield#LimitsExceededException":
751
+ throw await de_LimitsExceededExceptionRes(parsedOutput, context);
752
+ case "NoAssociatedRoleException":
753
+ case "com.amazonaws.shield#NoAssociatedRoleException":
754
+ throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
755
+ case "OptimisticLockException":
756
+ case "com.amazonaws.shield#OptimisticLockException":
757
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
758
+ case "ResourceNotFoundException":
759
+ case "com.amazonaws.shield#ResourceNotFoundException":
760
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
761
+ default:
762
+ const parsedBody = parsedOutput.body;
763
+ return throwDefaultError({
764
+ output,
765
+ parsedBody,
766
+ errorCode
767
+ });
768
+ }
769
+ }, "de_AssociateDRTLogBucketCommandError");
770
+ var de_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
771
+ if (output.statusCode >= 300) {
772
+ return de_AssociateDRTRoleCommandError(output, context);
773
+ }
774
+ const data = await parseBody(output.body, context);
775
+ let contents = {};
776
+ contents = (0, import_smithy_client._json)(data);
777
+ const response = {
778
+ $metadata: deserializeMetadata(output),
779
+ ...contents
780
+ };
781
+ return response;
782
+ }, "de_AssociateDRTRoleCommand");
783
+ var de_AssociateDRTRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
784
+ const parsedOutput = {
785
+ ...output,
786
+ body: await parseErrorBody(output.body, context)
787
+ };
788
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
789
+ switch (errorCode) {
790
+ case "AccessDeniedForDependencyException":
791
+ case "com.amazonaws.shield#AccessDeniedForDependencyException":
792
+ throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
793
+ case "InternalErrorException":
794
+ case "com.amazonaws.shield#InternalErrorException":
795
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
796
+ case "InvalidOperationException":
797
+ case "com.amazonaws.shield#InvalidOperationException":
798
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
799
+ case "InvalidParameterException":
800
+ case "com.amazonaws.shield#InvalidParameterException":
801
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
802
+ case "OptimisticLockException":
803
+ case "com.amazonaws.shield#OptimisticLockException":
804
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
805
+ case "ResourceNotFoundException":
806
+ case "com.amazonaws.shield#ResourceNotFoundException":
807
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
808
+ default:
809
+ const parsedBody = parsedOutput.body;
810
+ return throwDefaultError({
811
+ output,
812
+ parsedBody,
813
+ errorCode
814
+ });
815
+ }
816
+ }, "de_AssociateDRTRoleCommandError");
817
+ var de_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
818
+ if (output.statusCode >= 300) {
819
+ return de_AssociateHealthCheckCommandError(output, context);
820
+ }
821
+ const data = await parseBody(output.body, context);
822
+ let contents = {};
823
+ contents = (0, import_smithy_client._json)(data);
824
+ const response = {
825
+ $metadata: deserializeMetadata(output),
826
+ ...contents
827
+ };
828
+ return response;
829
+ }, "de_AssociateHealthCheckCommand");
830
+ var de_AssociateHealthCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
831
+ const parsedOutput = {
832
+ ...output,
833
+ body: await parseErrorBody(output.body, context)
834
+ };
835
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
+ switch (errorCode) {
837
+ case "InternalErrorException":
838
+ case "com.amazonaws.shield#InternalErrorException":
839
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
840
+ case "InvalidParameterException":
841
+ case "com.amazonaws.shield#InvalidParameterException":
842
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
843
+ case "InvalidResourceException":
844
+ case "com.amazonaws.shield#InvalidResourceException":
845
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
846
+ case "LimitsExceededException":
847
+ case "com.amazonaws.shield#LimitsExceededException":
848
+ throw await de_LimitsExceededExceptionRes(parsedOutput, context);
849
+ case "OptimisticLockException":
850
+ case "com.amazonaws.shield#OptimisticLockException":
851
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
852
+ case "ResourceNotFoundException":
853
+ case "com.amazonaws.shield#ResourceNotFoundException":
854
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
+ default:
856
+ const parsedBody = parsedOutput.body;
857
+ return throwDefaultError({
858
+ output,
859
+ parsedBody,
860
+ errorCode
861
+ });
862
+ }
863
+ }, "de_AssociateHealthCheckCommandError");
864
+ var de_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
865
+ if (output.statusCode >= 300) {
866
+ return de_AssociateProactiveEngagementDetailsCommandError(output, context);
867
+ }
868
+ const data = await parseBody(output.body, context);
869
+ let contents = {};
870
+ contents = (0, import_smithy_client._json)(data);
871
+ const response = {
872
+ $metadata: deserializeMetadata(output),
873
+ ...contents
874
+ };
875
+ return response;
876
+ }, "de_AssociateProactiveEngagementDetailsCommand");
877
+ var de_AssociateProactiveEngagementDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
878
+ const parsedOutput = {
879
+ ...output,
880
+ body: await parseErrorBody(output.body, context)
881
+ };
882
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
883
+ switch (errorCode) {
884
+ case "InternalErrorException":
885
+ case "com.amazonaws.shield#InternalErrorException":
886
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
887
+ case "InvalidOperationException":
888
+ case "com.amazonaws.shield#InvalidOperationException":
889
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
890
+ case "InvalidParameterException":
891
+ case "com.amazonaws.shield#InvalidParameterException":
892
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
893
+ case "OptimisticLockException":
894
+ case "com.amazonaws.shield#OptimisticLockException":
895
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
896
+ case "ResourceNotFoundException":
897
+ case "com.amazonaws.shield#ResourceNotFoundException":
898
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
899
+ default:
900
+ const parsedBody = parsedOutput.body;
901
+ return throwDefaultError({
902
+ output,
903
+ parsedBody,
904
+ errorCode
905
+ });
906
+ }
907
+ }, "de_AssociateProactiveEngagementDetailsCommandError");
908
+ var de_CreateProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
909
+ if (output.statusCode >= 300) {
910
+ return de_CreateProtectionCommandError(output, context);
911
+ }
912
+ const data = await parseBody(output.body, context);
913
+ let contents = {};
914
+ contents = (0, import_smithy_client._json)(data);
915
+ const response = {
916
+ $metadata: deserializeMetadata(output),
917
+ ...contents
918
+ };
919
+ return response;
920
+ }, "de_CreateProtectionCommand");
921
+ var de_CreateProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
922
+ const parsedOutput = {
923
+ ...output,
924
+ body: await parseErrorBody(output.body, context)
925
+ };
926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
927
+ switch (errorCode) {
928
+ case "InternalErrorException":
929
+ case "com.amazonaws.shield#InternalErrorException":
930
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
931
+ case "InvalidOperationException":
932
+ case "com.amazonaws.shield#InvalidOperationException":
933
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
934
+ case "InvalidParameterException":
935
+ case "com.amazonaws.shield#InvalidParameterException":
936
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
937
+ case "InvalidResourceException":
938
+ case "com.amazonaws.shield#InvalidResourceException":
939
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
940
+ case "LimitsExceededException":
941
+ case "com.amazonaws.shield#LimitsExceededException":
942
+ throw await de_LimitsExceededExceptionRes(parsedOutput, context);
943
+ case "OptimisticLockException":
944
+ case "com.amazonaws.shield#OptimisticLockException":
945
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
946
+ case "ResourceAlreadyExistsException":
947
+ case "com.amazonaws.shield#ResourceAlreadyExistsException":
948
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
949
+ case "ResourceNotFoundException":
950
+ case "com.amazonaws.shield#ResourceNotFoundException":
951
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
952
+ default:
953
+ const parsedBody = parsedOutput.body;
954
+ return throwDefaultError({
955
+ output,
956
+ parsedBody,
957
+ errorCode
958
+ });
959
+ }
960
+ }, "de_CreateProtectionCommandError");
961
+ var de_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
962
+ if (output.statusCode >= 300) {
963
+ return de_CreateProtectionGroupCommandError(output, context);
964
+ }
965
+ const data = await parseBody(output.body, context);
966
+ let contents = {};
967
+ contents = (0, import_smithy_client._json)(data);
968
+ const response = {
969
+ $metadata: deserializeMetadata(output),
970
+ ...contents
971
+ };
972
+ return response;
973
+ }, "de_CreateProtectionGroupCommand");
974
+ var de_CreateProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
975
+ const parsedOutput = {
976
+ ...output,
977
+ body: await parseErrorBody(output.body, context)
978
+ };
979
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
+ switch (errorCode) {
981
+ case "InternalErrorException":
982
+ case "com.amazonaws.shield#InternalErrorException":
983
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
984
+ case "InvalidParameterException":
985
+ case "com.amazonaws.shield#InvalidParameterException":
986
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
987
+ case "LimitsExceededException":
988
+ case "com.amazonaws.shield#LimitsExceededException":
989
+ throw await de_LimitsExceededExceptionRes(parsedOutput, context);
990
+ case "OptimisticLockException":
991
+ case "com.amazonaws.shield#OptimisticLockException":
992
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
993
+ case "ResourceAlreadyExistsException":
994
+ case "com.amazonaws.shield#ResourceAlreadyExistsException":
995
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
996
+ case "ResourceNotFoundException":
997
+ case "com.amazonaws.shield#ResourceNotFoundException":
998
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
999
+ default:
1000
+ const parsedBody = parsedOutput.body;
1001
+ return throwDefaultError({
1002
+ output,
1003
+ parsedBody,
1004
+ errorCode
1005
+ });
1006
+ }
1007
+ }, "de_CreateProtectionGroupCommandError");
1008
+ var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1009
+ if (output.statusCode >= 300) {
1010
+ return de_CreateSubscriptionCommandError(output, context);
1011
+ }
1012
+ const data = await parseBody(output.body, context);
1013
+ let contents = {};
1014
+ contents = (0, import_smithy_client._json)(data);
1015
+ const response = {
1016
+ $metadata: deserializeMetadata(output),
1017
+ ...contents
1018
+ };
1019
+ return response;
1020
+ }, "de_CreateSubscriptionCommand");
1021
+ var de_CreateSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1022
+ const parsedOutput = {
1023
+ ...output,
1024
+ body: await parseErrorBody(output.body, context)
1025
+ };
1026
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1027
+ switch (errorCode) {
1028
+ case "InternalErrorException":
1029
+ case "com.amazonaws.shield#InternalErrorException":
1030
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1031
+ case "ResourceAlreadyExistsException":
1032
+ case "com.amazonaws.shield#ResourceAlreadyExistsException":
1033
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1034
+ default:
1035
+ const parsedBody = parsedOutput.body;
1036
+ return throwDefaultError({
1037
+ output,
1038
+ parsedBody,
1039
+ errorCode
1040
+ });
1041
+ }
1042
+ }, "de_CreateSubscriptionCommandError");
1043
+ var de_DeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1044
+ if (output.statusCode >= 300) {
1045
+ return de_DeleteProtectionCommandError(output, context);
1046
+ }
1047
+ const data = await parseBody(output.body, context);
1048
+ let contents = {};
1049
+ contents = (0, import_smithy_client._json)(data);
1050
+ const response = {
1051
+ $metadata: deserializeMetadata(output),
1052
+ ...contents
1053
+ };
1054
+ return response;
1055
+ }, "de_DeleteProtectionCommand");
1056
+ var de_DeleteProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1057
+ const parsedOutput = {
1058
+ ...output,
1059
+ body: await parseErrorBody(output.body, context)
1060
+ };
1061
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1062
+ switch (errorCode) {
1063
+ case "InternalErrorException":
1064
+ case "com.amazonaws.shield#InternalErrorException":
1065
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1066
+ case "OptimisticLockException":
1067
+ case "com.amazonaws.shield#OptimisticLockException":
1068
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1069
+ case "ResourceNotFoundException":
1070
+ case "com.amazonaws.shield#ResourceNotFoundException":
1071
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1072
+ default:
1073
+ const parsedBody = parsedOutput.body;
1074
+ return throwDefaultError({
1075
+ output,
1076
+ parsedBody,
1077
+ errorCode
1078
+ });
1079
+ }
1080
+ }, "de_DeleteProtectionCommandError");
1081
+ var de_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1082
+ if (output.statusCode >= 300) {
1083
+ return de_DeleteProtectionGroupCommandError(output, context);
1084
+ }
1085
+ const data = await parseBody(output.body, context);
1086
+ let contents = {};
1087
+ contents = (0, import_smithy_client._json)(data);
1088
+ const response = {
1089
+ $metadata: deserializeMetadata(output),
1090
+ ...contents
1091
+ };
1092
+ return response;
1093
+ }, "de_DeleteProtectionGroupCommand");
1094
+ var de_DeleteProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1095
+ const parsedOutput = {
1096
+ ...output,
1097
+ body: await parseErrorBody(output.body, context)
1098
+ };
1099
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1100
+ switch (errorCode) {
1101
+ case "InternalErrorException":
1102
+ case "com.amazonaws.shield#InternalErrorException":
1103
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1104
+ case "OptimisticLockException":
1105
+ case "com.amazonaws.shield#OptimisticLockException":
1106
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1107
+ case "ResourceNotFoundException":
1108
+ case "com.amazonaws.shield#ResourceNotFoundException":
1109
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1110
+ default:
1111
+ const parsedBody = parsedOutput.body;
1112
+ return throwDefaultError({
1113
+ output,
1114
+ parsedBody,
1115
+ errorCode
1116
+ });
1117
+ }
1118
+ }, "de_DeleteProtectionGroupCommandError");
1119
+ var de_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1120
+ if (output.statusCode >= 300) {
1121
+ return de_DeleteSubscriptionCommandError(output, context);
1122
+ }
1123
+ const data = await parseBody(output.body, context);
1124
+ let contents = {};
1125
+ contents = (0, import_smithy_client._json)(data);
1126
+ const response = {
1127
+ $metadata: deserializeMetadata(output),
1128
+ ...contents
1129
+ };
1130
+ return response;
1131
+ }, "de_DeleteSubscriptionCommand");
1132
+ var de_DeleteSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1133
+ const parsedOutput = {
1134
+ ...output,
1135
+ body: await parseErrorBody(output.body, context)
1136
+ };
1137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1138
+ switch (errorCode) {
1139
+ case "InternalErrorException":
1140
+ case "com.amazonaws.shield#InternalErrorException":
1141
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1142
+ case "LockedSubscriptionException":
1143
+ case "com.amazonaws.shield#LockedSubscriptionException":
1144
+ throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
1145
+ case "ResourceNotFoundException":
1146
+ case "com.amazonaws.shield#ResourceNotFoundException":
1147
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1148
+ default:
1149
+ const parsedBody = parsedOutput.body;
1150
+ return throwDefaultError({
1151
+ output,
1152
+ parsedBody,
1153
+ errorCode
1154
+ });
1155
+ }
1156
+ }, "de_DeleteSubscriptionCommandError");
1157
+ var de_DescribeAttackCommand = /* @__PURE__ */ __name(async (output, context) => {
1158
+ if (output.statusCode >= 300) {
1159
+ return de_DescribeAttackCommandError(output, context);
1160
+ }
1161
+ const data = await parseBody(output.body, context);
1162
+ let contents = {};
1163
+ contents = de_DescribeAttackResponse(data, context);
1164
+ const response = {
1165
+ $metadata: deserializeMetadata(output),
1166
+ ...contents
1167
+ };
1168
+ return response;
1169
+ }, "de_DescribeAttackCommand");
1170
+ var de_DescribeAttackCommandError = /* @__PURE__ */ __name(async (output, context) => {
1171
+ const parsedOutput = {
1172
+ ...output,
1173
+ body: await parseErrorBody(output.body, context)
1174
+ };
1175
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1176
+ switch (errorCode) {
1177
+ case "AccessDeniedException":
1178
+ case "com.amazonaws.shield#AccessDeniedException":
1179
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1180
+ case "InternalErrorException":
1181
+ case "com.amazonaws.shield#InternalErrorException":
1182
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1183
+ default:
1184
+ const parsedBody = parsedOutput.body;
1185
+ return throwDefaultError({
1186
+ output,
1187
+ parsedBody,
1188
+ errorCode
1189
+ });
1190
+ }
1191
+ }, "de_DescribeAttackCommandError");
1192
+ var de_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
1193
+ if (output.statusCode >= 300) {
1194
+ return de_DescribeAttackStatisticsCommandError(output, context);
1195
+ }
1196
+ const data = await parseBody(output.body, context);
1197
+ let contents = {};
1198
+ contents = de_DescribeAttackStatisticsResponse(data, context);
1199
+ const response = {
1200
+ $metadata: deserializeMetadata(output),
1201
+ ...contents
1202
+ };
1203
+ return response;
1204
+ }, "de_DescribeAttackStatisticsCommand");
1205
+ var de_DescribeAttackStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1206
+ const parsedOutput = {
1207
+ ...output,
1208
+ body: await parseErrorBody(output.body, context)
1209
+ };
1210
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1211
+ switch (errorCode) {
1212
+ case "InternalErrorException":
1213
+ case "com.amazonaws.shield#InternalErrorException":
1214
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1215
+ default:
1216
+ const parsedBody = parsedOutput.body;
1217
+ return throwDefaultError({
1218
+ output,
1219
+ parsedBody,
1220
+ errorCode
1221
+ });
1222
+ }
1223
+ }, "de_DescribeAttackStatisticsCommandError");
1224
+ var de_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
1225
+ if (output.statusCode >= 300) {
1226
+ return de_DescribeDRTAccessCommandError(output, context);
1227
+ }
1228
+ const data = await parseBody(output.body, context);
1229
+ let contents = {};
1230
+ contents = (0, import_smithy_client._json)(data);
1231
+ const response = {
1232
+ $metadata: deserializeMetadata(output),
1233
+ ...contents
1234
+ };
1235
+ return response;
1236
+ }, "de_DescribeDRTAccessCommand");
1237
+ var de_DescribeDRTAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
1238
+ const parsedOutput = {
1239
+ ...output,
1240
+ body: await parseErrorBody(output.body, context)
1241
+ };
1242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
+ switch (errorCode) {
1244
+ case "InternalErrorException":
1245
+ case "com.amazonaws.shield#InternalErrorException":
1246
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1247
+ case "ResourceNotFoundException":
1248
+ case "com.amazonaws.shield#ResourceNotFoundException":
1249
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1250
+ default:
1251
+ const parsedBody = parsedOutput.body;
1252
+ return throwDefaultError({
1253
+ output,
1254
+ parsedBody,
1255
+ errorCode
1256
+ });
1257
+ }
1258
+ }, "de_DescribeDRTAccessCommandError");
1259
+ var de_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1260
+ if (output.statusCode >= 300) {
1261
+ return de_DescribeEmergencyContactSettingsCommandError(output, context);
1262
+ }
1263
+ const data = await parseBody(output.body, context);
1264
+ let contents = {};
1265
+ contents = (0, import_smithy_client._json)(data);
1266
+ const response = {
1267
+ $metadata: deserializeMetadata(output),
1268
+ ...contents
1269
+ };
1270
+ return response;
1271
+ }, "de_DescribeEmergencyContactSettingsCommand");
1272
+ var de_DescribeEmergencyContactSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1273
+ const parsedOutput = {
1274
+ ...output,
1275
+ body: await parseErrorBody(output.body, context)
1276
+ };
1277
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1278
+ switch (errorCode) {
1279
+ case "InternalErrorException":
1280
+ case "com.amazonaws.shield#InternalErrorException":
1281
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1282
+ case "ResourceNotFoundException":
1283
+ case "com.amazonaws.shield#ResourceNotFoundException":
1284
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1285
+ default:
1286
+ const parsedBody = parsedOutput.body;
1287
+ return throwDefaultError({
1288
+ output,
1289
+ parsedBody,
1290
+ errorCode
1291
+ });
1292
+ }
1293
+ }, "de_DescribeEmergencyContactSettingsCommandError");
1294
+ var de_DescribeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1295
+ if (output.statusCode >= 300) {
1296
+ return de_DescribeProtectionCommandError(output, context);
1297
+ }
1298
+ const data = await parseBody(output.body, context);
1299
+ let contents = {};
1300
+ contents = (0, import_smithy_client._json)(data);
1301
+ const response = {
1302
+ $metadata: deserializeMetadata(output),
1303
+ ...contents
1304
+ };
1305
+ return response;
1306
+ }, "de_DescribeProtectionCommand");
1307
+ var de_DescribeProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1308
+ const parsedOutput = {
1309
+ ...output,
1310
+ body: await parseErrorBody(output.body, context)
1311
+ };
1312
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1313
+ switch (errorCode) {
1314
+ case "InternalErrorException":
1315
+ case "com.amazonaws.shield#InternalErrorException":
1316
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1317
+ case "InvalidParameterException":
1318
+ case "com.amazonaws.shield#InvalidParameterException":
1319
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1320
+ case "ResourceNotFoundException":
1321
+ case "com.amazonaws.shield#ResourceNotFoundException":
1322
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1323
+ default:
1324
+ const parsedBody = parsedOutput.body;
1325
+ return throwDefaultError({
1326
+ output,
1327
+ parsedBody,
1328
+ errorCode
1329
+ });
1330
+ }
1331
+ }, "de_DescribeProtectionCommandError");
1332
+ var de_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1333
+ if (output.statusCode >= 300) {
1334
+ return de_DescribeProtectionGroupCommandError(output, context);
1335
+ }
1336
+ const data = await parseBody(output.body, context);
1337
+ let contents = {};
1338
+ contents = (0, import_smithy_client._json)(data);
1339
+ const response = {
1340
+ $metadata: deserializeMetadata(output),
1341
+ ...contents
1342
+ };
1343
+ return response;
1344
+ }, "de_DescribeProtectionGroupCommand");
1345
+ var de_DescribeProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1346
+ const parsedOutput = {
1347
+ ...output,
1348
+ body: await parseErrorBody(output.body, context)
1349
+ };
1350
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1351
+ switch (errorCode) {
1352
+ case "InternalErrorException":
1353
+ case "com.amazonaws.shield#InternalErrorException":
1354
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1355
+ case "ResourceNotFoundException":
1356
+ case "com.amazonaws.shield#ResourceNotFoundException":
1357
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1358
+ default:
1359
+ const parsedBody = parsedOutput.body;
1360
+ return throwDefaultError({
1361
+ output,
1362
+ parsedBody,
1363
+ errorCode
1364
+ });
1365
+ }
1366
+ }, "de_DescribeProtectionGroupCommandError");
1367
+ var de_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1368
+ if (output.statusCode >= 300) {
1369
+ return de_DescribeSubscriptionCommandError(output, context);
1370
+ }
1371
+ const data = await parseBody(output.body, context);
1372
+ let contents = {};
1373
+ contents = de_DescribeSubscriptionResponse(data, context);
1374
+ const response = {
1375
+ $metadata: deserializeMetadata(output),
1376
+ ...contents
1377
+ };
1378
+ return response;
1379
+ }, "de_DescribeSubscriptionCommand");
1380
+ var de_DescribeSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1381
+ const parsedOutput = {
1382
+ ...output,
1383
+ body: await parseErrorBody(output.body, context)
1384
+ };
1385
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1386
+ switch (errorCode) {
1387
+ case "InternalErrorException":
1388
+ case "com.amazonaws.shield#InternalErrorException":
1389
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1390
+ case "ResourceNotFoundException":
1391
+ case "com.amazonaws.shield#ResourceNotFoundException":
1392
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1393
+ default:
1394
+ const parsedBody = parsedOutput.body;
1395
+ return throwDefaultError({
1396
+ output,
1397
+ parsedBody,
1398
+ errorCode
1399
+ });
1400
+ }
1401
+ }, "de_DescribeSubscriptionCommandError");
1402
+ var de_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
1403
+ if (output.statusCode >= 300) {
1404
+ return de_DisableApplicationLayerAutomaticResponseCommandError(output, context);
1405
+ }
1406
+ const data = await parseBody(output.body, context);
1407
+ let contents = {};
1408
+ contents = (0, import_smithy_client._json)(data);
1409
+ const response = {
1410
+ $metadata: deserializeMetadata(output),
1411
+ ...contents
1412
+ };
1413
+ return response;
1414
+ }, "de_DisableApplicationLayerAutomaticResponseCommand");
1415
+ var de_DisableApplicationLayerAutomaticResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1416
+ const parsedOutput = {
1417
+ ...output,
1418
+ body: await parseErrorBody(output.body, context)
1419
+ };
1420
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1421
+ switch (errorCode) {
1422
+ case "InternalErrorException":
1423
+ case "com.amazonaws.shield#InternalErrorException":
1424
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1425
+ case "InvalidOperationException":
1426
+ case "com.amazonaws.shield#InvalidOperationException":
1427
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1428
+ case "InvalidParameterException":
1429
+ case "com.amazonaws.shield#InvalidParameterException":
1430
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1431
+ case "OptimisticLockException":
1432
+ case "com.amazonaws.shield#OptimisticLockException":
1433
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1434
+ case "ResourceNotFoundException":
1435
+ case "com.amazonaws.shield#ResourceNotFoundException":
1436
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1437
+ default:
1438
+ const parsedBody = parsedOutput.body;
1439
+ return throwDefaultError({
1440
+ output,
1441
+ parsedBody,
1442
+ errorCode
1443
+ });
1444
+ }
1445
+ }, "de_DisableApplicationLayerAutomaticResponseCommandError");
1446
+ var de_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
1447
+ if (output.statusCode >= 300) {
1448
+ return de_DisableProactiveEngagementCommandError(output, context);
1449
+ }
1450
+ const data = await parseBody(output.body, context);
1451
+ let contents = {};
1452
+ contents = (0, import_smithy_client._json)(data);
1453
+ const response = {
1454
+ $metadata: deserializeMetadata(output),
1455
+ ...contents
1456
+ };
1457
+ return response;
1458
+ }, "de_DisableProactiveEngagementCommand");
1459
+ var de_DisableProactiveEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
1460
+ const parsedOutput = {
1461
+ ...output,
1462
+ body: await parseErrorBody(output.body, context)
1463
+ };
1464
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1465
+ switch (errorCode) {
1466
+ case "InternalErrorException":
1467
+ case "com.amazonaws.shield#InternalErrorException":
1468
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1469
+ case "InvalidOperationException":
1470
+ case "com.amazonaws.shield#InvalidOperationException":
1471
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1472
+ case "InvalidParameterException":
1473
+ case "com.amazonaws.shield#InvalidParameterException":
1474
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1475
+ case "OptimisticLockException":
1476
+ case "com.amazonaws.shield#OptimisticLockException":
1477
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1478
+ case "ResourceNotFoundException":
1479
+ case "com.amazonaws.shield#ResourceNotFoundException":
1480
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1481
+ default:
1482
+ const parsedBody = parsedOutput.body;
1483
+ return throwDefaultError({
1484
+ output,
1485
+ parsedBody,
1486
+ errorCode
1487
+ });
1488
+ }
1489
+ }, "de_DisableProactiveEngagementCommandError");
1490
+ var de_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
1491
+ if (output.statusCode >= 300) {
1492
+ return de_DisassociateDRTLogBucketCommandError(output, context);
1493
+ }
1494
+ const data = await parseBody(output.body, context);
1495
+ let contents = {};
1496
+ contents = (0, import_smithy_client._json)(data);
1497
+ const response = {
1498
+ $metadata: deserializeMetadata(output),
1499
+ ...contents
1500
+ };
1501
+ return response;
1502
+ }, "de_DisassociateDRTLogBucketCommand");
1503
+ var de_DisassociateDRTLogBucketCommandError = /* @__PURE__ */ __name(async (output, context) => {
1504
+ const parsedOutput = {
1505
+ ...output,
1506
+ body: await parseErrorBody(output.body, context)
1507
+ };
1508
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1509
+ switch (errorCode) {
1510
+ case "AccessDeniedForDependencyException":
1511
+ case "com.amazonaws.shield#AccessDeniedForDependencyException":
1512
+ throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
1513
+ case "InternalErrorException":
1514
+ case "com.amazonaws.shield#InternalErrorException":
1515
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1516
+ case "InvalidOperationException":
1517
+ case "com.amazonaws.shield#InvalidOperationException":
1518
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1519
+ case "NoAssociatedRoleException":
1520
+ case "com.amazonaws.shield#NoAssociatedRoleException":
1521
+ throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
1522
+ case "OptimisticLockException":
1523
+ case "com.amazonaws.shield#OptimisticLockException":
1524
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1525
+ case "ResourceNotFoundException":
1526
+ case "com.amazonaws.shield#ResourceNotFoundException":
1527
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1528
+ default:
1529
+ const parsedBody = parsedOutput.body;
1530
+ return throwDefaultError({
1531
+ output,
1532
+ parsedBody,
1533
+ errorCode
1534
+ });
1535
+ }
1536
+ }, "de_DisassociateDRTLogBucketCommandError");
1537
+ var de_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
1538
+ if (output.statusCode >= 300) {
1539
+ return de_DisassociateDRTRoleCommandError(output, context);
1540
+ }
1541
+ const data = await parseBody(output.body, context);
1542
+ let contents = {};
1543
+ contents = (0, import_smithy_client._json)(data);
1544
+ const response = {
1545
+ $metadata: deserializeMetadata(output),
1546
+ ...contents
1547
+ };
1548
+ return response;
1549
+ }, "de_DisassociateDRTRoleCommand");
1550
+ var de_DisassociateDRTRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1551
+ const parsedOutput = {
1552
+ ...output,
1553
+ body: await parseErrorBody(output.body, context)
1554
+ };
1555
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1556
+ switch (errorCode) {
1557
+ case "InternalErrorException":
1558
+ case "com.amazonaws.shield#InternalErrorException":
1559
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1560
+ case "InvalidOperationException":
1561
+ case "com.amazonaws.shield#InvalidOperationException":
1562
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1563
+ case "OptimisticLockException":
1564
+ case "com.amazonaws.shield#OptimisticLockException":
1565
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1566
+ case "ResourceNotFoundException":
1567
+ case "com.amazonaws.shield#ResourceNotFoundException":
1568
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1569
+ default:
1570
+ const parsedBody = parsedOutput.body;
1571
+ return throwDefaultError({
1572
+ output,
1573
+ parsedBody,
1574
+ errorCode
1575
+ });
1576
+ }
1577
+ }, "de_DisassociateDRTRoleCommandError");
1578
+ var de_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
1579
+ if (output.statusCode >= 300) {
1580
+ return de_DisassociateHealthCheckCommandError(output, context);
1581
+ }
1582
+ const data = await parseBody(output.body, context);
1583
+ let contents = {};
1584
+ contents = (0, import_smithy_client._json)(data);
1585
+ const response = {
1586
+ $metadata: deserializeMetadata(output),
1587
+ ...contents
1588
+ };
1589
+ return response;
1590
+ }, "de_DisassociateHealthCheckCommand");
1591
+ var de_DisassociateHealthCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
1592
+ const parsedOutput = {
1593
+ ...output,
1594
+ body: await parseErrorBody(output.body, context)
1595
+ };
1596
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1597
+ switch (errorCode) {
1598
+ case "InternalErrorException":
1599
+ case "com.amazonaws.shield#InternalErrorException":
1600
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1601
+ case "InvalidParameterException":
1602
+ case "com.amazonaws.shield#InvalidParameterException":
1603
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1604
+ case "InvalidResourceException":
1605
+ case "com.amazonaws.shield#InvalidResourceException":
1606
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1607
+ case "OptimisticLockException":
1608
+ case "com.amazonaws.shield#OptimisticLockException":
1609
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1610
+ case "ResourceNotFoundException":
1611
+ case "com.amazonaws.shield#ResourceNotFoundException":
1612
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1613
+ default:
1614
+ const parsedBody = parsedOutput.body;
1615
+ return throwDefaultError({
1616
+ output,
1617
+ parsedBody,
1618
+ errorCode
1619
+ });
1620
+ }
1621
+ }, "de_DisassociateHealthCheckCommandError");
1622
+ var de_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
1623
+ if (output.statusCode >= 300) {
1624
+ return de_EnableApplicationLayerAutomaticResponseCommandError(output, context);
1625
+ }
1626
+ const data = await parseBody(output.body, context);
1627
+ let contents = {};
1628
+ contents = (0, import_smithy_client._json)(data);
1629
+ const response = {
1630
+ $metadata: deserializeMetadata(output),
1631
+ ...contents
1632
+ };
1633
+ return response;
1634
+ }, "de_EnableApplicationLayerAutomaticResponseCommand");
1635
+ var de_EnableApplicationLayerAutomaticResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1636
+ const parsedOutput = {
1637
+ ...output,
1638
+ body: await parseErrorBody(output.body, context)
1639
+ };
1640
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1641
+ switch (errorCode) {
1642
+ case "InternalErrorException":
1643
+ case "com.amazonaws.shield#InternalErrorException":
1644
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1645
+ case "InvalidOperationException":
1646
+ case "com.amazonaws.shield#InvalidOperationException":
1647
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1648
+ case "InvalidParameterException":
1649
+ case "com.amazonaws.shield#InvalidParameterException":
1650
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1651
+ case "LimitsExceededException":
1652
+ case "com.amazonaws.shield#LimitsExceededException":
1653
+ throw await de_LimitsExceededExceptionRes(parsedOutput, context);
1654
+ case "OptimisticLockException":
1655
+ case "com.amazonaws.shield#OptimisticLockException":
1656
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1657
+ case "ResourceNotFoundException":
1658
+ case "com.amazonaws.shield#ResourceNotFoundException":
1659
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1660
+ default:
1661
+ const parsedBody = parsedOutput.body;
1662
+ return throwDefaultError({
1663
+ output,
1664
+ parsedBody,
1665
+ errorCode
1666
+ });
1667
+ }
1668
+ }, "de_EnableApplicationLayerAutomaticResponseCommandError");
1669
+ var de_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
1670
+ if (output.statusCode >= 300) {
1671
+ return de_EnableProactiveEngagementCommandError(output, context);
1672
+ }
1673
+ const data = await parseBody(output.body, context);
1674
+ let contents = {};
1675
+ contents = (0, import_smithy_client._json)(data);
1676
+ const response = {
1677
+ $metadata: deserializeMetadata(output),
1678
+ ...contents
1679
+ };
1680
+ return response;
1681
+ }, "de_EnableProactiveEngagementCommand");
1682
+ var de_EnableProactiveEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
1683
+ const parsedOutput = {
1684
+ ...output,
1685
+ body: await parseErrorBody(output.body, context)
1686
+ };
1687
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1688
+ switch (errorCode) {
1689
+ case "InternalErrorException":
1690
+ case "com.amazonaws.shield#InternalErrorException":
1691
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1692
+ case "InvalidOperationException":
1693
+ case "com.amazonaws.shield#InvalidOperationException":
1694
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1695
+ case "InvalidParameterException":
1696
+ case "com.amazonaws.shield#InvalidParameterException":
1697
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1698
+ case "OptimisticLockException":
1699
+ case "com.amazonaws.shield#OptimisticLockException":
1700
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
1701
+ case "ResourceNotFoundException":
1702
+ case "com.amazonaws.shield#ResourceNotFoundException":
1703
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1704
+ default:
1705
+ const parsedBody = parsedOutput.body;
1706
+ return throwDefaultError({
1707
+ output,
1708
+ parsedBody,
1709
+ errorCode
1710
+ });
1711
+ }
1712
+ }, "de_EnableProactiveEngagementCommandError");
1713
+ var de_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (output, context) => {
1714
+ if (output.statusCode >= 300) {
1715
+ return de_GetSubscriptionStateCommandError(output, context);
1716
+ }
1717
+ const data = await parseBody(output.body, context);
1718
+ let contents = {};
1719
+ contents = (0, import_smithy_client._json)(data);
1720
+ const response = {
1721
+ $metadata: deserializeMetadata(output),
1722
+ ...contents
1723
+ };
1724
+ return response;
1725
+ }, "de_GetSubscriptionStateCommand");
1726
+ var de_GetSubscriptionStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1727
+ const parsedOutput = {
1728
+ ...output,
1729
+ body: await parseErrorBody(output.body, context)
1730
+ };
1731
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1732
+ switch (errorCode) {
1733
+ case "InternalErrorException":
1734
+ case "com.amazonaws.shield#InternalErrorException":
1735
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1736
+ default:
1737
+ const parsedBody = parsedOutput.body;
1738
+ return throwDefaultError({
1739
+ output,
1740
+ parsedBody,
1741
+ errorCode
1742
+ });
1743
+ }
1744
+ }, "de_GetSubscriptionStateCommandError");
1745
+ var de_ListAttacksCommand = /* @__PURE__ */ __name(async (output, context) => {
1746
+ if (output.statusCode >= 300) {
1747
+ return de_ListAttacksCommandError(output, context);
1748
+ }
1749
+ const data = await parseBody(output.body, context);
1750
+ let contents = {};
1751
+ contents = de_ListAttacksResponse(data, context);
1752
+ const response = {
1753
+ $metadata: deserializeMetadata(output),
1754
+ ...contents
1755
+ };
1756
+ return response;
1757
+ }, "de_ListAttacksCommand");
1758
+ var de_ListAttacksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1759
+ const parsedOutput = {
1760
+ ...output,
1761
+ body: await parseErrorBody(output.body, context)
1762
+ };
1763
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1764
+ switch (errorCode) {
1765
+ case "InternalErrorException":
1766
+ case "com.amazonaws.shield#InternalErrorException":
1767
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1768
+ case "InvalidOperationException":
1769
+ case "com.amazonaws.shield#InvalidOperationException":
1770
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1771
+ case "InvalidParameterException":
1772
+ case "com.amazonaws.shield#InvalidParameterException":
1773
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1774
+ default:
1775
+ const parsedBody = parsedOutput.body;
1776
+ return throwDefaultError({
1777
+ output,
1778
+ parsedBody,
1779
+ errorCode
1780
+ });
1781
+ }
1782
+ }, "de_ListAttacksCommandError");
1783
+ var de_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1784
+ if (output.statusCode >= 300) {
1785
+ return de_ListProtectionGroupsCommandError(output, context);
1786
+ }
1787
+ const data = await parseBody(output.body, context);
1788
+ let contents = {};
1789
+ contents = (0, import_smithy_client._json)(data);
1790
+ const response = {
1791
+ $metadata: deserializeMetadata(output),
1792
+ ...contents
1793
+ };
1794
+ return response;
1795
+ }, "de_ListProtectionGroupsCommand");
1796
+ var de_ListProtectionGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1797
+ const parsedOutput = {
1798
+ ...output,
1799
+ body: await parseErrorBody(output.body, context)
1800
+ };
1801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1802
+ switch (errorCode) {
1803
+ case "InternalErrorException":
1804
+ case "com.amazonaws.shield#InternalErrorException":
1805
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1806
+ case "InvalidPaginationTokenException":
1807
+ case "com.amazonaws.shield#InvalidPaginationTokenException":
1808
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1809
+ case "ResourceNotFoundException":
1810
+ case "com.amazonaws.shield#ResourceNotFoundException":
1811
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1812
+ default:
1813
+ const parsedBody = parsedOutput.body;
1814
+ return throwDefaultError({
1815
+ output,
1816
+ parsedBody,
1817
+ errorCode
1818
+ });
1819
+ }
1820
+ }, "de_ListProtectionGroupsCommandError");
1821
+ var de_ListProtectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1822
+ if (output.statusCode >= 300) {
1823
+ return de_ListProtectionsCommandError(output, context);
1824
+ }
1825
+ const data = await parseBody(output.body, context);
1826
+ let contents = {};
1827
+ contents = (0, import_smithy_client._json)(data);
1828
+ const response = {
1829
+ $metadata: deserializeMetadata(output),
1830
+ ...contents
1831
+ };
1832
+ return response;
1833
+ }, "de_ListProtectionsCommand");
1834
+ var de_ListProtectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1835
+ const parsedOutput = {
1836
+ ...output,
1837
+ body: await parseErrorBody(output.body, context)
1838
+ };
1839
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1840
+ switch (errorCode) {
1841
+ case "InternalErrorException":
1842
+ case "com.amazonaws.shield#InternalErrorException":
1843
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1844
+ case "InvalidPaginationTokenException":
1845
+ case "com.amazonaws.shield#InvalidPaginationTokenException":
1846
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1847
+ case "ResourceNotFoundException":
1848
+ case "com.amazonaws.shield#ResourceNotFoundException":
1849
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1850
+ default:
1851
+ const parsedBody = parsedOutput.body;
1852
+ return throwDefaultError({
1853
+ output,
1854
+ parsedBody,
1855
+ errorCode
1856
+ });
1857
+ }
1858
+ }, "de_ListProtectionsCommandError");
1859
+ var de_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1860
+ if (output.statusCode >= 300) {
1861
+ return de_ListResourcesInProtectionGroupCommandError(output, context);
1862
+ }
1863
+ const data = await parseBody(output.body, context);
1864
+ let contents = {};
1865
+ contents = (0, import_smithy_client._json)(data);
1866
+ const response = {
1867
+ $metadata: deserializeMetadata(output),
1868
+ ...contents
1869
+ };
1870
+ return response;
1871
+ }, "de_ListResourcesInProtectionGroupCommand");
1872
+ var de_ListResourcesInProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1873
+ const parsedOutput = {
1874
+ ...output,
1875
+ body: await parseErrorBody(output.body, context)
1876
+ };
1877
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1878
+ switch (errorCode) {
1879
+ case "InternalErrorException":
1880
+ case "com.amazonaws.shield#InternalErrorException":
1881
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1882
+ case "InvalidPaginationTokenException":
1883
+ case "com.amazonaws.shield#InvalidPaginationTokenException":
1884
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1885
+ case "ResourceNotFoundException":
1886
+ case "com.amazonaws.shield#ResourceNotFoundException":
1887
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1888
+ default:
1889
+ const parsedBody = parsedOutput.body;
1890
+ return throwDefaultError({
1891
+ output,
1892
+ parsedBody,
1893
+ errorCode
1894
+ });
1895
+ }
1896
+ }, "de_ListResourcesInProtectionGroupCommandError");
1897
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1898
+ if (output.statusCode >= 300) {
1899
+ return de_ListTagsForResourceCommandError(output, context);
1900
+ }
1901
+ const data = await parseBody(output.body, context);
1902
+ let contents = {};
1903
+ contents = (0, import_smithy_client._json)(data);
1904
+ const response = {
1905
+ $metadata: deserializeMetadata(output),
1906
+ ...contents
1907
+ };
1908
+ return response;
1909
+ }, "de_ListTagsForResourceCommand");
1910
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1911
+ const parsedOutput = {
1912
+ ...output,
1913
+ body: await parseErrorBody(output.body, context)
1914
+ };
1915
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1916
+ switch (errorCode) {
1917
+ case "InternalErrorException":
1918
+ case "com.amazonaws.shield#InternalErrorException":
1919
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1920
+ case "InvalidResourceException":
1921
+ case "com.amazonaws.shield#InvalidResourceException":
1922
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1923
+ case "ResourceNotFoundException":
1924
+ case "com.amazonaws.shield#ResourceNotFoundException":
1925
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1926
+ default:
1927
+ const parsedBody = parsedOutput.body;
1928
+ return throwDefaultError({
1929
+ output,
1930
+ parsedBody,
1931
+ errorCode
1932
+ });
1933
+ }
1934
+ }, "de_ListTagsForResourceCommandError");
1935
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1936
+ if (output.statusCode >= 300) {
1937
+ return de_TagResourceCommandError(output, context);
1938
+ }
1939
+ const data = await parseBody(output.body, context);
1940
+ let contents = {};
1941
+ contents = (0, import_smithy_client._json)(data);
1942
+ const response = {
1943
+ $metadata: deserializeMetadata(output),
1944
+ ...contents
1945
+ };
1946
+ return response;
1947
+ }, "de_TagResourceCommand");
1948
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1949
+ const parsedOutput = {
1950
+ ...output,
1951
+ body: await parseErrorBody(output.body, context)
1952
+ };
1953
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1954
+ switch (errorCode) {
1955
+ case "InternalErrorException":
1956
+ case "com.amazonaws.shield#InternalErrorException":
1957
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1958
+ case "InvalidParameterException":
1959
+ case "com.amazonaws.shield#InvalidParameterException":
1960
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1961
+ case "InvalidResourceException":
1962
+ case "com.amazonaws.shield#InvalidResourceException":
1963
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1964
+ case "ResourceNotFoundException":
1965
+ case "com.amazonaws.shield#ResourceNotFoundException":
1966
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1967
+ default:
1968
+ const parsedBody = parsedOutput.body;
1969
+ return throwDefaultError({
1970
+ output,
1971
+ parsedBody,
1972
+ errorCode
1973
+ });
1974
+ }
1975
+ }, "de_TagResourceCommandError");
1976
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1977
+ if (output.statusCode >= 300) {
1978
+ return de_UntagResourceCommandError(output, context);
1979
+ }
1980
+ const data = await parseBody(output.body, context);
1981
+ let contents = {};
1982
+ contents = (0, import_smithy_client._json)(data);
1983
+ const response = {
1984
+ $metadata: deserializeMetadata(output),
1985
+ ...contents
1986
+ };
1987
+ return response;
1988
+ }, "de_UntagResourceCommand");
1989
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1990
+ const parsedOutput = {
1991
+ ...output,
1992
+ body: await parseErrorBody(output.body, context)
1993
+ };
1994
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1995
+ switch (errorCode) {
1996
+ case "InternalErrorException":
1997
+ case "com.amazonaws.shield#InternalErrorException":
1998
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1999
+ case "InvalidParameterException":
2000
+ case "com.amazonaws.shield#InvalidParameterException":
2001
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2002
+ case "InvalidResourceException":
2003
+ case "com.amazonaws.shield#InvalidResourceException":
2004
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
2005
+ case "ResourceNotFoundException":
2006
+ case "com.amazonaws.shield#ResourceNotFoundException":
2007
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2008
+ default:
2009
+ const parsedBody = parsedOutput.body;
2010
+ return throwDefaultError({
2011
+ output,
2012
+ parsedBody,
2013
+ errorCode
2014
+ });
2015
+ }
2016
+ }, "de_UntagResourceCommandError");
2017
+ var de_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
2018
+ if (output.statusCode >= 300) {
2019
+ return de_UpdateApplicationLayerAutomaticResponseCommandError(output, context);
2020
+ }
2021
+ const data = await parseBody(output.body, context);
2022
+ let contents = {};
2023
+ contents = (0, import_smithy_client._json)(data);
2024
+ const response = {
2025
+ $metadata: deserializeMetadata(output),
2026
+ ...contents
2027
+ };
2028
+ return response;
2029
+ }, "de_UpdateApplicationLayerAutomaticResponseCommand");
2030
+ var de_UpdateApplicationLayerAutomaticResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2031
+ const parsedOutput = {
2032
+ ...output,
2033
+ body: await parseErrorBody(output.body, context)
2034
+ };
2035
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2036
+ switch (errorCode) {
2037
+ case "InternalErrorException":
2038
+ case "com.amazonaws.shield#InternalErrorException":
2039
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
2040
+ case "InvalidOperationException":
2041
+ case "com.amazonaws.shield#InvalidOperationException":
2042
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
2043
+ case "InvalidParameterException":
2044
+ case "com.amazonaws.shield#InvalidParameterException":
2045
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2046
+ case "OptimisticLockException":
2047
+ case "com.amazonaws.shield#OptimisticLockException":
2048
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
2049
+ case "ResourceNotFoundException":
2050
+ case "com.amazonaws.shield#ResourceNotFoundException":
2051
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2052
+ default:
2053
+ const parsedBody = parsedOutput.body;
2054
+ return throwDefaultError({
2055
+ output,
2056
+ parsedBody,
2057
+ errorCode
2058
+ });
2059
+ }
2060
+ }, "de_UpdateApplicationLayerAutomaticResponseCommandError");
2061
+ var de_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2062
+ if (output.statusCode >= 300) {
2063
+ return de_UpdateEmergencyContactSettingsCommandError(output, context);
2064
+ }
2065
+ const data = await parseBody(output.body, context);
2066
+ let contents = {};
2067
+ contents = (0, import_smithy_client._json)(data);
2068
+ const response = {
2069
+ $metadata: deserializeMetadata(output),
2070
+ ...contents
2071
+ };
2072
+ return response;
2073
+ }, "de_UpdateEmergencyContactSettingsCommand");
2074
+ var de_UpdateEmergencyContactSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2075
+ const parsedOutput = {
2076
+ ...output,
2077
+ body: await parseErrorBody(output.body, context)
2078
+ };
2079
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2080
+ switch (errorCode) {
2081
+ case "InternalErrorException":
2082
+ case "com.amazonaws.shield#InternalErrorException":
2083
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
2084
+ case "InvalidParameterException":
2085
+ case "com.amazonaws.shield#InvalidParameterException":
2086
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2087
+ case "OptimisticLockException":
2088
+ case "com.amazonaws.shield#OptimisticLockException":
2089
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
2090
+ case "ResourceNotFoundException":
2091
+ case "com.amazonaws.shield#ResourceNotFoundException":
2092
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2093
+ default:
2094
+ const parsedBody = parsedOutput.body;
2095
+ return throwDefaultError({
2096
+ output,
2097
+ parsedBody,
2098
+ errorCode
2099
+ });
2100
+ }
2101
+ }, "de_UpdateEmergencyContactSettingsCommandError");
2102
+ var de_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2103
+ if (output.statusCode >= 300) {
2104
+ return de_UpdateProtectionGroupCommandError(output, context);
2105
+ }
2106
+ const data = await parseBody(output.body, context);
2107
+ let contents = {};
2108
+ contents = (0, import_smithy_client._json)(data);
2109
+ const response = {
2110
+ $metadata: deserializeMetadata(output),
2111
+ ...contents
2112
+ };
2113
+ return response;
2114
+ }, "de_UpdateProtectionGroupCommand");
2115
+ var de_UpdateProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2116
+ const parsedOutput = {
2117
+ ...output,
2118
+ body: await parseErrorBody(output.body, context)
2119
+ };
2120
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2121
+ switch (errorCode) {
2122
+ case "InternalErrorException":
2123
+ case "com.amazonaws.shield#InternalErrorException":
2124
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
2125
+ case "InvalidParameterException":
2126
+ case "com.amazonaws.shield#InvalidParameterException":
2127
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2128
+ case "OptimisticLockException":
2129
+ case "com.amazonaws.shield#OptimisticLockException":
2130
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
2131
+ case "ResourceNotFoundException":
2132
+ case "com.amazonaws.shield#ResourceNotFoundException":
2133
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2134
+ default:
2135
+ const parsedBody = parsedOutput.body;
2136
+ return throwDefaultError({
2137
+ output,
2138
+ parsedBody,
2139
+ errorCode
2140
+ });
2141
+ }
2142
+ }, "de_UpdateProtectionGroupCommandError");
2143
+ var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
2144
+ if (output.statusCode >= 300) {
2145
+ return de_UpdateSubscriptionCommandError(output, context);
2146
+ }
2147
+ const data = await parseBody(output.body, context);
2148
+ let contents = {};
2149
+ contents = (0, import_smithy_client._json)(data);
2150
+ const response = {
2151
+ $metadata: deserializeMetadata(output),
2152
+ ...contents
2153
+ };
2154
+ return response;
2155
+ }, "de_UpdateSubscriptionCommand");
2156
+ var de_UpdateSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2157
+ const parsedOutput = {
2158
+ ...output,
2159
+ body: await parseErrorBody(output.body, context)
2160
+ };
2161
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2162
+ switch (errorCode) {
2163
+ case "InternalErrorException":
2164
+ case "com.amazonaws.shield#InternalErrorException":
2165
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
2166
+ case "InvalidParameterException":
2167
+ case "com.amazonaws.shield#InvalidParameterException":
2168
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2169
+ case "LockedSubscriptionException":
2170
+ case "com.amazonaws.shield#LockedSubscriptionException":
2171
+ throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
2172
+ case "OptimisticLockException":
2173
+ case "com.amazonaws.shield#OptimisticLockException":
2174
+ throw await de_OptimisticLockExceptionRes(parsedOutput, context);
2175
+ case "ResourceNotFoundException":
2176
+ case "com.amazonaws.shield#ResourceNotFoundException":
2177
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2178
+ default:
2179
+ const parsedBody = parsedOutput.body;
2180
+ return throwDefaultError({
2181
+ output,
2182
+ parsedBody,
2183
+ errorCode
2184
+ });
2185
+ }
2186
+ }, "de_UpdateSubscriptionCommandError");
2187
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2188
+ const body = parsedOutput.body;
2189
+ const deserialized = (0, import_smithy_client._json)(body);
2190
+ const exception = new AccessDeniedException({
2191
+ $metadata: deserializeMetadata(parsedOutput),
2192
+ ...deserialized
2193
+ });
2194
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2195
+ }, "de_AccessDeniedExceptionRes");
2196
+ var de_AccessDeniedForDependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2197
+ const body = parsedOutput.body;
2198
+ const deserialized = (0, import_smithy_client._json)(body);
2199
+ const exception = new AccessDeniedForDependencyException({
2200
+ $metadata: deserializeMetadata(parsedOutput),
2201
+ ...deserialized
2202
+ });
2203
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2204
+ }, "de_AccessDeniedForDependencyExceptionRes");
2205
+ var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2206
+ const body = parsedOutput.body;
2207
+ const deserialized = (0, import_smithy_client._json)(body);
2208
+ const exception = new InternalErrorException({
2209
+ $metadata: deserializeMetadata(parsedOutput),
2210
+ ...deserialized
2211
+ });
2212
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2213
+ }, "de_InternalErrorExceptionRes");
2214
+ var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2215
+ const body = parsedOutput.body;
2216
+ const deserialized = (0, import_smithy_client._json)(body);
2217
+ const exception = new InvalidOperationException({
2218
+ $metadata: deserializeMetadata(parsedOutput),
2219
+ ...deserialized
2220
+ });
2221
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2222
+ }, "de_InvalidOperationExceptionRes");
2223
+ var de_InvalidPaginationTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2224
+ const body = parsedOutput.body;
2225
+ const deserialized = (0, import_smithy_client._json)(body);
2226
+ const exception = new InvalidPaginationTokenException({
2227
+ $metadata: deserializeMetadata(parsedOutput),
2228
+ ...deserialized
2229
+ });
2230
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2231
+ }, "de_InvalidPaginationTokenExceptionRes");
2232
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2233
+ const body = parsedOutput.body;
2234
+ const deserialized = (0, import_smithy_client._json)(body);
2235
+ const exception = new InvalidParameterException({
2236
+ $metadata: deserializeMetadata(parsedOutput),
2237
+ ...deserialized
2238
+ });
2239
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2240
+ }, "de_InvalidParameterExceptionRes");
2241
+ var de_InvalidResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2242
+ const body = parsedOutput.body;
2243
+ const deserialized = (0, import_smithy_client._json)(body);
2244
+ const exception = new InvalidResourceException({
2245
+ $metadata: deserializeMetadata(parsedOutput),
2246
+ ...deserialized
2247
+ });
2248
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2249
+ }, "de_InvalidResourceExceptionRes");
2250
+ var de_LimitsExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2251
+ const body = parsedOutput.body;
2252
+ const deserialized = (0, import_smithy_client._json)(body);
2253
+ const exception = new LimitsExceededException({
2254
+ $metadata: deserializeMetadata(parsedOutput),
2255
+ ...deserialized
2256
+ });
2257
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2258
+ }, "de_LimitsExceededExceptionRes");
2259
+ var de_LockedSubscriptionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2260
+ const body = parsedOutput.body;
2261
+ const deserialized = (0, import_smithy_client._json)(body);
2262
+ const exception = new LockedSubscriptionException({
2263
+ $metadata: deserializeMetadata(parsedOutput),
2264
+ ...deserialized
2265
+ });
2266
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2267
+ }, "de_LockedSubscriptionExceptionRes");
2268
+ var de_NoAssociatedRoleExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2269
+ const body = parsedOutput.body;
2270
+ const deserialized = (0, import_smithy_client._json)(body);
2271
+ const exception = new NoAssociatedRoleException({
2272
+ $metadata: deserializeMetadata(parsedOutput),
2273
+ ...deserialized
2274
+ });
2275
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2276
+ }, "de_NoAssociatedRoleExceptionRes");
2277
+ var de_OptimisticLockExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2278
+ const body = parsedOutput.body;
2279
+ const deserialized = (0, import_smithy_client._json)(body);
2280
+ const exception = new OptimisticLockException({
2281
+ $metadata: deserializeMetadata(parsedOutput),
2282
+ ...deserialized
2283
+ });
2284
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2285
+ }, "de_OptimisticLockExceptionRes");
2286
+ var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2287
+ const body = parsedOutput.body;
2288
+ const deserialized = (0, import_smithy_client._json)(body);
2289
+ const exception = new ResourceAlreadyExistsException({
2290
+ $metadata: deserializeMetadata(parsedOutput),
2291
+ ...deserialized
2292
+ });
2293
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2294
+ }, "de_ResourceAlreadyExistsExceptionRes");
2295
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2296
+ const body = parsedOutput.body;
2297
+ const deserialized = (0, import_smithy_client._json)(body);
2298
+ const exception = new ResourceNotFoundException({
2299
+ $metadata: deserializeMetadata(parsedOutput),
2300
+ ...deserialized
2301
+ });
2302
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2303
+ }, "de_ResourceNotFoundExceptionRes");
2304
+ var se_ListAttacksRequest = /* @__PURE__ */ __name((input, context) => {
2305
+ return (0, import_smithy_client.take)(input, {
2306
+ EndTime: (_) => se_TimeRange(_, context),
2307
+ MaxResults: [],
2308
+ NextToken: [],
2309
+ ResourceArns: import_smithy_client._json,
2310
+ StartTime: (_) => se_TimeRange(_, context)
2311
+ });
2312
+ }, "se_ListAttacksRequest");
2313
+ var se_TimeRange = /* @__PURE__ */ __name((input, context) => {
2314
+ return (0, import_smithy_client.take)(input, {
2315
+ FromInclusive: (_) => Math.round(_.getTime() / 1e3),
2316
+ ToExclusive: (_) => Math.round(_.getTime() / 1e3)
2317
+ });
2318
+ }, "se_TimeRange");
2319
+ var de_AttackDetail = /* @__PURE__ */ __name((output, context) => {
2320
+ return (0, import_smithy_client.take)(output, {
2321
+ AttackCounters: (_) => de_SummarizedCounterList(_, context),
2322
+ AttackId: import_smithy_client.expectString,
2323
+ AttackProperties: import_smithy_client._json,
2324
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2325
+ Mitigations: import_smithy_client._json,
2326
+ ResourceArn: import_smithy_client.expectString,
2327
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2328
+ SubResources: (_) => de_SubResourceSummaryList(_, context)
2329
+ });
2330
+ }, "de_AttackDetail");
2331
+ var de_AttackStatisticsDataItem = /* @__PURE__ */ __name((output, context) => {
2332
+ return (0, import_smithy_client.take)(output, {
2333
+ AttackCount: import_smithy_client.expectLong,
2334
+ AttackVolume: (_) => de_AttackVolume(_, context)
2335
+ });
2336
+ }, "de_AttackStatisticsDataItem");
2337
+ var de_AttackStatisticsDataList = /* @__PURE__ */ __name((output, context) => {
2338
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2339
+ return de_AttackStatisticsDataItem(entry, context);
2340
+ });
2341
+ return retVal;
2342
+ }, "de_AttackStatisticsDataList");
2343
+ var de_AttackSummaries = /* @__PURE__ */ __name((output, context) => {
2344
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2345
+ return de_AttackSummary(entry, context);
2346
+ });
2347
+ return retVal;
2348
+ }, "de_AttackSummaries");
2349
+ var de_AttackSummary = /* @__PURE__ */ __name((output, context) => {
2350
+ return (0, import_smithy_client.take)(output, {
2351
+ AttackId: import_smithy_client.expectString,
2352
+ AttackVectors: import_smithy_client._json,
2353
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2354
+ ResourceArn: import_smithy_client.expectString,
2355
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2356
+ });
2357
+ }, "de_AttackSummary");
2358
+ var de_AttackVolume = /* @__PURE__ */ __name((output, context) => {
2359
+ return (0, import_smithy_client.take)(output, {
2360
+ BitsPerSecond: (_) => de_AttackVolumeStatistics(_, context),
2361
+ PacketsPerSecond: (_) => de_AttackVolumeStatistics(_, context),
2362
+ RequestsPerSecond: (_) => de_AttackVolumeStatistics(_, context)
2363
+ });
2364
+ }, "de_AttackVolume");
2365
+ var de_AttackVolumeStatistics = /* @__PURE__ */ __name((output, context) => {
2366
+ return (0, import_smithy_client.take)(output, {
2367
+ Max: import_smithy_client.limitedParseDouble
2368
+ });
2369
+ }, "de_AttackVolumeStatistics");
2370
+ var de_DescribeAttackResponse = /* @__PURE__ */ __name((output, context) => {
2371
+ return (0, import_smithy_client.take)(output, {
2372
+ Attack: (_) => de_AttackDetail(_, context)
2373
+ });
2374
+ }, "de_DescribeAttackResponse");
2375
+ var de_DescribeAttackStatisticsResponse = /* @__PURE__ */ __name((output, context) => {
2376
+ return (0, import_smithy_client.take)(output, {
2377
+ DataItems: (_) => de_AttackStatisticsDataList(_, context),
2378
+ TimeRange: (_) => de_TimeRange(_, context)
2379
+ });
2380
+ }, "de_DescribeAttackStatisticsResponse");
2381
+ var de_DescribeSubscriptionResponse = /* @__PURE__ */ __name((output, context) => {
2382
+ return (0, import_smithy_client.take)(output, {
2383
+ Subscription: (_) => de_Subscription(_, context)
2384
+ });
2385
+ }, "de_DescribeSubscriptionResponse");
2386
+ var de_ListAttacksResponse = /* @__PURE__ */ __name((output, context) => {
2387
+ return (0, import_smithy_client.take)(output, {
2388
+ AttackSummaries: (_) => de_AttackSummaries(_, context),
2389
+ NextToken: import_smithy_client.expectString
2390
+ });
2391
+ }, "de_ListAttacksResponse");
2392
+ var de_SubResourceSummary = /* @__PURE__ */ __name((output, context) => {
2393
+ return (0, import_smithy_client.take)(output, {
2394
+ AttackVectors: (_) => de_SummarizedAttackVectorList(_, context),
2395
+ Counters: (_) => de_SummarizedCounterList(_, context),
2396
+ Id: import_smithy_client.expectString,
2397
+ Type: import_smithy_client.expectString
2398
+ });
2399
+ }, "de_SubResourceSummary");
2400
+ var de_SubResourceSummaryList = /* @__PURE__ */ __name((output, context) => {
2401
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2402
+ return de_SubResourceSummary(entry, context);
2403
+ });
2404
+ return retVal;
2405
+ }, "de_SubResourceSummaryList");
2406
+ var de_Subscription = /* @__PURE__ */ __name((output, context) => {
2407
+ return (0, import_smithy_client.take)(output, {
2408
+ AutoRenew: import_smithy_client.expectString,
2409
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2410
+ Limits: import_smithy_client._json,
2411
+ ProactiveEngagementStatus: import_smithy_client.expectString,
2412
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2413
+ SubscriptionArn: import_smithy_client.expectString,
2414
+ SubscriptionLimits: import_smithy_client._json,
2415
+ TimeCommitmentInSeconds: import_smithy_client.expectLong
2416
+ });
2417
+ }, "de_Subscription");
2418
+ var de_SummarizedAttackVector = /* @__PURE__ */ __name((output, context) => {
2419
+ return (0, import_smithy_client.take)(output, {
2420
+ VectorCounters: (_) => de_SummarizedCounterList(_, context),
2421
+ VectorType: import_smithy_client.expectString
2422
+ });
2423
+ }, "de_SummarizedAttackVector");
2424
+ var de_SummarizedAttackVectorList = /* @__PURE__ */ __name((output, context) => {
2425
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2426
+ return de_SummarizedAttackVector(entry, context);
2427
+ });
2428
+ return retVal;
2429
+ }, "de_SummarizedAttackVectorList");
2430
+ var de_SummarizedCounter = /* @__PURE__ */ __name((output, context) => {
2431
+ return (0, import_smithy_client.take)(output, {
2432
+ Average: import_smithy_client.limitedParseDouble,
2433
+ Max: import_smithy_client.limitedParseDouble,
2434
+ N: import_smithy_client.expectInt32,
2435
+ Name: import_smithy_client.expectString,
2436
+ Sum: import_smithy_client.limitedParseDouble,
2437
+ Unit: import_smithy_client.expectString
2438
+ });
2439
+ }, "de_SummarizedCounter");
2440
+ var de_SummarizedCounterList = /* @__PURE__ */ __name((output, context) => {
2441
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2442
+ return de_SummarizedCounter(entry, context);
2443
+ });
2444
+ return retVal;
2445
+ }, "de_SummarizedCounterList");
2446
+ var de_TimeRange = /* @__PURE__ */ __name((output, context) => {
2447
+ return (0, import_smithy_client.take)(output, {
2448
+ FromInclusive: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2449
+ ToExclusive: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2450
+ });
2451
+ }, "de_TimeRange");
2452
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2453
+ httpStatusCode: output.statusCode,
2454
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2455
+ extendedRequestId: output.headers["x-amz-id-2"],
2456
+ cfId: output.headers["x-amz-cf-id"]
2457
+ }), "deserializeMetadata");
2458
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2459
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ShieldServiceException);
2460
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2461
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2462
+ const contents = {
2463
+ protocol,
2464
+ hostname,
2465
+ port,
2466
+ method: "POST",
2467
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2468
+ headers
2469
+ };
2470
+ if (resolvedHostname !== void 0) {
2471
+ contents.hostname = resolvedHostname;
2472
+ }
2473
+ if (body !== void 0) {
2474
+ contents.body = body;
2475
+ }
2476
+ return new import_protocol_http.HttpRequest(contents);
2477
+ }, "buildHttpRpcRequest");
2478
+ function sharedHeaders(operation) {
2479
+ return {
2480
+ "content-type": "application/x-amz-json-1.1",
2481
+ "x-amz-target": `AWSShield_20160616.${operation}`
2482
+ };
2483
+ }
2484
+ __name(sharedHeaders, "sharedHeaders");
2485
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2486
+ if (encoded.length) {
2487
+ return JSON.parse(encoded);
2488
+ }
2489
+ return {};
2490
+ }), "parseBody");
2491
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2492
+ const value = await parseBody(errorBody, context);
2493
+ value.message = value.message ?? value.Message;
2494
+ return value;
2495
+ }, "parseErrorBody");
2496
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2497
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2498
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2499
+ let cleanValue = rawValue;
2500
+ if (typeof cleanValue === "number") {
2501
+ cleanValue = cleanValue.toString();
2502
+ }
2503
+ if (cleanValue.indexOf(",") >= 0) {
2504
+ cleanValue = cleanValue.split(",")[0];
2505
+ }
2506
+ if (cleanValue.indexOf(":") >= 0) {
2507
+ cleanValue = cleanValue.split(":")[0];
2508
+ }
2509
+ if (cleanValue.indexOf("#") >= 0) {
2510
+ cleanValue = cleanValue.split("#")[1];
2511
+ }
2512
+ return cleanValue;
2513
+ }, "sanitizeErrorCode");
2514
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2515
+ if (headerKey !== void 0) {
2516
+ return sanitizeErrorCode(output.headers[headerKey]);
2517
+ }
2518
+ if (data.code !== void 0) {
2519
+ return sanitizeErrorCode(data.code);
2520
+ }
2521
+ if (data["__type"] !== void 0) {
2522
+ return sanitizeErrorCode(data["__type"]);
2523
+ }
2524
+ }, "loadRestJsonErrorCode");
2525
+
2526
+ // src/commands/AssociateDRTLogBucketCommand.ts
2527
+ var _AssociateDRTLogBucketCommand = class _AssociateDRTLogBucketCommand extends import_smithy_client.Command.classBuilder().ep({
2528
+ ...commonParams
2529
+ }).m(function(Command, cs, config, o) {
2530
+ return [
2531
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2532
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2533
+ ];
2534
+ }).s("AWSShield_20160616", "AssociateDRTLogBucket", {}).n("ShieldClient", "AssociateDRTLogBucketCommand").f(void 0, void 0).ser(se_AssociateDRTLogBucketCommand).de(de_AssociateDRTLogBucketCommand).build() {
2535
+ };
2536
+ __name(_AssociateDRTLogBucketCommand, "AssociateDRTLogBucketCommand");
2537
+ var AssociateDRTLogBucketCommand = _AssociateDRTLogBucketCommand;
2538
+
2539
+ // src/commands/AssociateDRTRoleCommand.ts
2540
+
2541
+
2542
+
2543
+
2544
+ var _AssociateDRTRoleCommand = class _AssociateDRTRoleCommand extends import_smithy_client.Command.classBuilder().ep({
2545
+ ...commonParams
2546
+ }).m(function(Command, cs, config, o) {
2547
+ return [
2548
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2549
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2550
+ ];
2551
+ }).s("AWSShield_20160616", "AssociateDRTRole", {}).n("ShieldClient", "AssociateDRTRoleCommand").f(void 0, void 0).ser(se_AssociateDRTRoleCommand).de(de_AssociateDRTRoleCommand).build() {
2552
+ };
2553
+ __name(_AssociateDRTRoleCommand, "AssociateDRTRoleCommand");
2554
+ var AssociateDRTRoleCommand = _AssociateDRTRoleCommand;
2555
+
2556
+ // src/commands/AssociateHealthCheckCommand.ts
2557
+
2558
+
2559
+
2560
+
2561
+ var _AssociateHealthCheckCommand = class _AssociateHealthCheckCommand extends import_smithy_client.Command.classBuilder().ep({
2562
+ ...commonParams
2563
+ }).m(function(Command, cs, config, o) {
2564
+ return [
2565
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2566
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2567
+ ];
2568
+ }).s("AWSShield_20160616", "AssociateHealthCheck", {}).n("ShieldClient", "AssociateHealthCheckCommand").f(void 0, void 0).ser(se_AssociateHealthCheckCommand).de(de_AssociateHealthCheckCommand).build() {
2569
+ };
2570
+ __name(_AssociateHealthCheckCommand, "AssociateHealthCheckCommand");
2571
+ var AssociateHealthCheckCommand = _AssociateHealthCheckCommand;
2572
+
2573
+ // src/commands/AssociateProactiveEngagementDetailsCommand.ts
2574
+
2575
+
2576
+
2577
+
2578
+ var _AssociateProactiveEngagementDetailsCommand = class _AssociateProactiveEngagementDetailsCommand extends import_smithy_client.Command.classBuilder().ep({
2579
+ ...commonParams
2580
+ }).m(function(Command, cs, config, o) {
2581
+ return [
2582
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2583
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2584
+ ];
2585
+ }).s("AWSShield_20160616", "AssociateProactiveEngagementDetails", {}).n("ShieldClient", "AssociateProactiveEngagementDetailsCommand").f(void 0, void 0).ser(se_AssociateProactiveEngagementDetailsCommand).de(de_AssociateProactiveEngagementDetailsCommand).build() {
2586
+ };
2587
+ __name(_AssociateProactiveEngagementDetailsCommand, "AssociateProactiveEngagementDetailsCommand");
2588
+ var AssociateProactiveEngagementDetailsCommand = _AssociateProactiveEngagementDetailsCommand;
2589
+
2590
+ // src/commands/CreateProtectionCommand.ts
2591
+
2592
+
2593
+
2594
+
2595
+ var _CreateProtectionCommand = class _CreateProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
2596
+ ...commonParams
2597
+ }).m(function(Command, cs, config, o) {
2598
+ return [
2599
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2600
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2601
+ ];
2602
+ }).s("AWSShield_20160616", "CreateProtection", {}).n("ShieldClient", "CreateProtectionCommand").f(void 0, void 0).ser(se_CreateProtectionCommand).de(de_CreateProtectionCommand).build() {
2603
+ };
2604
+ __name(_CreateProtectionCommand, "CreateProtectionCommand");
2605
+ var CreateProtectionCommand = _CreateProtectionCommand;
2606
+
2607
+ // src/commands/CreateProtectionGroupCommand.ts
2608
+
2609
+
2610
+
2611
+
2612
+ var _CreateProtectionGroupCommand = class _CreateProtectionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2613
+ ...commonParams
2614
+ }).m(function(Command, cs, config, o) {
2615
+ return [
2616
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2617
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2618
+ ];
2619
+ }).s("AWSShield_20160616", "CreateProtectionGroup", {}).n("ShieldClient", "CreateProtectionGroupCommand").f(void 0, void 0).ser(se_CreateProtectionGroupCommand).de(de_CreateProtectionGroupCommand).build() {
2620
+ };
2621
+ __name(_CreateProtectionGroupCommand, "CreateProtectionGroupCommand");
2622
+ var CreateProtectionGroupCommand = _CreateProtectionGroupCommand;
2623
+
2624
+ // src/commands/CreateSubscriptionCommand.ts
2625
+
2626
+
2627
+
2628
+
2629
+ var _CreateSubscriptionCommand = class _CreateSubscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
2630
+ ...commonParams
2631
+ }).m(function(Command, cs, config, o) {
2632
+ return [
2633
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2634
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2635
+ ];
2636
+ }).s("AWSShield_20160616", "CreateSubscription", {}).n("ShieldClient", "CreateSubscriptionCommand").f(void 0, void 0).ser(se_CreateSubscriptionCommand).de(de_CreateSubscriptionCommand).build() {
2637
+ };
2638
+ __name(_CreateSubscriptionCommand, "CreateSubscriptionCommand");
2639
+ var CreateSubscriptionCommand = _CreateSubscriptionCommand;
2640
+
2641
+ // src/commands/DeleteProtectionCommand.ts
2642
+
2643
+
2644
+
2645
+
2646
+ var _DeleteProtectionCommand = class _DeleteProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
2647
+ ...commonParams
2648
+ }).m(function(Command, cs, config, o) {
2649
+ return [
2650
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2651
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2652
+ ];
2653
+ }).s("AWSShield_20160616", "DeleteProtection", {}).n("ShieldClient", "DeleteProtectionCommand").f(void 0, void 0).ser(se_DeleteProtectionCommand).de(de_DeleteProtectionCommand).build() {
2654
+ };
2655
+ __name(_DeleteProtectionCommand, "DeleteProtectionCommand");
2656
+ var DeleteProtectionCommand = _DeleteProtectionCommand;
2657
+
2658
+ // src/commands/DeleteProtectionGroupCommand.ts
2659
+
2660
+
2661
+
2662
+
2663
+ var _DeleteProtectionGroupCommand = class _DeleteProtectionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2664
+ ...commonParams
2665
+ }).m(function(Command, cs, config, o) {
2666
+ return [
2667
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2668
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2669
+ ];
2670
+ }).s("AWSShield_20160616", "DeleteProtectionGroup", {}).n("ShieldClient", "DeleteProtectionGroupCommand").f(void 0, void 0).ser(se_DeleteProtectionGroupCommand).de(de_DeleteProtectionGroupCommand).build() {
2671
+ };
2672
+ __name(_DeleteProtectionGroupCommand, "DeleteProtectionGroupCommand");
2673
+ var DeleteProtectionGroupCommand = _DeleteProtectionGroupCommand;
2674
+
2675
+ // src/commands/DeleteSubscriptionCommand.ts
2676
+
2677
+
2678
+
2679
+
2680
+ var _DeleteSubscriptionCommand = class _DeleteSubscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
2681
+ ...commonParams
2682
+ }).m(function(Command, cs, config, o) {
2683
+ return [
2684
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2685
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2686
+ ];
2687
+ }).s("AWSShield_20160616", "DeleteSubscription", {}).n("ShieldClient", "DeleteSubscriptionCommand").f(void 0, void 0).ser(se_DeleteSubscriptionCommand).de(de_DeleteSubscriptionCommand).build() {
2688
+ };
2689
+ __name(_DeleteSubscriptionCommand, "DeleteSubscriptionCommand");
2690
+ var DeleteSubscriptionCommand = _DeleteSubscriptionCommand;
2691
+
2692
+ // src/commands/DescribeAttackCommand.ts
2693
+
2694
+
2695
+
2696
+
2697
+ var _DescribeAttackCommand = class _DescribeAttackCommand extends import_smithy_client.Command.classBuilder().ep({
2698
+ ...commonParams
2699
+ }).m(function(Command, cs, config, o) {
2700
+ return [
2701
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2702
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2703
+ ];
2704
+ }).s("AWSShield_20160616", "DescribeAttack", {}).n("ShieldClient", "DescribeAttackCommand").f(void 0, void 0).ser(se_DescribeAttackCommand).de(de_DescribeAttackCommand).build() {
2705
+ };
2706
+ __name(_DescribeAttackCommand, "DescribeAttackCommand");
2707
+ var DescribeAttackCommand = _DescribeAttackCommand;
2708
+
2709
+ // src/commands/DescribeAttackStatisticsCommand.ts
2710
+
2711
+
2712
+
2713
+
2714
+ var _DescribeAttackStatisticsCommand = class _DescribeAttackStatisticsCommand extends import_smithy_client.Command.classBuilder().ep({
2715
+ ...commonParams
2716
+ }).m(function(Command, cs, config, o) {
2717
+ return [
2718
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2719
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2720
+ ];
2721
+ }).s("AWSShield_20160616", "DescribeAttackStatistics", {}).n("ShieldClient", "DescribeAttackStatisticsCommand").f(void 0, void 0).ser(se_DescribeAttackStatisticsCommand).de(de_DescribeAttackStatisticsCommand).build() {
2722
+ };
2723
+ __name(_DescribeAttackStatisticsCommand, "DescribeAttackStatisticsCommand");
2724
+ var DescribeAttackStatisticsCommand = _DescribeAttackStatisticsCommand;
2725
+
2726
+ // src/commands/DescribeDRTAccessCommand.ts
2727
+
2728
+
2729
+
2730
+
2731
+ var _DescribeDRTAccessCommand = class _DescribeDRTAccessCommand extends import_smithy_client.Command.classBuilder().ep({
2732
+ ...commonParams
2733
+ }).m(function(Command, cs, config, o) {
2734
+ return [
2735
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2736
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2737
+ ];
2738
+ }).s("AWSShield_20160616", "DescribeDRTAccess", {}).n("ShieldClient", "DescribeDRTAccessCommand").f(void 0, void 0).ser(se_DescribeDRTAccessCommand).de(de_DescribeDRTAccessCommand).build() {
2739
+ };
2740
+ __name(_DescribeDRTAccessCommand, "DescribeDRTAccessCommand");
2741
+ var DescribeDRTAccessCommand = _DescribeDRTAccessCommand;
2742
+
2743
+ // src/commands/DescribeEmergencyContactSettingsCommand.ts
2744
+
2745
+
2746
+
2747
+
2748
+ var _DescribeEmergencyContactSettingsCommand = class _DescribeEmergencyContactSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
2749
+ ...commonParams
2750
+ }).m(function(Command, cs, config, o) {
2751
+ return [
2752
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2753
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2754
+ ];
2755
+ }).s("AWSShield_20160616", "DescribeEmergencyContactSettings", {}).n("ShieldClient", "DescribeEmergencyContactSettingsCommand").f(void 0, void 0).ser(se_DescribeEmergencyContactSettingsCommand).de(de_DescribeEmergencyContactSettingsCommand).build() {
2756
+ };
2757
+ __name(_DescribeEmergencyContactSettingsCommand, "DescribeEmergencyContactSettingsCommand");
2758
+ var DescribeEmergencyContactSettingsCommand = _DescribeEmergencyContactSettingsCommand;
2759
+
2760
+ // src/commands/DescribeProtectionCommand.ts
2761
+
2762
+
2763
+
2764
+
2765
+ var _DescribeProtectionCommand = class _DescribeProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
2766
+ ...commonParams
2767
+ }).m(function(Command, cs, config, o) {
2768
+ return [
2769
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2770
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2771
+ ];
2772
+ }).s("AWSShield_20160616", "DescribeProtection", {}).n("ShieldClient", "DescribeProtectionCommand").f(void 0, void 0).ser(se_DescribeProtectionCommand).de(de_DescribeProtectionCommand).build() {
2773
+ };
2774
+ __name(_DescribeProtectionCommand, "DescribeProtectionCommand");
2775
+ var DescribeProtectionCommand = _DescribeProtectionCommand;
2776
+
2777
+ // src/commands/DescribeProtectionGroupCommand.ts
2778
+
2779
+
2780
+
2781
+
2782
+ var _DescribeProtectionGroupCommand = class _DescribeProtectionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2783
+ ...commonParams
2784
+ }).m(function(Command, cs, config, o) {
2785
+ return [
2786
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2787
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2788
+ ];
2789
+ }).s("AWSShield_20160616", "DescribeProtectionGroup", {}).n("ShieldClient", "DescribeProtectionGroupCommand").f(void 0, void 0).ser(se_DescribeProtectionGroupCommand).de(de_DescribeProtectionGroupCommand).build() {
2790
+ };
2791
+ __name(_DescribeProtectionGroupCommand, "DescribeProtectionGroupCommand");
2792
+ var DescribeProtectionGroupCommand = _DescribeProtectionGroupCommand;
2793
+
2794
+ // src/commands/DescribeSubscriptionCommand.ts
2795
+
2796
+
2797
+
2798
+
2799
+ var _DescribeSubscriptionCommand = class _DescribeSubscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
2800
+ ...commonParams
2801
+ }).m(function(Command, cs, config, o) {
2802
+ return [
2803
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2804
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2805
+ ];
2806
+ }).s("AWSShield_20160616", "DescribeSubscription", {}).n("ShieldClient", "DescribeSubscriptionCommand").f(void 0, void 0).ser(se_DescribeSubscriptionCommand).de(de_DescribeSubscriptionCommand).build() {
2807
+ };
2808
+ __name(_DescribeSubscriptionCommand, "DescribeSubscriptionCommand");
2809
+ var DescribeSubscriptionCommand = _DescribeSubscriptionCommand;
2810
+
2811
+ // src/commands/DisableApplicationLayerAutomaticResponseCommand.ts
2812
+
2813
+
2814
+
2815
+
2816
+ var _DisableApplicationLayerAutomaticResponseCommand = class _DisableApplicationLayerAutomaticResponseCommand extends import_smithy_client.Command.classBuilder().ep({
2817
+ ...commonParams
2818
+ }).m(function(Command, cs, config, o) {
2819
+ return [
2820
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2821
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2822
+ ];
2823
+ }).s("AWSShield_20160616", "DisableApplicationLayerAutomaticResponse", {}).n("ShieldClient", "DisableApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_DisableApplicationLayerAutomaticResponseCommand).de(de_DisableApplicationLayerAutomaticResponseCommand).build() {
2824
+ };
2825
+ __name(_DisableApplicationLayerAutomaticResponseCommand, "DisableApplicationLayerAutomaticResponseCommand");
2826
+ var DisableApplicationLayerAutomaticResponseCommand = _DisableApplicationLayerAutomaticResponseCommand;
2827
+
2828
+ // src/commands/DisableProactiveEngagementCommand.ts
2829
+
2830
+
2831
+
2832
+
2833
+ var _DisableProactiveEngagementCommand = class _DisableProactiveEngagementCommand extends import_smithy_client.Command.classBuilder().ep({
2834
+ ...commonParams
2835
+ }).m(function(Command, cs, config, o) {
2836
+ return [
2837
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2838
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2839
+ ];
2840
+ }).s("AWSShield_20160616", "DisableProactiveEngagement", {}).n("ShieldClient", "DisableProactiveEngagementCommand").f(void 0, void 0).ser(se_DisableProactiveEngagementCommand).de(de_DisableProactiveEngagementCommand).build() {
2841
+ };
2842
+ __name(_DisableProactiveEngagementCommand, "DisableProactiveEngagementCommand");
2843
+ var DisableProactiveEngagementCommand = _DisableProactiveEngagementCommand;
2844
+
2845
+ // src/commands/DisassociateDRTLogBucketCommand.ts
2846
+
2847
+
2848
+
2849
+
2850
+ var _DisassociateDRTLogBucketCommand = class _DisassociateDRTLogBucketCommand extends import_smithy_client.Command.classBuilder().ep({
2851
+ ...commonParams
2852
+ }).m(function(Command, cs, config, o) {
2853
+ return [
2854
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2855
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2856
+ ];
2857
+ }).s("AWSShield_20160616", "DisassociateDRTLogBucket", {}).n("ShieldClient", "DisassociateDRTLogBucketCommand").f(void 0, void 0).ser(se_DisassociateDRTLogBucketCommand).de(de_DisassociateDRTLogBucketCommand).build() {
2858
+ };
2859
+ __name(_DisassociateDRTLogBucketCommand, "DisassociateDRTLogBucketCommand");
2860
+ var DisassociateDRTLogBucketCommand = _DisassociateDRTLogBucketCommand;
2861
+
2862
+ // src/commands/DisassociateDRTRoleCommand.ts
2863
+
2864
+
2865
+
2866
+
2867
+ var _DisassociateDRTRoleCommand = class _DisassociateDRTRoleCommand extends import_smithy_client.Command.classBuilder().ep({
2868
+ ...commonParams
2869
+ }).m(function(Command, cs, config, o) {
2870
+ return [
2871
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2872
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2873
+ ];
2874
+ }).s("AWSShield_20160616", "DisassociateDRTRole", {}).n("ShieldClient", "DisassociateDRTRoleCommand").f(void 0, void 0).ser(se_DisassociateDRTRoleCommand).de(de_DisassociateDRTRoleCommand).build() {
2875
+ };
2876
+ __name(_DisassociateDRTRoleCommand, "DisassociateDRTRoleCommand");
2877
+ var DisassociateDRTRoleCommand = _DisassociateDRTRoleCommand;
2878
+
2879
+ // src/commands/DisassociateHealthCheckCommand.ts
2880
+
2881
+
2882
+
2883
+
2884
+ var _DisassociateHealthCheckCommand = class _DisassociateHealthCheckCommand extends import_smithy_client.Command.classBuilder().ep({
2885
+ ...commonParams
2886
+ }).m(function(Command, cs, config, o) {
2887
+ return [
2888
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2889
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2890
+ ];
2891
+ }).s("AWSShield_20160616", "DisassociateHealthCheck", {}).n("ShieldClient", "DisassociateHealthCheckCommand").f(void 0, void 0).ser(se_DisassociateHealthCheckCommand).de(de_DisassociateHealthCheckCommand).build() {
2892
+ };
2893
+ __name(_DisassociateHealthCheckCommand, "DisassociateHealthCheckCommand");
2894
+ var DisassociateHealthCheckCommand = _DisassociateHealthCheckCommand;
2895
+
2896
+ // src/commands/EnableApplicationLayerAutomaticResponseCommand.ts
2897
+
2898
+
2899
+
2900
+
2901
+ var _EnableApplicationLayerAutomaticResponseCommand = class _EnableApplicationLayerAutomaticResponseCommand extends import_smithy_client.Command.classBuilder().ep({
2902
+ ...commonParams
2903
+ }).m(function(Command, cs, config, o) {
2904
+ return [
2905
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2906
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2907
+ ];
2908
+ }).s("AWSShield_20160616", "EnableApplicationLayerAutomaticResponse", {}).n("ShieldClient", "EnableApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_EnableApplicationLayerAutomaticResponseCommand).de(de_EnableApplicationLayerAutomaticResponseCommand).build() {
2909
+ };
2910
+ __name(_EnableApplicationLayerAutomaticResponseCommand, "EnableApplicationLayerAutomaticResponseCommand");
2911
+ var EnableApplicationLayerAutomaticResponseCommand = _EnableApplicationLayerAutomaticResponseCommand;
2912
+
2913
+ // src/commands/EnableProactiveEngagementCommand.ts
2914
+
2915
+
2916
+
2917
+
2918
+ var _EnableProactiveEngagementCommand = class _EnableProactiveEngagementCommand extends import_smithy_client.Command.classBuilder().ep({
2919
+ ...commonParams
2920
+ }).m(function(Command, cs, config, o) {
2921
+ return [
2922
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2923
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2924
+ ];
2925
+ }).s("AWSShield_20160616", "EnableProactiveEngagement", {}).n("ShieldClient", "EnableProactiveEngagementCommand").f(void 0, void 0).ser(se_EnableProactiveEngagementCommand).de(de_EnableProactiveEngagementCommand).build() {
2926
+ };
2927
+ __name(_EnableProactiveEngagementCommand, "EnableProactiveEngagementCommand");
2928
+ var EnableProactiveEngagementCommand = _EnableProactiveEngagementCommand;
2929
+
2930
+ // src/commands/GetSubscriptionStateCommand.ts
2931
+
2932
+
2933
+
2934
+
2935
+ var _GetSubscriptionStateCommand = class _GetSubscriptionStateCommand extends import_smithy_client.Command.classBuilder().ep({
2936
+ ...commonParams
2937
+ }).m(function(Command, cs, config, o) {
2938
+ return [
2939
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2940
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2941
+ ];
2942
+ }).s("AWSShield_20160616", "GetSubscriptionState", {}).n("ShieldClient", "GetSubscriptionStateCommand").f(void 0, void 0).ser(se_GetSubscriptionStateCommand).de(de_GetSubscriptionStateCommand).build() {
2943
+ };
2944
+ __name(_GetSubscriptionStateCommand, "GetSubscriptionStateCommand");
2945
+ var GetSubscriptionStateCommand = _GetSubscriptionStateCommand;
2946
+
2947
+ // src/commands/ListAttacksCommand.ts
2948
+
2949
+
2950
+
2951
+
2952
+ var _ListAttacksCommand = class _ListAttacksCommand extends import_smithy_client.Command.classBuilder().ep({
2953
+ ...commonParams
2954
+ }).m(function(Command, cs, config, o) {
2955
+ return [
2956
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2957
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2958
+ ];
2959
+ }).s("AWSShield_20160616", "ListAttacks", {}).n("ShieldClient", "ListAttacksCommand").f(void 0, void 0).ser(se_ListAttacksCommand).de(de_ListAttacksCommand).build() {
2960
+ };
2961
+ __name(_ListAttacksCommand, "ListAttacksCommand");
2962
+ var ListAttacksCommand = _ListAttacksCommand;
2963
+
2964
+ // src/commands/ListProtectionGroupsCommand.ts
2965
+
2966
+
2967
+
2968
+
2969
+ var _ListProtectionGroupsCommand = class _ListProtectionGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2970
+ ...commonParams
2971
+ }).m(function(Command, cs, config, o) {
2972
+ return [
2973
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2974
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2975
+ ];
2976
+ }).s("AWSShield_20160616", "ListProtectionGroups", {}).n("ShieldClient", "ListProtectionGroupsCommand").f(void 0, void 0).ser(se_ListProtectionGroupsCommand).de(de_ListProtectionGroupsCommand).build() {
2977
+ };
2978
+ __name(_ListProtectionGroupsCommand, "ListProtectionGroupsCommand");
2979
+ var ListProtectionGroupsCommand = _ListProtectionGroupsCommand;
2980
+
2981
+ // src/commands/ListProtectionsCommand.ts
2982
+
2983
+
2984
+
2985
+
2986
+ var _ListProtectionsCommand = class _ListProtectionsCommand extends import_smithy_client.Command.classBuilder().ep({
2987
+ ...commonParams
2988
+ }).m(function(Command, cs, config, o) {
2989
+ return [
2990
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2991
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2992
+ ];
2993
+ }).s("AWSShield_20160616", "ListProtections", {}).n("ShieldClient", "ListProtectionsCommand").f(void 0, void 0).ser(se_ListProtectionsCommand).de(de_ListProtectionsCommand).build() {
2994
+ };
2995
+ __name(_ListProtectionsCommand, "ListProtectionsCommand");
2996
+ var ListProtectionsCommand = _ListProtectionsCommand;
2997
+
2998
+ // src/commands/ListResourcesInProtectionGroupCommand.ts
2999
+
3000
+
3001
+
3002
+
3003
+ var _ListResourcesInProtectionGroupCommand = class _ListResourcesInProtectionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3004
+ ...commonParams
3005
+ }).m(function(Command, cs, config, o) {
3006
+ return [
3007
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3008
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3009
+ ];
3010
+ }).s("AWSShield_20160616", "ListResourcesInProtectionGroup", {}).n("ShieldClient", "ListResourcesInProtectionGroupCommand").f(void 0, void 0).ser(se_ListResourcesInProtectionGroupCommand).de(de_ListResourcesInProtectionGroupCommand).build() {
3011
+ };
3012
+ __name(_ListResourcesInProtectionGroupCommand, "ListResourcesInProtectionGroupCommand");
3013
+ var ListResourcesInProtectionGroupCommand = _ListResourcesInProtectionGroupCommand;
3014
+
3015
+ // src/commands/ListTagsForResourceCommand.ts
3016
+
3017
+
3018
+
3019
+
3020
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3021
+ ...commonParams
3022
+ }).m(function(Command, cs, config, o) {
3023
+ return [
3024
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3025
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3026
+ ];
3027
+ }).s("AWSShield_20160616", "ListTagsForResource", {}).n("ShieldClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
3028
+ };
3029
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
3030
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
3031
+
3032
+ // src/commands/TagResourceCommand.ts
3033
+
3034
+
3035
+
3036
+
3037
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3038
+ ...commonParams
3039
+ }).m(function(Command, cs, config, o) {
3040
+ return [
3041
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3042
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3043
+ ];
3044
+ }).s("AWSShield_20160616", "TagResource", {}).n("ShieldClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
3045
+ };
3046
+ __name(_TagResourceCommand, "TagResourceCommand");
3047
+ var TagResourceCommand = _TagResourceCommand;
3048
+
3049
+ // src/commands/UntagResourceCommand.ts
3050
+
3051
+
3052
+
3053
+
3054
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3055
+ ...commonParams
3056
+ }).m(function(Command, cs, config, o) {
3057
+ return [
3058
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3059
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3060
+ ];
3061
+ }).s("AWSShield_20160616", "UntagResource", {}).n("ShieldClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3062
+ };
3063
+ __name(_UntagResourceCommand, "UntagResourceCommand");
3064
+ var UntagResourceCommand = _UntagResourceCommand;
3065
+
3066
+ // src/commands/UpdateApplicationLayerAutomaticResponseCommand.ts
3067
+
3068
+
3069
+
3070
+
3071
+ var _UpdateApplicationLayerAutomaticResponseCommand = class _UpdateApplicationLayerAutomaticResponseCommand extends import_smithy_client.Command.classBuilder().ep({
3072
+ ...commonParams
3073
+ }).m(function(Command, cs, config, o) {
3074
+ return [
3075
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3076
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3077
+ ];
3078
+ }).s("AWSShield_20160616", "UpdateApplicationLayerAutomaticResponse", {}).n("ShieldClient", "UpdateApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_UpdateApplicationLayerAutomaticResponseCommand).de(de_UpdateApplicationLayerAutomaticResponseCommand).build() {
3079
+ };
3080
+ __name(_UpdateApplicationLayerAutomaticResponseCommand, "UpdateApplicationLayerAutomaticResponseCommand");
3081
+ var UpdateApplicationLayerAutomaticResponseCommand = _UpdateApplicationLayerAutomaticResponseCommand;
3082
+
3083
+ // src/commands/UpdateEmergencyContactSettingsCommand.ts
3084
+
3085
+
3086
+
3087
+
3088
+ var _UpdateEmergencyContactSettingsCommand = class _UpdateEmergencyContactSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
3089
+ ...commonParams
3090
+ }).m(function(Command, cs, config, o) {
3091
+ return [
3092
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3093
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3094
+ ];
3095
+ }).s("AWSShield_20160616", "UpdateEmergencyContactSettings", {}).n("ShieldClient", "UpdateEmergencyContactSettingsCommand").f(void 0, void 0).ser(se_UpdateEmergencyContactSettingsCommand).de(de_UpdateEmergencyContactSettingsCommand).build() {
3096
+ };
3097
+ __name(_UpdateEmergencyContactSettingsCommand, "UpdateEmergencyContactSettingsCommand");
3098
+ var UpdateEmergencyContactSettingsCommand = _UpdateEmergencyContactSettingsCommand;
3099
+
3100
+ // src/commands/UpdateProtectionGroupCommand.ts
3101
+
3102
+
3103
+
3104
+
3105
+ var _UpdateProtectionGroupCommand = class _UpdateProtectionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3106
+ ...commonParams
3107
+ }).m(function(Command, cs, config, o) {
3108
+ return [
3109
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3110
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3111
+ ];
3112
+ }).s("AWSShield_20160616", "UpdateProtectionGroup", {}).n("ShieldClient", "UpdateProtectionGroupCommand").f(void 0, void 0).ser(se_UpdateProtectionGroupCommand).de(de_UpdateProtectionGroupCommand).build() {
3113
+ };
3114
+ __name(_UpdateProtectionGroupCommand, "UpdateProtectionGroupCommand");
3115
+ var UpdateProtectionGroupCommand = _UpdateProtectionGroupCommand;
3116
+
3117
+ // src/commands/UpdateSubscriptionCommand.ts
3118
+
3119
+
3120
+
3121
+
3122
+ var _UpdateSubscriptionCommand = class _UpdateSubscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
3123
+ ...commonParams
3124
+ }).m(function(Command, cs, config, o) {
3125
+ return [
3126
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3127
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3128
+ ];
3129
+ }).s("AWSShield_20160616", "UpdateSubscription", {}).n("ShieldClient", "UpdateSubscriptionCommand").f(void 0, void 0).ser(se_UpdateSubscriptionCommand).de(de_UpdateSubscriptionCommand).build() {
3130
+ };
3131
+ __name(_UpdateSubscriptionCommand, "UpdateSubscriptionCommand");
3132
+ var UpdateSubscriptionCommand = _UpdateSubscriptionCommand;
3133
+
3134
+ // src/Shield.ts
3135
+ var commands = {
3136
+ AssociateDRTLogBucketCommand,
3137
+ AssociateDRTRoleCommand,
3138
+ AssociateHealthCheckCommand,
3139
+ AssociateProactiveEngagementDetailsCommand,
3140
+ CreateProtectionCommand,
3141
+ CreateProtectionGroupCommand,
3142
+ CreateSubscriptionCommand,
3143
+ DeleteProtectionCommand,
3144
+ DeleteProtectionGroupCommand,
3145
+ DeleteSubscriptionCommand,
3146
+ DescribeAttackCommand,
3147
+ DescribeAttackStatisticsCommand,
3148
+ DescribeDRTAccessCommand,
3149
+ DescribeEmergencyContactSettingsCommand,
3150
+ DescribeProtectionCommand,
3151
+ DescribeProtectionGroupCommand,
3152
+ DescribeSubscriptionCommand,
3153
+ DisableApplicationLayerAutomaticResponseCommand,
3154
+ DisableProactiveEngagementCommand,
3155
+ DisassociateDRTLogBucketCommand,
3156
+ DisassociateDRTRoleCommand,
3157
+ DisassociateHealthCheckCommand,
3158
+ EnableApplicationLayerAutomaticResponseCommand,
3159
+ EnableProactiveEngagementCommand,
3160
+ GetSubscriptionStateCommand,
3161
+ ListAttacksCommand,
3162
+ ListProtectionGroupsCommand,
3163
+ ListProtectionsCommand,
3164
+ ListResourcesInProtectionGroupCommand,
3165
+ ListTagsForResourceCommand,
3166
+ TagResourceCommand,
3167
+ UntagResourceCommand,
3168
+ UpdateApplicationLayerAutomaticResponseCommand,
3169
+ UpdateEmergencyContactSettingsCommand,
3170
+ UpdateProtectionGroupCommand,
3171
+ UpdateSubscriptionCommand
3172
+ };
3173
+ var _Shield = class _Shield extends ShieldClient {
3174
+ };
3175
+ __name(_Shield, "Shield");
3176
+ var Shield = _Shield;
3177
+ (0, import_smithy_client.createAggregatedClient)(commands, Shield);
3178
+
3179
+ // src/pagination/ListAttacksPaginator.ts
3180
+ var import_core = require("@smithy/core");
3181
+ var paginateListAttacks = (0, import_core.createPaginator)(ShieldClient, ListAttacksCommand, "NextToken", "NextToken", "MaxResults");
3182
+
3183
+ // src/pagination/ListProtectionGroupsPaginator.ts
3184
+
3185
+ var paginateListProtectionGroups = (0, import_core.createPaginator)(ShieldClient, ListProtectionGroupsCommand, "NextToken", "NextToken", "MaxResults");
3186
+
3187
+ // src/pagination/ListProtectionsPaginator.ts
3188
+
3189
+ var paginateListProtections = (0, import_core.createPaginator)(ShieldClient, ListProtectionsCommand, "NextToken", "NextToken", "MaxResults");
3190
+
3191
+ // src/pagination/ListResourcesInProtectionGroupPaginator.ts
3192
+
3193
+ var paginateListResourcesInProtectionGroup = (0, import_core.createPaginator)(ShieldClient, ListResourcesInProtectionGroupCommand, "NextToken", "NextToken", "MaxResults");
3194
+
3195
+ // src/index.ts
3196
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3197
+ // Annotate the CommonJS export names for ESM import in node:
3198
+ 0 && (module.exports = {
3199
+ AccessDeniedException,
3200
+ AccessDeniedForDependencyException,
3201
+ ApplicationLayerAutomaticResponseStatus,
3202
+ AssociateDRTLogBucketCommand,
3203
+ AssociateDRTRoleCommand,
3204
+ AssociateHealthCheckCommand,
3205
+ AssociateProactiveEngagementDetailsCommand,
3206
+ AttackLayer,
3207
+ AttackPropertyIdentifier,
3208
+ AutoRenew,
3209
+ CreateProtectionCommand,
3210
+ CreateProtectionGroupCommand,
3211
+ CreateSubscriptionCommand,
3212
+ DeleteProtectionCommand,
3213
+ DeleteProtectionGroupCommand,
3214
+ DeleteSubscriptionCommand,
3215
+ DescribeAttackCommand,
3216
+ DescribeAttackStatisticsCommand,
3217
+ DescribeDRTAccessCommand,
3218
+ DescribeEmergencyContactSettingsCommand,
3219
+ DescribeProtectionCommand,
3220
+ DescribeProtectionGroupCommand,
3221
+ DescribeSubscriptionCommand,
3222
+ DisableApplicationLayerAutomaticResponseCommand,
3223
+ DisableProactiveEngagementCommand,
3224
+ DisassociateDRTLogBucketCommand,
3225
+ DisassociateDRTRoleCommand,
3226
+ DisassociateHealthCheckCommand,
3227
+ EnableApplicationLayerAutomaticResponseCommand,
3228
+ EnableProactiveEngagementCommand,
3229
+ GetSubscriptionStateCommand,
3230
+ InternalErrorException,
3231
+ InvalidOperationException,
3232
+ InvalidPaginationTokenException,
3233
+ InvalidParameterException,
3234
+ InvalidResourceException,
3235
+ LimitsExceededException,
3236
+ ListAttacksCommand,
3237
+ ListProtectionGroupsCommand,
3238
+ ListProtectionsCommand,
3239
+ ListResourcesInProtectionGroupCommand,
3240
+ ListTagsForResourceCommand,
3241
+ LockedSubscriptionException,
3242
+ NoAssociatedRoleException,
3243
+ OptimisticLockException,
3244
+ ProactiveEngagementStatus,
3245
+ ProtectedResourceType,
3246
+ ProtectionGroupAggregation,
3247
+ ProtectionGroupPattern,
3248
+ ResourceAlreadyExistsException,
3249
+ ResourceNotFoundException,
3250
+ Shield,
3251
+ ShieldClient,
3252
+ ShieldServiceException,
3253
+ SubResourceType,
3254
+ SubscriptionState,
3255
+ TagResourceCommand,
3256
+ Unit,
3257
+ UntagResourceCommand,
3258
+ UpdateApplicationLayerAutomaticResponseCommand,
3259
+ UpdateEmergencyContactSettingsCommand,
3260
+ UpdateProtectionGroupCommand,
3261
+ UpdateSubscriptionCommand,
3262
+ ValidationExceptionReason,
3263
+ __Client,
3264
+ paginateListAttacks,
3265
+ paginateListProtectionGroups,
3266
+ paginateListProtections,
3267
+ paginateListResourcesInProtectionGroup
3268
+ });