@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 { DeleteSubscriptionRequestFilterSensitiveLog, DeleteSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteSubscriptionCommand, serializeAws_json1_1DeleteSubscriptionCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteSubscriptionCommand = (function (_super) {
7
- __extends(DeleteSubscriptionCommand, _super);
8
- function DeleteSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSubscriptionCommand.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 = "DeleteSubscriptionCommand";
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 = "DeleteSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSubscriptionCommand.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_1DeleteSubscriptionCommand(input, context);
33
- };
34
- DeleteSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteSubscriptionCommand(output, context);
36
- };
37
- return DeleteSubscriptionCommand;
38
- }($Command));
39
- export { DeleteSubscriptionCommand };
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 { DescribeAttackRequestFilterSensitiveLog, DescribeAttackResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAttackCommand, serializeAws_json1_1DescribeAttackCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAttackCommand = (function (_super) {
7
- __extends(DescribeAttackCommand, _super);
8
- function DescribeAttackCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAttackCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAttackCommand.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 = "DescribeAttackCommand";
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 = "DescribeAttackCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAttackRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAttackResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAttackCommand.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_1DescribeAttackCommand(input, context);
33
- };
34
- DescribeAttackCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAttackCommand(output, context);
36
- };
37
- return DescribeAttackCommand;
38
- }($Command));
39
- export { DescribeAttackCommand };
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 { DescribeAttackStatisticsRequestFilterSensitiveLog, DescribeAttackStatisticsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAttackStatisticsCommand, serializeAws_json1_1DescribeAttackStatisticsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAttackStatisticsCommand = (function (_super) {
7
- __extends(DescribeAttackStatisticsCommand, _super);
8
- function DescribeAttackStatisticsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAttackStatisticsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAttackStatisticsCommand.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 = "DescribeAttackStatisticsCommand";
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 = "DescribeAttackStatisticsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAttackStatisticsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAttackStatisticsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAttackStatisticsCommand.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_1DescribeAttackStatisticsCommand(input, context);
33
- };
34
- DescribeAttackStatisticsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAttackStatisticsCommand(output, context);
36
- };
37
- return DescribeAttackStatisticsCommand;
38
- }($Command));
39
- export { DescribeAttackStatisticsCommand };
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 { DescribeDRTAccessRequestFilterSensitiveLog, DescribeDRTAccessResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeDRTAccessCommand, serializeAws_json1_1DescribeDRTAccessCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeDRTAccessCommand = (function (_super) {
7
- __extends(DescribeDRTAccessCommand, _super);
8
- function DescribeDRTAccessCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDRTAccessCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDRTAccessCommand.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 = "DescribeDRTAccessCommand";
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 = "DescribeDRTAccessCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDRTAccessRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDRTAccessResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDRTAccessCommand.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_1DescribeDRTAccessCommand(input, context);
33
- };
34
- DescribeDRTAccessCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeDRTAccessCommand(output, context);
36
- };
37
- return DescribeDRTAccessCommand;
38
- }($Command));
39
- export { DescribeDRTAccessCommand };
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 { DescribeEmergencyContactSettingsRequestFilterSensitiveLog, DescribeEmergencyContactSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEmergencyContactSettingsCommand, serializeAws_json1_1DescribeEmergencyContactSettingsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEmergencyContactSettingsCommand = (function (_super) {
7
- __extends(DescribeEmergencyContactSettingsCommand, _super);
8
- function DescribeEmergencyContactSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEmergencyContactSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEmergencyContactSettingsCommand.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 = "DescribeEmergencyContactSettingsCommand";
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 = "DescribeEmergencyContactSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEmergencyContactSettingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEmergencyContactSettingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEmergencyContactSettingsCommand.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_1DescribeEmergencyContactSettingsCommand(input, context);
33
- };
34
- DescribeEmergencyContactSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEmergencyContactSettingsCommand(output, context);
36
- };
37
- return DescribeEmergencyContactSettingsCommand;
38
- }($Command));
39
- export { DescribeEmergencyContactSettingsCommand };
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 { DescribeProtectionRequestFilterSensitiveLog, DescribeProtectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeProtectionCommand, serializeAws_json1_1DescribeProtectionCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeProtectionCommand = (function (_super) {
7
- __extends(DescribeProtectionCommand, _super);
8
- function DescribeProtectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeProtectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeProtectionCommand.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 = "DescribeProtectionCommand";
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 = "DescribeProtectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeProtectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeProtectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeProtectionCommand.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_1DescribeProtectionCommand(input, context);
33
- };
34
- DescribeProtectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeProtectionCommand(output, context);
36
- };
37
- return DescribeProtectionCommand;
38
- }($Command));
39
- export { DescribeProtectionCommand };
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 { DescribeProtectionGroupRequestFilterSensitiveLog, DescribeProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeProtectionGroupCommand, serializeAws_json1_1DescribeProtectionGroupCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeProtectionGroupCommand = (function (_super) {
7
- __extends(DescribeProtectionGroupCommand, _super);
8
- function DescribeProtectionGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeProtectionGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeProtectionGroupCommand.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 = "DescribeProtectionGroupCommand";
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 = "DescribeProtectionGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeProtectionGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeProtectionGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeProtectionGroupCommand.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_1DescribeProtectionGroupCommand(input, context);
33
- };
34
- DescribeProtectionGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeProtectionGroupCommand(output, context);
36
- };
37
- return DescribeProtectionGroupCommand;
38
- }($Command));
39
- export { DescribeProtectionGroupCommand };
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 { DescribeSubscriptionRequestFilterSensitiveLog, DescribeSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeSubscriptionCommand, serializeAws_json1_1DescribeSubscriptionCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeSubscriptionCommand = (function (_super) {
7
- __extends(DescribeSubscriptionCommand, _super);
8
- function DescribeSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeSubscriptionCommand.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 = "DescribeSubscriptionCommand";
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 = "DescribeSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeSubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeSubscriptionCommand.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_1DescribeSubscriptionCommand(input, context);
33
- };
34
- DescribeSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeSubscriptionCommand(output, context);
36
- };
37
- return DescribeSubscriptionCommand;
38
- }($Command));
39
- export { DescribeSubscriptionCommand };
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 { DisableApplicationLayerAutomaticResponseRequestFilterSensitiveLog, DisableApplicationLayerAutomaticResponseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand, serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand, } from "../protocols/Aws_json1_1";
6
- var DisableApplicationLayerAutomaticResponseCommand = (function (_super) {
7
- __extends(DisableApplicationLayerAutomaticResponseCommand, _super);
8
- function DisableApplicationLayerAutomaticResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableApplicationLayerAutomaticResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableApplicationLayerAutomaticResponseCommand.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 = "DisableApplicationLayerAutomaticResponseCommand";
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 = "DisableApplicationLayerAutomaticResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisableApplicationLayerAutomaticResponseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisableApplicationLayerAutomaticResponseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableApplicationLayerAutomaticResponseCommand.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_1DisableApplicationLayerAutomaticResponseCommand(input, context);
33
- };
34
- DisableApplicationLayerAutomaticResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand(output, context);
36
- };
37
- return DisableApplicationLayerAutomaticResponseCommand;
38
- }($Command));
39
- export { DisableApplicationLayerAutomaticResponseCommand };
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 { DisableProactiveEngagementRequestFilterSensitiveLog, DisableProactiveEngagementResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DisableProactiveEngagementCommand, serializeAws_json1_1DisableProactiveEngagementCommand, } from "../protocols/Aws_json1_1";
6
- var DisableProactiveEngagementCommand = (function (_super) {
7
- __extends(DisableProactiveEngagementCommand, _super);
8
- function DisableProactiveEngagementCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableProactiveEngagementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableProactiveEngagementCommand.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 = "DisableProactiveEngagementCommand";
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 = "DisableProactiveEngagementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisableProactiveEngagementRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisableProactiveEngagementResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableProactiveEngagementCommand.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_1DisableProactiveEngagementCommand(input, context);
33
- };
34
- DisableProactiveEngagementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DisableProactiveEngagementCommand(output, context);
36
- };
37
- return DisableProactiveEngagementCommand;
38
- }($Command));
39
- export { DisableProactiveEngagementCommand };
31
+ }
32
+ }