@aws-sdk/client-wafv2 3.180.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 (61) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +54 -48
  3. package/dist-es/WAFV2.js +194 -201
  4. package/dist-es/WAFV2Client.js +22 -28
  5. package/dist-es/commands/AssociateWebACLCommand.js +21 -28
  6. package/dist-es/commands/CheckCapacityCommand.js +21 -28
  7. package/dist-es/commands/CreateIPSetCommand.js +21 -28
  8. package/dist-es/commands/CreateRegexPatternSetCommand.js +21 -28
  9. package/dist-es/commands/CreateRuleGroupCommand.js +21 -28
  10. package/dist-es/commands/CreateWebACLCommand.js +21 -28
  11. package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js +21 -28
  12. package/dist-es/commands/DeleteIPSetCommand.js +21 -28
  13. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +21 -28
  14. package/dist-es/commands/DeletePermissionPolicyCommand.js +21 -28
  15. package/dist-es/commands/DeleteRegexPatternSetCommand.js +21 -28
  16. package/dist-es/commands/DeleteRuleGroupCommand.js +21 -28
  17. package/dist-es/commands/DeleteWebACLCommand.js +21 -28
  18. package/dist-es/commands/DescribeManagedRuleGroupCommand.js +21 -28
  19. package/dist-es/commands/DisassociateWebACLCommand.js +21 -28
  20. package/dist-es/commands/GenerateMobileSdkReleaseUrlCommand.js +21 -28
  21. package/dist-es/commands/GetIPSetCommand.js +21 -28
  22. package/dist-es/commands/GetLoggingConfigurationCommand.js +21 -28
  23. package/dist-es/commands/GetManagedRuleSetCommand.js +21 -28
  24. package/dist-es/commands/GetMobileSdkReleaseCommand.js +21 -28
  25. package/dist-es/commands/GetPermissionPolicyCommand.js +21 -28
  26. package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js +21 -28
  27. package/dist-es/commands/GetRegexPatternSetCommand.js +21 -28
  28. package/dist-es/commands/GetRuleGroupCommand.js +21 -28
  29. package/dist-es/commands/GetSampledRequestsCommand.js +21 -28
  30. package/dist-es/commands/GetWebACLCommand.js +21 -28
  31. package/dist-es/commands/GetWebACLForResourceCommand.js +21 -28
  32. package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js +21 -28
  33. package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js +21 -28
  34. package/dist-es/commands/ListIPSetsCommand.js +21 -28
  35. package/dist-es/commands/ListLoggingConfigurationsCommand.js +21 -28
  36. package/dist-es/commands/ListManagedRuleSetsCommand.js +21 -28
  37. package/dist-es/commands/ListMobileSdkReleasesCommand.js +21 -28
  38. package/dist-es/commands/ListRegexPatternSetsCommand.js +21 -28
  39. package/dist-es/commands/ListResourcesForWebACLCommand.js +21 -28
  40. package/dist-es/commands/ListRuleGroupsCommand.js +21 -28
  41. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  42. package/dist-es/commands/ListWebACLsCommand.js +21 -28
  43. package/dist-es/commands/PutLoggingConfigurationCommand.js +21 -28
  44. package/dist-es/commands/PutManagedRuleSetVersionsCommand.js +21 -28
  45. package/dist-es/commands/PutPermissionPolicyCommand.js +21 -28
  46. package/dist-es/commands/TagResourceCommand.js +21 -28
  47. package/dist-es/commands/UntagResourceCommand.js +21 -28
  48. package/dist-es/commands/UpdateIPSetCommand.js +21 -28
  49. package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +21 -28
  50. package/dist-es/commands/UpdateRegexPatternSetCommand.js +21 -28
  51. package/dist-es/commands/UpdateRuleGroupCommand.js +21 -28
  52. package/dist-es/commands/UpdateWebACLCommand.js +21 -28
  53. package/dist-es/endpoints.js +8 -8
  54. package/dist-es/models/WAFV2ServiceException.js +5 -10
  55. package/dist-es/models/models_0.js +775 -404
  56. package/dist-es/protocols/Aws_json1_1.js +4048 -4797
  57. package/dist-es/runtimeConfig.browser.js +26 -12
  58. package/dist-es/runtimeConfig.js +30 -12
  59. package/dist-es/runtimeConfig.native.js +8 -5
  60. package/dist-es/runtimeConfig.shared.js +8 -11
  61. 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 { ListIPSetsRequestFilterSensitiveLog, ListIPSetsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListIPSetsCommand, serializeAws_json1_1ListIPSetsCommand, } from "../protocols/Aws_json1_1";
6
- var ListIPSetsCommand = (function (_super) {
7
- __extends(ListIPSetsCommand, _super);
8
- function ListIPSetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListIPSetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListIPSetsCommand.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 = "WAFV2Client";
18
- var commandName = "ListIPSetsCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListIPSetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListIPSetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListIPSetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListIPSetsCommand.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_1ListIPSetsCommand(input, context);
33
- };
34
- ListIPSetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListIPSetsCommand(output, context);
36
- };
37
- return ListIPSetsCommand;
38
- }($Command));
39
- export { ListIPSetsCommand };
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 { ListLoggingConfigurationsRequestFilterSensitiveLog, ListLoggingConfigurationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListLoggingConfigurationsCommand, serializeAws_json1_1ListLoggingConfigurationsCommand, } from "../protocols/Aws_json1_1";
6
- var ListLoggingConfigurationsCommand = (function (_super) {
7
- __extends(ListLoggingConfigurationsCommand, _super);
8
- function ListLoggingConfigurationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListLoggingConfigurationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListLoggingConfigurationsCommand.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 = "WAFV2Client";
18
- var commandName = "ListLoggingConfigurationsCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListLoggingConfigurationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListLoggingConfigurationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListLoggingConfigurationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListLoggingConfigurationsCommand.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_1ListLoggingConfigurationsCommand(input, context);
33
- };
34
- ListLoggingConfigurationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListLoggingConfigurationsCommand(output, context);
36
- };
37
- return ListLoggingConfigurationsCommand;
38
- }($Command));
39
- export { ListLoggingConfigurationsCommand };
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 { ListManagedRuleSetsRequestFilterSensitiveLog, ListManagedRuleSetsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListManagedRuleSetsCommand, serializeAws_json1_1ListManagedRuleSetsCommand, } from "../protocols/Aws_json1_1";
6
- var ListManagedRuleSetsCommand = (function (_super) {
7
- __extends(ListManagedRuleSetsCommand, _super);
8
- function ListManagedRuleSetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListManagedRuleSetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListManagedRuleSetsCommand.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 = "WAFV2Client";
18
- var commandName = "ListManagedRuleSetsCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListManagedRuleSetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListManagedRuleSetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListManagedRuleSetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListManagedRuleSetsCommand.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_1ListManagedRuleSetsCommand(input, context);
33
- };
34
- ListManagedRuleSetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListManagedRuleSetsCommand(output, context);
36
- };
37
- return ListManagedRuleSetsCommand;
38
- }($Command));
39
- export { ListManagedRuleSetsCommand };
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 { ListMobileSdkReleasesRequestFilterSensitiveLog, ListMobileSdkReleasesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListMobileSdkReleasesCommand, serializeAws_json1_1ListMobileSdkReleasesCommand, } from "../protocols/Aws_json1_1";
6
- var ListMobileSdkReleasesCommand = (function (_super) {
7
- __extends(ListMobileSdkReleasesCommand, _super);
8
- function ListMobileSdkReleasesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListMobileSdkReleasesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListMobileSdkReleasesCommand.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 = "WAFV2Client";
18
- var commandName = "ListMobileSdkReleasesCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListMobileSdkReleasesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListMobileSdkReleasesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListMobileSdkReleasesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListMobileSdkReleasesCommand.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_1ListMobileSdkReleasesCommand(input, context);
33
- };
34
- ListMobileSdkReleasesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListMobileSdkReleasesCommand(output, context);
36
- };
37
- return ListMobileSdkReleasesCommand;
38
- }($Command));
39
- export { ListMobileSdkReleasesCommand };
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 { ListRegexPatternSetsRequestFilterSensitiveLog, ListRegexPatternSetsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListRegexPatternSetsCommand, serializeAws_json1_1ListRegexPatternSetsCommand, } from "../protocols/Aws_json1_1";
6
- var ListRegexPatternSetsCommand = (function (_super) {
7
- __extends(ListRegexPatternSetsCommand, _super);
8
- function ListRegexPatternSetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRegexPatternSetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRegexPatternSetsCommand.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 = "WAFV2Client";
18
- var commandName = "ListRegexPatternSetsCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListRegexPatternSetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRegexPatternSetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRegexPatternSetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRegexPatternSetsCommand.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_1ListRegexPatternSetsCommand(input, context);
33
- };
34
- ListRegexPatternSetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListRegexPatternSetsCommand(output, context);
36
- };
37
- return ListRegexPatternSetsCommand;
38
- }($Command));
39
- export { ListRegexPatternSetsCommand };
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 { ListResourcesForWebACLRequestFilterSensitiveLog, ListResourcesForWebACLResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListResourcesForWebACLCommand, serializeAws_json1_1ListResourcesForWebACLCommand, } from "../protocols/Aws_json1_1";
6
- var ListResourcesForWebACLCommand = (function (_super) {
7
- __extends(ListResourcesForWebACLCommand, _super);
8
- function ListResourcesForWebACLCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListResourcesForWebACLCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListResourcesForWebACLCommand.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 = "WAFV2Client";
18
- var commandName = "ListResourcesForWebACLCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListResourcesForWebACLCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListResourcesForWebACLRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListResourcesForWebACLResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListResourcesForWebACLCommand.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_1ListResourcesForWebACLCommand(input, context);
33
- };
34
- ListResourcesForWebACLCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListResourcesForWebACLCommand(output, context);
36
- };
37
- return ListResourcesForWebACLCommand;
38
- }($Command));
39
- export { ListResourcesForWebACLCommand };
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 { ListRuleGroupsRequestFilterSensitiveLog, ListRuleGroupsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListRuleGroupsCommand, serializeAws_json1_1ListRuleGroupsCommand, } from "../protocols/Aws_json1_1";
6
- var ListRuleGroupsCommand = (function (_super) {
7
- __extends(ListRuleGroupsCommand, _super);
8
- function ListRuleGroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRuleGroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRuleGroupsCommand.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 = "WAFV2Client";
18
- var commandName = "ListRuleGroupsCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListRuleGroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRuleGroupsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRuleGroupsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRuleGroupsCommand.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_1ListRuleGroupsCommand(input, context);
33
- };
34
- ListRuleGroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListRuleGroupsCommand(output, context);
36
- };
37
- return ListRuleGroupsCommand;
38
- }($Command));
39
- export { ListRuleGroupsCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "WAFV2Client";
18
- var commandName = "ListTagsForResourceCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { ListWebACLsRequestFilterSensitiveLog, ListWebACLsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListWebACLsCommand, serializeAws_json1_1ListWebACLsCommand, } from "../protocols/Aws_json1_1";
6
- var ListWebACLsCommand = (function (_super) {
7
- __extends(ListWebACLsCommand, _super);
8
- function ListWebACLsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListWebACLsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListWebACLsCommand.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 = "WAFV2Client";
18
- var commandName = "ListWebACLsCommand";
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 = "WAFV2Client";
15
+ const commandName = "ListWebACLsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListWebACLsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListWebACLsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListWebACLsCommand.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_1ListWebACLsCommand(input, context);
33
- };
34
- ListWebACLsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListWebACLsCommand(output, context);
36
- };
37
- return ListWebACLsCommand;
38
- }($Command));
39
- export { ListWebACLsCommand };
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 { PutLoggingConfigurationRequestFilterSensitiveLog, PutLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutLoggingConfigurationCommand, serializeAws_json1_1PutLoggingConfigurationCommand, } from "../protocols/Aws_json1_1";
6
- var PutLoggingConfigurationCommand = (function (_super) {
7
- __extends(PutLoggingConfigurationCommand, _super);
8
- function PutLoggingConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutLoggingConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutLoggingConfigurationCommand.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 = "WAFV2Client";
18
- var commandName = "PutLoggingConfigurationCommand";
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 = "WAFV2Client";
15
+ const commandName = "PutLoggingConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutLoggingConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutLoggingConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutLoggingConfigurationCommand.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_1PutLoggingConfigurationCommand(input, context);
33
- };
34
- PutLoggingConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutLoggingConfigurationCommand(output, context);
36
- };
37
- return PutLoggingConfigurationCommand;
38
- }($Command));
39
- export { PutLoggingConfigurationCommand };
31
+ }
32
+ }