@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
@@ -75,6 +75,136 @@ export interface UpdateByteMatchSetCommandOutput extends UpdateByteMatchSetRespo
75
75
  * @see {@link UpdateByteMatchSetCommandOutput} for command's `response` shape.
76
76
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
77
77
  *
78
+ * @throws {@link WAFInternalErrorException} (server fault)
79
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
80
+ *
81
+ * @throws {@link WAFInvalidAccountException} (client fault)
82
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
83
+ *
84
+ * @throws {@link WAFInvalidOperationException} (client fault)
85
+ * <p>The operation failed because there was nothing to do. For example:</p>
86
+ * <ul>
87
+ * <li>
88
+ * <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>
89
+ * </li>
90
+ * <li>
91
+ * <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>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
95
+ * isn't in the specified <code>WebACL</code>.</p>
96
+ * </li>
97
+ * <li>
98
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
99
+ * specified <code>WebACL</code>.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
103
+ * already exists in the specified <code>WebACL</code>.</p>
104
+ * </li>
105
+ * </ul>
106
+ *
107
+ * @throws {@link WAFInvalidParameterException} (client fault)
108
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
109
+ * <ul>
110
+ * <li>
111
+ * <p>You specified an invalid parameter name.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>You specified an invalid value.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
118
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
122
+ * <code>Type</code> other than
123
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
130
+ * <code>Type</code> other than
131
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
135
+ * <code>Type</code> other than
136
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
137
+ * </li>
138
+ * <li>
139
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
140
+ * but no value for <code>Data</code>.</p>
141
+ * </li>
142
+ * <li>
143
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
144
+ * </li>
145
+ * </ul>
146
+ *
147
+ * @throws {@link WAFLimitsExceededException} (client fault)
148
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
149
+ * for an AWS account. For more information, see
150
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
151
+ *
152
+ * @throws {@link WAFNonexistentContainerException} (client fault)
153
+ * <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>
154
+ * <ul>
155
+ * <li>
156
+ * <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>
157
+ * </li>
158
+ * <li>
159
+ * <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>
160
+ * </li>
161
+ * <li>
162
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
163
+ * </li>
164
+ * <li>
165
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
166
+ * that doesn't exist.</p>
167
+ * </li>
168
+ * </ul>
169
+ *
170
+ * @throws {@link WAFNonexistentItemException} (client fault)
171
+ * <p>The operation failed because the referenced object doesn't exist.</p>
172
+ *
173
+ * @throws {@link WAFStaleDataException} (client fault)
174
+ * <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>
175
+ *
176
+ *
177
+ * @example To update a byte match set
178
+ * ```javascript
179
+ * // The following example deletes a ByteMatchTuple object (filters) in an byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
180
+ * const input = {
181
+ * "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
182
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
183
+ * "Updates": [
184
+ * {
185
+ * "Action": "DELETE",
186
+ * "ByteMatchTuple": {
187
+ * "FieldToMatch": {
188
+ * "Data": "referer",
189
+ * "Type": "HEADER"
190
+ * },
191
+ * "PositionalConstraint": "CONTAINS",
192
+ * "TargetString": "badrefer1",
193
+ * "TextTransformation": "NONE"
194
+ * }
195
+ * }
196
+ * ]
197
+ * };
198
+ * const command = new UpdateByteMatchSetCommand(input);
199
+ * const response = await client.send(command);
200
+ * /* response ==
201
+ * {
202
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
203
+ * }
204
+ * *\/
205
+ * // example id: updatebytematchset-1475259074558
206
+ * ```
207
+ *
78
208
  */
79
209
  export declare class UpdateByteMatchSetCommand extends $Command<UpdateByteMatchSetCommandInput, UpdateByteMatchSetCommandOutput, WAFClientResolvedConfig> {
80
210
  readonly input: UpdateByteMatchSetCommandInput;
@@ -67,6 +67,116 @@ export interface UpdateGeoMatchSetCommandOutput extends UpdateGeoMatchSetRespons
67
67
  * @see {@link UpdateGeoMatchSetCommandOutput} for command's `response` shape.
68
68
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
69
69
  *
70
+ * @throws {@link WAFInternalErrorException} (server fault)
71
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
72
+ *
73
+ * @throws {@link WAFInvalidAccountException} (client fault)
74
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
75
+ *
76
+ * @throws {@link WAFInvalidOperationException} (client fault)
77
+ * <p>The operation failed because there was nothing to do. For example:</p>
78
+ * <ul>
79
+ * <li>
80
+ * <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>
81
+ * </li>
82
+ * <li>
83
+ * <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>
84
+ * </li>
85
+ * <li>
86
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
87
+ * isn't in the specified <code>WebACL</code>.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
91
+ * specified <code>WebACL</code>.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
95
+ * already exists in the specified <code>WebACL</code>.</p>
96
+ * </li>
97
+ * </ul>
98
+ *
99
+ * @throws {@link WAFInvalidParameterException} (client fault)
100
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
101
+ * <ul>
102
+ * <li>
103
+ * <p>You specified an invalid parameter name.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>You specified an invalid value.</p>
107
+ * </li>
108
+ * <li>
109
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
110
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
114
+ * <code>Type</code> other than
115
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
122
+ * <code>Type</code> other than
123
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
127
+ * <code>Type</code> other than
128
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
129
+ * </li>
130
+ * <li>
131
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
132
+ * but no value for <code>Data</code>.</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
136
+ * </li>
137
+ * </ul>
138
+ *
139
+ * @throws {@link WAFLimitsExceededException} (client fault)
140
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
141
+ * for an AWS account. For more information, see
142
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
143
+ *
144
+ * @throws {@link WAFNonexistentContainerException} (client fault)
145
+ * <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>
146
+ * <ul>
147
+ * <li>
148
+ * <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>
149
+ * </li>
150
+ * <li>
151
+ * <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>
152
+ * </li>
153
+ * <li>
154
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
155
+ * </li>
156
+ * <li>
157
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
158
+ * that doesn't exist.</p>
159
+ * </li>
160
+ * </ul>
161
+ *
162
+ * @throws {@link WAFNonexistentItemException} (client fault)
163
+ * <p>The operation failed because the referenced object doesn't exist.</p>
164
+ *
165
+ * @throws {@link WAFReferencedItemException} (client fault)
166
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
167
+ * <ul>
168
+ * <li>
169
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
170
+ * </li>
171
+ * <li>
172
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
173
+ * </li>
174
+ * </ul>
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
+ *
70
180
  */
71
181
  export declare class UpdateGeoMatchSetCommand extends $Command<UpdateGeoMatchSetCommandInput, UpdateGeoMatchSetCommandOutput, WAFClientResolvedConfig> {
72
182
  readonly input: UpdateGeoMatchSetCommandInput;
@@ -102,6 +102,142 @@ export interface UpdateIPSetCommandOutput extends UpdateIPSetResponse, __Metadat
102
102
  * @see {@link UpdateIPSetCommandOutput} for command's `response` shape.
103
103
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
104
104
  *
105
+ * @throws {@link WAFInternalErrorException} (server fault)
106
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
107
+ *
108
+ * @throws {@link WAFInvalidAccountException} (client fault)
109
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
110
+ *
111
+ * @throws {@link WAFInvalidOperationException} (client fault)
112
+ * <p>The operation failed because there was nothing to do. For example:</p>
113
+ * <ul>
114
+ * <li>
115
+ * <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>
116
+ * </li>
117
+ * <li>
118
+ * <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>
119
+ * </li>
120
+ * <li>
121
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
122
+ * isn't in the specified <code>WebACL</code>.</p>
123
+ * </li>
124
+ * <li>
125
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
126
+ * specified <code>WebACL</code>.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
130
+ * already exists in the specified <code>WebACL</code>.</p>
131
+ * </li>
132
+ * </ul>
133
+ *
134
+ * @throws {@link WAFInvalidParameterException} (client fault)
135
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
136
+ * <ul>
137
+ * <li>
138
+ * <p>You specified an invalid parameter name.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>You specified an invalid value.</p>
142
+ * </li>
143
+ * <li>
144
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
145
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
149
+ * <code>Type</code> other than
150
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
151
+ * </li>
152
+ * <li>
153
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
154
+ * </li>
155
+ * <li>
156
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
157
+ * <code>Type</code> other than
158
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
159
+ * </li>
160
+ * <li>
161
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
162
+ * <code>Type</code> other than
163
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
164
+ * </li>
165
+ * <li>
166
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
167
+ * but no value for <code>Data</code>.</p>
168
+ * </li>
169
+ * <li>
170
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
171
+ * </li>
172
+ * </ul>
173
+ *
174
+ * @throws {@link WAFLimitsExceededException} (client fault)
175
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
176
+ * for an AWS account. For more information, see
177
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
178
+ *
179
+ * @throws {@link WAFNonexistentContainerException} (client fault)
180
+ * <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>
181
+ * <ul>
182
+ * <li>
183
+ * <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>
184
+ * </li>
185
+ * <li>
186
+ * <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>
187
+ * </li>
188
+ * <li>
189
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
190
+ * </li>
191
+ * <li>
192
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
193
+ * that doesn't exist.</p>
194
+ * </li>
195
+ * </ul>
196
+ *
197
+ * @throws {@link WAFNonexistentItemException} (client fault)
198
+ * <p>The operation failed because the referenced object doesn't exist.</p>
199
+ *
200
+ * @throws {@link WAFReferencedItemException} (client fault)
201
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
202
+ * <ul>
203
+ * <li>
204
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
205
+ * </li>
206
+ * <li>
207
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
208
+ * </li>
209
+ * </ul>
210
+ *
211
+ * @throws {@link WAFStaleDataException} (client fault)
212
+ * <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>
213
+ *
214
+ *
215
+ * @example To update an IP set
216
+ * ```javascript
217
+ * // The following example deletes an IPSetDescriptor object in an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
218
+ * const input = {
219
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
220
+ * "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
221
+ * "Updates": [
222
+ * {
223
+ * "Action": "DELETE",
224
+ * "IPSetDescriptor": {
225
+ * "Type": "IPV4",
226
+ * "Value": "192.0.2.44/32"
227
+ * }
228
+ * }
229
+ * ]
230
+ * };
231
+ * const command = new UpdateIPSetCommand(input);
232
+ * const response = await client.send(command);
233
+ * /* response ==
234
+ * {
235
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
236
+ * }
237
+ * *\/
238
+ * // example id: updateipset-1475259733625
239
+ * ```
240
+ *
105
241
  */
106
242
  export declare class UpdateIPSetCommand extends $Command<UpdateIPSetCommandInput, UpdateIPSetCommandOutput, WAFClientResolvedConfig> {
107
243
  readonly input: UpdateIPSetCommandInput;
@@ -83,6 +83,116 @@ export interface UpdateRateBasedRuleCommandOutput extends UpdateRateBasedRuleRes
83
83
  * @see {@link UpdateRateBasedRuleCommandOutput} for command's `response` shape.
84
84
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
85
85
  *
86
+ * @throws {@link WAFInternalErrorException} (server fault)
87
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
88
+ *
89
+ * @throws {@link WAFInvalidAccountException} (client fault)
90
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
91
+ *
92
+ * @throws {@link WAFInvalidOperationException} (client fault)
93
+ * <p>The operation failed because there was nothing to do. For example:</p>
94
+ * <ul>
95
+ * <li>
96
+ * <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>
97
+ * </li>
98
+ * <li>
99
+ * <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>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
103
+ * isn't in the specified <code>WebACL</code>.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
107
+ * specified <code>WebACL</code>.</p>
108
+ * </li>
109
+ * <li>
110
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
111
+ * already exists in the specified <code>WebACL</code>.</p>
112
+ * </li>
113
+ * </ul>
114
+ *
115
+ * @throws {@link WAFInvalidParameterException} (client fault)
116
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
117
+ * <ul>
118
+ * <li>
119
+ * <p>You specified an invalid parameter name.</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>You specified an invalid value.</p>
123
+ * </li>
124
+ * <li>
125
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
126
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
130
+ * <code>Type</code> other than
131
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
135
+ * </li>
136
+ * <li>
137
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
138
+ * <code>Type</code> other than
139
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
143
+ * <code>Type</code> other than
144
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
145
+ * </li>
146
+ * <li>
147
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
148
+ * but no value for <code>Data</code>.</p>
149
+ * </li>
150
+ * <li>
151
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
152
+ * </li>
153
+ * </ul>
154
+ *
155
+ * @throws {@link WAFLimitsExceededException} (client fault)
156
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
157
+ * for an AWS account. For more information, see
158
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
159
+ *
160
+ * @throws {@link WAFNonexistentContainerException} (client fault)
161
+ * <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>
162
+ * <ul>
163
+ * <li>
164
+ * <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>
165
+ * </li>
166
+ * <li>
167
+ * <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>
168
+ * </li>
169
+ * <li>
170
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
171
+ * </li>
172
+ * <li>
173
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
174
+ * that doesn't exist.</p>
175
+ * </li>
176
+ * </ul>
177
+ *
178
+ * @throws {@link WAFNonexistentItemException} (client fault)
179
+ * <p>The operation failed because the referenced object doesn't exist.</p>
180
+ *
181
+ * @throws {@link WAFReferencedItemException} (client fault)
182
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
183
+ * <ul>
184
+ * <li>
185
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
186
+ * </li>
187
+ * <li>
188
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
189
+ * </li>
190
+ * </ul>
191
+ *
192
+ * @throws {@link WAFStaleDataException} (client fault)
193
+ * <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>
194
+ *
195
+ *
86
196
  */
87
197
  export declare class UpdateRateBasedRuleCommand extends $Command<UpdateRateBasedRuleCommandInput, UpdateRateBasedRuleCommandOutput, WAFClientResolvedConfig> {
88
198
  readonly input: UpdateRateBasedRuleCommandInput;
@@ -71,6 +71,68 @@ export interface UpdateRegexMatchSetCommandOutput extends UpdateRegexMatchSetRes
71
71
  * @see {@link UpdateRegexMatchSetCommandOutput} for command's `response` shape.
72
72
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
73
73
  *
74
+ * @throws {@link WAFDisallowedNameException} (client fault)
75
+ * <p>The name specified is invalid.</p>
76
+ *
77
+ * @throws {@link WAFInternalErrorException} (server fault)
78
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
79
+ *
80
+ * @throws {@link WAFInvalidAccountException} (client fault)
81
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
82
+ *
83
+ * @throws {@link WAFInvalidOperationException} (client fault)
84
+ * <p>The operation failed because there was nothing to do. For example:</p>
85
+ * <ul>
86
+ * <li>
87
+ * <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>
88
+ * </li>
89
+ * <li>
90
+ * <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>
91
+ * </li>
92
+ * <li>
93
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
94
+ * isn't in the specified <code>WebACL</code>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
98
+ * specified <code>WebACL</code>.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
102
+ * already exists in the specified <code>WebACL</code>.</p>
103
+ * </li>
104
+ * </ul>
105
+ *
106
+ * @throws {@link WAFLimitsExceededException} (client fault)
107
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
108
+ * for an AWS account. For more information, see
109
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
110
+ *
111
+ * @throws {@link WAFNonexistentContainerException} (client fault)
112
+ * <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>
113
+ * <ul>
114
+ * <li>
115
+ * <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>
116
+ * </li>
117
+ * <li>
118
+ * <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>
119
+ * </li>
120
+ * <li>
121
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
125
+ * that doesn't exist.</p>
126
+ * </li>
127
+ * </ul>
128
+ *
129
+ * @throws {@link WAFNonexistentItemException} (client fault)
130
+ * <p>The operation failed because the referenced object doesn't exist.</p>
131
+ *
132
+ * @throws {@link WAFStaleDataException} (client fault)
133
+ * <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>
134
+ *
135
+ *
74
136
  */
75
137
  export declare class UpdateRegexMatchSetCommand extends $Command<UpdateRegexMatchSetCommandInput, UpdateRegexMatchSetCommandOutput, WAFClientResolvedConfig> {
76
138
  readonly input: UpdateRegexMatchSetCommandInput;