@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 { PutManagedRuleSetVersionsRequestFilterSensitiveLog, PutManagedRuleSetVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutManagedRuleSetVersionsCommand, serializeAws_json1_1PutManagedRuleSetVersionsCommand, } from "../protocols/Aws_json1_1";
6
- var PutManagedRuleSetVersionsCommand = (function (_super) {
7
- __extends(PutManagedRuleSetVersionsCommand, _super);
8
- function PutManagedRuleSetVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutManagedRuleSetVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutManagedRuleSetVersionsCommand.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 = "PutManagedRuleSetVersionsCommand";
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 = "PutManagedRuleSetVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutManagedRuleSetVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutManagedRuleSetVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutManagedRuleSetVersionsCommand.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_1PutManagedRuleSetVersionsCommand(input, context);
33
- };
34
- PutManagedRuleSetVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutManagedRuleSetVersionsCommand(output, context);
36
- };
37
- return PutManagedRuleSetVersionsCommand;
38
- }($Command));
39
- export { PutManagedRuleSetVersionsCommand };
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 { PutPermissionPolicyRequestFilterSensitiveLog, PutPermissionPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutPermissionPolicyCommand, serializeAws_json1_1PutPermissionPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var PutPermissionPolicyCommand = (function (_super) {
7
- __extends(PutPermissionPolicyCommand, _super);
8
- function PutPermissionPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutPermissionPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutPermissionPolicyCommand.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 = "PutPermissionPolicyCommand";
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 = "PutPermissionPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutPermissionPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutPermissionPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutPermissionPolicyCommand.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_1PutPermissionPolicyCommand(input, context);
33
- };
34
- PutPermissionPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutPermissionPolicyCommand(output, context);
36
- };
37
- return PutPermissionPolicyCommand;
38
- }($Command));
39
- export { PutPermissionPolicyCommand };
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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.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_1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
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 { UpdateIPSetRequestFilterSensitiveLog, UpdateIPSetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateIPSetCommand, serializeAws_json1_1UpdateIPSetCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateIPSetCommand = (function (_super) {
7
- __extends(UpdateIPSetCommand, _super);
8
- function UpdateIPSetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateIPSetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateIPSetCommand.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 = "UpdateIPSetCommand";
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 = "UpdateIPSetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateIPSetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateIPSetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateIPSetCommand.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_1UpdateIPSetCommand(input, context);
33
- };
34
- UpdateIPSetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateIPSetCommand(output, context);
36
- };
37
- return UpdateIPSetCommand;
38
- }($Command));
39
- export { UpdateIPSetCommand };
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 { UpdateManagedRuleSetVersionExpiryDateRequestFilterSensitiveLog, UpdateManagedRuleSetVersionExpiryDateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand, serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateManagedRuleSetVersionExpiryDateCommand = (function (_super) {
7
- __extends(UpdateManagedRuleSetVersionExpiryDateCommand, _super);
8
- function UpdateManagedRuleSetVersionExpiryDateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateManagedRuleSetVersionExpiryDateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateManagedRuleSetVersionExpiryDateCommand.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 = "UpdateManagedRuleSetVersionExpiryDateCommand";
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 = "UpdateManagedRuleSetVersionExpiryDateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateManagedRuleSetVersionExpiryDateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateManagedRuleSetVersionExpiryDateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateManagedRuleSetVersionExpiryDateCommand.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_1UpdateManagedRuleSetVersionExpiryDateCommand(input, context);
33
- };
34
- UpdateManagedRuleSetVersionExpiryDateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand(output, context);
36
- };
37
- return UpdateManagedRuleSetVersionExpiryDateCommand;
38
- }($Command));
39
- export { UpdateManagedRuleSetVersionExpiryDateCommand };
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 { UpdateRegexPatternSetRequestFilterSensitiveLog, UpdateRegexPatternSetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateRegexPatternSetCommand, serializeAws_json1_1UpdateRegexPatternSetCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateRegexPatternSetCommand = (function (_super) {
7
- __extends(UpdateRegexPatternSetCommand, _super);
8
- function UpdateRegexPatternSetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateRegexPatternSetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateRegexPatternSetCommand.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 = "UpdateRegexPatternSetCommand";
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 = "UpdateRegexPatternSetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateRegexPatternSetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateRegexPatternSetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateRegexPatternSetCommand.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_1UpdateRegexPatternSetCommand(input, context);
33
- };
34
- UpdateRegexPatternSetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateRegexPatternSetCommand(output, context);
36
- };
37
- return UpdateRegexPatternSetCommand;
38
- }($Command));
39
- export { UpdateRegexPatternSetCommand };
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 { UpdateRuleGroupRequestFilterSensitiveLog, UpdateRuleGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateRuleGroupCommand, serializeAws_json1_1UpdateRuleGroupCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateRuleGroupCommand = (function (_super) {
7
- __extends(UpdateRuleGroupCommand, _super);
8
- function UpdateRuleGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateRuleGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateRuleGroupCommand.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 = "UpdateRuleGroupCommand";
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 = "UpdateRuleGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateRuleGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateRuleGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateRuleGroupCommand.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_1UpdateRuleGroupCommand(input, context);
33
- };
34
- UpdateRuleGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateRuleGroupCommand(output, context);
36
- };
37
- return UpdateRuleGroupCommand;
38
- }($Command));
39
- export { UpdateRuleGroupCommand };
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 { UpdateWebACLRequestFilterSensitiveLog, UpdateWebACLResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateWebACLCommand, serializeAws_json1_1UpdateWebACLCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateWebACLCommand = (function (_super) {
7
- __extends(UpdateWebACLCommand, _super);
8
- function UpdateWebACLCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateWebACLCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateWebACLCommand.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 = "UpdateWebACLCommand";
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 = "UpdateWebACLCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateWebACLRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateWebACLResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateWebACLCommand.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_1UpdateWebACLCommand(input, context);
33
- };
34
- UpdateWebACLCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateWebACLCommand(output, context);
36
- };
37
- return UpdateWebACLCommand;
38
- }($Command));
39
- export { UpdateWebACLCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "af-south-1": {
5
4
  variants: [
6
5
  {
@@ -340,7 +339,7 @@ var regionHash = {
340
339
  signingRegion: "us-west-2",
341
340
  },
342
341
  };
343
- var partitionHash = {
342
+ const partitionHash = {
344
343
  aws: {
345
344
  regions: [
346
345
  "af-south-1",
@@ -482,8 +481,9 @@ var partitionHash = {
482
481
  ],
483
482
  },
484
483
  };
485
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
486
- return __generator(this, function (_a) {
487
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "wafv2", regionHash: regionHash, partitionHash: partitionHash }))];
488
- });
489
- }); };
484
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
485
+ ...options,
486
+ signingService: "wafv2",
487
+ regionHash,
488
+ partitionHash,
489
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var WAFV2ServiceException = (function (_super) {
4
- __extends(WAFV2ServiceException, _super);
5
- function WAFV2ServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, WAFV2ServiceException.prototype);
8
- return _this;
2
+ export class WAFV2ServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, WAFV2ServiceException.prototype);
9
6
  }
10
- return WAFV2ServiceException;
11
- }(__ServiceException));
12
- export { WAFV2ServiceException };
7
+ }