@aws-sdk/client-wafv2 3.933.0 → 3.935.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,368 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ParameterExceptionField } from "./enums";
3
+ import { DisallowedFeature } from "./models_0";
4
+ import { WAFV2ServiceException as __BaseException } from "./WAFV2ServiceException";
5
+ /**
6
+ * <p>The operation failed because the specified WAF feature isn't supported by the CloudFront pricing plan associated with the web ACL.</p>
7
+ * @public
8
+ */
9
+ export declare class WAFFeatureNotIncludedInPricingPlanException extends __BaseException {
10
+ readonly name: "WAFFeatureNotIncludedInPricingPlanException";
11
+ readonly $fault: "client";
12
+ Message?: string | undefined;
13
+ /**
14
+ * <p>The names of the disallowed WAF features.</p>
15
+ * @public
16
+ */
17
+ DisallowedFeatures?: DisallowedFeature[] | undefined;
18
+ /**
19
+ * @internal
20
+ */
21
+ constructor(opts: __ExceptionOptionType<WAFFeatureNotIncludedInPricingPlanException, __BaseException>);
22
+ }
23
+ /**
24
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
25
+ * problem. Retry your request. </p>
26
+ * @public
27
+ */
28
+ export declare class WAFInternalErrorException extends __BaseException {
29
+ readonly name: "WAFInternalErrorException";
30
+ readonly $fault: "server";
31
+ Message?: string | undefined;
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<WAFInternalErrorException, __BaseException>);
36
+ }
37
+ /**
38
+ * <p>The operation isn't valid. </p>
39
+ * @public
40
+ */
41
+ export declare class WAFInvalidOperationException extends __BaseException {
42
+ readonly name: "WAFInvalidOperationException";
43
+ readonly $fault: "client";
44
+ Message?: string | undefined;
45
+ /**
46
+ * @internal
47
+ */
48
+ constructor(opts: __ExceptionOptionType<WAFInvalidOperationException, __BaseException>);
49
+ }
50
+ /**
51
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
52
+ * example: </p>
53
+ * <ul>
54
+ * <li>
55
+ * <p>You specified a parameter name or value that isn't valid.</p>
56
+ * </li>
57
+ * <li>
58
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
59
+ * can’t be nested. </p>
60
+ * </li>
61
+ * <li>
62
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
63
+ * isn't among the types available at <a>DefaultAction</a>.</p>
64
+ * </li>
65
+ * <li>
66
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
67
+ * with which a web ACL can't be associated.</p>
68
+ * </li>
69
+ * </ul>
70
+ * @public
71
+ */
72
+ export declare class WAFInvalidParameterException extends __BaseException {
73
+ readonly name: "WAFInvalidParameterException";
74
+ readonly $fault: "client";
75
+ /**
76
+ * <p>The settings where the invalid parameter was found. </p>
77
+ * @public
78
+ */
79
+ Field?: ParameterExceptionField | undefined;
80
+ /**
81
+ * <p>The invalid parameter that resulted in the exception. </p>
82
+ * @public
83
+ */
84
+ Parameter?: string | undefined;
85
+ /**
86
+ * <p>Additional information about the exception.</p>
87
+ * @public
88
+ */
89
+ Reason?: string | undefined;
90
+ /**
91
+ * @internal
92
+ */
93
+ constructor(opts: __ExceptionOptionType<WAFInvalidParameterException, __BaseException>);
94
+ }
95
+ /**
96
+ * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
97
+ * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
98
+ * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
99
+ * <i>WAF Developer Guide</i>.</p>
100
+ * @public
101
+ */
102
+ export declare class WAFLimitsExceededException extends __BaseException {
103
+ readonly name: "WAFLimitsExceededException";
104
+ readonly $fault: "client";
105
+ Message?: string | undefined;
106
+ /**
107
+ * <p>Source type for the exception. </p>
108
+ * @public
109
+ */
110
+ SourceType?: string | undefined;
111
+ /**
112
+ * @internal
113
+ */
114
+ constructor(opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>);
115
+ }
116
+ /**
117
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
118
+ * If you've just created a resource that you're using in this operation, you might
119
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
120
+ * for changes to propagate. </p>
121
+ * @public
122
+ */
123
+ export declare class WAFNonexistentItemException extends __BaseException {
124
+ readonly name: "WAFNonexistentItemException";
125
+ readonly $fault: "client";
126
+ Message?: string | undefined;
127
+ /**
128
+ * @internal
129
+ */
130
+ constructor(opts: __ExceptionOptionType<WAFNonexistentItemException, __BaseException>);
131
+ }
132
+ /**
133
+ * <p>WAF couldn’t retrieve a resource that you specified for this operation.
134
+ * If you've just created a resource that you're using in this operation, you might
135
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
136
+ * for changes to propagate. Verify the resource specifications in your request
137
+ * parameters and then retry the operation.</p>
138
+ * @public
139
+ */
140
+ export declare class WAFUnavailableEntityException extends __BaseException {
141
+ readonly name: "WAFUnavailableEntityException";
142
+ readonly $fault: "client";
143
+ Message?: string | undefined;
144
+ /**
145
+ * @internal
146
+ */
147
+ constructor(opts: __ExceptionOptionType<WAFUnavailableEntityException, __BaseException>);
148
+ }
149
+ /**
150
+ * <p>The operation failed because the specified version for the managed rule group has
151
+ * expired. You can retrieve the available versions for the managed rule group by calling
152
+ * <a>ListAvailableManagedRuleGroupVersions</a>.</p>
153
+ * @public
154
+ */
155
+ export declare class WAFExpiredManagedRuleGroupVersionException extends __BaseException {
156
+ readonly name: "WAFExpiredManagedRuleGroupVersionException";
157
+ readonly $fault: "client";
158
+ Message?: string | undefined;
159
+ /**
160
+ * @internal
161
+ */
162
+ constructor(opts: __ExceptionOptionType<WAFExpiredManagedRuleGroupVersionException, __BaseException>);
163
+ }
164
+ /**
165
+ * <p>WAF couldn’t perform the operation because the resource that you requested isn’t
166
+ * valid. Check the resource, and try again.</p>
167
+ * @public
168
+ */
169
+ export declare class WAFInvalidResourceException extends __BaseException {
170
+ readonly name: "WAFInvalidResourceException";
171
+ readonly $fault: "client";
172
+ Message?: string | undefined;
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(opts: __ExceptionOptionType<WAFInvalidResourceException, __BaseException>);
177
+ }
178
+ /**
179
+ * <p>You tried to use a managed rule group that's available by subscription, but you aren't
180
+ * subscribed to it yet. </p>
181
+ * @public
182
+ */
183
+ export declare class WAFSubscriptionNotFoundException extends __BaseException {
184
+ readonly name: "WAFSubscriptionNotFoundException";
185
+ readonly $fault: "client";
186
+ Message?: string | undefined;
187
+ /**
188
+ * @internal
189
+ */
190
+ constructor(opts: __ExceptionOptionType<WAFSubscriptionNotFoundException, __BaseException>);
191
+ }
192
+ /**
193
+ * <p>WAF couldn’t perform the operation because the resource that you tried to save is
194
+ * a duplicate of an existing one.</p>
195
+ * @public
196
+ */
197
+ export declare class WAFDuplicateItemException extends __BaseException {
198
+ readonly name: "WAFDuplicateItemException";
199
+ readonly $fault: "client";
200
+ Message?: string | undefined;
201
+ /**
202
+ * @internal
203
+ */
204
+ constructor(opts: __ExceptionOptionType<WAFDuplicateItemException, __BaseException>);
205
+ }
206
+ /**
207
+ * <p>WAF couldn’t save your changes because you tried to update or delete a resource
208
+ * that has changed since you last retrieved it. Get the resource again, make any changes you
209
+ * need to make to the new copy, and retry your operation. </p>
210
+ * @public
211
+ */
212
+ export declare class WAFOptimisticLockException extends __BaseException {
213
+ readonly name: "WAFOptimisticLockException";
214
+ readonly $fault: "client";
215
+ Message?: string | undefined;
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts: __ExceptionOptionType<WAFOptimisticLockException, __BaseException>);
220
+ }
221
+ /**
222
+ * <p>An error occurred during the tagging operation. Retry your request.</p>
223
+ * @public
224
+ */
225
+ export declare class WAFTagOperationException extends __BaseException {
226
+ readonly name: "WAFTagOperationException";
227
+ readonly $fault: "client";
228
+ Message?: string | undefined;
229
+ /**
230
+ * @internal
231
+ */
232
+ constructor(opts: __ExceptionOptionType<WAFTagOperationException, __BaseException>);
233
+ }
234
+ /**
235
+ * <p>WAF couldn’t perform your tagging operation because of an internal error. Retry
236
+ * your request.</p>
237
+ * @public
238
+ */
239
+ export declare class WAFTagOperationInternalErrorException extends __BaseException {
240
+ readonly name: "WAFTagOperationInternalErrorException";
241
+ readonly $fault: "server";
242
+ Message?: string | undefined;
243
+ /**
244
+ * @internal
245
+ */
246
+ constructor(opts: __ExceptionOptionType<WAFTagOperationInternalErrorException, __BaseException>);
247
+ }
248
+ /**
249
+ * <p>The operation failed because you are inspecting the web request body, headers, or
250
+ * cookies without specifying how to handle oversize components. Rules that inspect the body
251
+ * must either provide an <code>OversizeHandling</code> configuration or they must be preceded
252
+ * by a <code>SizeConstraintStatement</code> that blocks the body content from being too
253
+ * large. Rules that inspect the headers or cookies must provide an
254
+ * <code>OversizeHandling</code> configuration. </p>
255
+ * <p>Provide the handling configuration and retry your operation.</p>
256
+ * <p>Alternately, you can suppress this warning by adding the following tag to the resource
257
+ * that you provide to this operation: <code>Tag</code>
258
+ * (key:<code>WAF:OversizeFieldsHandlingConstraintOptOut</code>,
259
+ * value:<code>true</code>).</p>
260
+ * @public
261
+ */
262
+ export declare class WAFConfigurationWarningException extends __BaseException {
263
+ readonly name: "WAFConfigurationWarningException";
264
+ readonly $fault: "client";
265
+ Message?: string | undefined;
266
+ /**
267
+ * @internal
268
+ */
269
+ constructor(opts: __ExceptionOptionType<WAFConfigurationWarningException, __BaseException>);
270
+ }
271
+ /**
272
+ * <p>WAF couldn’t perform the operation because your resource is being used by another
273
+ * resource or it’s associated with another resource. </p>
274
+ * @public
275
+ */
276
+ export declare class WAFAssociatedItemException extends __BaseException {
277
+ readonly name: "WAFAssociatedItemException";
278
+ readonly $fault: "client";
279
+ Message?: string | undefined;
280
+ /**
281
+ * @internal
282
+ */
283
+ constructor(opts: __ExceptionOptionType<WAFAssociatedItemException, __BaseException>);
284
+ }
285
+ /**
286
+ * <p>The rule that you've named doesn't aggregate solely on the IP address or solely on the forwarded IP address. This call
287
+ * is only available for rate-based rules with an <code>AggregateKeyType</code> setting of <code>IP</code> or <code>FORWARDED_IP</code>.</p>
288
+ * @public
289
+ */
290
+ export declare class WAFUnsupportedAggregateKeyTypeException extends __BaseException {
291
+ readonly name: "WAFUnsupportedAggregateKeyTypeException";
292
+ readonly $fault: "client";
293
+ Message?: string | undefined;
294
+ /**
295
+ * @internal
296
+ */
297
+ constructor(opts: __ExceptionOptionType<WAFUnsupportedAggregateKeyTypeException, __BaseException>);
298
+ }
299
+ /**
300
+ * <p>The operation failed because you don't have the permissions that your logging
301
+ * configuration requires. For information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging web ACL traffic information</a>
302
+ * in the <i>WAF Developer Guide</i>.</p>
303
+ * @public
304
+ */
305
+ export declare class WAFLogDestinationPermissionIssueException extends __BaseException {
306
+ readonly name: "WAFLogDestinationPermissionIssueException";
307
+ readonly $fault: "client";
308
+ Message?: string | undefined;
309
+ /**
310
+ * @internal
311
+ */
312
+ constructor(opts: __ExceptionOptionType<WAFLogDestinationPermissionIssueException, __BaseException>);
313
+ }
314
+ /**
315
+ * <p>WAF is not able to access the service linked role. This can be caused by a
316
+ * previous <code>PutLoggingConfiguration</code> request, which can lock the service linked
317
+ * role for about 20 seconds. Please try your request again. The service linked role can also
318
+ * be locked by a previous <code>DeleteServiceLinkedRole</code> request, which can lock the
319
+ * role for 15 minutes or more. If you recently made a call to
320
+ * <code>DeleteServiceLinkedRole</code>, wait at least 15 minutes and try the request
321
+ * again. If you receive this same exception again, you will have to wait additional time
322
+ * until the role is unlocked.</p>
323
+ * @public
324
+ */
325
+ export declare class WAFServiceLinkedRoleErrorException extends __BaseException {
326
+ readonly name: "WAFServiceLinkedRoleErrorException";
327
+ readonly $fault: "client";
328
+ /**
329
+ * @internal
330
+ */
331
+ constructor(opts: __ExceptionOptionType<WAFServiceLinkedRoleErrorException, __BaseException>);
332
+ }
333
+ /**
334
+ * <p>The operation failed because the specified policy isn't in the proper format. </p>
335
+ * <p>The policy specifications must conform to the following:</p>
336
+ * <ul>
337
+ * <li>
338
+ * <p>The policy must be composed using IAM Policy version 2012-10-17.</p>
339
+ * </li>
340
+ * <li>
341
+ * <p>The policy must include specifications for <code>Effect</code>, <code>Action</code>, and <code>Principal</code>.</p>
342
+ * </li>
343
+ * <li>
344
+ * <p>
345
+ * <code>Effect</code> must specify <code>Allow</code>.</p>
346
+ * </li>
347
+ * <li>
348
+ * <p>
349
+ * <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
350
+ * <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>.
351
+ * WAF rejects any extra actions or wildcard actions in the policy.</p>
352
+ * </li>
353
+ * <li>
354
+ * <p>The policy must not include a <code>Resource</code> parameter.</p>
355
+ * </li>
356
+ * </ul>
357
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">IAM Policies</a>. </p>
358
+ * @public
359
+ */
360
+ export declare class WAFInvalidPermissionPolicyException extends __BaseException {
361
+ readonly name: "WAFInvalidPermissionPolicyException";
362
+ readonly $fault: "client";
363
+ Message?: string | undefined;
364
+ /**
365
+ * @internal
366
+ */
367
+ constructor(opts: __ExceptionOptionType<WAFInvalidPermissionPolicyException, __BaseException>);
368
+ }