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