@aws-sdk/client-shield 3.186.0 → 3.188.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 (52) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Shield.js +146 -153
  3. package/dist-es/ShieldClient.js +22 -28
  4. package/dist-es/commands/AssociateDRTLogBucketCommand.js +21 -28
  5. package/dist-es/commands/AssociateDRTRoleCommand.js +21 -28
  6. package/dist-es/commands/AssociateHealthCheckCommand.js +21 -28
  7. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +21 -28
  8. package/dist-es/commands/CreateProtectionCommand.js +21 -28
  9. package/dist-es/commands/CreateProtectionGroupCommand.js +21 -28
  10. package/dist-es/commands/CreateSubscriptionCommand.js +21 -28
  11. package/dist-es/commands/DeleteProtectionCommand.js +21 -28
  12. package/dist-es/commands/DeleteProtectionGroupCommand.js +21 -28
  13. package/dist-es/commands/DeleteSubscriptionCommand.js +21 -28
  14. package/dist-es/commands/DescribeAttackCommand.js +21 -28
  15. package/dist-es/commands/DescribeAttackStatisticsCommand.js +21 -28
  16. package/dist-es/commands/DescribeDRTAccessCommand.js +21 -28
  17. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +21 -28
  18. package/dist-es/commands/DescribeProtectionCommand.js +21 -28
  19. package/dist-es/commands/DescribeProtectionGroupCommand.js +21 -28
  20. package/dist-es/commands/DescribeSubscriptionCommand.js +21 -28
  21. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +21 -28
  22. package/dist-es/commands/DisableProactiveEngagementCommand.js +21 -28
  23. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +21 -28
  24. package/dist-es/commands/DisassociateDRTRoleCommand.js +21 -28
  25. package/dist-es/commands/DisassociateHealthCheckCommand.js +21 -28
  26. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +21 -28
  27. package/dist-es/commands/EnableProactiveEngagementCommand.js +21 -28
  28. package/dist-es/commands/GetSubscriptionStateCommand.js +21 -28
  29. package/dist-es/commands/ListAttacksCommand.js +21 -28
  30. package/dist-es/commands/ListProtectionGroupsCommand.js +21 -28
  31. package/dist-es/commands/ListProtectionsCommand.js +21 -28
  32. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +21 -28
  33. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  34. package/dist-es/commands/TagResourceCommand.js +21 -28
  35. package/dist-es/commands/UntagResourceCommand.js +21 -28
  36. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +21 -28
  37. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +21 -28
  38. package/dist-es/commands/UpdateProtectionGroupCommand.js +21 -28
  39. package/dist-es/commands/UpdateSubscriptionCommand.js +21 -28
  40. package/dist-es/endpoints.js +8 -8
  41. package/dist-es/models/ShieldServiceException.js +5 -10
  42. package/dist-es/models/models_0.js +458 -253
  43. package/dist-es/pagination/ListAttacksPaginator.js +25 -68
  44. package/dist-es/pagination/ListProtectionGroupsPaginator.js +25 -68
  45. package/dist-es/pagination/ListProtectionsPaginator.js +25 -68
  46. package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +25 -68
  47. package/dist-es/protocols/Aws_json1_1.js +2384 -3132
  48. package/dist-es/runtimeConfig.browser.js +26 -12
  49. package/dist-es/runtimeConfig.js +30 -12
  50. package/dist-es/runtimeConfig.native.js +8 -5
  51. package/dist-es/runtimeConfig.shared.js +8 -11
  52. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DisassociateDRTLogBucketRequestFilterSensitiveLog, DisassociateDRTLogBucketResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DisassociateDRTLogBucketCommand, serializeAws_json1_1DisassociateDRTLogBucketCommand, } from "../protocols/Aws_json1_1";
6
- var DisassociateDRTLogBucketCommand = (function (_super) {
7
- __extends(DisassociateDRTLogBucketCommand, _super);
8
- function DisassociateDRTLogBucketCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateDRTLogBucketCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateDRTLogBucketCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "DisassociateDRTLogBucketCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "DisassociateDRTLogBucketCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateDRTLogBucketRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateDRTLogBucketResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateDRTLogBucketCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DisassociateDRTLogBucketCommand(input, context);
33
- };
34
- DisassociateDRTLogBucketCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DisassociateDRTLogBucketCommand(output, context);
36
- };
37
- return DisassociateDRTLogBucketCommand;
38
- }($Command));
39
- export { DisassociateDRTLogBucketCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DisassociateDRTRoleRequestFilterSensitiveLog, DisassociateDRTRoleResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DisassociateDRTRoleCommand, serializeAws_json1_1DisassociateDRTRoleCommand, } from "../protocols/Aws_json1_1";
6
- var DisassociateDRTRoleCommand = (function (_super) {
7
- __extends(DisassociateDRTRoleCommand, _super);
8
- function DisassociateDRTRoleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateDRTRoleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateDRTRoleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "DisassociateDRTRoleCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "DisassociateDRTRoleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateDRTRoleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateDRTRoleResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateDRTRoleCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DisassociateDRTRoleCommand(input, context);
33
- };
34
- DisassociateDRTRoleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DisassociateDRTRoleCommand(output, context);
36
- };
37
- return DisassociateDRTRoleCommand;
38
- }($Command));
39
- export { DisassociateDRTRoleCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DisassociateHealthCheckRequestFilterSensitiveLog, DisassociateHealthCheckResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DisassociateHealthCheckCommand, serializeAws_json1_1DisassociateHealthCheckCommand, } from "../protocols/Aws_json1_1";
6
- var DisassociateHealthCheckCommand = (function (_super) {
7
- __extends(DisassociateHealthCheckCommand, _super);
8
- function DisassociateHealthCheckCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateHealthCheckCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateHealthCheckCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "DisassociateHealthCheckCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "DisassociateHealthCheckCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateHealthCheckRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateHealthCheckResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateHealthCheckCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DisassociateHealthCheckCommand(input, context);
33
- };
34
- DisassociateHealthCheckCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DisassociateHealthCheckCommand(output, context);
36
- };
37
- return DisassociateHealthCheckCommand;
38
- }($Command));
39
- export { DisassociateHealthCheckCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { EnableApplicationLayerAutomaticResponseRequestFilterSensitiveLog, EnableApplicationLayerAutomaticResponseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand, serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand, } from "../protocols/Aws_json1_1";
6
- var EnableApplicationLayerAutomaticResponseCommand = (function (_super) {
7
- __extends(EnableApplicationLayerAutomaticResponseCommand, _super);
8
- function EnableApplicationLayerAutomaticResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class EnableApplicationLayerAutomaticResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- EnableApplicationLayerAutomaticResponseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "EnableApplicationLayerAutomaticResponseCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "EnableApplicationLayerAutomaticResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: EnableApplicationLayerAutomaticResponseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: EnableApplicationLayerAutomaticResponseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- EnableApplicationLayerAutomaticResponseCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand(input, context);
33
- };
34
- EnableApplicationLayerAutomaticResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand(output, context);
36
- };
37
- return EnableApplicationLayerAutomaticResponseCommand;
38
- }($Command));
39
- export { EnableApplicationLayerAutomaticResponseCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { EnableProactiveEngagementRequestFilterSensitiveLog, EnableProactiveEngagementResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1EnableProactiveEngagementCommand, serializeAws_json1_1EnableProactiveEngagementCommand, } from "../protocols/Aws_json1_1";
6
- var EnableProactiveEngagementCommand = (function (_super) {
7
- __extends(EnableProactiveEngagementCommand, _super);
8
- function EnableProactiveEngagementCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class EnableProactiveEngagementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- EnableProactiveEngagementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "EnableProactiveEngagementCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "EnableProactiveEngagementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: EnableProactiveEngagementRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: EnableProactiveEngagementResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- EnableProactiveEngagementCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1EnableProactiveEngagementCommand(input, context);
33
- };
34
- EnableProactiveEngagementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1EnableProactiveEngagementCommand(output, context);
36
- };
37
- return EnableProactiveEngagementCommand;
38
- }($Command));
39
- export { EnableProactiveEngagementCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetSubscriptionStateRequestFilterSensitiveLog, GetSubscriptionStateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetSubscriptionStateCommand, serializeAws_json1_1GetSubscriptionStateCommand, } from "../protocols/Aws_json1_1";
6
- var GetSubscriptionStateCommand = (function (_super) {
7
- __extends(GetSubscriptionStateCommand, _super);
8
- function GetSubscriptionStateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSubscriptionStateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSubscriptionStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "GetSubscriptionStateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "GetSubscriptionStateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSubscriptionStateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSubscriptionStateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSubscriptionStateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetSubscriptionStateCommand(input, context);
33
- };
34
- GetSubscriptionStateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetSubscriptionStateCommand(output, context);
36
- };
37
- return GetSubscriptionStateCommand;
38
- }($Command));
39
- export { GetSubscriptionStateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAttacksRequestFilterSensitiveLog, ListAttacksResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAttacksCommand, serializeAws_json1_1ListAttacksCommand, } from "../protocols/Aws_json1_1";
6
- var ListAttacksCommand = (function (_super) {
7
- __extends(ListAttacksCommand, _super);
8
- function ListAttacksCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAttacksCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAttacksCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "ListAttacksCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "ListAttacksCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAttacksRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAttacksResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAttacksCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListAttacksCommand(input, context);
33
- };
34
- ListAttacksCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAttacksCommand(output, context);
36
- };
37
- return ListAttacksCommand;
38
- }($Command));
39
- export { ListAttacksCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListProtectionGroupsRequestFilterSensitiveLog, ListProtectionGroupsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListProtectionGroupsCommand, serializeAws_json1_1ListProtectionGroupsCommand, } from "../protocols/Aws_json1_1";
6
- var ListProtectionGroupsCommand = (function (_super) {
7
- __extends(ListProtectionGroupsCommand, _super);
8
- function ListProtectionGroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListProtectionGroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListProtectionGroupsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "ListProtectionGroupsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "ListProtectionGroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListProtectionGroupsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListProtectionGroupsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListProtectionGroupsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListProtectionGroupsCommand(input, context);
33
- };
34
- ListProtectionGroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListProtectionGroupsCommand(output, context);
36
- };
37
- return ListProtectionGroupsCommand;
38
- }($Command));
39
- export { ListProtectionGroupsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListProtectionsRequestFilterSensitiveLog, ListProtectionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListProtectionsCommand, serializeAws_json1_1ListProtectionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListProtectionsCommand = (function (_super) {
7
- __extends(ListProtectionsCommand, _super);
8
- function ListProtectionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListProtectionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListProtectionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "ListProtectionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "ListProtectionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListProtectionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListProtectionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListProtectionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListProtectionsCommand(input, context);
33
- };
34
- ListProtectionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListProtectionsCommand(output, context);
36
- };
37
- return ListProtectionsCommand;
38
- }($Command));
39
- export { ListProtectionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListResourcesInProtectionGroupRequestFilterSensitiveLog, ListResourcesInProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListResourcesInProtectionGroupCommand, serializeAws_json1_1ListResourcesInProtectionGroupCommand, } from "../protocols/Aws_json1_1";
6
- var ListResourcesInProtectionGroupCommand = (function (_super) {
7
- __extends(ListResourcesInProtectionGroupCommand, _super);
8
- function ListResourcesInProtectionGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListResourcesInProtectionGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListResourcesInProtectionGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "ListResourcesInProtectionGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "ListResourcesInProtectionGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListResourcesInProtectionGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListResourcesInProtectionGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListResourcesInProtectionGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListResourcesInProtectionGroupCommand(input, context);
33
- };
34
- ListResourcesInProtectionGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListResourcesInProtectionGroupCommand(output, context);
36
- };
37
- return ListResourcesInProtectionGroupCommand;
38
- }($Command));
39
- export { ListResourcesInProtectionGroupCommand };
31
+ }
32
+ }