@aws-sdk/client-waf-regional 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 (82) hide show
  1. package/dist-types/commands/AssociateWebACLCommand.d.ts +54 -0
  2. package/dist-types/commands/CreateByteMatchSetCommand.d.ts +58 -0
  3. package/dist-types/commands/CreateGeoMatchSetCommand.d.ts +58 -0
  4. package/dist-types/commands/CreateIPSetCommand.d.ts +85 -0
  5. package/dist-types/commands/CreateRateBasedRuleCommand.d.ts +64 -0
  6. package/dist-types/commands/CreateRegexMatchSetCommand.d.ts +15 -0
  7. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +15 -0
  8. package/dist-types/commands/CreateRuleCommand.d.ts +94 -0
  9. package/dist-types/commands/CreateRuleGroupCommand.d.ts +24 -0
  10. package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +89 -0
  11. package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +87 -0
  12. package/dist-types/commands/CreateWebACLCommand.d.ts +105 -0
  13. package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +103 -0
  14. package/dist-types/commands/CreateXssMatchSetCommand.d.ts +87 -0
  15. package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +59 -0
  16. package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +42 -0
  17. package/dist-types/commands/DeleteIPSetCommand.d.ts +59 -0
  18. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +10 -0
  19. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +10 -0
  20. package/dist-types/commands/DeleteRateBasedRuleCommand.d.ts +48 -0
  21. package/dist-types/commands/DeleteRegexMatchSetCommand.d.ts +42 -0
  22. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +42 -0
  23. package/dist-types/commands/DeleteRuleCommand.d.ts +65 -0
  24. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +68 -0
  25. package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +59 -0
  26. package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +59 -0
  27. package/dist-types/commands/DeleteWebACLCommand.d.ts +65 -0
  28. package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +59 -0
  29. package/dist-types/commands/DisassociateWebACLCommand.d.ts +50 -0
  30. package/dist-types/commands/GetByteMatchSetCommand.d.ts +40 -0
  31. package/dist-types/commands/GetChangeTokenCommand.d.ts +18 -0
  32. package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +23 -0
  33. package/dist-types/commands/GetGeoMatchSetCommand.d.ts +10 -0
  34. package/dist-types/commands/GetIPSetCommand.d.ts +35 -0
  35. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +7 -0
  36. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +7 -0
  37. package/dist-types/commands/GetRateBasedRuleCommand.d.ts +10 -0
  38. package/dist-types/commands/GetRateBasedRuleManagedKeysCommand.d.ts +50 -0
  39. package/dist-types/commands/GetRegexMatchSetCommand.d.ts +10 -0
  40. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +10 -0
  41. package/dist-types/commands/GetRuleCommand.d.ts +37 -0
  42. package/dist-types/commands/GetRuleGroupCommand.d.ts +7 -0
  43. package/dist-types/commands/GetSampledRequestsCommand.d.ts +52 -0
  44. package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +39 -0
  45. package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +37 -0
  46. package/dist-types/commands/GetWebACLCommand.d.ts +42 -0
  47. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +54 -0
  48. package/dist-types/commands/GetXssMatchSetCommand.d.ts +37 -0
  49. package/dist-types/commands/ListActivatedRulesInRuleGroupCommand.d.ts +47 -0
  50. package/dist-types/commands/ListByteMatchSetsCommand.d.ts +7 -0
  51. package/dist-types/commands/ListGeoMatchSetsCommand.d.ts +7 -0
  52. package/dist-types/commands/ListIPSetsCommand.d.ts +28 -0
  53. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +47 -0
  54. package/dist-types/commands/ListRateBasedRulesCommand.d.ts +7 -0
  55. package/dist-types/commands/ListRegexMatchSetsCommand.d.ts +7 -0
  56. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +7 -0
  57. package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +50 -0
  58. package/dist-types/commands/ListRuleGroupsCommand.d.ts +4 -0
  59. package/dist-types/commands/ListRulesCommand.d.ts +28 -0
  60. package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +28 -0
  61. package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +28 -0
  62. package/dist-types/commands/ListSubscribedRuleGroupsCommand.d.ts +7 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +56 -0
  64. package/dist-types/commands/ListWebACLsCommand.d.ts +28 -0
  65. package/dist-types/commands/ListXssMatchSetsCommand.d.ts +28 -0
  66. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +13 -0
  67. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +42 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +61 -0
  69. package/dist-types/commands/UntagResourceCommand.d.ts +56 -0
  70. package/dist-types/commands/UpdateByteMatchSetCommand.d.ts +130 -0
  71. package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +110 -0
  72. package/dist-types/commands/UpdateIPSetCommand.d.ts +136 -0
  73. package/dist-types/commands/UpdateRateBasedRuleCommand.d.ts +110 -0
  74. package/dist-types/commands/UpdateRegexMatchSetCommand.d.ts +62 -0
  75. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +62 -0
  76. package/dist-types/commands/UpdateRuleCommand.d.ts +137 -0
  77. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +96 -0
  78. package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +140 -0
  79. package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +127 -0
  80. package/dist-types/commands/UpdateWebACLCommand.d.ts +145 -0
  81. package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +127 -0
  82. package/package.json +29 -29
@@ -79,6 +79,146 @@ export interface UpdateSizeConstraintSetCommandOutput extends UpdateSizeConstrai
79
79
  * @see {@link UpdateSizeConstraintSetCommandOutput} for command's `response` shape.
80
80
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient'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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient'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, WAFRegionalClientResolvedConfig> {
83
210
  readonly input: UpdateSqlInjectionMatchSetCommandInput;
@@ -108,6 +108,151 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
108
108
  * @see {@link UpdateWebACLCommandOutput} for command's `response` shape.
109
109
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
110
110
  *
111
+ * @throws {@link WAFInternalErrorException} (server fault)
112
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
113
+ *
114
+ * @throws {@link WAFInvalidAccountException} (client fault)
115
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
116
+ *
117
+ * @throws {@link WAFInvalidOperationException} (client fault)
118
+ * <p>The operation failed because there was nothing to do. For example:</p>
119
+ * <ul>
120
+ * <li>
121
+ * <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>
122
+ * </li>
123
+ * <li>
124
+ * <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>
125
+ * </li>
126
+ * <li>
127
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
128
+ * isn't in the specified <code>WebACL</code>.</p>
129
+ * </li>
130
+ * <li>
131
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
132
+ * specified <code>WebACL</code>.</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
136
+ * already exists in the specified <code>WebACL</code>.</p>
137
+ * </li>
138
+ * </ul>
139
+ *
140
+ * @throws {@link WAFInvalidParameterException} (client fault)
141
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
142
+ * <ul>
143
+ * <li>
144
+ * <p>You specified an invalid parameter name.</p>
145
+ * </li>
146
+ * <li>
147
+ * <p>You specified an invalid value.</p>
148
+ * </li>
149
+ * <li>
150
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
151
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
152
+ * </li>
153
+ * <li>
154
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
155
+ * <code>Type</code> other than
156
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
157
+ * </li>
158
+ * <li>
159
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
163
+ * <code>Type</code> other than
164
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
165
+ * </li>
166
+ * <li>
167
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
168
+ * <code>Type</code> other than
169
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
170
+ * </li>
171
+ * <li>
172
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
173
+ * but no value for <code>Data</code>.</p>
174
+ * </li>
175
+ * <li>
176
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
177
+ * </li>
178
+ * </ul>
179
+ *
180
+ * @throws {@link WAFLimitsExceededException} (client fault)
181
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
182
+ * for an AWS account. For more information, see
183
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
184
+ *
185
+ * @throws {@link WAFNonexistentContainerException} (client fault)
186
+ * <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>
187
+ * <ul>
188
+ * <li>
189
+ * <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>
190
+ * </li>
191
+ * <li>
192
+ * <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>
193
+ * </li>
194
+ * <li>
195
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
196
+ * </li>
197
+ * <li>
198
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
199
+ * that doesn't exist.</p>
200
+ * </li>
201
+ * </ul>
202
+ *
203
+ * @throws {@link WAFNonexistentItemException} (client fault)
204
+ * <p>The operation failed because the referenced object doesn't exist.</p>
205
+ *
206
+ * @throws {@link WAFReferencedItemException} (client fault)
207
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
208
+ * <ul>
209
+ * <li>
210
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
211
+ * </li>
212
+ * <li>
213
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
214
+ * </li>
215
+ * </ul>
216
+ *
217
+ * @throws {@link WAFStaleDataException} (client fault)
218
+ * <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>
219
+ *
220
+ * @throws {@link WAFSubscriptionNotFoundException} (client fault)
221
+ * <p>The specified subscription does not exist.</p>
222
+ *
223
+ *
224
+ * @example To update a Web ACL
225
+ * ```javascript
226
+ * // The following example deletes an ActivatedRule object in a WebACL with the ID webacl-1472061481310.
227
+ * const input = {
228
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
229
+ * "DefaultAction": {
230
+ * "Type": "ALLOW"
231
+ * },
232
+ * "Updates": [
233
+ * {
234
+ * "Action": "DELETE",
235
+ * "ActivatedRule": {
236
+ * "Action": {
237
+ * "Type": "ALLOW"
238
+ * },
239
+ * "Priority": 1,
240
+ * "RuleId": "WAFRule-1-Example"
241
+ * }
242
+ * }
243
+ * ],
244
+ * "WebACLId": "webacl-1472061481310"
245
+ * };
246
+ * const command = new UpdateWebACLCommand(input);
247
+ * const response = await client.send(command);
248
+ * /* response ==
249
+ * {
250
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
251
+ * }
252
+ * *\/
253
+ * // example id: updatewebacl-1475533627385
254
+ * ```
255
+ *
111
256
  */
112
257
  export declare class UpdateWebACLCommand extends $Command<UpdateWebACLCommandInput, UpdateWebACLCommandOutput, WAFRegionalClientResolvedConfig> {
113
258
  readonly input: UpdateWebACLCommandInput;
@@ -80,6 +80,133 @@ export interface UpdateXssMatchSetCommandOutput extends UpdateXssMatchSetRespons
80
80
  * @see {@link UpdateXssMatchSetCommandOutput} for command's `response` shape.
81
81
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
82
82
  *
83
+ * @throws {@link WAFInternalErrorException} (server fault)
84
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
85
+ *
86
+ * @throws {@link WAFInvalidAccountException} (client fault)
87
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
88
+ *
89
+ * @throws {@link WAFInvalidOperationException} (client fault)
90
+ * <p>The operation failed because there was nothing to do. For example:</p>
91
+ * <ul>
92
+ * <li>
93
+ * <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>
94
+ * </li>
95
+ * <li>
96
+ * <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>
97
+ * </li>
98
+ * <li>
99
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
100
+ * isn't in the specified <code>WebACL</code>.</p>
101
+ * </li>
102
+ * <li>
103
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
104
+ * specified <code>WebACL</code>.</p>
105
+ * </li>
106
+ * <li>
107
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
108
+ * already exists in the specified <code>WebACL</code>.</p>
109
+ * </li>
110
+ * </ul>
111
+ *
112
+ * @throws {@link WAFInvalidParameterException} (client fault)
113
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
114
+ * <ul>
115
+ * <li>
116
+ * <p>You specified an invalid parameter name.</p>
117
+ * </li>
118
+ * <li>
119
+ * <p>You specified an invalid value.</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
123
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
127
+ * <code>Type</code> other than
128
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
129
+ * </li>
130
+ * <li>
131
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
135
+ * <code>Type</code> other than
136
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
137
+ * </li>
138
+ * <li>
139
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
140
+ * <code>Type</code> other than
141
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
142
+ * </li>
143
+ * <li>
144
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
145
+ * but no value for <code>Data</code>.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
149
+ * </li>
150
+ * </ul>
151
+ *
152
+ * @throws {@link WAFLimitsExceededException} (client fault)
153
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
154
+ * for an AWS account. For more information, see
155
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
156
+ *
157
+ * @throws {@link WAFNonexistentContainerException} (client fault)
158
+ * <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>
159
+ * <ul>
160
+ * <li>
161
+ * <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>
162
+ * </li>
163
+ * <li>
164
+ * <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>
165
+ * </li>
166
+ * <li>
167
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
168
+ * </li>
169
+ * <li>
170
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
171
+ * that doesn't exist.</p>
172
+ * </li>
173
+ * </ul>
174
+ *
175
+ * @throws {@link WAFNonexistentItemException} (client fault)
176
+ * <p>The operation failed because the referenced object doesn't exist.</p>
177
+ *
178
+ * @throws {@link WAFStaleDataException} (client fault)
179
+ * <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>
180
+ *
181
+ *
182
+ * @example To update an XSS match set
183
+ * ```javascript
184
+ * // The following example deletes an XssMatchTuple object (filters) in an XssMatchSet with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
185
+ * const input = {
186
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
187
+ * "Updates": [
188
+ * {
189
+ * "Action": "DELETE",
190
+ * "XssMatchTuple": {
191
+ * "FieldToMatch": {
192
+ * "Type": "QUERY_STRING"
193
+ * },
194
+ * "TextTransformation": "URL_DECODE"
195
+ * }
196
+ * }
197
+ * ],
198
+ * "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
199
+ * };
200
+ * const command = new UpdateXssMatchSetCommand(input);
201
+ * const response = await client.send(command);
202
+ * /* response ==
203
+ * {
204
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
205
+ * }
206
+ * *\/
207
+ * // example id: updatexssmatchset-1475534098881
208
+ * ```
209
+ *
83
210
  */
84
211
  export declare class UpdateXssMatchSetCommand extends $Command<UpdateXssMatchSetCommandInput, UpdateXssMatchSetCommandOutput, WAFRegionalClientResolvedConfig> {
85
212
  readonly input: UpdateXssMatchSetCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-waf-regional",
3
3
  "description": "AWS SDK for JavaScript Waf Regional Client for Node.js, Browser and React Native",
4
- "version": "3.288.0",
4
+ "version": "3.290.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.288.0",
24
- "@aws-sdk/config-resolver": "3.287.0",
25
- "@aws-sdk/credential-provider-node": "3.288.0",
26
- "@aws-sdk/fetch-http-handler": "3.282.0",
27
- "@aws-sdk/hash-node": "3.272.0",
28
- "@aws-sdk/invalid-dependency": "3.272.0",
29
- "@aws-sdk/middleware-content-length": "3.282.0",
30
- "@aws-sdk/middleware-endpoint": "3.282.0",
31
- "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.288.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.287.0",
35
- "@aws-sdk/middleware-serde": "3.272.0",
36
- "@aws-sdk/middleware-signing": "3.282.0",
37
- "@aws-sdk/middleware-stack": "3.272.0",
38
- "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.287.0",
40
- "@aws-sdk/node-http-handler": "3.282.0",
41
- "@aws-sdk/protocol-http": "3.282.0",
42
- "@aws-sdk/smithy-client": "3.279.0",
43
- "@aws-sdk/types": "3.272.0",
44
- "@aws-sdk/url-parser": "3.272.0",
23
+ "@aws-sdk/client-sts": "3.290.0",
24
+ "@aws-sdk/config-resolver": "3.290.0",
25
+ "@aws-sdk/credential-provider-node": "3.290.0",
26
+ "@aws-sdk/fetch-http-handler": "3.290.0",
27
+ "@aws-sdk/hash-node": "3.290.0",
28
+ "@aws-sdk/invalid-dependency": "3.290.0",
29
+ "@aws-sdk/middleware-content-length": "3.290.0",
30
+ "@aws-sdk/middleware-endpoint": "3.290.0",
31
+ "@aws-sdk/middleware-host-header": "3.290.0",
32
+ "@aws-sdk/middleware-logger": "3.290.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.290.0",
34
+ "@aws-sdk/middleware-retry": "3.290.0",
35
+ "@aws-sdk/middleware-serde": "3.290.0",
36
+ "@aws-sdk/middleware-signing": "3.290.0",
37
+ "@aws-sdk/middleware-stack": "3.290.0",
38
+ "@aws-sdk/middleware-user-agent": "3.290.0",
39
+ "@aws-sdk/node-config-provider": "3.290.0",
40
+ "@aws-sdk/node-http-handler": "3.290.0",
41
+ "@aws-sdk/protocol-http": "3.290.0",
42
+ "@aws-sdk/smithy-client": "3.290.0",
43
+ "@aws-sdk/types": "3.290.0",
44
+ "@aws-sdk/url-parser": "3.290.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
- "@aws-sdk/util-endpoints": "3.272.0",
51
- "@aws-sdk/util-retry": "3.272.0",
52
- "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.287.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.290.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.290.0",
50
+ "@aws-sdk/util-endpoints": "3.290.0",
51
+ "@aws-sdk/util-retry": "3.290.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.290.0",
53
+ "@aws-sdk/util-user-agent-node": "3.290.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1"
56
56
  },