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