@aws-sdk/client-waf 3.288.0 → 3.290.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 (78) hide show
  1. package/dist-types/commands/CreateByteMatchSetCommand.d.ts +58 -0
  2. package/dist-types/commands/CreateGeoMatchSetCommand.d.ts +58 -0
  3. package/dist-types/commands/CreateIPSetCommand.d.ts +85 -0
  4. package/dist-types/commands/CreateRateBasedRuleCommand.d.ts +64 -0
  5. package/dist-types/commands/CreateRegexMatchSetCommand.d.ts +15 -0
  6. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +15 -0
  7. package/dist-types/commands/CreateRuleCommand.d.ts +94 -0
  8. package/dist-types/commands/CreateRuleGroupCommand.d.ts +24 -0
  9. package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +89 -0
  10. package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +87 -0
  11. package/dist-types/commands/CreateWebACLCommand.d.ts +105 -0
  12. package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +103 -0
  13. package/dist-types/commands/CreateXssMatchSetCommand.d.ts +87 -0
  14. package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +59 -0
  15. package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +42 -0
  16. package/dist-types/commands/DeleteIPSetCommand.d.ts +59 -0
  17. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +10 -0
  18. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +10 -0
  19. package/dist-types/commands/DeleteRateBasedRuleCommand.d.ts +48 -0
  20. package/dist-types/commands/DeleteRegexMatchSetCommand.d.ts +42 -0
  21. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +42 -0
  22. package/dist-types/commands/DeleteRuleCommand.d.ts +65 -0
  23. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +68 -0
  24. package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +59 -0
  25. package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +59 -0
  26. package/dist-types/commands/DeleteWebACLCommand.d.ts +65 -0
  27. package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +59 -0
  28. package/dist-types/commands/GetByteMatchSetCommand.d.ts +40 -0
  29. package/dist-types/commands/GetChangeTokenCommand.d.ts +18 -0
  30. package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +23 -0
  31. package/dist-types/commands/GetGeoMatchSetCommand.d.ts +10 -0
  32. package/dist-types/commands/GetIPSetCommand.d.ts +35 -0
  33. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +7 -0
  34. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +7 -0
  35. package/dist-types/commands/GetRateBasedRuleCommand.d.ts +10 -0
  36. package/dist-types/commands/GetRateBasedRuleManagedKeysCommand.d.ts +50 -0
  37. package/dist-types/commands/GetRegexMatchSetCommand.d.ts +10 -0
  38. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +10 -0
  39. package/dist-types/commands/GetRuleCommand.d.ts +37 -0
  40. package/dist-types/commands/GetRuleGroupCommand.d.ts +7 -0
  41. package/dist-types/commands/GetSampledRequestsCommand.d.ts +52 -0
  42. package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +39 -0
  43. package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +37 -0
  44. package/dist-types/commands/GetWebACLCommand.d.ts +42 -0
  45. package/dist-types/commands/GetXssMatchSetCommand.d.ts +37 -0
  46. package/dist-types/commands/ListActivatedRulesInRuleGroupCommand.d.ts +47 -0
  47. package/dist-types/commands/ListByteMatchSetsCommand.d.ts +7 -0
  48. package/dist-types/commands/ListGeoMatchSetsCommand.d.ts +7 -0
  49. package/dist-types/commands/ListIPSetsCommand.d.ts +28 -0
  50. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +47 -0
  51. package/dist-types/commands/ListRateBasedRulesCommand.d.ts +7 -0
  52. package/dist-types/commands/ListRegexMatchSetsCommand.d.ts +7 -0
  53. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +7 -0
  54. package/dist-types/commands/ListRuleGroupsCommand.d.ts +4 -0
  55. package/dist-types/commands/ListRulesCommand.d.ts +28 -0
  56. package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +28 -0
  57. package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +28 -0
  58. package/dist-types/commands/ListSubscribedRuleGroupsCommand.d.ts +7 -0
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +56 -0
  60. package/dist-types/commands/ListWebACLsCommand.d.ts +28 -0
  61. package/dist-types/commands/ListXssMatchSetsCommand.d.ts +28 -0
  62. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +13 -0
  63. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +42 -0
  64. package/dist-types/commands/TagResourceCommand.d.ts +61 -0
  65. package/dist-types/commands/UntagResourceCommand.d.ts +56 -0
  66. package/dist-types/commands/UpdateByteMatchSetCommand.d.ts +130 -0
  67. package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +110 -0
  68. package/dist-types/commands/UpdateIPSetCommand.d.ts +136 -0
  69. package/dist-types/commands/UpdateRateBasedRuleCommand.d.ts +110 -0
  70. package/dist-types/commands/UpdateRegexMatchSetCommand.d.ts +62 -0
  71. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +62 -0
  72. package/dist-types/commands/UpdateRuleCommand.d.ts +137 -0
  73. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +96 -0
  74. package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +140 -0
  75. package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +127 -0
  76. package/dist-types/commands/UpdateWebACLCommand.d.ts +145 -0
  77. package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +127 -0
  78. package/package.json +29 -29
@@ -76,6 +76,68 @@ export interface UpdateRegexPatternSetCommandOutput extends UpdateRegexPatternSe
76
76
  * @see {@link UpdateRegexPatternSetCommandOutput} for command's `response` shape.
77
77
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
78
78
  *
79
+ * @throws {@link WAFInternalErrorException} (server fault)
80
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
81
+ *
82
+ * @throws {@link WAFInvalidAccountException} (client fault)
83
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
84
+ *
85
+ * @throws {@link WAFInvalidOperationException} (client fault)
86
+ * <p>The operation failed because there was nothing to do. For example:</p>
87
+ * <ul>
88
+ * <li>
89
+ * <p>You tried to remove a <code>Rule</code> from a <code>WebACL</code>, but the <code>Rule</code> isn't in the specified <code>WebACL</code>.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>You tried to remove an IP address from an <code>IPSet</code>, but the IP address isn't in the specified <code>IPSet</code>.</p>
93
+ * </li>
94
+ * <li>
95
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
96
+ * isn't in the specified <code>WebACL</code>.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
100
+ * specified <code>WebACL</code>.</p>
101
+ * </li>
102
+ * <li>
103
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
104
+ * already exists in the specified <code>WebACL</code>.</p>
105
+ * </li>
106
+ * </ul>
107
+ *
108
+ * @throws {@link WAFInvalidRegexPatternException} (client fault)
109
+ * <p>The regular expression (regex) you specified in <code>RegexPatternString</code> is invalid.</p>
110
+ *
111
+ * @throws {@link WAFLimitsExceededException} (client fault)
112
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
113
+ * for an AWS account. For more information, see
114
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
115
+ *
116
+ * @throws {@link WAFNonexistentContainerException} (client fault)
117
+ * <p>The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:</p>
118
+ * <ul>
119
+ * <li>
120
+ * <p>You tried to add a <code>Rule</code> to or delete a <code>Rule</code> from a <code>WebACL</code> that doesn't exist.</p>
121
+ * </li>
122
+ * <li>
123
+ * <p>You tried to add a <code>ByteMatchSet</code> to or delete a <code>ByteMatchSet</code> from a <code>Rule</code> that doesn't exist.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
130
+ * that doesn't exist.</p>
131
+ * </li>
132
+ * </ul>
133
+ *
134
+ * @throws {@link WAFNonexistentItemException} (client fault)
135
+ * <p>The operation failed because the referenced object doesn't exist.</p>
136
+ *
137
+ * @throws {@link WAFStaleDataException} (client fault)
138
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
139
+ *
140
+ *
79
141
  */
80
142
  export declare class UpdateRegexPatternSetCommand extends $Command<UpdateRegexPatternSetCommandInput, UpdateRegexPatternSetCommandOutput, WAFClientResolvedConfig> {
81
143
  readonly input: UpdateRegexPatternSetCommandInput;
@@ -78,6 +78,143 @@ export interface UpdateRuleCommandOutput extends UpdateRuleResponse, __MetadataB
78
78
  * @see {@link UpdateRuleCommandOutput} for command's `response` shape.
79
79
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
80
80
  *
81
+ * @throws {@link WAFInternalErrorException} (server fault)
82
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
83
+ *
84
+ * @throws {@link WAFInvalidAccountException} (client fault)
85
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
86
+ *
87
+ * @throws {@link WAFInvalidOperationException} (client fault)
88
+ * <p>The operation failed because there was nothing to do. For example:</p>
89
+ * <ul>
90
+ * <li>
91
+ * <p>You tried to remove a <code>Rule</code> from a <code>WebACL</code>, but the <code>Rule</code> isn't in the specified <code>WebACL</code>.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to remove an IP address from an <code>IPSet</code>, but the IP address isn't in the specified <code>IPSet</code>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
98
+ * isn't in the specified <code>WebACL</code>.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
102
+ * specified <code>WebACL</code>.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
106
+ * already exists in the specified <code>WebACL</code>.</p>
107
+ * </li>
108
+ * </ul>
109
+ *
110
+ * @throws {@link WAFInvalidParameterException} (client fault)
111
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
112
+ * <ul>
113
+ * <li>
114
+ * <p>You specified an invalid parameter name.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>You specified an invalid value.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
121
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
125
+ * <code>Type</code> other than
126
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
130
+ * </li>
131
+ * <li>
132
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
133
+ * <code>Type</code> other than
134
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
135
+ * </li>
136
+ * <li>
137
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
138
+ * <code>Type</code> other than
139
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
143
+ * but no value for <code>Data</code>.</p>
144
+ * </li>
145
+ * <li>
146
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
147
+ * </li>
148
+ * </ul>
149
+ *
150
+ * @throws {@link WAFLimitsExceededException} (client fault)
151
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
152
+ * for an AWS account. For more information, see
153
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
154
+ *
155
+ * @throws {@link WAFNonexistentContainerException} (client fault)
156
+ * <p>The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:</p>
157
+ * <ul>
158
+ * <li>
159
+ * <p>You tried to add a <code>Rule</code> to or delete a <code>Rule</code> from a <code>WebACL</code> that doesn't exist.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>You tried to add a <code>ByteMatchSet</code> to or delete a <code>ByteMatchSet</code> from a <code>Rule</code> that doesn't exist.</p>
163
+ * </li>
164
+ * <li>
165
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
166
+ * </li>
167
+ * <li>
168
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
169
+ * that doesn't exist.</p>
170
+ * </li>
171
+ * </ul>
172
+ *
173
+ * @throws {@link WAFNonexistentItemException} (client fault)
174
+ * <p>The operation failed because the referenced object doesn't exist.</p>
175
+ *
176
+ * @throws {@link WAFReferencedItemException} (client fault)
177
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
178
+ * <ul>
179
+ * <li>
180
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
181
+ * </li>
182
+ * <li>
183
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
184
+ * </li>
185
+ * </ul>
186
+ *
187
+ * @throws {@link WAFStaleDataException} (client fault)
188
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
189
+ *
190
+ *
191
+ * @example To update a rule
192
+ * ```javascript
193
+ * // The following example deletes a Predicate object in a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
194
+ * const input = {
195
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
196
+ * "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
197
+ * "Updates": [
198
+ * {
199
+ * "Action": "DELETE",
200
+ * "Predicate": {
201
+ * "DataId": "MyByteMatchSetID",
202
+ * "Negated": false,
203
+ * "Type": "ByteMatch"
204
+ * }
205
+ * }
206
+ * ]
207
+ * };
208
+ * const command = new UpdateRuleCommand(input);
209
+ * const response = await client.send(command);
210
+ * /* response ==
211
+ * {
212
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
213
+ * }
214
+ * *\/
215
+ * // example id: updaterule-1475260064720
216
+ * ```
217
+ *
81
218
  */
82
219
  export declare class UpdateRuleCommand extends $Command<UpdateRuleCommandInput, UpdateRuleCommandOutput, WAFClientResolvedConfig> {
83
220
  readonly input: UpdateRuleCommandInput;
@@ -61,6 +61,102 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
61
61
  * @see {@link UpdateRuleGroupCommandOutput} for command's `response` shape.
62
62
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
63
63
  *
64
+ * @throws {@link WAFInternalErrorException} (server fault)
65
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
66
+ *
67
+ * @throws {@link WAFInvalidOperationException} (client fault)
68
+ * <p>The operation failed because there was nothing to do. For example:</p>
69
+ * <ul>
70
+ * <li>
71
+ * <p>You tried to remove a <code>Rule</code> from a <code>WebACL</code>, but the <code>Rule</code> isn't in the specified <code>WebACL</code>.</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>You tried to remove an IP address from an <code>IPSet</code>, but the IP address isn't in the specified <code>IPSet</code>.</p>
75
+ * </li>
76
+ * <li>
77
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
78
+ * isn't in the specified <code>WebACL</code>.</p>
79
+ * </li>
80
+ * <li>
81
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
82
+ * specified <code>WebACL</code>.</p>
83
+ * </li>
84
+ * <li>
85
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
86
+ * already exists in the specified <code>WebACL</code>.</p>
87
+ * </li>
88
+ * </ul>
89
+ *
90
+ * @throws {@link WAFInvalidParameterException} (client fault)
91
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
92
+ * <ul>
93
+ * <li>
94
+ * <p>You specified an invalid parameter name.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You specified an invalid value.</p>
98
+ * </li>
99
+ * <li>
100
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
101
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
102
+ * </li>
103
+ * <li>
104
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
105
+ * <code>Type</code> other than
106
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
107
+ * </li>
108
+ * <li>
109
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
110
+ * </li>
111
+ * <li>
112
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
113
+ * <code>Type</code> other than
114
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
118
+ * <code>Type</code> other than
119
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
123
+ * but no value for <code>Data</code>.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
127
+ * </li>
128
+ * </ul>
129
+ *
130
+ * @throws {@link WAFLimitsExceededException} (client fault)
131
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
132
+ * for an AWS account. For more information, see
133
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
134
+ *
135
+ * @throws {@link WAFNonexistentContainerException} (client fault)
136
+ * <p>The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:</p>
137
+ * <ul>
138
+ * <li>
139
+ * <p>You tried to add a <code>Rule</code> to or delete a <code>Rule</code> from a <code>WebACL</code> that doesn't exist.</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>You tried to add a <code>ByteMatchSet</code> to or delete a <code>ByteMatchSet</code> from a <code>Rule</code> that doesn't exist.</p>
143
+ * </li>
144
+ * <li>
145
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
149
+ * that doesn't exist.</p>
150
+ * </li>
151
+ * </ul>
152
+ *
153
+ * @throws {@link WAFNonexistentItemException} (client fault)
154
+ * <p>The operation failed because the referenced object doesn't exist.</p>
155
+ *
156
+ * @throws {@link WAFStaleDataException} (client fault)
157
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
158
+ *
159
+ *
64
160
  */
65
161
  export declare class UpdateRuleGroupCommand extends $Command<UpdateRuleGroupCommandInput, UpdateRuleGroupCommandOutput, WAFClientResolvedConfig> {
66
162
  readonly input: UpdateRuleGroupCommandInput;
@@ -79,6 +79,146 @@ export interface UpdateSizeConstraintSetCommandOutput extends UpdateSizeConstrai
79
79
  * @see {@link UpdateSizeConstraintSetCommandOutput} for command's `response` shape.
80
80
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
81
81
  *
82
+ * @throws {@link WAFInternalErrorException} (server fault)
83
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
84
+ *
85
+ * @throws {@link WAFInvalidAccountException} (client fault)
86
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
87
+ *
88
+ * @throws {@link WAFInvalidOperationException} (client fault)
89
+ * <p>The operation failed because there was nothing to do. For example:</p>
90
+ * <ul>
91
+ * <li>
92
+ * <p>You tried to remove a <code>Rule</code> from a <code>WebACL</code>, but the <code>Rule</code> isn't in the specified <code>WebACL</code>.</p>
93
+ * </li>
94
+ * <li>
95
+ * <p>You tried to remove an IP address from an <code>IPSet</code>, but the IP address isn't in the specified <code>IPSet</code>.</p>
96
+ * </li>
97
+ * <li>
98
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
99
+ * isn't in the specified <code>WebACL</code>.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
103
+ * specified <code>WebACL</code>.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
107
+ * already exists in the specified <code>WebACL</code>.</p>
108
+ * </li>
109
+ * </ul>
110
+ *
111
+ * @throws {@link WAFInvalidParameterException} (client fault)
112
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
113
+ * <ul>
114
+ * <li>
115
+ * <p>You specified an invalid parameter name.</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>You specified an invalid value.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
122
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
123
+ * </li>
124
+ * <li>
125
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
126
+ * <code>Type</code> other than
127
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
131
+ * </li>
132
+ * <li>
133
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
134
+ * <code>Type</code> other than
135
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
136
+ * </li>
137
+ * <li>
138
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
139
+ * <code>Type</code> other than
140
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
141
+ * </li>
142
+ * <li>
143
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
144
+ * but no value for <code>Data</code>.</p>
145
+ * </li>
146
+ * <li>
147
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
148
+ * </li>
149
+ * </ul>
150
+ *
151
+ * @throws {@link WAFLimitsExceededException} (client fault)
152
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
153
+ * for an AWS account. For more information, see
154
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
155
+ *
156
+ * @throws {@link WAFNonexistentContainerException} (client fault)
157
+ * <p>The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:</p>
158
+ * <ul>
159
+ * <li>
160
+ * <p>You tried to add a <code>Rule</code> to or delete a <code>Rule</code> from a <code>WebACL</code> that doesn't exist.</p>
161
+ * </li>
162
+ * <li>
163
+ * <p>You tried to add a <code>ByteMatchSet</code> to or delete a <code>ByteMatchSet</code> from a <code>Rule</code> that doesn't exist.</p>
164
+ * </li>
165
+ * <li>
166
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
167
+ * </li>
168
+ * <li>
169
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
170
+ * that doesn't exist.</p>
171
+ * </li>
172
+ * </ul>
173
+ *
174
+ * @throws {@link WAFNonexistentItemException} (client fault)
175
+ * <p>The operation failed because the referenced object doesn't exist.</p>
176
+ *
177
+ * @throws {@link WAFReferencedItemException} (client fault)
178
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
179
+ * <ul>
180
+ * <li>
181
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
182
+ * </li>
183
+ * <li>
184
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
185
+ * </li>
186
+ * </ul>
187
+ *
188
+ * @throws {@link WAFStaleDataException} (client fault)
189
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
190
+ *
191
+ *
192
+ * @example To update a size constraint set
193
+ * ```javascript
194
+ * // The following example deletes a SizeConstraint object (filters) in a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
195
+ * const input = {
196
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
197
+ * "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
198
+ * "Updates": [
199
+ * {
200
+ * "Action": "DELETE",
201
+ * "SizeConstraint": {
202
+ * "ComparisonOperator": "GT",
203
+ * "FieldToMatch": {
204
+ * "Type": "QUERY_STRING"
205
+ * },
206
+ * "Size": 0,
207
+ * "TextTransformation": "NONE"
208
+ * }
209
+ * }
210
+ * ]
211
+ * };
212
+ * const command = new UpdateSizeConstraintSetCommand(input);
213
+ * const response = await client.send(command);
214
+ * /* response ==
215
+ * {
216
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
217
+ * }
218
+ * *\/
219
+ * // example id: updatesizeconstraintset-1475531697891
220
+ * ```
221
+ *
82
222
  */
83
223
  export declare class UpdateSizeConstraintSetCommand extends $Command<UpdateSizeConstraintSetCommandInput, UpdateSizeConstraintSetCommandOutput, WAFClientResolvedConfig> {
84
224
  readonly input: UpdateSizeConstraintSetCommandInput;
@@ -78,6 +78,133 @@ export interface UpdateSqlInjectionMatchSetCommandOutput extends UpdateSqlInject
78
78
  * @see {@link UpdateSqlInjectionMatchSetCommandOutput} for command's `response` shape.
79
79
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
80
80
  *
81
+ * @throws {@link WAFInternalErrorException} (server fault)
82
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
83
+ *
84
+ * @throws {@link WAFInvalidAccountException} (client fault)
85
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
86
+ *
87
+ * @throws {@link WAFInvalidOperationException} (client fault)
88
+ * <p>The operation failed because there was nothing to do. For example:</p>
89
+ * <ul>
90
+ * <li>
91
+ * <p>You tried to remove a <code>Rule</code> from a <code>WebACL</code>, but the <code>Rule</code> isn't in the specified <code>WebACL</code>.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to remove an IP address from an <code>IPSet</code>, but the IP address isn't in the specified <code>IPSet</code>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
98
+ * isn't in the specified <code>WebACL</code>.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
102
+ * specified <code>WebACL</code>.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
106
+ * already exists in the specified <code>WebACL</code>.</p>
107
+ * </li>
108
+ * </ul>
109
+ *
110
+ * @throws {@link WAFInvalidParameterException} (client fault)
111
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
112
+ * <ul>
113
+ * <li>
114
+ * <p>You specified an invalid parameter name.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>You specified an invalid value.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
121
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
125
+ * <code>Type</code> other than
126
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
130
+ * </li>
131
+ * <li>
132
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
133
+ * <code>Type</code> other than
134
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
135
+ * </li>
136
+ * <li>
137
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
138
+ * <code>Type</code> other than
139
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
143
+ * but no value for <code>Data</code>.</p>
144
+ * </li>
145
+ * <li>
146
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
147
+ * </li>
148
+ * </ul>
149
+ *
150
+ * @throws {@link WAFLimitsExceededException} (client fault)
151
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
152
+ * for an AWS account. For more information, see
153
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
154
+ *
155
+ * @throws {@link WAFNonexistentContainerException} (client fault)
156
+ * <p>The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:</p>
157
+ * <ul>
158
+ * <li>
159
+ * <p>You tried to add a <code>Rule</code> to or delete a <code>Rule</code> from a <code>WebACL</code> that doesn't exist.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>You tried to add a <code>ByteMatchSet</code> to or delete a <code>ByteMatchSet</code> from a <code>Rule</code> that doesn't exist.</p>
163
+ * </li>
164
+ * <li>
165
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
166
+ * </li>
167
+ * <li>
168
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
169
+ * that doesn't exist.</p>
170
+ * </li>
171
+ * </ul>
172
+ *
173
+ * @throws {@link WAFNonexistentItemException} (client fault)
174
+ * <p>The operation failed because the referenced object doesn't exist.</p>
175
+ *
176
+ * @throws {@link WAFStaleDataException} (client fault)
177
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
178
+ *
179
+ *
180
+ * @example To update a SQL injection match set
181
+ * ```javascript
182
+ * // The following example deletes a SqlInjectionMatchTuple object (filters) in a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
183
+ * const input = {
184
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
185
+ * "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
186
+ * "Updates": [
187
+ * {
188
+ * "Action": "DELETE",
189
+ * "SqlInjectionMatchTuple": {
190
+ * "FieldToMatch": {
191
+ * "Type": "QUERY_STRING"
192
+ * },
193
+ * "TextTransformation": "URL_DECODE"
194
+ * }
195
+ * }
196
+ * ]
197
+ * };
198
+ * const command = new UpdateSqlInjectionMatchSetCommand(input);
199
+ * const response = await client.send(command);
200
+ * /* response ==
201
+ * {
202
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
203
+ * }
204
+ * *\/
205
+ * // example id: updatesqlinjectionmatchset-1475532094686
206
+ * ```
207
+ *
81
208
  */
82
209
  export declare class UpdateSqlInjectionMatchSetCommand extends $Command<UpdateSqlInjectionMatchSetCommandInput, UpdateSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig> {
83
210
  readonly input: UpdateSqlInjectionMatchSetCommandInput;