@aws-sdk/client-waf 3.934.0 → 3.936.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.
@@ -0,0 +1,392 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { MigrationErrorType, ParameterExceptionField, ParameterExceptionReason } from "./enums";
3
+ import { WAFServiceException as __BaseException } from "./WAFServiceException";
4
+ /**
5
+ * <p>The name specified is invalid.</p>
6
+ * @public
7
+ */
8
+ export declare class WAFDisallowedNameException extends __BaseException {
9
+ readonly name: "WAFDisallowedNameException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<WAFDisallowedNameException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
18
+ * @public
19
+ */
20
+ export declare class WAFInternalErrorException extends __BaseException {
21
+ readonly name: "WAFInternalErrorException";
22
+ readonly $fault: "server";
23
+ /**
24
+ * @internal
25
+ */
26
+ constructor(opts: __ExceptionOptionType<WAFInternalErrorException, __BaseException>);
27
+ }
28
+ /**
29
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
30
+ * @public
31
+ */
32
+ export declare class WAFInvalidAccountException extends __BaseException {
33
+ readonly name: "WAFInvalidAccountException";
34
+ readonly $fault: "client";
35
+ /**
36
+ * @internal
37
+ */
38
+ constructor(opts: __ExceptionOptionType<WAFInvalidAccountException, __BaseException>);
39
+ }
40
+ /**
41
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
42
+ * <ul>
43
+ * <li>
44
+ * <p>You specified an invalid parameter name.</p>
45
+ * </li>
46
+ * <li>
47
+ * <p>You specified an invalid value.</p>
48
+ * </li>
49
+ * <li>
50
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
51
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
52
+ * </li>
53
+ * <li>
54
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
55
+ * <code>Type</code> other than
56
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
60
+ * </li>
61
+ * <li>
62
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
63
+ * <code>Type</code> other than
64
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
68
+ * <code>Type</code> other than
69
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
73
+ * but no value for <code>Data</code>.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
77
+ * </li>
78
+ * </ul>
79
+ * @public
80
+ */
81
+ export declare class WAFInvalidParameterException extends __BaseException {
82
+ readonly name: "WAFInvalidParameterException";
83
+ readonly $fault: "client";
84
+ field?: ParameterExceptionField | undefined;
85
+ parameter?: string | undefined;
86
+ reason?: ParameterExceptionReason | undefined;
87
+ /**
88
+ * @internal
89
+ */
90
+ constructor(opts: __ExceptionOptionType<WAFInvalidParameterException, __BaseException>);
91
+ }
92
+ /**
93
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
94
+ * for an AWS account. For more information, see
95
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
96
+ * @public
97
+ */
98
+ export declare class WAFLimitsExceededException extends __BaseException {
99
+ readonly name: "WAFLimitsExceededException";
100
+ readonly $fault: "client";
101
+ /**
102
+ * @internal
103
+ */
104
+ constructor(opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>);
105
+ }
106
+ /**
107
+ * <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>
108
+ * @public
109
+ */
110
+ export declare class WAFStaleDataException extends __BaseException {
111
+ readonly name: "WAFStaleDataException";
112
+ readonly $fault: "client";
113
+ /**
114
+ * @internal
115
+ */
116
+ constructor(opts: __ExceptionOptionType<WAFStaleDataException, __BaseException>);
117
+ }
118
+ /**
119
+ * <p></p>
120
+ * @public
121
+ */
122
+ export declare class WAFBadRequestException extends __BaseException {
123
+ readonly name: "WAFBadRequestException";
124
+ readonly $fault: "client";
125
+ /**
126
+ * @internal
127
+ */
128
+ constructor(opts: __ExceptionOptionType<WAFBadRequestException, __BaseException>);
129
+ }
130
+ /**
131
+ * <p></p>
132
+ * @public
133
+ */
134
+ export declare class WAFTagOperationException extends __BaseException {
135
+ readonly name: "WAFTagOperationException";
136
+ readonly $fault: "client";
137
+ /**
138
+ * @internal
139
+ */
140
+ constructor(opts: __ExceptionOptionType<WAFTagOperationException, __BaseException>);
141
+ }
142
+ /**
143
+ * <p></p>
144
+ * @public
145
+ */
146
+ export declare class WAFTagOperationInternalErrorException extends __BaseException {
147
+ readonly name: "WAFTagOperationInternalErrorException";
148
+ readonly $fault: "server";
149
+ /**
150
+ * @internal
151
+ */
152
+ constructor(opts: __ExceptionOptionType<WAFTagOperationInternalErrorException, __BaseException>);
153
+ }
154
+ /**
155
+ * <p>The operation failed due to a problem with the migration. The failure cause is provided in the exception, in the <code>MigrationErrorType</code>: </p>
156
+ * <ul>
157
+ * <li>
158
+ * <p>
159
+ * <code>ENTITY_NOT_SUPPORTED</code> - The web ACL has an unsupported entity but the <code>IgnoreUnsupportedType</code> is not set to true.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>
163
+ * <code>ENTITY_NOT_FOUND</code> - The web ACL doesn't exist. </p>
164
+ * </li>
165
+ * <li>
166
+ * <p>
167
+ * <code>S3_BUCKET_NO_PERMISSION</code> - You don't have permission to perform the <code>PutObject</code> action to the specified Amazon S3 bucket.</p>
168
+ * </li>
169
+ * <li>
170
+ * <p>
171
+ * <code>S3_BUCKET_NOT_ACCESSIBLE</code> - The bucket policy doesn't allow AWS WAF to perform the <code>PutObject</code> action in the bucket.</p>
172
+ * </li>
173
+ * <li>
174
+ * <p>
175
+ * <code>S3_BUCKET_NOT_FOUND</code> - The S3 bucket doesn't exist. </p>
176
+ * </li>
177
+ * <li>
178
+ * <p>
179
+ * <code>S3_BUCKET_INVALID_REGION</code> - The S3 bucket is not in the same Region as the web ACL.</p>
180
+ * </li>
181
+ * <li>
182
+ * <p>
183
+ * <code>S3_INTERNAL_ERROR</code> - AWS WAF failed to create the template in the S3 bucket for another reason.</p>
184
+ * </li>
185
+ * </ul>
186
+ * @public
187
+ */
188
+ export declare class WAFEntityMigrationException extends __BaseException {
189
+ readonly name: "WAFEntityMigrationException";
190
+ readonly $fault: "client";
191
+ MigrationErrorType?: MigrationErrorType | undefined;
192
+ MigrationErrorReason?: string | undefined;
193
+ /**
194
+ * @internal
195
+ */
196
+ constructor(opts: __ExceptionOptionType<WAFEntityMigrationException, __BaseException>);
197
+ }
198
+ /**
199
+ * <p>The operation failed because there was nothing to do. For example:</p>
200
+ * <ul>
201
+ * <li>
202
+ * <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>
203
+ * </li>
204
+ * <li>
205
+ * <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>
206
+ * </li>
207
+ * <li>
208
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
209
+ * isn't in the specified <code>WebACL</code>.</p>
210
+ * </li>
211
+ * <li>
212
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
213
+ * specified <code>WebACL</code>.</p>
214
+ * </li>
215
+ * <li>
216
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
217
+ * already exists in the specified <code>WebACL</code>.</p>
218
+ * </li>
219
+ * </ul>
220
+ * @public
221
+ */
222
+ export declare class WAFInvalidOperationException extends __BaseException {
223
+ readonly name: "WAFInvalidOperationException";
224
+ readonly $fault: "client";
225
+ /**
226
+ * @internal
227
+ */
228
+ constructor(opts: __ExceptionOptionType<WAFInvalidOperationException, __BaseException>);
229
+ }
230
+ /**
231
+ * <p>The operation failed because the referenced object doesn't exist.</p>
232
+ * @public
233
+ */
234
+ export declare class WAFNonexistentItemException extends __BaseException {
235
+ readonly name: "WAFNonexistentItemException";
236
+ readonly $fault: "client";
237
+ /**
238
+ * @internal
239
+ */
240
+ constructor(opts: __ExceptionOptionType<WAFNonexistentItemException, __BaseException>);
241
+ }
242
+ /**
243
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
244
+ * <ul>
245
+ * <li>
246
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
247
+ * </li>
248
+ * <li>
249
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
250
+ * or other predicates.</p>
251
+ * </li>
252
+ * <li>
253
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
254
+ * </li>
255
+ * <li>
256
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
257
+ * </li>
258
+ * </ul>
259
+ * @public
260
+ */
261
+ export declare class WAFNonEmptyEntityException extends __BaseException {
262
+ readonly name: "WAFNonEmptyEntityException";
263
+ readonly $fault: "client";
264
+ /**
265
+ * @internal
266
+ */
267
+ constructor(opts: __ExceptionOptionType<WAFNonEmptyEntityException, __BaseException>);
268
+ }
269
+ /**
270
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
271
+ * <ul>
272
+ * <li>
273
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
274
+ * </li>
275
+ * <li>
276
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
277
+ * </li>
278
+ * </ul>
279
+ * @public
280
+ */
281
+ export declare class WAFReferencedItemException extends __BaseException {
282
+ readonly name: "WAFReferencedItemException";
283
+ readonly $fault: "client";
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts: __ExceptionOptionType<WAFReferencedItemException, __BaseException>);
288
+ }
289
+ /**
290
+ * <p>AWS WAF is not able to access the service linked role. This can be caused by a previous <code>PutLoggingConfiguration</code> request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous <code>DeleteServiceLinkedRole</code> request, which can lock the role for 15 minutes or more. If you recently made a <code>DeleteServiceLinkedRole</code>, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.</p>
291
+ * @public
292
+ */
293
+ export declare class WAFServiceLinkedRoleErrorException extends __BaseException {
294
+ readonly name: "WAFServiceLinkedRoleErrorException";
295
+ readonly $fault: "client";
296
+ /**
297
+ * @internal
298
+ */
299
+ constructor(opts: __ExceptionOptionType<WAFServiceLinkedRoleErrorException, __BaseException>);
300
+ }
301
+ /**
302
+ * <p>The operation failed because the specified policy is not in the proper format. </p>
303
+ * <p>The policy is subject to the following restrictions:</p>
304
+ * <ul>
305
+ * <li>
306
+ * <p>You can attach only one policy with each <code>PutPermissionPolicy</code> request.</p>
307
+ * </li>
308
+ * <li>
309
+ * <p>The policy must include an <code>Effect</code>, <code>Action</code> and <code>Principal</code>. </p>
310
+ * </li>
311
+ * <li>
312
+ *
313
+ * <p>
314
+ * <code>Effect</code> must specify <code>Allow</code>.</p>
315
+ * </li>
316
+ * <li>
317
+ * <p>The <code>Action</code> in the policy must be <code>waf:UpdateWebACL</code>, <code>waf-regional:UpdateWebACL</code>, <code>waf:GetRuleGroup</code> and <code>waf-regional:GetRuleGroup</code> . Any extra or wildcard actions in the policy will be rejected.</p>
318
+ * </li>
319
+ * <li>
320
+ * <p>The policy cannot include a <code>Resource</code> parameter.</p>
321
+ * </li>
322
+ * <li>
323
+ * <p>The ARN in the request must be a valid WAF RuleGroup ARN and the RuleGroup must exist in the same region.</p>
324
+ * </li>
325
+ * <li>
326
+ * <p>The user making the request must be the owner of the RuleGroup.</p>
327
+ * </li>
328
+ * <li>
329
+ * <p>Your policy must be composed using IAM Policy version 2012-10-17.</p>
330
+ * </li>
331
+ * </ul>
332
+ * @public
333
+ */
334
+ export declare class WAFInvalidPermissionPolicyException extends __BaseException {
335
+ readonly name: "WAFInvalidPermissionPolicyException";
336
+ readonly $fault: "client";
337
+ /**
338
+ * @internal
339
+ */
340
+ constructor(opts: __ExceptionOptionType<WAFInvalidPermissionPolicyException, __BaseException>);
341
+ }
342
+ /**
343
+ * <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>
344
+ * <ul>
345
+ * <li>
346
+ * <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>
347
+ * </li>
348
+ * <li>
349
+ * <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>
350
+ * </li>
351
+ * <li>
352
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
353
+ * </li>
354
+ * <li>
355
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
356
+ * that doesn't exist.</p>
357
+ * </li>
358
+ * </ul>
359
+ * @public
360
+ */
361
+ export declare class WAFNonexistentContainerException extends __BaseException {
362
+ readonly name: "WAFNonexistentContainerException";
363
+ readonly $fault: "client";
364
+ /**
365
+ * @internal
366
+ */
367
+ constructor(opts: __ExceptionOptionType<WAFNonexistentContainerException, __BaseException>);
368
+ }
369
+ /**
370
+ * <p>The regular expression (regex) you specified in <code>RegexPatternString</code> is invalid.</p>
371
+ * @public
372
+ */
373
+ export declare class WAFInvalidRegexPatternException extends __BaseException {
374
+ readonly name: "WAFInvalidRegexPatternException";
375
+ readonly $fault: "client";
376
+ /**
377
+ * @internal
378
+ */
379
+ constructor(opts: __ExceptionOptionType<WAFInvalidRegexPatternException, __BaseException>);
380
+ }
381
+ /**
382
+ * <p>The specified subscription does not exist.</p>
383
+ * @public
384
+ */
385
+ export declare class WAFSubscriptionNotFoundException extends __BaseException {
386
+ readonly name: "WAFSubscriptionNotFoundException";
387
+ readonly $fault: "client";
388
+ /**
389
+ * @internal
390
+ */
391
+ constructor(opts: __ExceptionOptionType<WAFSubscriptionNotFoundException, __BaseException>);
392
+ }