@aws-sdk/client-shield 3.181.0 → 3.183.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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ShieldClient = (function (_super) {
13
- __extends(ShieldClient, _super);
14
- function ShieldClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ShieldClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ShieldClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ShieldClient;
38
- }(__Client));
39
- export { ShieldClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { AssociateDRTLogBucketRequestFilterSensitiveLog, AssociateDRTLogBucketResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AssociateDRTLogBucketCommand, serializeAws_json1_1AssociateDRTLogBucketCommand, } from "../protocols/Aws_json1_1";
6
- var AssociateDRTLogBucketCommand = (function (_super) {
7
- __extends(AssociateDRTLogBucketCommand, _super);
8
- function AssociateDRTLogBucketCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateDRTLogBucketCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateDRTLogBucketCommand.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 = "AssociateDRTLogBucketCommand";
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 = "AssociateDRTLogBucketCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateDRTLogBucketRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociateDRTLogBucketResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateDRTLogBucketCommand.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_1AssociateDRTLogBucketCommand(input, context);
33
- };
34
- AssociateDRTLogBucketCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AssociateDRTLogBucketCommand(output, context);
36
- };
37
- return AssociateDRTLogBucketCommand;
38
- }($Command));
39
- export { AssociateDRTLogBucketCommand };
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 { AssociateDRTRoleRequestFilterSensitiveLog, AssociateDRTRoleResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AssociateDRTRoleCommand, serializeAws_json1_1AssociateDRTRoleCommand, } from "../protocols/Aws_json1_1";
6
- var AssociateDRTRoleCommand = (function (_super) {
7
- __extends(AssociateDRTRoleCommand, _super);
8
- function AssociateDRTRoleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateDRTRoleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateDRTRoleCommand.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 = "AssociateDRTRoleCommand";
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 = "AssociateDRTRoleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateDRTRoleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociateDRTRoleResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateDRTRoleCommand.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_1AssociateDRTRoleCommand(input, context);
33
- };
34
- AssociateDRTRoleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AssociateDRTRoleCommand(output, context);
36
- };
37
- return AssociateDRTRoleCommand;
38
- }($Command));
39
- export { AssociateDRTRoleCommand };
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 { AssociateHealthCheckRequestFilterSensitiveLog, AssociateHealthCheckResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AssociateHealthCheckCommand, serializeAws_json1_1AssociateHealthCheckCommand, } from "../protocols/Aws_json1_1";
6
- var AssociateHealthCheckCommand = (function (_super) {
7
- __extends(AssociateHealthCheckCommand, _super);
8
- function AssociateHealthCheckCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateHealthCheckCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateHealthCheckCommand.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 = "AssociateHealthCheckCommand";
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 = "AssociateHealthCheckCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateHealthCheckRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociateHealthCheckResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateHealthCheckCommand.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_1AssociateHealthCheckCommand(input, context);
33
- };
34
- AssociateHealthCheckCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AssociateHealthCheckCommand(output, context);
36
- };
37
- return AssociateHealthCheckCommand;
38
- }($Command));
39
- export { AssociateHealthCheckCommand };
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 { AssociateProactiveEngagementDetailsRequestFilterSensitiveLog, AssociateProactiveEngagementDetailsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand, serializeAws_json1_1AssociateProactiveEngagementDetailsCommand, } from "../protocols/Aws_json1_1";
6
- var AssociateProactiveEngagementDetailsCommand = (function (_super) {
7
- __extends(AssociateProactiveEngagementDetailsCommand, _super);
8
- function AssociateProactiveEngagementDetailsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateProactiveEngagementDetailsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateProactiveEngagementDetailsCommand.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 = "AssociateProactiveEngagementDetailsCommand";
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 = "AssociateProactiveEngagementDetailsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateProactiveEngagementDetailsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociateProactiveEngagementDetailsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateProactiveEngagementDetailsCommand.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_1AssociateProactiveEngagementDetailsCommand(input, context);
33
- };
34
- AssociateProactiveEngagementDetailsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand(output, context);
36
- };
37
- return AssociateProactiveEngagementDetailsCommand;
38
- }($Command));
39
- export { AssociateProactiveEngagementDetailsCommand };
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 { CreateProtectionRequestFilterSensitiveLog, CreateProtectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateProtectionCommand, serializeAws_json1_1CreateProtectionCommand, } from "../protocols/Aws_json1_1";
6
- var CreateProtectionCommand = (function (_super) {
7
- __extends(CreateProtectionCommand, _super);
8
- function CreateProtectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateProtectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateProtectionCommand.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 = "CreateProtectionCommand";
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 = "CreateProtectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateProtectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateProtectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateProtectionCommand.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_1CreateProtectionCommand(input, context);
33
- };
34
- CreateProtectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateProtectionCommand(output, context);
36
- };
37
- return CreateProtectionCommand;
38
- }($Command));
39
- export { CreateProtectionCommand };
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 { CreateProtectionGroupRequestFilterSensitiveLog, CreateProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateProtectionGroupCommand, serializeAws_json1_1CreateProtectionGroupCommand, } from "../protocols/Aws_json1_1";
6
- var CreateProtectionGroupCommand = (function (_super) {
7
- __extends(CreateProtectionGroupCommand, _super);
8
- function CreateProtectionGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateProtectionGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateProtectionGroupCommand.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 = "CreateProtectionGroupCommand";
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 = "CreateProtectionGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateProtectionGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateProtectionGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateProtectionGroupCommand.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_1CreateProtectionGroupCommand(input, context);
33
- };
34
- CreateProtectionGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateProtectionGroupCommand(output, context);
36
- };
37
- return CreateProtectionGroupCommand;
38
- }($Command));
39
- export { CreateProtectionGroupCommand };
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 { CreateSubscriptionRequestFilterSensitiveLog, CreateSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateSubscriptionCommand, serializeAws_json1_1CreateSubscriptionCommand, } from "../protocols/Aws_json1_1";
6
- var CreateSubscriptionCommand = (function (_super) {
7
- __extends(CreateSubscriptionCommand, _super);
8
- function CreateSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSubscriptionCommand.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 = "CreateSubscriptionCommand";
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 = "CreateSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSubscriptionCommand.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_1CreateSubscriptionCommand(input, context);
33
- };
34
- CreateSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateSubscriptionCommand(output, context);
36
- };
37
- return CreateSubscriptionCommand;
38
- }($Command));
39
- export { CreateSubscriptionCommand };
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 { DeleteProtectionRequestFilterSensitiveLog, DeleteProtectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteProtectionCommand, serializeAws_json1_1DeleteProtectionCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteProtectionCommand = (function (_super) {
7
- __extends(DeleteProtectionCommand, _super);
8
- function DeleteProtectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteProtectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteProtectionCommand.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 = "DeleteProtectionCommand";
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 = "DeleteProtectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteProtectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteProtectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteProtectionCommand.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_1DeleteProtectionCommand(input, context);
33
- };
34
- DeleteProtectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteProtectionCommand(output, context);
36
- };
37
- return DeleteProtectionCommand;
38
- }($Command));
39
- export { DeleteProtectionCommand };
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 { DeleteProtectionGroupRequestFilterSensitiveLog, DeleteProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteProtectionGroupCommand, serializeAws_json1_1DeleteProtectionGroupCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteProtectionGroupCommand = (function (_super) {
7
- __extends(DeleteProtectionGroupCommand, _super);
8
- function DeleteProtectionGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteProtectionGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteProtectionGroupCommand.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 = "DeleteProtectionGroupCommand";
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 = "DeleteProtectionGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteProtectionGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteProtectionGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteProtectionGroupCommand.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_1DeleteProtectionGroupCommand(input, context);
33
- };
34
- DeleteProtectionGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteProtectionGroupCommand(output, context);
36
- };
37
- return DeleteProtectionGroupCommand;
38
- }($Command));
39
- export { DeleteProtectionGroupCommand };
31
+ }
32
+ }