@aws-sdk/client-wafv2 3.926.0 → 3.928.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 (82) hide show
  1. package/dist-cjs/index.js +2289 -2259
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/WAFV2Client.js +2 -0
  4. package/dist-es/commands/AssociateWebACLCommand.js +3 -9
  5. package/dist-es/commands/CheckCapacityCommand.js +3 -9
  6. package/dist-es/commands/CreateAPIKeyCommand.js +3 -9
  7. package/dist-es/commands/CreateIPSetCommand.js +3 -9
  8. package/dist-es/commands/CreateRegexPatternSetCommand.js +3 -9
  9. package/dist-es/commands/CreateRuleGroupCommand.js +3 -9
  10. package/dist-es/commands/CreateWebACLCommand.js +3 -9
  11. package/dist-es/commands/DeleteAPIKeyCommand.js +3 -9
  12. package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js +3 -9
  13. package/dist-es/commands/DeleteIPSetCommand.js +3 -9
  14. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
  15. package/dist-es/commands/DeletePermissionPolicyCommand.js +3 -9
  16. package/dist-es/commands/DeleteRegexPatternSetCommand.js +3 -9
  17. package/dist-es/commands/DeleteRuleGroupCommand.js +3 -9
  18. package/dist-es/commands/DeleteWebACLCommand.js +3 -9
  19. package/dist-es/commands/DescribeAllManagedProductsCommand.js +3 -9
  20. package/dist-es/commands/DescribeManagedProductsByVendorCommand.js +3 -9
  21. package/dist-es/commands/DescribeManagedRuleGroupCommand.js +3 -9
  22. package/dist-es/commands/DisassociateWebACLCommand.js +3 -9
  23. package/dist-es/commands/GenerateMobileSdkReleaseUrlCommand.js +3 -9
  24. package/dist-es/commands/GetDecryptedAPIKeyCommand.js +3 -9
  25. package/dist-es/commands/GetIPSetCommand.js +3 -9
  26. package/dist-es/commands/GetLoggingConfigurationCommand.js +3 -9
  27. package/dist-es/commands/GetManagedRuleSetCommand.js +3 -9
  28. package/dist-es/commands/GetMobileSdkReleaseCommand.js +3 -9
  29. package/dist-es/commands/GetPermissionPolicyCommand.js +3 -9
  30. package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js +3 -9
  31. package/dist-es/commands/GetRegexPatternSetCommand.js +3 -9
  32. package/dist-es/commands/GetRuleGroupCommand.js +3 -9
  33. package/dist-es/commands/GetSampledRequestsCommand.js +3 -9
  34. package/dist-es/commands/GetWebACLCommand.js +3 -9
  35. package/dist-es/commands/GetWebACLForResourceCommand.js +3 -9
  36. package/dist-es/commands/ListAPIKeysCommand.js +3 -9
  37. package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js +3 -9
  38. package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js +3 -9
  39. package/dist-es/commands/ListIPSetsCommand.js +3 -9
  40. package/dist-es/commands/ListLoggingConfigurationsCommand.js +3 -9
  41. package/dist-es/commands/ListManagedRuleSetsCommand.js +3 -9
  42. package/dist-es/commands/ListMobileSdkReleasesCommand.js +3 -9
  43. package/dist-es/commands/ListRegexPatternSetsCommand.js +3 -9
  44. package/dist-es/commands/ListResourcesForWebACLCommand.js +3 -9
  45. package/dist-es/commands/ListRuleGroupsCommand.js +3 -9
  46. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  47. package/dist-es/commands/ListWebACLsCommand.js +3 -9
  48. package/dist-es/commands/PutLoggingConfigurationCommand.js +3 -9
  49. package/dist-es/commands/PutManagedRuleSetVersionsCommand.js +3 -9
  50. package/dist-es/commands/PutPermissionPolicyCommand.js +3 -9
  51. package/dist-es/commands/TagResourceCommand.js +3 -9
  52. package/dist-es/commands/UntagResourceCommand.js +3 -9
  53. package/dist-es/commands/UpdateIPSetCommand.js +3 -9
  54. package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +3 -9
  55. package/dist-es/commands/UpdateRegexPatternSetCommand.js +3 -9
  56. package/dist-es/commands/UpdateRuleGroupCommand.js +3 -9
  57. package/dist-es/commands/UpdateWebACLCommand.js +3 -9
  58. package/dist-es/models/models_0.js +1 -0
  59. package/dist-es/runtimeConfig.shared.js +7 -0
  60. package/dist-es/schemas/schemas_0.js +2143 -0
  61. package/dist-types/WAFV2Client.d.ts +10 -1
  62. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +1 -1
  63. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +2 -2
  64. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +2 -2
  65. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +2 -2
  66. package/dist-types/models/models_0.d.ts +13 -0
  67. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  68. package/dist-types/runtimeConfig.d.ts +1 -0
  69. package/dist-types/runtimeConfig.native.d.ts +1 -0
  70. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  71. package/dist-types/schemas/schemas_0.d.ts +381 -0
  72. package/dist-types/ts3.4/WAFV2Client.d.ts +4 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  74. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  75. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  76. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  77. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  78. package/dist-types/ts3.4/schemas/schemas_0.d.ts +387 -0
  79. package/package.json +5 -5
  80. package/dist-es/protocols/Aws_json1_1.js +0 -1828
  81. package/dist-types/protocols/Aws_json1_1.d.ts +0 -488
  82. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -653
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutManagedRuleSetVersionsCommand, se_PutManagedRuleSetVersionsCommand } from "../protocols/Aws_json1_1";
4
+ import { PutManagedRuleSetVersions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutManagedRuleSetVersionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "PutManagedRuleSetVersions", {})
17
13
  .n("WAFV2Client", "PutManagedRuleSetVersionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutManagedRuleSetVersionsCommand)
20
- .de(de_PutManagedRuleSetVersionsCommand)
14
+ .sc(PutManagedRuleSetVersions)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutPermissionPolicyCommand, se_PutPermissionPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { PutPermissionPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutPermissionPolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "PutPermissionPolicy", {})
17
13
  .n("WAFV2Client", "PutPermissionPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutPermissionPolicyCommand)
20
- .de(de_PutPermissionPolicyCommand)
14
+ .sc(PutPermissionPolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "TagResource", {})
17
13
  .n("WAFV2Client", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "UntagResource", {})
17
13
  .n("WAFV2Client", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateIPSetCommand, se_UpdateIPSetCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateIPSet } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateIPSetCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "UpdateIPSet", {})
17
13
  .n("WAFV2Client", "UpdateIPSetCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateIPSetCommand)
20
- .de(de_UpdateIPSetCommand)
14
+ .sc(UpdateIPSet)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateManagedRuleSetVersionExpiryDateCommand, se_UpdateManagedRuleSetVersionExpiryDateCommand, } from "../protocols/Aws_json1_1";
4
+ import { UpdateManagedRuleSetVersionExpiryDate } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateManagedRuleSetVersionExpiryDateCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "UpdateManagedRuleSetVersionExpiryDate", {})
17
13
  .n("WAFV2Client", "UpdateManagedRuleSetVersionExpiryDateCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateManagedRuleSetVersionExpiryDateCommand)
20
- .de(de_UpdateManagedRuleSetVersionExpiryDateCommand)
14
+ .sc(UpdateManagedRuleSetVersionExpiryDate)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRegexPatternSetCommand, se_UpdateRegexPatternSetCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateRegexPatternSet } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRegexPatternSetCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "UpdateRegexPatternSet", {})
17
13
  .n("WAFV2Client", "UpdateRegexPatternSetCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRegexPatternSetCommand)
20
- .de(de_UpdateRegexPatternSetCommand)
14
+ .sc(UpdateRegexPatternSet)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRuleGroupCommand, se_UpdateRuleGroupCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateRuleGroup } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRuleGroupCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "UpdateRuleGroup", {})
17
13
  .n("WAFV2Client", "UpdateRuleGroupCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRuleGroupCommand)
20
- .de(de_UpdateRuleGroupCommand)
14
+ .sc(UpdateRuleGroup)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateWebACLCommand, se_UpdateWebACLCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateWebACL } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateWebACLCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSWAF_20190729", "UpdateWebACL", {})
17
13
  .n("WAFV2Client", "UpdateWebACLCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateWebACLCommand)
20
- .de(de_UpdateWebACLCommand)
14
+ .sc(UpdateWebACL)
21
15
  .build() {
22
16
  }
@@ -689,6 +689,7 @@ export class WAFAssociatedItemException extends __BaseException {
689
689
  }
690
690
  }
691
691
  export const LogScope = {
692
+ CLOUDWATCH_TELEMETRY_RULE_MANAGED: "CLOUDWATCH_TELEMETRY_RULE_MANAGED",
692
693
  CUSTOMER: "CUSTOMER",
693
694
  SECURITY_LAKE: "SECURITY_LAKE",
694
695
  };
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.wafv2",
29
+ serviceTarget: "AWSWAF_20190729",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "WAFV2",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,