@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":"CreateIPSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateIPSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH;IAAwC,sCAIvC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,4BAAqB,KAA8B;QAAnD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAyB;;QAGjD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,8CAAiB,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,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,kBAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,mBAAmB,CAAC,kBAAkB;SACjE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAA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B;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,kBAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,mBAAmB,CAAC,kBAAkB;SACjE,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,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
@@ -3,131 +3,13 @@ import { CreateRateBasedRuleRequest, CreateRateBasedRuleResponse } from "../mode
3
3
  import { deserializeAws_json1_1CreateRateBasedRuleCommand, serializeAws_json1_1CreateRateBasedRuleCommand, } 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>Creates a <a>RateBasedRule</a>. The <code>RateBasedRule</code> contains a
16
- * <code>RateLimit</code>, which specifies the maximum number of requests that AWS WAF allows
17
- * from a specified IP address in a five-minute period.
18
- * The <code>RateBasedRule</code> also
19
- * contains the <code>IPSet</code> objects, <code>ByteMatchSet</code> objects, and other
20
- * predicates that identify the requests that you want to count or block if these requests
21
- * exceed the <code>RateLimit</code>.</p>
22
- * <p>If you add more than one predicate to a <code>RateBasedRule</code>, a request not
23
- * only must exceed the <code>RateLimit</code>, but it also must match all the
24
- * conditions to be counted or blocked. For example, suppose you add the following to a
25
- * <code>RateBasedRule</code>:</p>
26
- * <ul>
27
- * <li>
28
- * <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44/32</code>
29
- * </p>
30
- * </li>
31
- * <li>
32
- * <p>A <code>ByteMatchSet</code> that matches <code>BadBot</code> in the
33
- * <code>User-Agent</code> header</p>
34
- * </li>
35
- * </ul>
36
- * <p>Further, you specify a <code>RateLimit</code> of 1,000.</p>
37
- * <p>You then add the <code>RateBasedRule</code> to a <code>WebACL</code> and specify that
38
- * you want to block requests that meet the conditions in the rule. For a request to be
39
- * blocked, it must come from the IP address 192.0.2.44 <i>and</i> the
40
- * <code>User-Agent</code> header in the request must contain the value
41
- * <code>BadBot</code>. Further, requests that match these two conditions must be received at
42
- * a rate of more than 1,000 requests every five minutes. If both conditions are met and the
43
- * rate is exceeded, AWS WAF blocks the requests. If the rate drops below 1,000 for a
44
- * five-minute period, AWS WAF no longer blocks the requests.</p>
45
- *
46
- * <p>As a second example, suppose you want to limit requests to a particular page on your site. To do this, you could add the following to a
47
- * <code>RateBasedRule</code>:</p>
48
- *
49
- *
50
- * <ul>
51
- * <li>
52
- * <p>A <code>ByteMatchSet</code> with <code>FieldToMatch</code> of <code>URI</code>
53
- * </p>
54
- * </li>
55
- * <li>
56
- * <p>A <code>PositionalConstraint</code> of <code>STARTS_WITH</code>
57
- * </p>
58
- * </li>
59
- * <li>
60
- * <p>A <code>TargetString</code> of <code>login</code>
61
- * </p>
62
- * </li>
63
- * </ul>
64
- * <p>Further, you specify a <code>RateLimit</code> of 1,000.</p>
65
- * <p>By adding this <code>RateBasedRule</code> to a <code>WebACL</code>, you could limit requests to your login page without affecting the rest of your site.</p>
66
- *
67
- *
68
- * <p>To create and configure a <code>RateBasedRule</code>, perform the following
69
- * steps:</p>
70
- * <ol>
71
- * <li>
72
- * <p>Create and update the predicates that you want to include in the rule. For more
73
- * information, see <a>CreateByteMatchSet</a>, <a>CreateIPSet</a>,
74
- * and <a>CreateSqlInjectionMatchSet</a>.</p>
75
- * </li>
76
- * <li>
77
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide
78
- * in the <code>ChangeToken</code> parameter of a <code>CreateRule</code>
79
- * request.</p>
80
- * </li>
81
- * <li>
82
- * <p>Submit a <code>CreateRateBasedRule</code> request.</p>
83
- * </li>
84
- * <li>
85
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the
86
- * <code>ChangeToken</code> parameter of an <a>UpdateRule</a>
87
- * request.</p>
88
- * </li>
89
- * <li>
90
- * <p>Submit an <code>UpdateRateBasedRule</code> request to specify the predicates
91
- * that you want to include in the rule.</p>
92
- * </li>
93
- * <li>
94
- * <p>Create and update a <code>WebACL</code> that contains the
95
- * <code>RateBasedRule</code>. For more information, see <a>CreateWebACL</a>.</p>
96
- * </li>
97
- * </ol>
98
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests,
99
- * see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer
100
- * Guide</a>.</p>
101
- * @example
102
- * Use a bare-bones client and the command you need to make an API call.
103
- * ```javascript
104
- * import { WAFClient, CreateRateBasedRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
105
- * // const { WAFClient, CreateRateBasedRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
106
- * const client = new WAFClient(config);
107
- * const command = new CreateRateBasedRuleCommand(input);
108
- * const response = await client.send(command);
109
- * ```
110
- *
111
- * @see {@link CreateRateBasedRuleCommandInput} for command's `input` shape.
112
- * @see {@link CreateRateBasedRuleCommandOutput} for command's `response` shape.
113
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
114
- *
115
- */
116
- var CreateRateBasedRuleCommand = /** @class */ (function (_super) {
6
+ var CreateRateBasedRuleCommand = (function (_super) {
117
7
  __extends(CreateRateBasedRuleCommand, _super);
118
- // Start section: command_properties
119
- // End section: command_properties
120
8
  function CreateRateBasedRuleCommand(input) {
121
- var _this =
122
- // Start section: command_constructor
123
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
124
10
  _this.input = input;
125
11
  return _this;
126
- // End section: command_constructor
127
12
  }
128
- /**
129
- * @internal
130
- */
131
13
  CreateRateBasedRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
132
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
133
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRateBasedRuleCommand.js","sourceRoot":"","sources":["../../../commands/CreateRateBasedRuleCommand.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AACH;IAAgD,8CAI/C;IACC,oCAAoC;IAC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BAAuB,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,69 +3,13 @@ import { CreateRegexMatchSetRequest, CreateRegexMatchSetResponse } from "../mode
3
3
  import { deserializeAws_json1_1CreateRegexMatchSetCommand, serializeAws_json1_1CreateRegexMatchSetCommand, } 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>Creates a <a>RegexMatchSet</a>. You then use <a>UpdateRegexMatchSet</a> to identify the part of a
16
- * web request that you want AWS WAF to inspect, such as the values of the <code>User-Agent</code> header or the query string.
17
- * For example, you can create a <code>RegexMatchSet</code> that contains a <code>RegexMatchTuple</code> that looks for any requests with <code>User-Agent</code> headers
18
- * that match a <code>RegexPatternSet</code> with pattern <code>B[a@]dB[o0]t</code>. You can then configure AWS WAF to reject those requests.</p>
19
- * <p>To create and configure a <code>RegexMatchSet</code>, perform the following steps:</p>
20
- * <ol>
21
- * <li>
22
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
23
- * <code>CreateRegexMatchSet</code> request.</p>
24
- * </li>
25
- * <li>
26
- * <p>Submit a <code>CreateRegexMatchSet</code> request.</p>
27
- * </li>
28
- * <li>
29
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
30
- * <code>UpdateRegexMatchSet</code> request.</p>
31
- * </li>
32
- * <li>
33
- * <p>Submit an <a>UpdateRegexMatchSet</a> request to specify the part of the request that you want AWS WAF to inspect
34
- * (for example, the header or the URI) and the value, using a <code>RegexPatternSet</code>, that you want AWS WAF to watch for.</p>
35
- * </li>
36
- * </ol>
37
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
38
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { WAFClient, CreateRegexMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
43
- * // const { WAFClient, CreateRegexMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
44
- * const client = new WAFClient(config);
45
- * const command = new CreateRegexMatchSetCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link CreateRegexMatchSetCommandInput} for command's `input` shape.
50
- * @see {@link CreateRegexMatchSetCommandOutput} for command's `response` shape.
51
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
- var CreateRegexMatchSetCommand = /** @class */ (function (_super) {
6
+ var CreateRegexMatchSetCommand = (function (_super) {
55
7
  __extends(CreateRegexMatchSetCommand, _super);
56
- // Start section: command_properties
57
- // End section: command_properties
58
8
  function CreateRegexMatchSetCommand(input) {
59
- var _this =
60
- // Start section: command_constructor
61
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
62
10
  _this.input = input;
63
11
  return _this;
64
- // End section: command_constructor
65
12
  }
66
- /**
67
- * @internal
68
- */
69
13
  CreateRegexMatchSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
70
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRegexMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateRegexMatchSetCommand.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;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,aAA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S,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,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,65 +3,13 @@ import { CreateRegexPatternSetRequest, CreateRegexPatternSetResponse } from "../
3
3
  import { deserializeAws_json1_1CreateRegexPatternSetCommand, serializeAws_json1_1CreateRegexPatternSetCommand, } 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>Creates a <code>RegexPatternSet</code>. You then use <a>UpdateRegexPatternSet</a> to specify the regular expression (regex) pattern that you want AWS WAF to search for, such as <code>B[a@]dB[o0]t</code>. You can then configure AWS WAF to reject those requests.</p>
16
- * <p>To create and configure a <code>RegexPatternSet</code>, perform the following steps:</p>
17
- * <ol>
18
- * <li>
19
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
20
- * <code>CreateRegexPatternSet</code> request.</p>
21
- * </li>
22
- * <li>
23
- * <p>Submit a <code>CreateRegexPatternSet</code> request.</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
- * <code>UpdateRegexPatternSet</code> request.</p>
28
- * </li>
29
- * <li>
30
- * <p>Submit an <a>UpdateRegexPatternSet</a> request to specify the string that you want AWS WAF to watch for.</p>
31
- * </li>
32
- * </ol>
33
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
34
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { WAFClient, CreateRegexPatternSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
39
- * // const { WAFClient, CreateRegexPatternSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
40
- * const client = new WAFClient(config);
41
- * const command = new CreateRegexPatternSetCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link CreateRegexPatternSetCommandInput} for command's `input` shape.
46
- * @see {@link CreateRegexPatternSetCommandOutput} for command's `response` shape.
47
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
- var CreateRegexPatternSetCommand = /** @class */ (function (_super) {
6
+ var CreateRegexPatternSetCommand = (function (_super) {
51
7
  __extends(CreateRegexPatternSetCommand, _super);
52
- // Start section: command_properties
53
- // End section: command_properties
54
8
  function CreateRegexPatternSetCommand(input) {
55
- var _this =
56
- // Start section: command_constructor
57
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
58
10
  _this.input = input;
59
11
  return _this;
60
- // End section: command_constructor
61
12
  }
62
- /**
63
- * @internal
64
- */
65
13
  CreateRegexPatternSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
66
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRegexPatternSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateRegexPatternSetCommand.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH;IAAkD,gDAIjD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,sCAAqB,KAAwC;QAA7D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAmC;;QAG3D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,wDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,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QACjE,OAAO,kDAAkD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAIH,mCAAC;AAAD,CAAC,AAtDD,CAAkD,QAAQ,GAsDzD"}
@@ -3,89 +3,13 @@ import { CreateRuleRequest, CreateRuleResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1CreateRuleCommand, serializeAws_json1_1CreateRuleCommand, } 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>Creates a <code>Rule</code>, which contains the <code>IPSet</code> objects,
16
- * <code>ByteMatchSet</code> objects, and other predicates that identify the requests that
17
- * you want to block. If you add more than one predicate to a <code>Rule</code>, a request
18
- * must match all of the specifications to be allowed or blocked. For example, suppose
19
- * that
20
- * you add the following to a <code>Rule</code>:</p>
21
- * <ul>
22
- * <li>
23
- * <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44/32</code>
24
- * </p>
25
- * </li>
26
- * <li>
27
- * <p>A <code>ByteMatchSet</code> that matches <code>BadBot</code> in the <code>User-Agent</code> header</p>
28
- * </li>
29
- * </ul>
30
- * <p>You then add the <code>Rule</code> to a <code>WebACL</code> and specify that you want to blocks requests that satisfy the <code>Rule</code>.
31
- * For a request to be blocked, it must come from the IP address 192.0.2.44 <i>and</i> the <code>User-Agent</code> header in the request
32
- * must contain the value <code>BadBot</code>.</p>
33
- * <p>To create and configure a <code>Rule</code>, perform the following steps:</p>
34
- * <ol>
35
- * <li>
36
- * <p>Create and update the predicates that you want to include in the <code>Rule</code>. For more information, see
37
- * <a>CreateByteMatchSet</a>, <a>CreateIPSet</a>, and <a>CreateSqlInjectionMatchSet</a>.</p>
38
- * </li>
39
- * <li>
40
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
41
- * <code>CreateRule</code> request.</p>
42
- * </li>
43
- * <li>
44
- * <p>Submit a <code>CreateRule</code> request.</p>
45
- * </li>
46
- * <li>
47
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
48
- * <a>UpdateRule</a> request.</p>
49
- * </li>
50
- * <li>
51
- * <p>Submit an <code>UpdateRule</code> request to specify the predicates that you want to include in the <code>Rule</code>.</p>
52
- * </li>
53
- * <li>
54
- * <p>Create and update a <code>WebACL</code> that contains the <code>Rule</code>. For more information, see <a>CreateWebACL</a>.</p>
55
- * </li>
56
- * </ol>
57
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
58
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
59
- * @example
60
- * Use a bare-bones client and the command you need to make an API call.
61
- * ```javascript
62
- * import { WAFClient, CreateRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
63
- * // const { WAFClient, CreateRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
64
- * const client = new WAFClient(config);
65
- * const command = new CreateRuleCommand(input);
66
- * const response = await client.send(command);
67
- * ```
68
- *
69
- * @see {@link CreateRuleCommandInput} for command's `input` shape.
70
- * @see {@link CreateRuleCommandOutput} for command's `response` shape.
71
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
72
- *
73
- */
74
- var CreateRuleCommand = /** @class */ (function (_super) {
6
+ var CreateRuleCommand = (function (_super) {
75
7
  __extends(CreateRuleCommand, _super);
76
- // Start section: command_properties
77
- // End section: command_properties
78
8
  function CreateRuleCommand(input) {
79
- var _this =
80
- // Start section: command_constructor
81
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
82
10
  _this.input = input;
83
11
  return _this;
84
- // End section: command_constructor
85
12
  }
86
- /**
87
- * @internal
88
- */
89
13
  CreateRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
90
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
91
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRuleCommand.js","sourceRoot":"","sources":["../../../commands/CreateRuleCommand.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;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,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,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AjB,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,mBAAmB,CAAC;QACxC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iBAAiB,CAAC,kBAAkB;YAC7D,wBAAwB,EAAE,kBAAkB,CAAC,kBAAkB;SAChE,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,qCAAS,GAAjB,UAAkB,KAA6B,EAAE,OAAuB;QACtE,OAAO,qCAAqC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,uCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,uCAAuC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAIH,wBAAC;AAAD,CAAC,AAtDD,CAAuC,QAAQ,GAsD9C"}
@@ -3,60 +3,13 @@ import { CreateRuleGroupRequest, CreateRuleGroupResponse } from "../models/model
3
3
  import { deserializeAws_json1_1CreateRuleGroupCommand, serializeAws_json1_1CreateRuleGroupCommand, } 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>Creates a <code>RuleGroup</code>. A rule group is a collection of predefined rules that you add to a web ACL. You use <a>UpdateRuleGroup</a> to add rules to the rule group.</p>
16
- * <p>Rule groups are subject to the following limits:</p>
17
- * <ul>
18
- * <li>
19
- * <p>Three rule groups per account. You can request an increase to this limit by contacting customer support.</p>
20
- * </li>
21
- * <li>
22
- * <p>One rule group per web ACL.</p>
23
- * </li>
24
- * <li>
25
- * <p>Ten rules per rule group.</p>
26
- * </li>
27
- * </ul>
28
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
29
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { WAFClient, CreateRuleGroupCommand } from "@aws-sdk/client-waf"; // ES Modules import
34
- * // const { WAFClient, CreateRuleGroupCommand } = require("@aws-sdk/client-waf"); // CommonJS import
35
- * const client = new WAFClient(config);
36
- * const command = new CreateRuleGroupCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link CreateRuleGroupCommandInput} for command's `input` shape.
41
- * @see {@link CreateRuleGroupCommandOutput} for command's `response` shape.
42
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- var CreateRuleGroupCommand = /** @class */ (function (_super) {
6
+ var CreateRuleGroupCommand = (function (_super) {
46
7
  __extends(CreateRuleGroupCommand, _super);
47
- // Start section: command_properties
48
- // End section: command_properties
49
8
  function CreateRuleGroupCommand(input) {
50
- var _this =
51
- // Start section: command_constructor
52
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
53
10
  _this.input = input;
54
11
  return _this;
55
- // End section: command_constructor
56
12
  }
57
- /**
58
- * @internal
59
- */
60
13
  CreateRuleGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
61
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
62
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRuleGroupCommand.js","sourceRoot":"","sources":["../../../commands/CreateRuleGroupCommand.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;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH;IAA4C,0CAI3C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,gCAAqB,KAAkC;QAAvD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA6B;;QAGrD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,kDAAiB,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,C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import { deserializeAws_json1_1CreateSizeConstraintSetCommand, serializeAws_json1_1CreateSizeConstraintSetCommand, } 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>Creates a <code>SizeConstraintSet</code>. You then use <a>UpdateSizeConstraintSet</a> to identify the part of a
16
- * web request that you want AWS WAF to check for length, such as the length of the <code>User-Agent</code> header or the length of the query string.
17
- * For example, you can create a <code>SizeConstraintSet</code> that matches any requests that have a query string that is longer than 100 bytes.
18
- * You can then configure AWS WAF to reject those requests.</p>
19
- * <p>To create and configure a <code>SizeConstraintSet</code>, perform the following steps:</p>
20
- * <ol>
21
- * <li>
22
- * <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
23
- * <code>CreateSizeConstraintSet</code> request.</p>
24
- * </li>
25
- * <li>
26
- * <p>Submit a <code>CreateSizeConstraintSet</code> request.</p>
27
- * </li>
28
- * <li>
29
- * <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
30
- * <code>UpdateSizeConstraintSet</code> request.</p>
31
- * </li>
32
- * <li>
33
- * <p>Submit an <a>UpdateSizeConstraintSet</a> request to specify the part of the request that you want AWS WAF to inspect
34
- * (for example, the header or the URI) and the value that you want AWS WAF to watch for.</p>
35
- * </li>
36
- * </ol>
37
- * <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
38
- * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { WAFClient, CreateSizeConstraintSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
43
- * // const { WAFClient, CreateSizeConstraintSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
44
- * const client = new WAFClient(config);
45
- * const command = new CreateSizeConstraintSetCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link CreateSizeConstraintSetCommandInput} for command's `input` shape.
50
- * @see {@link CreateSizeConstraintSetCommandOutput} for command's `response` shape.
51
- * @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
- var CreateSizeConstraintSetCommand = /** @class */ (function (_super) {
6
+ var CreateSizeConstraintSetCommand = (function (_super) {
55
7
  __extends(CreateSizeConstraintSetCommand, _super);
56
- // Start section: command_properties
57
- // End section: command_properties
58
8
  function CreateSizeConstraintSetCommand(input) {
59
- var _this =
60
- // Start section: command_constructor
61
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
62
10
  _this.input = input;
63
11
  return _this;
64
- // End section: command_constructor
65
12
  }
66
- /**
67
- * @internal
68
- */
69
13
  CreateSizeConstraintSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
70
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateSizeConstraintSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateSizeConstraintSetCommand.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,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