@aws-sdk/client-wafv2 3.186.0 → 3.190.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 (60) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/WAFV2.js +194 -201
  3. package/dist-es/WAFV2Client.js +22 -28
  4. package/dist-es/commands/AssociateWebACLCommand.js +21 -28
  5. package/dist-es/commands/CheckCapacityCommand.js +21 -28
  6. package/dist-es/commands/CreateIPSetCommand.js +21 -28
  7. package/dist-es/commands/CreateRegexPatternSetCommand.js +21 -28
  8. package/dist-es/commands/CreateRuleGroupCommand.js +21 -28
  9. package/dist-es/commands/CreateWebACLCommand.js +21 -28
  10. package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js +21 -28
  11. package/dist-es/commands/DeleteIPSetCommand.js +21 -28
  12. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DeletePermissionPolicyCommand.js +21 -28
  14. package/dist-es/commands/DeleteRegexPatternSetCommand.js +21 -28
  15. package/dist-es/commands/DeleteRuleGroupCommand.js +21 -28
  16. package/dist-es/commands/DeleteWebACLCommand.js +21 -28
  17. package/dist-es/commands/DescribeManagedRuleGroupCommand.js +21 -28
  18. package/dist-es/commands/DisassociateWebACLCommand.js +21 -28
  19. package/dist-es/commands/GenerateMobileSdkReleaseUrlCommand.js +21 -28
  20. package/dist-es/commands/GetIPSetCommand.js +21 -28
  21. package/dist-es/commands/GetLoggingConfigurationCommand.js +21 -28
  22. package/dist-es/commands/GetManagedRuleSetCommand.js +21 -28
  23. package/dist-es/commands/GetMobileSdkReleaseCommand.js +21 -28
  24. package/dist-es/commands/GetPermissionPolicyCommand.js +21 -28
  25. package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js +21 -28
  26. package/dist-es/commands/GetRegexPatternSetCommand.js +21 -28
  27. package/dist-es/commands/GetRuleGroupCommand.js +21 -28
  28. package/dist-es/commands/GetSampledRequestsCommand.js +21 -28
  29. package/dist-es/commands/GetWebACLCommand.js +21 -28
  30. package/dist-es/commands/GetWebACLForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js +21 -28
  32. package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js +21 -28
  33. package/dist-es/commands/ListIPSetsCommand.js +21 -28
  34. package/dist-es/commands/ListLoggingConfigurationsCommand.js +21 -28
  35. package/dist-es/commands/ListManagedRuleSetsCommand.js +21 -28
  36. package/dist-es/commands/ListMobileSdkReleasesCommand.js +21 -28
  37. package/dist-es/commands/ListRegexPatternSetsCommand.js +21 -28
  38. package/dist-es/commands/ListResourcesForWebACLCommand.js +21 -28
  39. package/dist-es/commands/ListRuleGroupsCommand.js +21 -28
  40. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  41. package/dist-es/commands/ListWebACLsCommand.js +21 -28
  42. package/dist-es/commands/PutLoggingConfigurationCommand.js +21 -28
  43. package/dist-es/commands/PutManagedRuleSetVersionsCommand.js +21 -28
  44. package/dist-es/commands/PutPermissionPolicyCommand.js +21 -28
  45. package/dist-es/commands/TagResourceCommand.js +21 -28
  46. package/dist-es/commands/UntagResourceCommand.js +21 -28
  47. package/dist-es/commands/UpdateIPSetCommand.js +21 -28
  48. package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +21 -28
  49. package/dist-es/commands/UpdateRegexPatternSetCommand.js +21 -28
  50. package/dist-es/commands/UpdateRuleGroupCommand.js +21 -28
  51. package/dist-es/commands/UpdateWebACLCommand.js +21 -28
  52. package/dist-es/endpoints.js +8 -8
  53. package/dist-es/models/WAFV2ServiceException.js +5 -10
  54. package/dist-es/models/models_0.js +775 -404
  55. package/dist-es/protocols/Aws_json1_1.js +4048 -4810
  56. package/dist-es/runtimeConfig.browser.js +26 -12
  57. package/dist-es/runtimeConfig.js +30 -12
  58. package/dist-es/runtimeConfig.native.js +8 -5
  59. package/dist-es/runtimeConfig.shared.js +8 -11
  60. 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 { GetMobileSdkReleaseRequestFilterSensitiveLog, GetMobileSdkReleaseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetMobileSdkReleaseCommand, serializeAws_json1_1GetMobileSdkReleaseCommand, } from "../protocols/Aws_json1_1";
6
- var GetMobileSdkReleaseCommand = (function (_super) {
7
- __extends(GetMobileSdkReleaseCommand, _super);
8
- function GetMobileSdkReleaseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetMobileSdkReleaseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetMobileSdkReleaseCommand.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 = "GetMobileSdkReleaseCommand";
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 = "GetMobileSdkReleaseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetMobileSdkReleaseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetMobileSdkReleaseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetMobileSdkReleaseCommand.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_1GetMobileSdkReleaseCommand(input, context);
33
- };
34
- GetMobileSdkReleaseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetMobileSdkReleaseCommand(output, context);
36
- };
37
- return GetMobileSdkReleaseCommand;
38
- }($Command));
39
- export { GetMobileSdkReleaseCommand };
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 { GetPermissionPolicyRequestFilterSensitiveLog, GetPermissionPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetPermissionPolicyCommand, serializeAws_json1_1GetPermissionPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var GetPermissionPolicyCommand = (function (_super) {
7
- __extends(GetPermissionPolicyCommand, _super);
8
- function GetPermissionPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPermissionPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPermissionPolicyCommand.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 = "GetPermissionPolicyCommand";
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 = "GetPermissionPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPermissionPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPermissionPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPermissionPolicyCommand.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_1GetPermissionPolicyCommand(input, context);
33
- };
34
- GetPermissionPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetPermissionPolicyCommand(output, context);
36
- };
37
- return GetPermissionPolicyCommand;
38
- }($Command));
39
- export { GetPermissionPolicyCommand };
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 { GetRateBasedStatementManagedKeysRequestFilterSensitiveLog, GetRateBasedStatementManagedKeysResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand, serializeAws_json1_1GetRateBasedStatementManagedKeysCommand, } from "../protocols/Aws_json1_1";
6
- var GetRateBasedStatementManagedKeysCommand = (function (_super) {
7
- __extends(GetRateBasedStatementManagedKeysCommand, _super);
8
- function GetRateBasedStatementManagedKeysCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRateBasedStatementManagedKeysCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRateBasedStatementManagedKeysCommand.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 = "GetRateBasedStatementManagedKeysCommand";
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 = "GetRateBasedStatementManagedKeysCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRateBasedStatementManagedKeysRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRateBasedStatementManagedKeysResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRateBasedStatementManagedKeysCommand.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_1GetRateBasedStatementManagedKeysCommand(input, context);
33
- };
34
- GetRateBasedStatementManagedKeysCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand(output, context);
36
- };
37
- return GetRateBasedStatementManagedKeysCommand;
38
- }($Command));
39
- export { GetRateBasedStatementManagedKeysCommand };
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 { GetRegexPatternSetRequestFilterSensitiveLog, GetRegexPatternSetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetRegexPatternSetCommand, serializeAws_json1_1GetRegexPatternSetCommand, } from "../protocols/Aws_json1_1";
6
- var GetRegexPatternSetCommand = (function (_super) {
7
- __extends(GetRegexPatternSetCommand, _super);
8
- function GetRegexPatternSetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRegexPatternSetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRegexPatternSetCommand.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 = "GetRegexPatternSetCommand";
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 = "GetRegexPatternSetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRegexPatternSetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRegexPatternSetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRegexPatternSetCommand.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_1GetRegexPatternSetCommand(input, context);
33
- };
34
- GetRegexPatternSetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetRegexPatternSetCommand(output, context);
36
- };
37
- return GetRegexPatternSetCommand;
38
- }($Command));
39
- export { GetRegexPatternSetCommand };
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 { GetRuleGroupRequestFilterSensitiveLog, GetRuleGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetRuleGroupCommand, serializeAws_json1_1GetRuleGroupCommand, } from "../protocols/Aws_json1_1";
6
- var GetRuleGroupCommand = (function (_super) {
7
- __extends(GetRuleGroupCommand, _super);
8
- function GetRuleGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRuleGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRuleGroupCommand.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 = "GetRuleGroupCommand";
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 = "GetRuleGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRuleGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRuleGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRuleGroupCommand.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_1GetRuleGroupCommand(input, context);
33
- };
34
- GetRuleGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetRuleGroupCommand(output, context);
36
- };
37
- return GetRuleGroupCommand;
38
- }($Command));
39
- export { GetRuleGroupCommand };
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 { GetSampledRequestsRequestFilterSensitiveLog, GetSampledRequestsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetSampledRequestsCommand, serializeAws_json1_1GetSampledRequestsCommand, } from "../protocols/Aws_json1_1";
6
- var GetSampledRequestsCommand = (function (_super) {
7
- __extends(GetSampledRequestsCommand, _super);
8
- function GetSampledRequestsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSampledRequestsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSampledRequestsCommand.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 = "GetSampledRequestsCommand";
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 = "GetSampledRequestsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSampledRequestsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSampledRequestsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSampledRequestsCommand.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_1GetSampledRequestsCommand(input, context);
33
- };
34
- GetSampledRequestsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetSampledRequestsCommand(output, context);
36
- };
37
- return GetSampledRequestsCommand;
38
- }($Command));
39
- export { GetSampledRequestsCommand };
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 { GetWebACLRequestFilterSensitiveLog, GetWebACLResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetWebACLCommand, serializeAws_json1_1GetWebACLCommand } from "../protocols/Aws_json1_1";
6
- var GetWebACLCommand = (function (_super) {
7
- __extends(GetWebACLCommand, _super);
8
- function GetWebACLCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetWebACLCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetWebACLCommand.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 = "GetWebACLCommand";
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 = "GetWebACLCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetWebACLRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetWebACLResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetWebACLCommand.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_1GetWebACLCommand(input, context);
33
- };
34
- GetWebACLCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetWebACLCommand(output, context);
36
- };
37
- return GetWebACLCommand;
38
- }($Command));
39
- export { GetWebACLCommand };
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 { GetWebACLForResourceRequestFilterSensitiveLog, GetWebACLForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetWebACLForResourceCommand, serializeAws_json1_1GetWebACLForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var GetWebACLForResourceCommand = (function (_super) {
7
- __extends(GetWebACLForResourceCommand, _super);
8
- function GetWebACLForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetWebACLForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetWebACLForResourceCommand.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 = "GetWebACLForResourceCommand";
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 = "GetWebACLForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetWebACLForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetWebACLForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetWebACLForResourceCommand.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_1GetWebACLForResourceCommand(input, context);
33
- };
34
- GetWebACLForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetWebACLForResourceCommand(output, context);
36
- };
37
- return GetWebACLForResourceCommand;
38
- }($Command));
39
- export { GetWebACLForResourceCommand };
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 { ListAvailableManagedRuleGroupVersionsRequestFilterSensitiveLog, ListAvailableManagedRuleGroupVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand, serializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListAvailableManagedRuleGroupVersionsCommand = (function (_super) {
7
- __extends(ListAvailableManagedRuleGroupVersionsCommand, _super);
8
- function ListAvailableManagedRuleGroupVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAvailableManagedRuleGroupVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAvailableManagedRuleGroupVersionsCommand.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 = "ListAvailableManagedRuleGroupVersionsCommand";
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 = "ListAvailableManagedRuleGroupVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAvailableManagedRuleGroupVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAvailableManagedRuleGroupVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAvailableManagedRuleGroupVersionsCommand.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_1ListAvailableManagedRuleGroupVersionsCommand(input, context);
33
- };
34
- ListAvailableManagedRuleGroupVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand(output, context);
36
- };
37
- return ListAvailableManagedRuleGroupVersionsCommand;
38
- }($Command));
39
- export { ListAvailableManagedRuleGroupVersionsCommand };
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 { ListAvailableManagedRuleGroupsRequestFilterSensitiveLog, ListAvailableManagedRuleGroupsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand, serializeAws_json1_1ListAvailableManagedRuleGroupsCommand, } from "../protocols/Aws_json1_1";
6
- var ListAvailableManagedRuleGroupsCommand = (function (_super) {
7
- __extends(ListAvailableManagedRuleGroupsCommand, _super);
8
- function ListAvailableManagedRuleGroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAvailableManagedRuleGroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAvailableManagedRuleGroupsCommand.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 = "ListAvailableManagedRuleGroupsCommand";
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 = "ListAvailableManagedRuleGroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAvailableManagedRuleGroupsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAvailableManagedRuleGroupsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAvailableManagedRuleGroupsCommand.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_1ListAvailableManagedRuleGroupsCommand(input, context);
33
- };
34
- ListAvailableManagedRuleGroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand(output, context);
36
- };
37
- return ListAvailableManagedRuleGroupsCommand;
38
- }($Command));
39
- export { ListAvailableManagedRuleGroupsCommand };
31
+ }
32
+ }