@aws-sdk/client-waf 3.523.0 → 3.529.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 (91) hide show
  1. package/dist-cjs/index.js +80 -120
  2. package/dist-es/protocols/Aws_json1_1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/WAF.js +0 -1
  5. package/dist-cjs/WAFClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/CreateByteMatchSetCommand.js +0 -1
  8. package/dist-cjs/commands/CreateGeoMatchSetCommand.js +0 -1
  9. package/dist-cjs/commands/CreateIPSetCommand.js +0 -1
  10. package/dist-cjs/commands/CreateRateBasedRuleCommand.js +0 -1
  11. package/dist-cjs/commands/CreateRegexMatchSetCommand.js +0 -1
  12. package/dist-cjs/commands/CreateRegexPatternSetCommand.js +0 -1
  13. package/dist-cjs/commands/CreateRuleCommand.js +0 -1
  14. package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -1
  15. package/dist-cjs/commands/CreateSizeConstraintSetCommand.js +0 -1
  16. package/dist-cjs/commands/CreateSqlInjectionMatchSetCommand.js +0 -1
  17. package/dist-cjs/commands/CreateWebACLCommand.js +0 -1
  18. package/dist-cjs/commands/CreateWebACLMigrationStackCommand.js +0 -1
  19. package/dist-cjs/commands/CreateXssMatchSetCommand.js +0 -1
  20. package/dist-cjs/commands/DeleteByteMatchSetCommand.js +0 -1
  21. package/dist-cjs/commands/DeleteGeoMatchSetCommand.js +0 -1
  22. package/dist-cjs/commands/DeleteIPSetCommand.js +0 -1
  23. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +0 -1
  24. package/dist-cjs/commands/DeletePermissionPolicyCommand.js +0 -1
  25. package/dist-cjs/commands/DeleteRateBasedRuleCommand.js +0 -1
  26. package/dist-cjs/commands/DeleteRegexMatchSetCommand.js +0 -1
  27. package/dist-cjs/commands/DeleteRegexPatternSetCommand.js +0 -1
  28. package/dist-cjs/commands/DeleteRuleCommand.js +0 -1
  29. package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -1
  30. package/dist-cjs/commands/DeleteSizeConstraintSetCommand.js +0 -1
  31. package/dist-cjs/commands/DeleteSqlInjectionMatchSetCommand.js +0 -1
  32. package/dist-cjs/commands/DeleteWebACLCommand.js +0 -1
  33. package/dist-cjs/commands/DeleteXssMatchSetCommand.js +0 -1
  34. package/dist-cjs/commands/GetByteMatchSetCommand.js +0 -1
  35. package/dist-cjs/commands/GetChangeTokenCommand.js +0 -1
  36. package/dist-cjs/commands/GetChangeTokenStatusCommand.js +0 -1
  37. package/dist-cjs/commands/GetGeoMatchSetCommand.js +0 -1
  38. package/dist-cjs/commands/GetIPSetCommand.js +0 -1
  39. package/dist-cjs/commands/GetLoggingConfigurationCommand.js +0 -1
  40. package/dist-cjs/commands/GetPermissionPolicyCommand.js +0 -1
  41. package/dist-cjs/commands/GetRateBasedRuleCommand.js +0 -1
  42. package/dist-cjs/commands/GetRateBasedRuleManagedKeysCommand.js +0 -1
  43. package/dist-cjs/commands/GetRegexMatchSetCommand.js +0 -1
  44. package/dist-cjs/commands/GetRegexPatternSetCommand.js +0 -1
  45. package/dist-cjs/commands/GetRuleCommand.js +0 -1
  46. package/dist-cjs/commands/GetRuleGroupCommand.js +0 -1
  47. package/dist-cjs/commands/GetSampledRequestsCommand.js +0 -1
  48. package/dist-cjs/commands/GetSizeConstraintSetCommand.js +0 -1
  49. package/dist-cjs/commands/GetSqlInjectionMatchSetCommand.js +0 -1
  50. package/dist-cjs/commands/GetWebACLCommand.js +0 -1
  51. package/dist-cjs/commands/GetXssMatchSetCommand.js +0 -1
  52. package/dist-cjs/commands/ListActivatedRulesInRuleGroupCommand.js +0 -1
  53. package/dist-cjs/commands/ListByteMatchSetsCommand.js +0 -1
  54. package/dist-cjs/commands/ListGeoMatchSetsCommand.js +0 -1
  55. package/dist-cjs/commands/ListIPSetsCommand.js +0 -1
  56. package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +0 -1
  57. package/dist-cjs/commands/ListRateBasedRulesCommand.js +0 -1
  58. package/dist-cjs/commands/ListRegexMatchSetsCommand.js +0 -1
  59. package/dist-cjs/commands/ListRegexPatternSetsCommand.js +0 -1
  60. package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -1
  61. package/dist-cjs/commands/ListRulesCommand.js +0 -1
  62. package/dist-cjs/commands/ListSizeConstraintSetsCommand.js +0 -1
  63. package/dist-cjs/commands/ListSqlInjectionMatchSetsCommand.js +0 -1
  64. package/dist-cjs/commands/ListSubscribedRuleGroupsCommand.js +0 -1
  65. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  66. package/dist-cjs/commands/ListWebACLsCommand.js +0 -1
  67. package/dist-cjs/commands/ListXssMatchSetsCommand.js +0 -1
  68. package/dist-cjs/commands/PutLoggingConfigurationCommand.js +0 -1
  69. package/dist-cjs/commands/PutPermissionPolicyCommand.js +0 -1
  70. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  71. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  72. package/dist-cjs/commands/UpdateByteMatchSetCommand.js +0 -1
  73. package/dist-cjs/commands/UpdateGeoMatchSetCommand.js +0 -1
  74. package/dist-cjs/commands/UpdateIPSetCommand.js +0 -1
  75. package/dist-cjs/commands/UpdateRateBasedRuleCommand.js +0 -1
  76. package/dist-cjs/commands/UpdateRegexMatchSetCommand.js +0 -1
  77. package/dist-cjs/commands/UpdateRegexPatternSetCommand.js +0 -1
  78. package/dist-cjs/commands/UpdateRuleCommand.js +0 -1
  79. package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -1
  80. package/dist-cjs/commands/UpdateSizeConstraintSetCommand.js +0 -1
  81. package/dist-cjs/commands/UpdateSqlInjectionMatchSetCommand.js +0 -1
  82. package/dist-cjs/commands/UpdateWebACLCommand.js +0 -1
  83. package/dist-cjs/commands/UpdateXssMatchSetCommand.js +0 -1
  84. package/dist-cjs/commands/index.js +0 -1
  85. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  86. package/dist-cjs/extensionConfiguration.js +0 -1
  87. package/dist-cjs/models/WAFServiceException.js +0 -1
  88. package/dist-cjs/models/index.js +0 -1
  89. package/dist-cjs/models/models_0.js +0 -1
  90. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  91. package/dist-cjs/runtimeExtensions.js +0 -1
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { WAFBadRequestException, WAFDisallowedNameException, WAFEntityMigrationException, WAFInternalErrorException, WAFInvalidAccountException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidRegexPatternException, WAFLimitsExceededException, WAFNonEmptyEntityException, WAFNonexistentContainerException, WAFNonexistentItemException, WAFReferencedItemException, WAFServiceLinkedRoleErrorException, WAFStaleDataException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, } from "../models/models_0";
@@ -1847,43 +1848,3 @@ function sharedHeaders(operation) {
1847
1848
  "x-amz-target": `AWSWAF_20150824.${operation}`,
1848
1849
  };
1849
1850
  }
1850
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1851
- if (encoded.length) {
1852
- return JSON.parse(encoded);
1853
- }
1854
- return {};
1855
- });
1856
- const parseErrorBody = async (errorBody, context) => {
1857
- const value = await parseBody(errorBody, context);
1858
- value.message = value.message ?? value.Message;
1859
- return value;
1860
- };
1861
- const loadRestJsonErrorCode = (output, data) => {
1862
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1863
- const sanitizeErrorCode = (rawValue) => {
1864
- let cleanValue = rawValue;
1865
- if (typeof cleanValue === "number") {
1866
- cleanValue = cleanValue.toString();
1867
- }
1868
- if (cleanValue.indexOf(",") >= 0) {
1869
- cleanValue = cleanValue.split(",")[0];
1870
- }
1871
- if (cleanValue.indexOf(":") >= 0) {
1872
- cleanValue = cleanValue.split(":")[0];
1873
- }
1874
- if (cleanValue.indexOf("#") >= 0) {
1875
- cleanValue = cleanValue.split("#")[1];
1876
- }
1877
- return cleanValue;
1878
- };
1879
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1880
- if (headerKey !== undefined) {
1881
- return sanitizeErrorCode(output.headers[headerKey]);
1882
- }
1883
- if (data.code !== undefined) {
1884
- return sanitizeErrorCode(data.code);
1885
- }
1886
- if (data["__type"] !== undefined) {
1887
- return sanitizeErrorCode(data["__type"]);
1888
- }
1889
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-waf",
3
3
  "description": "AWS SDK for JavaScript Waf Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-waf",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
package/dist-cjs/WAF.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");