@aws-sdk/client-waf 3.33.0 → 3.34.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 (179) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/package.json +38 -38
  3. package/dist/es/WAF.js +1 -14
  4. package/dist/es/WAF.js.map +1 -1
  5. package/dist/es/WAFClient.js +1 -19
  6. package/dist/es/WAFClient.js.map +1 -1
  7. package/dist/es/commands/CreateByteMatchSetCommand.js +2 -58
  8. package/dist/es/commands/CreateByteMatchSetCommand.js.map +1 -1
  9. package/dist/es/commands/CreateGeoMatchSetCommand.js +2 -55
  10. package/dist/es/commands/CreateGeoMatchSetCommand.js.map +1 -1
  11. package/dist/es/commands/CreateIPSetCommand.js +2 -60
  12. package/dist/es/commands/CreateIPSetCommand.js.map +1 -1
  13. package/dist/es/commands/CreateRateBasedRuleCommand.js +2 -120
  14. package/dist/es/commands/CreateRateBasedRuleCommand.js.map +1 -1
  15. package/dist/es/commands/CreateRegexMatchSetCommand.js +2 -58
  16. package/dist/es/commands/CreateRegexMatchSetCommand.js.map +1 -1
  17. package/dist/es/commands/CreateRegexPatternSetCommand.js +2 -54
  18. package/dist/es/commands/CreateRegexPatternSetCommand.js.map +1 -1
  19. package/dist/es/commands/CreateRuleCommand.js +2 -78
  20. package/dist/es/commands/CreateRuleCommand.js.map +1 -1
  21. package/dist/es/commands/CreateRuleGroupCommand.js +2 -49
  22. package/dist/es/commands/CreateRuleGroupCommand.js.map +1 -1
  23. package/dist/es/commands/CreateSizeConstraintSetCommand.js +2 -58
  24. package/dist/es/commands/CreateSizeConstraintSetCommand.js.map +1 -1
  25. package/dist/es/commands/CreateSqlInjectionMatchSetCommand.js +2 -56
  26. package/dist/es/commands/CreateSqlInjectionMatchSetCommand.js.map +1 -1
  27. package/dist/es/commands/CreateWebACLCommand.js +2 -66
  28. package/dist/es/commands/CreateWebACLCommand.js.map +1 -1
  29. package/dist/es/commands/CreateWebACLMigrationStackCommand.js +2 -34
  30. package/dist/es/commands/CreateWebACLMigrationStackCommand.js.map +1 -1
  31. package/dist/es/commands/CreateXssMatchSetCommand.js +2 -56
  32. package/dist/es/commands/CreateXssMatchSetCommand.js.map +1 -1
  33. package/dist/es/commands/DeleteByteMatchSetCommand.js +2 -50
  34. package/dist/es/commands/DeleteByteMatchSetCommand.js.map +1 -1
  35. package/dist/es/commands/DeleteGeoMatchSetCommand.js +2 -50
  36. package/dist/es/commands/DeleteGeoMatchSetCommand.js.map +1 -1
  37. package/dist/es/commands/DeleteIPSetCommand.js +2 -50
  38. package/dist/es/commands/DeleteIPSetCommand.js.map +1 -1
  39. package/dist/es/commands/DeleteLoggingConfigurationCommand.js +2 -36
  40. package/dist/es/commands/DeleteLoggingConfigurationCommand.js.map +1 -1
  41. package/dist/es/commands/DeletePermissionPolicyCommand.js +2 -36
  42. package/dist/es/commands/DeletePermissionPolicyCommand.js.map +1 -1
  43. package/dist/es/commands/DeleteRateBasedRuleCommand.js +2 -54
  44. package/dist/es/commands/DeleteRateBasedRuleCommand.js.map +1 -1
  45. package/dist/es/commands/DeleteRegexMatchSetCommand.js +2 -50
  46. package/dist/es/commands/DeleteRegexMatchSetCommand.js.map +1 -1
  47. package/dist/es/commands/DeleteRegexPatternSetCommand.js +2 -36
  48. package/dist/es/commands/DeleteRegexPatternSetCommand.js.map +1 -1
  49. package/dist/es/commands/DeleteRuleCommand.js +2 -50
  50. package/dist/es/commands/DeleteRuleCommand.js.map +1 -1
  51. package/dist/es/commands/DeleteRuleGroupCommand.js +2 -50
  52. package/dist/es/commands/DeleteRuleGroupCommand.js.map +1 -1
  53. package/dist/es/commands/DeleteSizeConstraintSetCommand.js +2 -50
  54. package/dist/es/commands/DeleteSizeConstraintSetCommand.js.map +1 -1
  55. package/dist/es/commands/DeleteSqlInjectionMatchSetCommand.js +2 -51
  56. package/dist/es/commands/DeleteSqlInjectionMatchSetCommand.js.map +1 -1
  57. package/dist/es/commands/DeleteWebACLCommand.js +2 -48
  58. package/dist/es/commands/DeleteWebACLCommand.js.map +1 -1
  59. package/dist/es/commands/DeleteXssMatchSetCommand.js +2 -51
  60. package/dist/es/commands/DeleteXssMatchSetCommand.js.map +1 -1
  61. package/dist/es/commands/GetByteMatchSetCommand.js +2 -35
  62. package/dist/es/commands/GetByteMatchSetCommand.js.map +1 -1
  63. package/dist/es/commands/GetChangeTokenCommand.js +2 -41
  64. package/dist/es/commands/GetChangeTokenCommand.js.map +1 -1
  65. package/dist/es/commands/GetChangeTokenStatusCommand.js +2 -51
  66. package/dist/es/commands/GetChangeTokenStatusCommand.js.map +1 -1
  67. package/dist/es/commands/GetGeoMatchSetCommand.js +2 -35
  68. package/dist/es/commands/GetGeoMatchSetCommand.js.map +1 -1
  69. package/dist/es/commands/GetIPSetCommand.js +2 -35
  70. package/dist/es/commands/GetIPSetCommand.js.map +1 -1
  71. package/dist/es/commands/GetLoggingConfigurationCommand.js +2 -35
  72. package/dist/es/commands/GetLoggingConfigurationCommand.js.map +1 -1
  73. package/dist/es/commands/GetPermissionPolicyCommand.js +2 -35
  74. package/dist/es/commands/GetPermissionPolicyCommand.js.map +1 -1
  75. package/dist/es/commands/GetRateBasedRuleCommand.js +2 -37
  76. package/dist/es/commands/GetRateBasedRuleCommand.js.map +1 -1
  77. package/dist/es/commands/GetRateBasedRuleManagedKeysCommand.js +2 -37
  78. package/dist/es/commands/GetRateBasedRuleManagedKeysCommand.js.map +1 -1
  79. package/dist/es/commands/GetRegexMatchSetCommand.js +2 -35
  80. package/dist/es/commands/GetRegexMatchSetCommand.js.map +1 -1
  81. package/dist/es/commands/GetRegexPatternSetCommand.js +2 -35
  82. package/dist/es/commands/GetRegexPatternSetCommand.js.map +1 -1
  83. package/dist/es/commands/GetRuleCommand.js +2 -35
  84. package/dist/es/commands/GetRuleCommand.js.map +1 -1
  85. package/dist/es/commands/GetRuleGroupCommand.js +2 -36
  86. package/dist/es/commands/GetRuleGroupCommand.js.map +1 -1
  87. package/dist/es/commands/GetSampledRequestsCommand.js +2 -39
  88. package/dist/es/commands/GetSampledRequestsCommand.js.map +1 -1
  89. package/dist/es/commands/GetSizeConstraintSetCommand.js +2 -35
  90. package/dist/es/commands/GetSizeConstraintSetCommand.js.map +1 -1
  91. package/dist/es/commands/GetSqlInjectionMatchSetCommand.js +2 -35
  92. package/dist/es/commands/GetSqlInjectionMatchSetCommand.js.map +1 -1
  93. package/dist/es/commands/GetWebACLCommand.js +2 -35
  94. package/dist/es/commands/GetWebACLCommand.js.map +1 -1
  95. package/dist/es/commands/GetXssMatchSetCommand.js +2 -35
  96. package/dist/es/commands/GetXssMatchSetCommand.js.map +1 -1
  97. package/dist/es/commands/ListActivatedRulesInRuleGroupCommand.js +2 -35
  98. package/dist/es/commands/ListActivatedRulesInRuleGroupCommand.js.map +1 -1
  99. package/dist/es/commands/ListByteMatchSetsCommand.js +2 -35
  100. package/dist/es/commands/ListByteMatchSetsCommand.js.map +1 -1
  101. package/dist/es/commands/ListGeoMatchSetsCommand.js +2 -35
  102. package/dist/es/commands/ListGeoMatchSetsCommand.js.map +1 -1
  103. package/dist/es/commands/ListIPSetsCommand.js +2 -35
  104. package/dist/es/commands/ListIPSetsCommand.js.map +1 -1
  105. package/dist/es/commands/ListLoggingConfigurationsCommand.js +2 -35
  106. package/dist/es/commands/ListLoggingConfigurationsCommand.js.map +1 -1
  107. package/dist/es/commands/ListRateBasedRulesCommand.js +2 -35
  108. package/dist/es/commands/ListRateBasedRulesCommand.js.map +1 -1
  109. package/dist/es/commands/ListRegexMatchSetsCommand.js +2 -35
  110. package/dist/es/commands/ListRegexMatchSetsCommand.js.map +1 -1
  111. package/dist/es/commands/ListRegexPatternSetsCommand.js +2 -35
  112. package/dist/es/commands/ListRegexPatternSetsCommand.js.map +1 -1
  113. package/dist/es/commands/ListRuleGroupsCommand.js +2 -35
  114. package/dist/es/commands/ListRuleGroupsCommand.js.map +1 -1
  115. package/dist/es/commands/ListRulesCommand.js +2 -35
  116. package/dist/es/commands/ListRulesCommand.js.map +1 -1
  117. package/dist/es/commands/ListSizeConstraintSetsCommand.js +2 -35
  118. package/dist/es/commands/ListSizeConstraintSetsCommand.js.map +1 -1
  119. package/dist/es/commands/ListSqlInjectionMatchSetsCommand.js +2 -35
  120. package/dist/es/commands/ListSqlInjectionMatchSetsCommand.js.map +1 -1
  121. package/dist/es/commands/ListSubscribedRuleGroupsCommand.js +2 -35
  122. package/dist/es/commands/ListSubscribedRuleGroupsCommand.js.map +1 -1
  123. package/dist/es/commands/ListTagsForResourceCommand.js +2 -36
  124. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  125. package/dist/es/commands/ListWebACLsCommand.js +2 -35
  126. package/dist/es/commands/ListWebACLsCommand.js.map +1 -1
  127. package/dist/es/commands/ListXssMatchSetsCommand.js +2 -35
  128. package/dist/es/commands/ListXssMatchSetsCommand.js.map +1 -1
  129. package/dist/es/commands/PutLoggingConfigurationCommand.js +2 -52
  130. package/dist/es/commands/PutLoggingConfigurationCommand.js.map +1 -1
  131. package/dist/es/commands/PutPermissionPolicyCommand.js +2 -67
  132. package/dist/es/commands/PutPermissionPolicyCommand.js.map +1 -1
  133. package/dist/es/commands/TagResourceCommand.js +2 -36
  134. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  135. package/dist/es/commands/UntagResourceCommand.js +2 -35
  136. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  137. package/dist/es/commands/UpdateByteMatchSetCommand.js +2 -73
  138. package/dist/es/commands/UpdateByteMatchSetCommand.js.map +1 -1
  139. package/dist/es/commands/UpdateGeoMatchSetCommand.js +2 -65
  140. package/dist/es/commands/UpdateGeoMatchSetCommand.js.map +1 -1
  141. package/dist/es/commands/UpdateIPSetCommand.js +2 -100
  142. package/dist/es/commands/UpdateIPSetCommand.js.map +1 -1
  143. package/dist/es/commands/UpdateRateBasedRuleCommand.js +2 -81
  144. package/dist/es/commands/UpdateRateBasedRuleCommand.js.map +1 -1
  145. package/dist/es/commands/UpdateRegexMatchSetCommand.js +2 -69
  146. package/dist/es/commands/UpdateRegexMatchSetCommand.js.map +1 -1
  147. package/dist/es/commands/UpdateRegexPatternSetCommand.js +2 -74
  148. package/dist/es/commands/UpdateRegexPatternSetCommand.js.map +1 -1
  149. package/dist/es/commands/UpdateRuleCommand.js +2 -76
  150. package/dist/es/commands/UpdateRuleCommand.js.map +1 -1
  151. package/dist/es/commands/UpdateRuleGroupCommand.js +2 -59
  152. package/dist/es/commands/UpdateRuleGroupCommand.js.map +1 -1
  153. package/dist/es/commands/UpdateSizeConstraintSetCommand.js +2 -77
  154. package/dist/es/commands/UpdateSizeConstraintSetCommand.js.map +1 -1
  155. package/dist/es/commands/UpdateSqlInjectionMatchSetCommand.js +2 -76
  156. package/dist/es/commands/UpdateSqlInjectionMatchSetCommand.js.map +1 -1
  157. package/dist/es/commands/UpdateWebACLCommand.js +2 -106
  158. package/dist/es/commands/UpdateWebACLCommand.js.map +1 -1
  159. package/dist/es/commands/UpdateXssMatchSetCommand.js +2 -78
  160. package/dist/es/commands/UpdateXssMatchSetCommand.js.map +1 -1
  161. package/dist/es/endpoints.js +1 -1
  162. package/dist/es/endpoints.js.map +1 -1
  163. package/dist/es/models/models_0.js +0 -684
  164. package/dist/es/models/models_0.js.map +1 -1
  165. package/dist/es/package.json +38 -38
  166. package/dist/es/protocols/Aws_json1_1.js +2118 -2123
  167. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  168. package/dist/es/runtimeConfig.browser.js +0 -3
  169. package/dist/es/runtimeConfig.browser.js.map +1 -1
  170. package/dist/es/runtimeConfig.js +0 -3
  171. package/dist/es/runtimeConfig.js.map +1 -1
  172. package/dist/es/runtimeConfig.native.js +0 -3
  173. package/dist/es/runtimeConfig.native.js.map +1 -1
  174. package/dist/es/runtimeConfig.shared.js +0 -3
  175. package/dist/es/runtimeConfig.shared.js.map +1 -1
  176. package/package.json +38 -38
  177. package/tsconfig.es.json +0 -2
  178. package/tsconfig.json +4 -5
  179. package/tsconfig.types.json +8 -0
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateRegexMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateRegexMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH;IAAgD,8CAI/C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,oCAAqB,KAAsC;QAA3D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAiC;;QAGzD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,sDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,4BAA4B,CAAC;QACjD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,2BAA2B,CAAC,kBAAkB;SACzE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,e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/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,4BAA4B,CAAC;QACjD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,2BAA2B,CAAC,kBAAkB;SACzE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,8CAAS,GAAjB,UAAkB,KAAsC,EAAE,OAAuB;QAC/E,OAAO,8CAA8C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAEO,gDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,gDAAgD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAIH,iCAAC;AAAD,CAAC,AAtDD,CAAgD,QAAQ,GAsDvD"}
@@ -3,85 +3,13 @@ import { UpdateRegexPatternSetRequest, UpdateRegexPatternSetResponse } from "../
3
3
  import { deserializeAws_json1_1UpdateRegexPatternSetCommand, serializeAws_json1_1UpdateRegexPatternSetCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <note>
8
- * <p>This is <b>AWS WAF Classic</b> documentation. For
9
- * more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
10
- * WAF Classic</a> in the developer guide.</p>
11
- * <p>
12
- * <b>For the latest version of AWS
13
- * WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
14
- * </note>
15
- * <p>Inserts or deletes <code>RegexPatternString</code> objects in a <a>RegexPatternSet</a>. For each <code>RegexPatternString</code> object,
16
- * you specify the following values: </p>
17
- * <ul>
18
- * <li>
19
- * <p>Whether to insert or delete the <code>RegexPatternString</code>.</p>
20
- * </li>
21
- * <li>
22
- * <p>The regular expression pattern that you want to insert or delete. For more information, see <a>RegexPatternSet</a>. </p>
23
- * </li>
24
- * </ul>
25
- * <p> For example, you can create a <code>RegexPatternString</code> such as <code>B[a@]dB[o0]t</code>. AWS WAF will match this <code>RegexPatternString</code> to:</p>
26
- * <ul>
27
- * <li>
28
- * <p>BadBot</p>
29
- * </li>
30
- * <li>
31
- * <p>BadB0t</p>
32
- * </li>
33
- * <li>
34
- * <p>B@dBot</p>
35
- * </li>
36
- * <li>
37
- * <p>B@dB0t</p>
38
- * </li>
39
- * </ul>
40
- * <p>To create and configure a <code>RegexPatternSet</code>, perform the following steps:</p>
41
- * <ol>
42
- * <li>
43
- * <p>Create a <code>RegexPatternSet.</code> For more information, see <a>CreateRegexPatternSet</a>.</p>
44
- * </li>
45
- * <li>
46
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
47
- * <code>UpdateRegexPatternSet</code> request.</p>
48
- * </li>
49
- * <li>
50
- * <p>Submit an <code>UpdateRegexPatternSet</code> request to specify the regular expression pattern that you want AWS WAF to watch for.</p>
51
- * </li>
52
- * </ol>
53
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
54
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
55
- * @example
56
- * Use a bare-bones client and the command you need to make an API call.
57
- * ```javascript
58
- * import { WAFClient, UpdateRegexPatternSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
59
- * // const { WAFClient, UpdateRegexPatternSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
60
- * const client = new WAFClient(config);
61
- * const command = new UpdateRegexPatternSetCommand(input);
62
- * const response = await client.send(command);
63
- * ```
64
- *
65
- * @see {@link UpdateRegexPatternSetCommandInput} for command's `input` shape.
66
- * @see {@link UpdateRegexPatternSetCommandOutput} for command's `response` shape.
67
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
68
- *
69
- */
70
- var UpdateRegexPatternSetCommand = /** @class */ (function (_super) {
6
+ var UpdateRegexPatternSetCommand = (function (_super) {
71
7
  __extends(UpdateRegexPatternSetCommand, _super);
72
- // Start section: command_properties
73
- // End section: command_properties
74
8
  function UpdateRegexPatternSetCommand(input) {
75
- var _this =
76
- // Start section: command_constructor
77
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
78
10
  _this.input = input;
79
11
  return _this;
80
- // End section: command_constructor
81
12
  }
82
- /**
83
- * @internal
84
- */
85
13
  UpdateRegexPatternSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
86
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
87
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateRegexPatternSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateRegexPatternSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,EACL,kDAAkD,EAClD,gDAAgD,GACjD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH;IAAkD,gDAIjD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AtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,gDAAS,GAAjB,UAAkB,KAAwC,EAAE,OAAuB;QACjF,OAAO,gDAAgD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAEO,kDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,kDAAkD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAIH,mCAAC;AAAD,CAAC,AAtDD,CAAkD,QAAQ,GAsDzD"}
@@ -3,87 +3,13 @@ import { UpdateRuleRequest, UpdateRuleResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1UpdateRuleCommand, serializeAws_json1_1UpdateRuleCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <note>
8
- * <p>This is <b>AWS WAF Classic</b> documentation. For
9
- * more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
10
- * WAF Classic</a> in the developer guide.</p>
11
- * <p>
12
- * <b>For the latest version of AWS
13
- * WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
14
- * </note>
15
- * <p>Inserts or deletes <a>Predicate</a> objects in a <code>Rule</code>. Each
16
- * <code>Predicate</code> object identifies a predicate, such as a <a>ByteMatchSet</a> or an <a>IPSet</a>, that specifies the web requests
17
- * that you want to allow, block, or count. If you add more than one predicate to a
18
- * <code>Rule</code>, a request must match all of the specifications to be allowed,
19
- * blocked, or counted. For example, suppose
20
- * that
21
- * you add the following to a <code>Rule</code>: </p>
22
- * <ul>
23
- * <li>
24
- * <p>A <code>ByteMatchSet</code> that matches the value <code>BadBot</code> in the <code>User-Agent</code> header</p>
25
- * </li>
26
- * <li>
27
- * <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44</code>
28
- * </p>
29
- * </li>
30
- * </ul>
31
- * <p>You then add the <code>Rule</code> to a <code>WebACL</code> and specify that you want to block requests that satisfy the <code>Rule</code>.
32
- * For a request to be blocked, the <code>User-Agent</code> header in the request must contain the value <code>BadBot</code>
33
- * <i>and</i> the request must originate from the IP address 192.0.2.44.</p>
34
- * <p>To create and configure a <code>Rule</code>, perform the following steps:</p>
35
- * <ol>
36
- * <li>
37
- * <p>Create and update the predicates that you want to include in the <code>Rule</code>.</p>
38
- * </li>
39
- * <li>
40
- * <p>Create the <code>Rule</code>. See <a>CreateRule</a>.</p>
41
- * </li>
42
- * <li>
43
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
44
- * <a>UpdateRule</a> request.</p>
45
- * </li>
46
- * <li>
47
- * <p>Submit an <code>UpdateRule</code> request to add predicates to the <code>Rule</code>.</p>
48
- * </li>
49
- * <li>
50
- * <p>Create and update a <code>WebACL</code> that contains the <code>Rule</code>. See <a>CreateWebACL</a>.</p>
51
- * </li>
52
- * </ol>
53
- * <p>If you want to replace one <code>ByteMatchSet</code> or <code>IPSet</code> with another, you delete the existing one and
54
- * add the new one.</p>
55
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
56
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { WAFClient, UpdateRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
61
- * // const { WAFClient, UpdateRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
62
- * const client = new WAFClient(config);
63
- * const command = new UpdateRuleCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link UpdateRuleCommandInput} for command's `input` shape.
68
- * @see {@link UpdateRuleCommandOutput} for command's `response` shape.
69
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
72
- var UpdateRuleCommand = /** @class */ (function (_super) {
6
+ var UpdateRuleCommand = (function (_super) {
73
7
  __extends(UpdateRuleCommand, _super);
74
- // Start section: command_properties
75
- // End section: command_properties
76
8
  function UpdateRuleCommand(input) {
77
- var _this =
78
- // Start section: command_constructor
79
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
80
10
  _this.input = input;
81
11
  return _this;
82
- // End section: command_constructor
83
12
  }
84
- /**
85
- * @internal
86
- */
87
13
  UpdateRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
88
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
89
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateRuleCommand.js","sourceRoot":"","sources":["../../../commands/UpdateRuleCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH;IAAuC,qCAItC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,2BAAqB,KAA6B;QAAlD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwB;;QAGhD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,6CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS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AAuC,QAAQ,GAsD9C"}
@@ -3,70 +3,13 @@ import { UpdateRuleGroupRequest, UpdateRuleGroupResponse } from "../models/model
3
3
  import { deserializeAws_json1_1UpdateRuleGroupCommand, serializeAws_json1_1UpdateRuleGroupCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <note>
8
- * <p>This is <b>AWS WAF Classic</b> documentation. For
9
- * more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
10
- * WAF Classic</a> in the developer guide.</p>
11
- * <p>
12
- * <b>For the latest version of AWS
13
- * WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
14
- * </note>
15
- * <p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>RuleGroup</code>.</p>
16
- * <p>You can only insert <code>REGULAR</code> rules into a rule group.</p>
17
- * <p>You can have a maximum of ten rules per rule group.</p>
18
- *
19
- *
20
- * <p>To create and configure a <code>RuleGroup</code>, perform the following steps:</p>
21
- * <ol>
22
- * <li>
23
- * <p>Create and update the <code>Rules</code> that you want to include in the <code>RuleGroup</code>. See <a>CreateRule</a>.</p>
24
- * </li>
25
- * <li>
26
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
27
- * <a>UpdateRuleGroup</a> request.</p>
28
- * </li>
29
- * <li>
30
- * <p>Submit an <code>UpdateRuleGroup</code> request to add <code>Rules</code> to the <code>RuleGroup</code>.</p>
31
- * </li>
32
- * <li>
33
- * <p>Create and update a <code>WebACL</code> that contains the <code>RuleGroup</code>. See <a>CreateWebACL</a>.</p>
34
- * </li>
35
- * </ol>
36
- * <p>If you want to replace one <code>Rule</code> with another, you delete the existing one and
37
- * add the new one.</p>
38
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
39
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { WAFClient, UpdateRuleGroupCommand } from "@aws-sdk/client-waf"; // ES Modules import
44
- * // const { WAFClient, UpdateRuleGroupCommand } = require("@aws-sdk/client-waf"); // CommonJS import
45
- * const client = new WAFClient(config);
46
- * const command = new UpdateRuleGroupCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link UpdateRuleGroupCommandInput} for command's `input` shape.
51
- * @see {@link UpdateRuleGroupCommandOutput} for command's `response` shape.
52
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- var UpdateRuleGroupCommand = /** @class */ (function (_super) {
6
+ var UpdateRuleGroupCommand = (function (_super) {
56
7
  __extends(UpdateRuleGroupCommand, _super);
57
- // Start section: command_properties
58
- // End section: command_properties
59
8
  function UpdateRuleGroupCommand(input) {
60
- var _this =
61
- // Start section: command_constructor
62
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
63
10
  _this.input = input;
64
11
  return _this;
65
- // End section: command_constructor
66
12
  }
67
- /**
68
- * @internal
69
- */
70
13
  UpdateRuleGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
71
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateRuleGroupCommand.js","sourceRoot":"","sources":["../../../commands/UpdateRuleGroupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC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,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,0CAAS,GAAjB,UAAkB,KAAkC,EAAE,OAAuB;QAC3E,OAAO,0CAA0C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEO,4CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAtDD,CAA4C,QAAQ,GAsDnD"}
@@ -3,88 +3,13 @@ import { UpdateSizeConstraintSetRequest, UpdateSizeConstraintSetResponse } from
3
3
  import { deserializeAws_json1_1UpdateSizeConstraintSetCommand, serializeAws_json1_1UpdateSizeConstraintSetCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <note>
8
- * <p>This is <b>AWS WAF Classic</b> documentation. For
9
- * more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
10
- * WAF Classic</a> in the developer guide.</p>
11
- * <p>
12
- * <b>For the latest version of AWS
13
- * WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
14
- * </note>
15
- * <p>Inserts or deletes <a>SizeConstraint</a> objects (filters) in a <a>SizeConstraintSet</a>. For each <code>SizeConstraint</code> object,
16
- * you specify the following values: </p>
17
- * <ul>
18
- * <li>
19
- * <p>Whether to insert or delete the object from the array. If you want to change a <code>SizeConstraintSetUpdate</code> object,
20
- * you delete the existing object and add a new one.</p>
21
- * </li>
22
- * <li>
23
- * <p>The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the
24
- * <code>User-Agent</code> header.</p>
25
- * </li>
26
- * <li>
27
- * <p>Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length.
28
- * Note that transformations of the request body are not supported because the AWS resource forwards only the first <code>8192</code> bytes
29
- * of your request to AWS WAF.</p>
30
- * <p>You can only specify a single type of TextTransformation.</p>
31
- * </li>
32
- * <li>
33
- * <p>A <code>ComparisonOperator</code> used for evaluating the selected part of the request against the specified <code>Size</code>, such as
34
- * equals, greater than, less than, and so on.</p>
35
- * </li>
36
- * <li>
37
- * <p>The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.</p>
38
- * </li>
39
- * </ul>
40
- * <p>For example, you can add a <code>SizeConstraintSetUpdate</code> object that matches web requests in which the length of the
41
- * <code>User-Agent</code> header is greater than 100 bytes. You can then configure AWS WAF to block those requests.</p>
42
- * <p>To create and configure a <code>SizeConstraintSet</code>, perform the following steps:</p>
43
- * <ol>
44
- * <li>
45
- * <p>Create a <code>SizeConstraintSet.</code> For more information, see <a>CreateSizeConstraintSet</a>.</p>
46
- * </li>
47
- * <li>
48
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
49
- * <code>UpdateSizeConstraintSet</code> request.</p>
50
- * </li>
51
- * <li>
52
- * <p>Submit an <code>UpdateSizeConstraintSet</code> request to specify the part of the request that you want AWS WAF to inspect
53
- * (for example, the header or the URI) and the value that you want AWS WAF to watch for.</p>
54
- * </li>
55
- * </ol>
56
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
57
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { WAFClient, UpdateSizeConstraintSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
62
- * // const { WAFClient, UpdateSizeConstraintSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
63
- * const client = new WAFClient(config);
64
- * const command = new UpdateSizeConstraintSetCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link UpdateSizeConstraintSetCommandInput} for command's `input` shape.
69
- * @see {@link UpdateSizeConstraintSetCommandOutput} for command's `response` shape.
70
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- var UpdateSizeConstraintSetCommand = /** @class */ (function (_super) {
6
+ var UpdateSizeConstraintSetCommand = (function (_super) {
74
7
  __extends(UpdateSizeConstraintSetCommand, _super);
75
- // Start section: command_properties
76
- // End section: command_properties
77
8
  function UpdateSizeConstraintSetCommand(input) {
78
- var _this =
79
- // Start section: command_constructor
80
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
81
10
  _this.input = input;
82
11
  return _this;
83
- // End section: command_constructor
84
12
  }
85
- /**
86
- * @internal
87
- */
88
13
  UpdateSizeConstraintSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
89
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
90
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateSizeConstraintSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateSizeConstraintSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EACL,oDAAoD,EACpD,kDAAkD,GACnD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH;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I,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,kDAAS,GAAjB,UAAkB,KAA0C,EAAE,OAAuB;QACnF,OAAO,kDAAkD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEO,oDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,oDAAoD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAIH,qCAAC;AAAD,CAAC,AAtDD,CAAoD,QAAQ,GAsD3D"}
@@ -3,87 +3,13 @@ import { UpdateSqlInjectionMatchSetRequest, UpdateSqlInjectionMatchSetResponse }
3
3
  import { deserializeAws_json1_1UpdateSqlInjectionMatchSetCommand, serializeAws_json1_1UpdateSqlInjectionMatchSetCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <note>
8
- * <p>This is <b>AWS WAF Classic</b> documentation. For
9
- * more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
10
- * WAF Classic</a> in the developer guide.</p>
11
- * <p>
12
- * <b>For the latest version of AWS
13
- * WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
14
- * </note>
15
- * <p>Inserts or deletes <a>SqlInjectionMatchTuple</a> objects (filters) in a <a>SqlInjectionMatchSet</a>.
16
- * For each <code>SqlInjectionMatchTuple</code> object, you specify the following values:</p>
17
- * <ul>
18
- * <li>
19
- * <p>
20
- * <code>Action</code>: Whether to insert the object into or delete the object from the array. To change a
21
- * <code>SqlInjectionMatchTuple</code>, you delete the existing object and add a new one.</p>
22
- * </li>
23
- * <li>
24
- * <p>
25
- * <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header or custom query parameter,
26
- * the name of the header or parameter.</p>
27
- * </li>
28
- * <li>
29
- * <p>
30
- * <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before
31
- * inspecting the request for snippets of malicious SQL code.</p>
32
- * <p>You can only specify a single type of TextTransformation.</p>
33
- * </li>
34
- * </ul>
35
- * <p>You use <code>SqlInjectionMatchSet</code> objects to specify which CloudFront
36
- * requests that
37
- * you want to allow, block, or count. For example, if you're receiving
38
- * requests that contain snippets of SQL code in the query string and you want to block the
39
- * requests, you can create a <code>SqlInjectionMatchSet</code> with the applicable settings,
40
- * and then configure AWS WAF to block the requests. </p>
41
- * <p>To create and configure a <code>SqlInjectionMatchSet</code>, perform the following steps:</p>
42
- * <ol>
43
- * <li>
44
- * <p>Submit a <a>CreateSqlInjectionMatchSet</a> request.</p>
45
- * </li>
46
- * <li>
47
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
48
- * <a>UpdateIPSet</a> request.</p>
49
- * </li>
50
- * <li>
51
- * <p>Submit an <code>UpdateSqlInjectionMatchSet</code> request to specify the parts of web requests that you want AWS WAF to
52
- * inspect for snippets of SQL code.</p>
53
- * </li>
54
- * </ol>
55
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
56
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { WAFClient, UpdateSqlInjectionMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
61
- * // const { WAFClient, UpdateSqlInjectionMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
62
- * const client = new WAFClient(config);
63
- * const command = new UpdateSqlInjectionMatchSetCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link UpdateSqlInjectionMatchSetCommandInput} for command's `input` shape.
68
- * @see {@link UpdateSqlInjectionMatchSetCommandOutput} for command's `response` shape.
69
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
72
- var UpdateSqlInjectionMatchSetCommand = /** @class */ (function (_super) {
6
+ var UpdateSqlInjectionMatchSetCommand = (function (_super) {
73
7
  __extends(UpdateSqlInjectionMatchSetCommand, _super);
74
- // Start section: command_properties
75
- // End section: command_properties
76
8
  function UpdateSqlInjectionMatchSetCommand(input) {
77
- var _this =
78
- // Start section: command_constructor
79
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
80
10
  _this.input = input;
81
11
  return _this;
82
- // End section: command_constructor
83
12
  }
84
- /**
85
- * @internal
86
- */
87
13
  UpdateSqlInjectionMatchSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
88
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
89
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateSqlInjectionMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateSqlInjectionMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EACL,uDAAuD,EACvD,qDAAqD,GACtD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH;IAAuD,qDAItD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,2CAAqB,KAA6C;QAAlE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwC;;QAGhE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,6DAAiB,GAAjB,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DAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,uDAAuD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAIH,wCAAC;AAAD,CAAC,AAzDD,CAAuD,QAAQ,GAyD9D"}
@@ -3,117 +3,13 @@ import { UpdateWebACLRequest, UpdateWebACLResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1UpdateWebACLCommand, serializeAws_json1_1UpdateWebACLCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <note>
8
- * <p>This is <b>AWS WAF Classic</b> documentation. For
9
- * more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
10
- * WAF Classic</a> in the developer guide.</p>
11
- * <p>
12
- * <b>For the latest version of AWS
13
- * WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
14
- * </note>
15
- * <p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>WebACL</code>. Each <code>Rule</code> identifies
16
- * web requests that you want to allow, block, or count. When you update a <code>WebACL</code>, you specify the following values:</p>
17
- * <ul>
18
- * <li>
19
- * <p>A default action for the <code>WebACL</code>, either <code>ALLOW</code> or <code>BLOCK</code>.
20
- * AWS WAF performs the default action if a request doesn't match the criteria in any of the <code>Rules</code> in a <code>WebACL</code>.</p>
21
- * </li>
22
- * <li>
23
- * <p>The <code>Rules</code> that you want to add
24
- * or
25
- * delete. If you want to replace one <code>Rule</code> with another, you delete the
26
- * existing <code>Rule</code> and add the new one.</p>
27
- * </li>
28
- * <li>
29
- * <p>For each <code>Rule</code>, whether you want AWS WAF to allow requests, block requests, or count requests that match
30
- * the conditions in the <code>Rule</code>.</p>
31
- * </li>
32
- * <li>
33
- * <p>The order in which you want AWS WAF to evaluate the <code>Rules</code> in a
34
- * <code>WebACL</code>. If you add more than one <code>Rule</code> to a
35
- * <code>WebACL</code>, AWS WAF evaluates each request against the <code>Rules</code>
36
- * in order based on the value of <code>Priority</code>. (The <code>Rule</code> that has
37
- * the lowest value for <code>Priority</code> is evaluated first.) When a web request
38
- * matches all
39
- * the
40
- * predicates (such as <code>ByteMatchSets</code> and <code>IPSets</code>) in a
41
- * <code>Rule</code>, AWS WAF immediately takes the corresponding action, allow or
42
- * block, and doesn't evaluate the request against the remaining <code>Rules</code> in
43
- * the <code>WebACL</code>, if any. </p>
44
- * </li>
45
- * </ul>
46
- *
47
- * <p>To create and configure a <code>WebACL</code>, perform the following steps:</p>
48
- * <ol>
49
- * <li>
50
- * <p>Create and update the predicates that you want to include in <code>Rules</code>.
51
- * For more information, see <a>CreateByteMatchSet</a>, <a>UpdateByteMatchSet</a>, <a>CreateIPSet</a>, <a>UpdateIPSet</a>,
52
- * <a>CreateSqlInjectionMatchSet</a>, and <a>UpdateSqlInjectionMatchSet</a>.</p>
53
- * </li>
54
- * <li>
55
- * <p>Create and update the <code>Rules</code> that you want to include in the <code>WebACL</code>. For more information, see
56
- * <a>CreateRule</a> and <a>UpdateRule</a>.</p>
57
- * </li>
58
- * <li>
59
- * <p>Create a <code>WebACL</code>. See <a>CreateWebACL</a>.</p>
60
- * </li>
61
- * <li>
62
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
63
- * <a>UpdateWebACL</a> request.</p>
64
- * </li>
65
- * <li>
66
- * <p>Submit an <code>UpdateWebACL</code> request to specify the <code>Rules</code>
67
- * that you want to include in the <code>WebACL</code>, to specify the default action,
68
- * and to associate the <code>WebACL</code> with a CloudFront distribution. </p>
69
- * <p>The <code>ActivatedRule</code> can be a rule group. If you specify a rule group
70
- * as your
71
- * <code>ActivatedRule</code>
72
- * ,
73
- * you can exclude specific rules from that rule group.</p>
74
- * <p>If you already have a rule group associated with a web ACL and want to submit
75
- * an <code>UpdateWebACL</code> request to exclude certain rules from that rule group,
76
- * you must first remove the rule group from the web ACL, the re-insert it again,
77
- * specifying the excluded rules.
78
- * For details,
79
- * see
80
- * <a>ActivatedRule$ExcludedRules</a>
81
- * .
82
- * </p>
83
- * </li>
84
- * </ol>
85
- * <p>Be aware that if you try to add a RATE_BASED rule to a web ACL without setting the rule type when first creating the rule, the <a>UpdateWebACL</a> request will fail because the request tries to add a REGULAR rule (the default rule type) with the specified ID, which does not exist. </p>
86
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
87
- * @example
88
- * Use a bare-bones client and the command you need to make an API call.
89
- * ```javascript
90
- * import { WAFClient, UpdateWebACLCommand } from "@aws-sdk/client-waf"; // ES Modules import
91
- * // const { WAFClient, UpdateWebACLCommand } = require("@aws-sdk/client-waf"); // CommonJS import
92
- * const client = new WAFClient(config);
93
- * const command = new UpdateWebACLCommand(input);
94
- * const response = await client.send(command);
95
- * ```
96
- *
97
- * @see {@link UpdateWebACLCommandInput} for command's `input` shape.
98
- * @see {@link UpdateWebACLCommandOutput} for command's `response` shape.
99
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
100
- *
101
- */
102
- var UpdateWebACLCommand = /** @class */ (function (_super) {
6
+ var UpdateWebACLCommand = (function (_super) {
103
7
  __extends(UpdateWebACLCommand, _super);
104
- // Start section: command_properties
105
- // End section: command_properties
106
8
  function UpdateWebACLCommand(input) {
107
- var _this =
108
- // Start section: command_constructor
109
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
110
10
  _this.input = input;
111
11
  return _this;
112
- // End section: command_constructor
113
12
  }
114
- /**
115
- * @internal
116
- */
117
13
  UpdateWebACLCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
118
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
119
15
  var stack = clientStack.concat(this.middleware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