@aws-sdk/client-wafv2 3.422.0 → 3.425.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 (72) hide show
  1. package/dist-types/WAFV2Client.d.ts +2 -0
  2. package/dist-types/ts3.4/WAFV2.d.ts +918 -438
  3. package/dist-types/ts3.4/WAFV2Client.d.ts +436 -277
  4. package/dist-types/ts3.4/commands/AssociateWebACLCommand.d.ts +38 -118
  5. package/dist-types/ts3.4/commands/CheckCapacityCommand.d.ts +38 -1093
  6. package/dist-types/ts3.4/commands/CreateAPIKeyCommand.d.ts +35 -115
  7. package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +35 -144
  8. package/dist-types/ts3.4/commands/CreateRegexPatternSetCommand.d.ts +42 -143
  9. package/dist-types/ts3.4/commands/CreateRuleGroupCommand.d.ts +38 -1116
  10. package/dist-types/ts3.4/commands/CreateWebACLCommand.d.ts +35 -1145
  11. package/dist-types/ts3.4/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +42 -115
  12. package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +35 -124
  13. package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +42 -110
  14. package/dist-types/ts3.4/commands/DeletePermissionPolicyCommand.d.ts +42 -103
  15. package/dist-types/ts3.4/commands/DeleteRegexPatternSetCommand.d.ts +42 -124
  16. package/dist-types/ts3.4/commands/DeleteRuleGroupCommand.d.ts +38 -124
  17. package/dist-types/ts3.4/commands/DeleteWebACLCommand.d.ts +35 -158
  18. package/dist-types/ts3.4/commands/DescribeAllManagedProductsCommand.d.ts +42 -92
  19. package/dist-types/ts3.4/commands/DescribeManagedProductsByVendorCommand.d.ts +42 -114
  20. package/dist-types/ts3.4/commands/DescribeManagedRuleGroupCommand.d.ts +42 -191
  21. package/dist-types/ts3.4/commands/DisassociateWebACLCommand.d.ts +39 -109
  22. package/dist-types/ts3.4/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +42 -110
  23. package/dist-types/ts3.4/commands/GetDecryptedAPIKeyCommand.d.ts +39 -112
  24. package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +35 -119
  25. package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +42 -192
  26. package/dist-types/ts3.4/commands/GetManagedRuleSetCommand.d.ts +39 -131
  27. package/dist-types/ts3.4/commands/GetMobileSdkReleaseCommand.d.ts +39 -121
  28. package/dist-types/ts3.4/commands/GetPermissionPolicyCommand.d.ts +39 -105
  29. package/dist-types/ts3.4/commands/GetRateBasedStatementManagedKeysCommand.d.ts +42 -142
  30. package/dist-types/ts3.4/commands/GetRegexPatternSetCommand.d.ts +39 -120
  31. package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +35 -1088
  32. package/dist-types/ts3.4/commands/GetSampledRequestsCommand.d.ts +39 -168
  33. package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +35 -1283
  34. package/dist-types/ts3.4/commands/GetWebACLForResourceCommand.d.ts +42 -1286
  35. package/dist-types/ts3.4/commands/ListAPIKeysCommand.d.ts +35 -121
  36. package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +42 -118
  37. package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupsCommand.d.ts +42 -113
  38. package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +35 -113
  39. package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +42 -191
  40. package/dist-types/ts3.4/commands/ListManagedRuleSetsCommand.d.ts +39 -117
  41. package/dist-types/ts3.4/commands/ListMobileSdkReleasesCommand.d.ts +42 -112
  42. package/dist-types/ts3.4/commands/ListRegexPatternSetsCommand.d.ts +42 -113
  43. package/dist-types/ts3.4/commands/ListResourcesForWebACLCommand.d.ts +42 -112
  44. package/dist-types/ts3.4/commands/ListRuleGroupsCommand.d.ts +38 -113
  45. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -132
  46. package/dist-types/ts3.4/commands/ListWebACLsCommand.d.ts +35 -113
  47. package/dist-types/ts3.4/commands/PutLoggingConfigurationCommand.d.ts +42 -345
  48. package/dist-types/ts3.4/commands/PutManagedRuleSetVersionsCommand.d.ts +42 -133
  49. package/dist-types/ts3.4/commands/PutPermissionPolicyCommand.d.ts +39 -145
  50. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -131
  51. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -118
  52. package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +35 -146
  53. package/dist-types/ts3.4/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +42 -125
  54. package/dist-types/ts3.4/commands/UpdateRegexPatternSetCommand.d.ts +42 -148
  55. package/dist-types/ts3.4/commands/UpdateRuleGroupCommand.d.ts +38 -1128
  56. package/dist-types/ts3.4/commands/UpdateWebACLCommand.d.ts +35 -1146
  57. package/dist-types/ts3.4/commands/index.d.ts +53 -53
  58. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
  59. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
  60. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
  61. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
  62. package/dist-types/ts3.4/index.d.ts +6 -68
  63. package/dist-types/ts3.4/models/WAFV2ServiceException.d.ts +8 -13
  64. package/dist-types/ts3.4/models/index.d.ts +1 -1
  65. package/dist-types/ts3.4/models/models_0.d.ts +1764 -7951
  66. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +641 -479
  67. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -46
  68. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -46
  69. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -45
  70. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
  71. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
  72. package/package.json +31 -31
@@ -1,1145 +1,35 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { CreateWebACLRequest, CreateWebACLResponse } from "../models/models_0";
5
- import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
6
- /**
7
- * @public
8
- */
9
- export { __MetadataBearer, $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link CreateWebACLCommand}.
14
- */
15
- export interface CreateWebACLCommandInput extends CreateWebACLRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link CreateWebACLCommand}.
21
- */
22
- export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __MetadataBearer {
23
- }
24
- /**
25
- * @public
26
- * <p>Creates a <a>WebACL</a> per the specifications provided.</p>
27
- * <p> A web ACL defines a collection of rules to use to inspect and control web requests. Each rule has a statement that defines what to look for in web requests and an action that WAF applies to requests that match the statement. In the web ACL, you assign a default action to take (allow, block) for any request that does not match any of the rules. The rules in a web ACL can be a combination of the types <a>Rule</a>, <a>RuleGroup</a>, and managed rule group. You can associate a web ACL with one or more Amazon Web Services resources to protect. The resources can be an Amazon CloudFront distribution, an Amazon API Gateway REST API, an Application Load Balancer, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { WAFV2Client, CreateWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
32
- * // const { WAFV2Client, CreateWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
33
- * const client = new WAFV2Client(config);
34
- * const input = { // CreateWebACLRequest
35
- * Name: "STRING_VALUE", // required
36
- * Scope: "CLOUDFRONT" || "REGIONAL", // required
37
- * DefaultAction: { // DefaultAction
38
- * Block: { // BlockAction
39
- * CustomResponse: { // CustomResponse
40
- * ResponseCode: Number("int"), // required
41
- * CustomResponseBodyKey: "STRING_VALUE",
42
- * ResponseHeaders: [ // CustomHTTPHeaders
43
- * { // CustomHTTPHeader
44
- * Name: "STRING_VALUE", // required
45
- * Value: "STRING_VALUE", // required
46
- * },
47
- * ],
48
- * },
49
- * },
50
- * Allow: { // AllowAction
51
- * CustomRequestHandling: { // CustomRequestHandling
52
- * InsertHeaders: [ // required
53
- * {
54
- * Name: "STRING_VALUE", // required
55
- * Value: "STRING_VALUE", // required
56
- * },
57
- * ],
58
- * },
59
- * },
60
- * },
61
- * Description: "STRING_VALUE",
62
- * Rules: [ // Rules
63
- * { // Rule
64
- * Name: "STRING_VALUE", // required
65
- * Priority: Number("int"), // required
66
- * Statement: { // Statement
67
- * ByteMatchStatement: { // ByteMatchStatement
68
- * SearchString: "BLOB_VALUE", // required
69
- * FieldToMatch: { // FieldToMatch
70
- * SingleHeader: { // SingleHeader
71
- * Name: "STRING_VALUE", // required
72
- * },
73
- * SingleQueryArgument: { // SingleQueryArgument
74
- * Name: "STRING_VALUE", // required
75
- * },
76
- * AllQueryArguments: {},
77
- * UriPath: {},
78
- * QueryString: {},
79
- * Body: { // Body
80
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
81
- * },
82
- * Method: {},
83
- * JsonBody: { // JsonBody
84
- * MatchPattern: { // JsonMatchPattern
85
- * All: {},
86
- * IncludedPaths: [ // JsonPointerPaths
87
- * "STRING_VALUE",
88
- * ],
89
- * },
90
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
91
- * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
92
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
93
- * },
94
- * Headers: { // Headers
95
- * MatchPattern: { // HeaderMatchPattern
96
- * All: {},
97
- * IncludedHeaders: [ // HeaderNames
98
- * "STRING_VALUE",
99
- * ],
100
- * ExcludedHeaders: [
101
- * "STRING_VALUE",
102
- * ],
103
- * },
104
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
105
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
106
- * },
107
- * Cookies: { // Cookies
108
- * MatchPattern: { // CookieMatchPattern
109
- * All: {},
110
- * IncludedCookies: [ // CookieNames
111
- * "STRING_VALUE",
112
- * ],
113
- * ExcludedCookies: [
114
- * "STRING_VALUE",
115
- * ],
116
- * },
117
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
118
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
119
- * },
120
- * HeaderOrder: { // HeaderOrder
121
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
122
- * },
123
- * JA3Fingerprint: { // JA3Fingerprint
124
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
125
- * },
126
- * },
127
- * TextTransformations: [ // TextTransformations // required
128
- * { // TextTransformation
129
- * Priority: Number("int"), // required
130
- * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
131
- * },
132
- * ],
133
- * PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
134
- * },
135
- * SqliMatchStatement: { // SqliMatchStatement
136
- * FieldToMatch: {
137
- * SingleHeader: {
138
- * Name: "STRING_VALUE", // required
139
- * },
140
- * SingleQueryArgument: {
141
- * Name: "STRING_VALUE", // required
142
- * },
143
- * AllQueryArguments: {},
144
- * UriPath: {},
145
- * QueryString: {},
146
- * Body: {
147
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
148
- * },
149
- * Method: {},
150
- * JsonBody: {
151
- * MatchPattern: {
152
- * All: {},
153
- * IncludedPaths: [
154
- * "STRING_VALUE",
155
- * ],
156
- * },
157
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
158
- * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
159
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
160
- * },
161
- * Headers: {
162
- * MatchPattern: {
163
- * All: {},
164
- * IncludedHeaders: [
165
- * "STRING_VALUE",
166
- * ],
167
- * ExcludedHeaders: [
168
- * "STRING_VALUE",
169
- * ],
170
- * },
171
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
172
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
173
- * },
174
- * Cookies: {
175
- * MatchPattern: {
176
- * All: "<All>",
177
- * IncludedCookies: [
178
- * "STRING_VALUE",
179
- * ],
180
- * ExcludedCookies: [
181
- * "STRING_VALUE",
182
- * ],
183
- * },
184
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
185
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
186
- * },
187
- * HeaderOrder: {
188
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
189
- * },
190
- * JA3Fingerprint: {
191
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
192
- * },
193
- * },
194
- * TextTransformations: [ // required
195
- * {
196
- * Priority: Number("int"), // required
197
- * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
198
- * },
199
- * ],
200
- * SensitivityLevel: "LOW" || "HIGH",
201
- * },
202
- * XssMatchStatement: { // XssMatchStatement
203
- * FieldToMatch: {
204
- * SingleHeader: {
205
- * Name: "STRING_VALUE", // required
206
- * },
207
- * SingleQueryArgument: {
208
- * Name: "STRING_VALUE", // required
209
- * },
210
- * AllQueryArguments: {},
211
- * UriPath: {},
212
- * QueryString: {},
213
- * Body: {
214
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
215
- * },
216
- * Method: {},
217
- * JsonBody: {
218
- * MatchPattern: {
219
- * All: "<All>",
220
- * IncludedPaths: [
221
- * "STRING_VALUE",
222
- * ],
223
- * },
224
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
225
- * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
226
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
227
- * },
228
- * Headers: {
229
- * MatchPattern: {
230
- * All: "<All>",
231
- * IncludedHeaders: [
232
- * "STRING_VALUE",
233
- * ],
234
- * ExcludedHeaders: "<HeaderNames>",
235
- * },
236
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
237
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
238
- * },
239
- * Cookies: {
240
- * MatchPattern: {
241
- * All: "<All>",
242
- * IncludedCookies: [
243
- * "STRING_VALUE",
244
- * ],
245
- * ExcludedCookies: "<CookieNames>",
246
- * },
247
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
248
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
249
- * },
250
- * HeaderOrder: {
251
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
252
- * },
253
- * JA3Fingerprint: {
254
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
255
- * },
256
- * },
257
- * TextTransformations: [ // required
258
- * {
259
- * Priority: Number("int"), // required
260
- * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
261
- * },
262
- * ],
263
- * },
264
- * SizeConstraintStatement: { // SizeConstraintStatement
265
- * FieldToMatch: {
266
- * SingleHeader: {
267
- * Name: "STRING_VALUE", // required
268
- * },
269
- * SingleQueryArgument: {
270
- * Name: "STRING_VALUE", // required
271
- * },
272
- * AllQueryArguments: {},
273
- * UriPath: {},
274
- * QueryString: {},
275
- * Body: {
276
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
277
- * },
278
- * Method: {},
279
- * JsonBody: {
280
- * MatchPattern: {
281
- * All: "<All>",
282
- * IncludedPaths: [
283
- * "STRING_VALUE",
284
- * ],
285
- * },
286
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
287
- * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
288
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
289
- * },
290
- * Headers: {
291
- * MatchPattern: {
292
- * All: "<All>",
293
- * IncludedHeaders: "<HeaderNames>",
294
- * ExcludedHeaders: "<HeaderNames>",
295
- * },
296
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
297
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
298
- * },
299
- * Cookies: {
300
- * MatchPattern: {
301
- * All: "<All>",
302
- * IncludedCookies: "<CookieNames>",
303
- * ExcludedCookies: "<CookieNames>",
304
- * },
305
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
306
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
307
- * },
308
- * HeaderOrder: {
309
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
310
- * },
311
- * JA3Fingerprint: {
312
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
313
- * },
314
- * },
315
- * ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
316
- * Size: Number("long"), // required
317
- * TextTransformations: [ // required
318
- * {
319
- * Priority: Number("int"), // required
320
- * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
321
- * },
322
- * ],
323
- * },
324
- * GeoMatchStatement: { // GeoMatchStatement
325
- * CountryCodes: [ // CountryCodes
326
- * "AF" || "AX" || "AL" || "DZ" || "AS" || "AD" || "AO" || "AI" || "AQ" || "AG" || "AR" || "AM" || "AW" || "AU" || "AT" || "AZ" || "BS" || "BH" || "BD" || "BB" || "BY" || "BE" || "BZ" || "BJ" || "BM" || "BT" || "BO" || "BQ" || "BA" || "BW" || "BV" || "BR" || "IO" || "BN" || "BG" || "BF" || "BI" || "KH" || "CM" || "CA" || "CV" || "KY" || "CF" || "TD" || "CL" || "CN" || "CX" || "CC" || "CO" || "KM" || "CG" || "CD" || "CK" || "CR" || "CI" || "HR" || "CU" || "CW" || "CY" || "CZ" || "DK" || "DJ" || "DM" || "DO" || "EC" || "EG" || "SV" || "GQ" || "ER" || "EE" || "ET" || "FK" || "FO" || "FJ" || "FI" || "FR" || "GF" || "PF" || "TF" || "GA" || "GM" || "GE" || "DE" || "GH" || "GI" || "GR" || "GL" || "GD" || "GP" || "GU" || "GT" || "GG" || "GN" || "GW" || "GY" || "HT" || "HM" || "VA" || "HN" || "HK" || "HU" || "IS" || "IN" || "ID" || "IR" || "IQ" || "IE" || "IM" || "IL" || "IT" || "JM" || "JP" || "JE" || "JO" || "KZ" || "KE" || "KI" || "KP" || "KR" || "KW" || "KG" || "LA" || "LV" || "LB" || "LS" || "LR" || "LY" || "LI" || "LT" || "LU" || "MO" || "MK" || "MG" || "MW" || "MY" || "MV" || "ML" || "MT" || "MH" || "MQ" || "MR" || "MU" || "YT" || "MX" || "FM" || "MD" || "MC" || "MN" || "ME" || "MS" || "MA" || "MZ" || "MM" || "NA" || "NR" || "NP" || "NL" || "NC" || "NZ" || "NI" || "NE" || "NG" || "NU" || "NF" || "MP" || "NO" || "OM" || "PK" || "PW" || "PS" || "PA" || "PG" || "PY" || "PE" || "PH" || "PN" || "PL" || "PT" || "PR" || "QA" || "RE" || "RO" || "RU" || "RW" || "BL" || "SH" || "KN" || "LC" || "MF" || "PM" || "VC" || "WS" || "SM" || "ST" || "SA" || "SN" || "RS" || "SC" || "SL" || "SG" || "SX" || "SK" || "SI" || "SB" || "SO" || "ZA" || "GS" || "SS" || "ES" || "LK" || "SD" || "SR" || "SJ" || "SZ" || "SE" || "CH" || "SY" || "TW" || "TJ" || "TZ" || "TH" || "TL" || "TG" || "TK" || "TO" || "TT" || "TN" || "TR" || "TM" || "TC" || "TV" || "UG" || "UA" || "AE" || "GB" || "US" || "UM" || "UY" || "UZ" || "VU" || "VE" || "VN" || "VG" || "VI" || "WF" || "EH" || "YE" || "ZM" || "ZW" || "XK",
327
- * ],
328
- * ForwardedIPConfig: { // ForwardedIPConfig
329
- * HeaderName: "STRING_VALUE", // required
330
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
331
- * },
332
- * },
333
- * RuleGroupReferenceStatement: { // RuleGroupReferenceStatement
334
- * ARN: "STRING_VALUE", // required
335
- * ExcludedRules: [ // ExcludedRules
336
- * { // ExcludedRule
337
- * Name: "STRING_VALUE", // required
338
- * },
339
- * ],
340
- * RuleActionOverrides: [ // RuleActionOverrides
341
- * { // RuleActionOverride
342
- * Name: "STRING_VALUE", // required
343
- * ActionToUse: { // RuleAction
344
- * Block: {
345
- * CustomResponse: {
346
- * ResponseCode: Number("int"), // required
347
- * CustomResponseBodyKey: "STRING_VALUE",
348
- * ResponseHeaders: [
349
- * {
350
- * Name: "STRING_VALUE", // required
351
- * Value: "STRING_VALUE", // required
352
- * },
353
- * ],
354
- * },
355
- * },
356
- * Allow: {
357
- * CustomRequestHandling: {
358
- * InsertHeaders: [ // required
359
- * {
360
- * Name: "STRING_VALUE", // required
361
- * Value: "STRING_VALUE", // required
362
- * },
363
- * ],
364
- * },
365
- * },
366
- * Count: { // CountAction
367
- * CustomRequestHandling: {
368
- * InsertHeaders: [ // required
369
- * {
370
- * Name: "STRING_VALUE", // required
371
- * Value: "STRING_VALUE", // required
372
- * },
373
- * ],
374
- * },
375
- * },
376
- * Captcha: { // CaptchaAction
377
- * CustomRequestHandling: {
378
- * InsertHeaders: "<CustomHTTPHeaders>", // required
379
- * },
380
- * },
381
- * Challenge: { // ChallengeAction
382
- * CustomRequestHandling: {
383
- * InsertHeaders: "<CustomHTTPHeaders>", // required
384
- * },
385
- * },
386
- * },
387
- * },
388
- * ],
389
- * },
390
- * IPSetReferenceStatement: { // IPSetReferenceStatement
391
- * ARN: "STRING_VALUE", // required
392
- * IPSetForwardedIPConfig: { // IPSetForwardedIPConfig
393
- * HeaderName: "STRING_VALUE", // required
394
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
395
- * Position: "FIRST" || "LAST" || "ANY", // required
396
- * },
397
- * },
398
- * RegexPatternSetReferenceStatement: { // RegexPatternSetReferenceStatement
399
- * ARN: "STRING_VALUE", // required
400
- * FieldToMatch: {
401
- * SingleHeader: {
402
- * Name: "STRING_VALUE", // required
403
- * },
404
- * SingleQueryArgument: {
405
- * Name: "STRING_VALUE", // required
406
- * },
407
- * AllQueryArguments: {},
408
- * UriPath: {},
409
- * QueryString: {},
410
- * Body: {
411
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
412
- * },
413
- * Method: {},
414
- * JsonBody: {
415
- * MatchPattern: {
416
- * All: "<All>",
417
- * IncludedPaths: [
418
- * "STRING_VALUE",
419
- * ],
420
- * },
421
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
422
- * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
423
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
424
- * },
425
- * Headers: {
426
- * MatchPattern: {
427
- * All: "<All>",
428
- * IncludedHeaders: "<HeaderNames>",
429
- * ExcludedHeaders: "<HeaderNames>",
430
- * },
431
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
432
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
433
- * },
434
- * Cookies: {
435
- * MatchPattern: {
436
- * All: "<All>",
437
- * IncludedCookies: "<CookieNames>",
438
- * ExcludedCookies: "<CookieNames>",
439
- * },
440
- * MatchScope: "ALL" || "KEY" || "VALUE", // required
441
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
442
- * },
443
- * HeaderOrder: {
444
- * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
445
- * },
446
- * JA3Fingerprint: {
447
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
448
- * },
449
- * },
450
- * TextTransformations: [ // required
451
- * {
452
- * Priority: Number("int"), // required
453
- * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
454
- * },
455
- * ],
456
- * },
457
- * RateBasedStatement: { // RateBasedStatement
458
- * Limit: Number("long"), // required
459
- * AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
460
- * ScopeDownStatement: {
461
- * ByteMatchStatement: {
462
- * SearchString: "BLOB_VALUE", // required
463
- * FieldToMatch: "<FieldToMatch>", // required
464
- * TextTransformations: "<TextTransformations>", // required
465
- * PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
466
- * },
467
- * SqliMatchStatement: {
468
- * FieldToMatch: "<FieldToMatch>", // required
469
- * TextTransformations: "<TextTransformations>", // required
470
- * SensitivityLevel: "LOW" || "HIGH",
471
- * },
472
- * XssMatchStatement: {
473
- * FieldToMatch: "<FieldToMatch>", // required
474
- * TextTransformations: "<TextTransformations>", // required
475
- * },
476
- * SizeConstraintStatement: {
477
- * FieldToMatch: "<FieldToMatch>", // required
478
- * ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
479
- * Size: Number("long"), // required
480
- * TextTransformations: "<TextTransformations>", // required
481
- * },
482
- * GeoMatchStatement: {
483
- * CountryCodes: [
484
- * "AF" || "AX" || "AL" || "DZ" || "AS" || "AD" || "AO" || "AI" || "AQ" || "AG" || "AR" || "AM" || "AW" || "AU" || "AT" || "AZ" || "BS" || "BH" || "BD" || "BB" || "BY" || "BE" || "BZ" || "BJ" || "BM" || "BT" || "BO" || "BQ" || "BA" || "BW" || "BV" || "BR" || "IO" || "BN" || "BG" || "BF" || "BI" || "KH" || "CM" || "CA" || "CV" || "KY" || "CF" || "TD" || "CL" || "CN" || "CX" || "CC" || "CO" || "KM" || "CG" || "CD" || "CK" || "CR" || "CI" || "HR" || "CU" || "CW" || "CY" || "CZ" || "DK" || "DJ" || "DM" || "DO" || "EC" || "EG" || "SV" || "GQ" || "ER" || "EE" || "ET" || "FK" || "FO" || "FJ" || "FI" || "FR" || "GF" || "PF" || "TF" || "GA" || "GM" || "GE" || "DE" || "GH" || "GI" || "GR" || "GL" || "GD" || "GP" || "GU" || "GT" || "GG" || "GN" || "GW" || "GY" || "HT" || "HM" || "VA" || "HN" || "HK" || "HU" || "IS" || "IN" || "ID" || "IR" || "IQ" || "IE" || "IM" || "IL" || "IT" || "JM" || "JP" || "JE" || "JO" || "KZ" || "KE" || "KI" || "KP" || "KR" || "KW" || "KG" || "LA" || "LV" || "LB" || "LS" || "LR" || "LY" || "LI" || "LT" || "LU" || "MO" || "MK" || "MG" || "MW" || "MY" || "MV" || "ML" || "MT" || "MH" || "MQ" || "MR" || "MU" || "YT" || "MX" || "FM" || "MD" || "MC" || "MN" || "ME" || "MS" || "MA" || "MZ" || "MM" || "NA" || "NR" || "NP" || "NL" || "NC" || "NZ" || "NI" || "NE" || "NG" || "NU" || "NF" || "MP" || "NO" || "OM" || "PK" || "PW" || "PS" || "PA" || "PG" || "PY" || "PE" || "PH" || "PN" || "PL" || "PT" || "PR" || "QA" || "RE" || "RO" || "RU" || "RW" || "BL" || "SH" || "KN" || "LC" || "MF" || "PM" || "VC" || "WS" || "SM" || "ST" || "SA" || "SN" || "RS" || "SC" || "SL" || "SG" || "SX" || "SK" || "SI" || "SB" || "SO" || "ZA" || "GS" || "SS" || "ES" || "LK" || "SD" || "SR" || "SJ" || "SZ" || "SE" || "CH" || "SY" || "TW" || "TJ" || "TZ" || "TH" || "TL" || "TG" || "TK" || "TO" || "TT" || "TN" || "TR" || "TM" || "TC" || "TV" || "UG" || "UA" || "AE" || "GB" || "US" || "UM" || "UY" || "UZ" || "VU" || "VE" || "VN" || "VG" || "VI" || "WF" || "EH" || "YE" || "ZM" || "ZW" || "XK",
485
- * ],
486
- * ForwardedIPConfig: {
487
- * HeaderName: "STRING_VALUE", // required
488
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
489
- * },
490
- * },
491
- * RuleGroupReferenceStatement: {
492
- * ARN: "STRING_VALUE", // required
493
- * ExcludedRules: [
494
- * {
495
- * Name: "STRING_VALUE", // required
496
- * },
497
- * ],
498
- * RuleActionOverrides: [
499
- * {
500
- * Name: "STRING_VALUE", // required
501
- * ActionToUse: {
502
- * Block: "<BlockAction>",
503
- * Allow: "<AllowAction>",
504
- * Count: {
505
- * CustomRequestHandling: "<CustomRequestHandling>",
506
- * },
507
- * Captcha: {
508
- * CustomRequestHandling: "<CustomRequestHandling>",
509
- * },
510
- * Challenge: {
511
- * CustomRequestHandling: "<CustomRequestHandling>",
512
- * },
513
- * },
514
- * },
515
- * ],
516
- * },
517
- * IPSetReferenceStatement: {
518
- * ARN: "STRING_VALUE", // required
519
- * IPSetForwardedIPConfig: {
520
- * HeaderName: "STRING_VALUE", // required
521
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
522
- * Position: "FIRST" || "LAST" || "ANY", // required
523
- * },
524
- * },
525
- * RegexPatternSetReferenceStatement: {
526
- * ARN: "STRING_VALUE", // required
527
- * FieldToMatch: "<FieldToMatch>", // required
528
- * TextTransformations: "<TextTransformations>", // required
529
- * },
530
- * RateBasedStatement: {
531
- * Limit: Number("long"), // required
532
- * AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
533
- * ScopeDownStatement: "<Statement>",
534
- * ForwardedIPConfig: {
535
- * HeaderName: "STRING_VALUE", // required
536
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
537
- * },
538
- * CustomKeys: [ // RateBasedStatementCustomKeys
539
- * { // RateBasedStatementCustomKey
540
- * Header: { // RateLimitHeader
541
- * Name: "STRING_VALUE", // required
542
- * TextTransformations: "<TextTransformations>", // required
543
- * },
544
- * Cookie: { // RateLimitCookie
545
- * Name: "STRING_VALUE", // required
546
- * TextTransformations: "<TextTransformations>", // required
547
- * },
548
- * QueryArgument: { // RateLimitQueryArgument
549
- * Name: "STRING_VALUE", // required
550
- * TextTransformations: "<TextTransformations>", // required
551
- * },
552
- * QueryString: { // RateLimitQueryString
553
- * TextTransformations: "<TextTransformations>", // required
554
- * },
555
- * HTTPMethod: {},
556
- * ForwardedIP: {},
557
- * IP: {},
558
- * LabelNamespace: { // RateLimitLabelNamespace
559
- * Namespace: "STRING_VALUE", // required
560
- * },
561
- * UriPath: { // RateLimitUriPath
562
- * TextTransformations: "<TextTransformations>", // required
563
- * },
564
- * },
565
- * ],
566
- * },
567
- * AndStatement: { // AndStatement
568
- * Statements: [ // Statements // required
569
- * "<Statement>",
570
- * ],
571
- * },
572
- * OrStatement: { // OrStatement
573
- * Statements: [ // required
574
- * "<Statement>",
575
- * ],
576
- * },
577
- * NotStatement: { // NotStatement
578
- * Statement: "<Statement>", // required
579
- * },
580
- * ManagedRuleGroupStatement: { // ManagedRuleGroupStatement
581
- * VendorName: "STRING_VALUE", // required
582
- * Name: "STRING_VALUE", // required
583
- * Version: "STRING_VALUE",
584
- * ExcludedRules: [
585
- * {
586
- * Name: "STRING_VALUE", // required
587
- * },
588
- * ],
589
- * ScopeDownStatement: "<Statement>",
590
- * ManagedRuleGroupConfigs: [ // ManagedRuleGroupConfigs
591
- * { // ManagedRuleGroupConfig
592
- * LoginPath: "STRING_VALUE",
593
- * PayloadType: "JSON" || "FORM_ENCODED",
594
- * UsernameField: { // UsernameField
595
- * Identifier: "STRING_VALUE", // required
596
- * },
597
- * PasswordField: { // PasswordField
598
- * Identifier: "STRING_VALUE", // required
599
- * },
600
- * AWSManagedRulesBotControlRuleSet: { // AWSManagedRulesBotControlRuleSet
601
- * InspectionLevel: "COMMON" || "TARGETED", // required
602
- * EnableMachineLearning: true || false,
603
- * },
604
- * AWSManagedRulesATPRuleSet: { // AWSManagedRulesATPRuleSet
605
- * LoginPath: "STRING_VALUE", // required
606
- * RequestInspection: { // RequestInspection
607
- * PayloadType: "JSON" || "FORM_ENCODED", // required
608
- * UsernameField: {
609
- * Identifier: "STRING_VALUE", // required
610
- * },
611
- * PasswordField: {
612
- * Identifier: "STRING_VALUE", // required
613
- * },
614
- * },
615
- * ResponseInspection: { // ResponseInspection
616
- * StatusCode: { // ResponseInspectionStatusCode
617
- * SuccessCodes: [ // ResponseInspectionStatusCodeSuccessCodes // required
618
- * Number("int"),
619
- * ],
620
- * FailureCodes: [ // ResponseInspectionStatusCodeFailureCodes // required
621
- * Number("int"),
622
- * ],
623
- * },
624
- * Header: { // ResponseInspectionHeader
625
- * Name: "STRING_VALUE", // required
626
- * SuccessValues: [ // ResponseInspectionHeaderSuccessValues // required
627
- * "STRING_VALUE",
628
- * ],
629
- * FailureValues: [ // ResponseInspectionHeaderFailureValues // required
630
- * "STRING_VALUE",
631
- * ],
632
- * },
633
- * BodyContains: { // ResponseInspectionBodyContains
634
- * SuccessStrings: [ // ResponseInspectionBodyContainsSuccessStrings // required
635
- * "STRING_VALUE",
636
- * ],
637
- * FailureStrings: [ // ResponseInspectionBodyContainsFailureStrings // required
638
- * "STRING_VALUE",
639
- * ],
640
- * },
641
- * Json: { // ResponseInspectionJson
642
- * Identifier: "STRING_VALUE", // required
643
- * SuccessValues: [ // ResponseInspectionJsonSuccessValues // required
644
- * "STRING_VALUE",
645
- * ],
646
- * FailureValues: [ // ResponseInspectionJsonFailureValues // required
647
- * "STRING_VALUE",
648
- * ],
649
- * },
650
- * },
651
- * EnableRegexInPath: true || false,
652
- * },
653
- * AWSManagedRulesACFPRuleSet: { // AWSManagedRulesACFPRuleSet
654
- * CreationPath: "STRING_VALUE", // required
655
- * RegistrationPagePath: "STRING_VALUE", // required
656
- * RequestInspection: { // RequestInspectionACFP
657
- * PayloadType: "JSON" || "FORM_ENCODED", // required
658
- * UsernameField: {
659
- * Identifier: "STRING_VALUE", // required
660
- * },
661
- * PasswordField: {
662
- * Identifier: "STRING_VALUE", // required
663
- * },
664
- * EmailField: { // EmailField
665
- * Identifier: "STRING_VALUE", // required
666
- * },
667
- * PhoneNumberFields: [ // PhoneNumberFields
668
- * { // PhoneNumberField
669
- * Identifier: "STRING_VALUE", // required
670
- * },
671
- * ],
672
- * AddressFields: [ // AddressFields
673
- * { // AddressField
674
- * Identifier: "STRING_VALUE", // required
675
- * },
676
- * ],
677
- * },
678
- * ResponseInspection: {
679
- * StatusCode: {
680
- * SuccessCodes: [ // required
681
- * Number("int"),
682
- * ],
683
- * FailureCodes: [ // required
684
- * Number("int"),
685
- * ],
686
- * },
687
- * Header: {
688
- * Name: "STRING_VALUE", // required
689
- * SuccessValues: [ // required
690
- * "STRING_VALUE",
691
- * ],
692
- * FailureValues: [ // required
693
- * "STRING_VALUE",
694
- * ],
695
- * },
696
- * BodyContains: {
697
- * SuccessStrings: [ // required
698
- * "STRING_VALUE",
699
- * ],
700
- * FailureStrings: [ // required
701
- * "STRING_VALUE",
702
- * ],
703
- * },
704
- * Json: {
705
- * Identifier: "STRING_VALUE", // required
706
- * SuccessValues: [ // required
707
- * "STRING_VALUE",
708
- * ],
709
- * FailureValues: [ // required
710
- * "STRING_VALUE",
711
- * ],
712
- * },
713
- * },
714
- * EnableRegexInPath: true || false,
715
- * },
716
- * },
717
- * ],
718
- * RuleActionOverrides: [
719
- * {
720
- * Name: "STRING_VALUE", // required
721
- * ActionToUse: {
722
- * Block: "<BlockAction>",
723
- * Allow: "<AllowAction>",
724
- * Count: {
725
- * CustomRequestHandling: "<CustomRequestHandling>",
726
- * },
727
- * Captcha: {
728
- * CustomRequestHandling: "<CustomRequestHandling>",
729
- * },
730
- * Challenge: {
731
- * CustomRequestHandling: "<CustomRequestHandling>",
732
- * },
733
- * },
734
- * },
735
- * ],
736
- * },
737
- * LabelMatchStatement: { // LabelMatchStatement
738
- * Scope: "LABEL" || "NAMESPACE", // required
739
- * Key: "STRING_VALUE", // required
740
- * },
741
- * RegexMatchStatement: { // RegexMatchStatement
742
- * RegexString: "STRING_VALUE", // required
743
- * FieldToMatch: "<FieldToMatch>", // required
744
- * TextTransformations: "<TextTransformations>", // required
745
- * },
746
- * },
747
- * ForwardedIPConfig: {
748
- * HeaderName: "STRING_VALUE", // required
749
- * FallbackBehavior: "MATCH" || "NO_MATCH", // required
750
- * },
751
- * CustomKeys: [
752
- * {
753
- * Header: {
754
- * Name: "STRING_VALUE", // required
755
- * TextTransformations: "<TextTransformations>", // required
756
- * },
757
- * Cookie: {
758
- * Name: "STRING_VALUE", // required
759
- * TextTransformations: "<TextTransformations>", // required
760
- * },
761
- * QueryArgument: {
762
- * Name: "STRING_VALUE", // required
763
- * TextTransformations: "<TextTransformations>", // required
764
- * },
765
- * QueryString: {
766
- * TextTransformations: "<TextTransformations>", // required
767
- * },
768
- * HTTPMethod: {},
769
- * ForwardedIP: {},
770
- * IP: {},
771
- * LabelNamespace: {
772
- * Namespace: "STRING_VALUE", // required
773
- * },
774
- * UriPath: {
775
- * TextTransformations: "<TextTransformations>", // required
776
- * },
777
- * },
778
- * ],
779
- * },
780
- * AndStatement: {
781
- * Statements: [ // required
782
- * "<Statement>",
783
- * ],
784
- * },
785
- * OrStatement: {
786
- * Statements: [ // required
787
- * "<Statement>",
788
- * ],
789
- * },
790
- * NotStatement: {
791
- * Statement: "<Statement>", // required
792
- * },
793
- * ManagedRuleGroupStatement: {
794
- * VendorName: "STRING_VALUE", // required
795
- * Name: "STRING_VALUE", // required
796
- * Version: "STRING_VALUE",
797
- * ExcludedRules: [
798
- * {
799
- * Name: "STRING_VALUE", // required
800
- * },
801
- * ],
802
- * ScopeDownStatement: "<Statement>",
803
- * ManagedRuleGroupConfigs: [
804
- * {
805
- * LoginPath: "STRING_VALUE",
806
- * PayloadType: "JSON" || "FORM_ENCODED",
807
- * UsernameField: "<UsernameField>",
808
- * PasswordField: "<PasswordField>",
809
- * AWSManagedRulesBotControlRuleSet: {
810
- * InspectionLevel: "COMMON" || "TARGETED", // required
811
- * EnableMachineLearning: true || false,
812
- * },
813
- * AWSManagedRulesATPRuleSet: {
814
- * LoginPath: "STRING_VALUE", // required
815
- * RequestInspection: {
816
- * PayloadType: "JSON" || "FORM_ENCODED", // required
817
- * UsernameField: "<UsernameField>", // required
818
- * PasswordField: "<PasswordField>", // required
819
- * },
820
- * ResponseInspection: {
821
- * StatusCode: {
822
- * SuccessCodes: [ // required
823
- * Number("int"),
824
- * ],
825
- * FailureCodes: [ // required
826
- * Number("int"),
827
- * ],
828
- * },
829
- * Header: {
830
- * Name: "STRING_VALUE", // required
831
- * SuccessValues: [ // required
832
- * "STRING_VALUE",
833
- * ],
834
- * FailureValues: [ // required
835
- * "STRING_VALUE",
836
- * ],
837
- * },
838
- * BodyContains: {
839
- * SuccessStrings: [ // required
840
- * "STRING_VALUE",
841
- * ],
842
- * FailureStrings: [ // required
843
- * "STRING_VALUE",
844
- * ],
845
- * },
846
- * Json: {
847
- * Identifier: "STRING_VALUE", // required
848
- * SuccessValues: [ // required
849
- * "STRING_VALUE",
850
- * ],
851
- * FailureValues: [ // required
852
- * "STRING_VALUE",
853
- * ],
854
- * },
855
- * },
856
- * EnableRegexInPath: true || false,
857
- * },
858
- * AWSManagedRulesACFPRuleSet: {
859
- * CreationPath: "STRING_VALUE", // required
860
- * RegistrationPagePath: "STRING_VALUE", // required
861
- * RequestInspection: {
862
- * PayloadType: "JSON" || "FORM_ENCODED", // required
863
- * UsernameField: "<UsernameField>",
864
- * PasswordField: "<PasswordField>",
865
- * EmailField: {
866
- * Identifier: "STRING_VALUE", // required
867
- * },
868
- * PhoneNumberFields: [
869
- * {
870
- * Identifier: "STRING_VALUE", // required
871
- * },
872
- * ],
873
- * AddressFields: [
874
- * {
875
- * Identifier: "STRING_VALUE", // required
876
- * },
877
- * ],
878
- * },
879
- * ResponseInspection: {
880
- * StatusCode: {
881
- * SuccessCodes: [ // required
882
- * Number("int"),
883
- * ],
884
- * FailureCodes: [ // required
885
- * Number("int"),
886
- * ],
887
- * },
888
- * Header: {
889
- * Name: "STRING_VALUE", // required
890
- * SuccessValues: [ // required
891
- * "STRING_VALUE",
892
- * ],
893
- * FailureValues: [ // required
894
- * "STRING_VALUE",
895
- * ],
896
- * },
897
- * BodyContains: {
898
- * SuccessStrings: [ // required
899
- * "STRING_VALUE",
900
- * ],
901
- * FailureStrings: [ // required
902
- * "STRING_VALUE",
903
- * ],
904
- * },
905
- * Json: {
906
- * Identifier: "STRING_VALUE", // required
907
- * SuccessValues: [ // required
908
- * "STRING_VALUE",
909
- * ],
910
- * FailureValues: [ // required
911
- * "STRING_VALUE",
912
- * ],
913
- * },
914
- * },
915
- * EnableRegexInPath: true || false,
916
- * },
917
- * },
918
- * ],
919
- * RuleActionOverrides: [
920
- * {
921
- * Name: "STRING_VALUE", // required
922
- * ActionToUse: {
923
- * Block: "<BlockAction>",
924
- * Allow: "<AllowAction>",
925
- * Count: {
926
- * CustomRequestHandling: "<CustomRequestHandling>",
927
- * },
928
- * Captcha: {
929
- * CustomRequestHandling: "<CustomRequestHandling>",
930
- * },
931
- * Challenge: {
932
- * CustomRequestHandling: "<CustomRequestHandling>",
933
- * },
934
- * },
935
- * },
936
- * ],
937
- * },
938
- * LabelMatchStatement: {
939
- * Scope: "LABEL" || "NAMESPACE", // required
940
- * Key: "STRING_VALUE", // required
941
- * },
942
- * RegexMatchStatement: {
943
- * RegexString: "STRING_VALUE", // required
944
- * FieldToMatch: "<FieldToMatch>", // required
945
- * TextTransformations: "<TextTransformations>", // required
946
- * },
947
- * },
948
- * Action: "<RuleAction>",
949
- * OverrideAction: { // OverrideAction
950
- * Count: "<CountAction>",
951
- * None: {},
952
- * },
953
- * RuleLabels: [ // Labels
954
- * { // Label
955
- * Name: "STRING_VALUE", // required
956
- * },
957
- * ],
958
- * VisibilityConfig: { // VisibilityConfig
959
- * SampledRequestsEnabled: true || false, // required
960
- * CloudWatchMetricsEnabled: true || false, // required
961
- * MetricName: "STRING_VALUE", // required
962
- * },
963
- * CaptchaConfig: { // CaptchaConfig
964
- * ImmunityTimeProperty: { // ImmunityTimeProperty
965
- * ImmunityTime: Number("long"), // required
966
- * },
967
- * },
968
- * ChallengeConfig: { // ChallengeConfig
969
- * ImmunityTimeProperty: {
970
- * ImmunityTime: Number("long"), // required
971
- * },
972
- * },
973
- * },
974
- * ],
975
- * VisibilityConfig: {
976
- * SampledRequestsEnabled: true || false, // required
977
- * CloudWatchMetricsEnabled: true || false, // required
978
- * MetricName: "STRING_VALUE", // required
979
- * },
980
- * Tags: [ // TagList
981
- * { // Tag
982
- * Key: "STRING_VALUE", // required
983
- * Value: "STRING_VALUE", // required
984
- * },
985
- * ],
986
- * CustomResponseBodies: { // CustomResponseBodies
987
- * "<keys>": { // CustomResponseBody
988
- * ContentType: "TEXT_PLAIN" || "TEXT_HTML" || "APPLICATION_JSON", // required
989
- * Content: "STRING_VALUE", // required
990
- * },
991
- * },
992
- * CaptchaConfig: {
993
- * ImmunityTimeProperty: {
994
- * ImmunityTime: Number("long"), // required
995
- * },
996
- * },
997
- * ChallengeConfig: {
998
- * ImmunityTimeProperty: {
999
- * ImmunityTime: Number("long"), // required
1000
- * },
1001
- * },
1002
- * TokenDomains: [ // TokenDomains
1003
- * "STRING_VALUE",
1004
- * ],
1005
- * AssociationConfig: { // AssociationConfig
1006
- * RequestBody: { // RequestBody
1007
- * "<keys>": { // RequestBodyAssociatedResourceTypeConfig
1008
- * DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1009
- * },
1010
- * },
1011
- * },
1012
- * };
1013
- * const command = new CreateWebACLCommand(input);
1014
- * const response = await client.send(command);
1015
- * // { // CreateWebACLResponse
1016
- * // Summary: { // WebACLSummary
1017
- * // Name: "STRING_VALUE",
1018
- * // Id: "STRING_VALUE",
1019
- * // Description: "STRING_VALUE",
1020
- * // LockToken: "STRING_VALUE",
1021
- * // ARN: "STRING_VALUE",
1022
- * // },
1023
- * // };
1024
- *
1025
- * ```
1026
- *
1027
- * @param CreateWebACLCommandInput - {@link CreateWebACLCommandInput}
1028
- * @returns {@link CreateWebACLCommandOutput}
1029
- * @see {@link CreateWebACLCommandInput} for command's `input` shape.
1030
- * @see {@link CreateWebACLCommandOutput} for command's `response` shape.
1031
- * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
1032
- *
1033
- * @throws {@link WAFConfigurationWarningException} (client fault)
1034
- * <p>The operation failed because you are inspecting the web request body, headers, or
1035
- * cookies without specifying how to handle oversize components. Rules that inspect the body
1036
- * must either provide an <code>OversizeHandling</code> configuration or they must be preceded
1037
- * by a <code>SizeConstraintStatement</code> that blocks the body content from being too
1038
- * large. Rules that inspect the headers or cookies must provide an
1039
- * <code>OversizeHandling</code> configuration. </p>
1040
- * <p>Provide the handling configuration and retry your operation.</p>
1041
- * <p>Alternately, you can suppress this warning by adding the following tag to the resource
1042
- * that you provide to this operation: <code>Tag</code>
1043
- * (key:<code>WAF:OversizeFieldsHandlingConstraintOptOut</code>,
1044
- * value:<code>true</code>).</p>
1045
- *
1046
- * @throws {@link WAFDuplicateItemException} (client fault)
1047
- * <p>WAF couldn’t perform the operation because the resource that you tried to save is
1048
- * a duplicate of an existing one.</p>
1049
- *
1050
- * @throws {@link WAFExpiredManagedRuleGroupVersionException} (client fault)
1051
- * <p>The operation failed because the specified version for the managed rule group has
1052
- * expired. You can retrieve the available versions for the managed rule group by calling
1053
- * <a>ListAvailableManagedRuleGroupVersions</a>.</p>
1054
- *
1055
- * @throws {@link WAFInternalErrorException} (server fault)
1056
- * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
1057
- * problem. Retry your request. </p>
1058
- *
1059
- * @throws {@link WAFInvalidOperationException} (client fault)
1060
- * <p>The operation isn't valid. </p>
1061
- *
1062
- * @throws {@link WAFInvalidParameterException} (client fault)
1063
- * <p>The operation failed because WAF didn't recognize a parameter in the request. For
1064
- * example: </p>
1065
- * <ul>
1066
- * <li>
1067
- * <p>You specified a parameter name or value that isn't valid.</p>
1068
- * </li>
1069
- * <li>
1070
- * <p>Your nested statement isn't valid. You might have tried to nest a statement that
1071
- * can’t be nested. </p>
1072
- * </li>
1073
- * <li>
1074
- * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
1075
- * isn't among the types available at <a>DefaultAction</a>.</p>
1076
- * </li>
1077
- * <li>
1078
- * <p>Your request references an ARN that is malformed, or corresponds to a resource
1079
- * with which a web ACL can't be associated.</p>
1080
- * </li>
1081
- * </ul>
1082
- *
1083
- * @throws {@link WAFInvalidResourceException} (client fault)
1084
- * <p>WAF couldn’t perform the operation because the resource that you requested isn’t
1085
- * valid. Check the resource, and try again.</p>
1086
- *
1087
- * @throws {@link WAFLimitsExceededException} (client fault)
1088
- * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
1089
- * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
1090
- * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
1091
- * <i>WAF Developer Guide</i>.</p>
1092
- *
1093
- * @throws {@link WAFNonexistentItemException} (client fault)
1094
- * <p>WAF couldn’t perform the operation because your resource doesn't exist.
1095
- * If you've just created a resource that you're using in this operation, you might
1096
- * just need to wait a few minutes. It can take from a few seconds to a number of minutes
1097
- * for changes to propagate. </p>
1098
- *
1099
- * @throws {@link WAFOptimisticLockException} (client fault)
1100
- * <p>WAF couldn’t save your changes because you tried to update or delete a resource
1101
- * that has changed since you last retrieved it. Get the resource again, make any changes you
1102
- * need to make to the new copy, and retry your operation. </p>
1103
- *
1104
- * @throws {@link WAFSubscriptionNotFoundException} (client fault)
1105
- * <p>You tried to use a managed rule group that's available by subscription, but you aren't
1106
- * subscribed to it yet. </p>
1107
- *
1108
- * @throws {@link WAFTagOperationException} (client fault)
1109
- * <p>An error occurred during the tagging operation. Retry your request.</p>
1110
- *
1111
- * @throws {@link WAFTagOperationInternalErrorException} (server fault)
1112
- * <p>WAF couldn’t perform your tagging operation because of an internal error. Retry
1113
- * your request.</p>
1114
- *
1115
- * @throws {@link WAFUnavailableEntityException} (client fault)
1116
- * <p>WAF couldn’t retrieve a resource that you specified for this operation.
1117
- * If you've just created a resource that you're using in this operation, you might
1118
- * just need to wait a few minutes. It can take from a few seconds to a number of minutes
1119
- * for changes to propagate. Verify the resources that you are specifying in your request
1120
- * parameters and then retry the operation.</p>
1121
- *
1122
- * @throws {@link WAFV2ServiceException}
1123
- * <p>Base exception class for all service exceptions from WAFV2 service.</p>
1124
- *
1125
- */
1126
- export declare class CreateWebACLCommand extends $Command<CreateWebACLCommandInput, CreateWebACLCommandOutput, WAFV2ClientResolvedConfig> {
1127
- readonly input: CreateWebACLCommandInput;
1128
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
1129
- /**
1130
- * @public
1131
- */
1132
- constructor(input: CreateWebACLCommandInput);
1133
- /**
1134
- * @internal
1135
- */
1136
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateWebACLCommandInput, CreateWebACLCommandOutput>;
1137
- /**
1138
- * @internal
1139
- */
1140
- private serialize;
1141
- /**
1142
- * @internal
1143
- */
1144
- private deserialize;
1145
- }
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import { CreateWebACLRequest, CreateWebACLResponse } from "../models/models_0";
10
+ import {
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ WAFV2ClientResolvedConfig,
14
+ } from "../WAFV2Client";
15
+ export { __MetadataBearer, $Command };
16
+ export interface CreateWebACLCommandInput extends CreateWebACLRequest {}
17
+ export interface CreateWebACLCommandOutput
18
+ extends CreateWebACLResponse,
19
+ __MetadataBearer {}
20
+ export declare class CreateWebACLCommand extends $Command<
21
+ CreateWebACLCommandInput,
22
+ CreateWebACLCommandOutput,
23
+ WAFV2ClientResolvedConfig
24
+ > {
25
+ readonly input: CreateWebACLCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: CreateWebACLCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: WAFV2ClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<CreateWebACLCommandInput, CreateWebACLCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }