@aws-sdk/client-wafv2 3.1097.0 → 3.1099.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.
- package/dist-cjs/index.js +43 -13
- package/dist-es/models/enums.js +18 -0
- package/dist-es/schemas/schemas_0.js +22 -12
- package/dist-types/commands/CheckCapacityCommand.d.ts +42 -5
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +42 -5
- package/dist-types/commands/CreateWebACLCommand.d.ts +43 -6
- package/dist-types/commands/GetRuleGroupCommand.d.ts +42 -5
- package/dist-types/commands/GetWebACLCommand.d.ts +42 -5
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +42 -5
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +42 -5
- package/dist-types/commands/UpdateWebACLCommand.d.ts +43 -6
- package/dist-types/models/enums.d.ts +26 -0
- package/dist-types/models/models_0.d.ts +72 -4
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +20 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +6 -6
|
@@ -148,7 +148,13 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
148
148
|
* TextTransformations: [ // TextTransformations // required
|
|
149
149
|
* { // TextTransformation
|
|
150
150
|
* Priority: Number("int"), // required
|
|
151
|
-
* 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
|
|
151
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
152
|
+
* },
|
|
153
|
+
* ],
|
|
154
|
+
* PreParseTextTransformations: [ // PreParseTextTransformations
|
|
155
|
+
* { // PreParseTextTransformation
|
|
156
|
+
* Priority: Number("int"), // required
|
|
157
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
152
158
|
* },
|
|
153
159
|
* ],
|
|
154
160
|
* PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
|
|
@@ -221,7 +227,13 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
221
227
|
* TextTransformations: [ // required
|
|
222
228
|
* {
|
|
223
229
|
* Priority: Number("int"), // required
|
|
224
|
-
* 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
|
|
230
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
231
|
+
* },
|
|
232
|
+
* ],
|
|
233
|
+
* PreParseTextTransformations: [
|
|
234
|
+
* {
|
|
235
|
+
* Priority: Number("int"), // required
|
|
236
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
225
237
|
* },
|
|
226
238
|
* ],
|
|
227
239
|
* SensitivityLevel: "LOW" || "HIGH",
|
|
@@ -290,7 +302,13 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
290
302
|
* TextTransformations: [ // required
|
|
291
303
|
* {
|
|
292
304
|
* Priority: Number("int"), // required
|
|
293
|
-
* 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
|
|
305
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
306
|
+
* },
|
|
307
|
+
* ],
|
|
308
|
+
* PreParseTextTransformations: [
|
|
309
|
+
* {
|
|
310
|
+
* Priority: Number("int"), // required
|
|
311
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
294
312
|
* },
|
|
295
313
|
* ],
|
|
296
314
|
* },
|
|
@@ -356,7 +374,13 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
356
374
|
* TextTransformations: [ // required
|
|
357
375
|
* {
|
|
358
376
|
* Priority: Number("int"), // required
|
|
359
|
-
* 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
|
|
377
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
378
|
+
* },
|
|
379
|
+
* ],
|
|
380
|
+
* PreParseTextTransformations: [
|
|
381
|
+
* {
|
|
382
|
+
* Priority: Number("int"), // required
|
|
383
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
360
384
|
* },
|
|
361
385
|
* ],
|
|
362
386
|
* },
|
|
@@ -508,7 +532,13 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
508
532
|
* TextTransformations: [ // required
|
|
509
533
|
* {
|
|
510
534
|
* Priority: Number("int"), // required
|
|
511
|
-
* 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
|
|
535
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
536
|
+
* },
|
|
537
|
+
* ],
|
|
538
|
+
* PreParseTextTransformations: [
|
|
539
|
+
* {
|
|
540
|
+
* Priority: Number("int"), // required
|
|
541
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
512
542
|
* },
|
|
513
543
|
* ],
|
|
514
544
|
* },
|
|
@@ -521,22 +551,26 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
521
551
|
* SearchString: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
522
552
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
523
553
|
* TextTransformations: "<TextTransformations>", // required
|
|
554
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
524
555
|
* PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
|
|
525
556
|
* },
|
|
526
557
|
* SqliMatchStatement: {
|
|
527
558
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
528
559
|
* TextTransformations: "<TextTransformations>", // required
|
|
560
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
529
561
|
* SensitivityLevel: "LOW" || "HIGH",
|
|
530
562
|
* },
|
|
531
563
|
* XssMatchStatement: {
|
|
532
564
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
533
565
|
* TextTransformations: "<TextTransformations>", // required
|
|
566
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
534
567
|
* },
|
|
535
568
|
* SizeConstraintStatement: {
|
|
536
569
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
537
570
|
* ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
|
|
538
571
|
* Size: Number("long"), // required
|
|
539
572
|
* TextTransformations: "<TextTransformations>", // required
|
|
573
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
540
574
|
* },
|
|
541
575
|
* GeoMatchStatement: {
|
|
542
576
|
* CountryCodes: [
|
|
@@ -598,6 +632,7 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
598
632
|
* ARN: "STRING_VALUE", // required
|
|
599
633
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
600
634
|
* TextTransformations: "<TextTransformations>", // required
|
|
635
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
601
636
|
* },
|
|
602
637
|
* RateBasedStatement: {
|
|
603
638
|
* Limit: Number("long"), // required
|
|
@@ -847,6 +882,7 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
847
882
|
* RegexString: "STRING_VALUE", // required
|
|
848
883
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
849
884
|
* TextTransformations: "<TextTransformations>", // required
|
|
885
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
850
886
|
* },
|
|
851
887
|
* AsnMatchStatement: { // AsnMatchStatement
|
|
852
888
|
* AsnList: [ // AsnList // required
|
|
@@ -1089,6 +1125,7 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
1089
1125
|
* RegexString: "STRING_VALUE", // required
|
|
1090
1126
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
1091
1127
|
* TextTransformations: "<TextTransformations>", // required
|
|
1128
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
1092
1129
|
* },
|
|
1093
1130
|
* AsnMatchStatement: {
|
|
1094
1131
|
* AsnList: [ // required
|
|
@@ -42,7 +42,7 @@ declare const UpdateWebACLCommand_base: {
|
|
|
42
42
|
* </li>
|
|
43
43
|
* </ol>
|
|
44
44
|
* </note>
|
|
45
|
-
* <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 resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application,
|
|
45
|
+
* <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 resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application, Amazon Web Services Verified Access instance, and Amazon Bedrock AgentCore Gateway. </p>
|
|
46
46
|
* <p>
|
|
47
47
|
* <b>Temporary inconsistencies during updates</b>
|
|
48
48
|
* </p>
|
|
@@ -173,7 +173,13 @@ declare const UpdateWebACLCommand_base: {
|
|
|
173
173
|
* TextTransformations: [ // TextTransformations // required
|
|
174
174
|
* { // TextTransformation
|
|
175
175
|
* Priority: Number("int"), // required
|
|
176
|
-
* 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
|
|
176
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
177
|
+
* },
|
|
178
|
+
* ],
|
|
179
|
+
* PreParseTextTransformations: [ // PreParseTextTransformations
|
|
180
|
+
* { // PreParseTextTransformation
|
|
181
|
+
* Priority: Number("int"), // required
|
|
182
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
177
183
|
* },
|
|
178
184
|
* ],
|
|
179
185
|
* PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
|
|
@@ -246,7 +252,13 @@ declare const UpdateWebACLCommand_base: {
|
|
|
246
252
|
* TextTransformations: [ // required
|
|
247
253
|
* {
|
|
248
254
|
* Priority: Number("int"), // required
|
|
249
|
-
* 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
|
|
255
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
256
|
+
* },
|
|
257
|
+
* ],
|
|
258
|
+
* PreParseTextTransformations: [
|
|
259
|
+
* {
|
|
260
|
+
* Priority: Number("int"), // required
|
|
261
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
250
262
|
* },
|
|
251
263
|
* ],
|
|
252
264
|
* SensitivityLevel: "LOW" || "HIGH",
|
|
@@ -315,7 +327,13 @@ declare const UpdateWebACLCommand_base: {
|
|
|
315
327
|
* TextTransformations: [ // required
|
|
316
328
|
* {
|
|
317
329
|
* Priority: Number("int"), // required
|
|
318
|
-
* 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
|
|
330
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
331
|
+
* },
|
|
332
|
+
* ],
|
|
333
|
+
* PreParseTextTransformations: [
|
|
334
|
+
* {
|
|
335
|
+
* Priority: Number("int"), // required
|
|
336
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
319
337
|
* },
|
|
320
338
|
* ],
|
|
321
339
|
* },
|
|
@@ -381,7 +399,13 @@ declare const UpdateWebACLCommand_base: {
|
|
|
381
399
|
* TextTransformations: [ // required
|
|
382
400
|
* {
|
|
383
401
|
* Priority: Number("int"), // required
|
|
384
|
-
* 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
|
|
402
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
403
|
+
* },
|
|
404
|
+
* ],
|
|
405
|
+
* PreParseTextTransformations: [
|
|
406
|
+
* {
|
|
407
|
+
* Priority: Number("int"), // required
|
|
408
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
385
409
|
* },
|
|
386
410
|
* ],
|
|
387
411
|
* },
|
|
@@ -523,7 +547,13 @@ declare const UpdateWebACLCommand_base: {
|
|
|
523
547
|
* TextTransformations: [ // required
|
|
524
548
|
* {
|
|
525
549
|
* Priority: Number("int"), // required
|
|
526
|
-
* 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
|
|
550
|
+
* 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" || "REMOVE_WHITESPACE" || "TRIM" || "TRIM_LEFT" || "TRIM_RIGHT" || "REMOVE_COMMENTS_CHAR" || "UPPERCASE" || "CMD_LINE_WIN" || "CMD_LINE_UNIX" || "JS_DECODE_EXT" || "SHA256", // required
|
|
551
|
+
* },
|
|
552
|
+
* ],
|
|
553
|
+
* PreParseTextTransformations: [
|
|
554
|
+
* {
|
|
555
|
+
* Priority: Number("int"), // required
|
|
556
|
+
* Type: "NONE" || "URL_DECODE" || "URL_DECODE_UNI" || "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA" || "REPLACE_SEMICOLONS_WITH_AMPERSANDS", // required
|
|
527
557
|
* },
|
|
528
558
|
* ],
|
|
529
559
|
* },
|
|
@@ -536,22 +566,26 @@ declare const UpdateWebACLCommand_base: {
|
|
|
536
566
|
* SearchString: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
537
567
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
538
568
|
* TextTransformations: "<TextTransformations>", // required
|
|
569
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
539
570
|
* PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
|
|
540
571
|
* },
|
|
541
572
|
* SqliMatchStatement: {
|
|
542
573
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
543
574
|
* TextTransformations: "<TextTransformations>", // required
|
|
575
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
544
576
|
* SensitivityLevel: "LOW" || "HIGH",
|
|
545
577
|
* },
|
|
546
578
|
* XssMatchStatement: {
|
|
547
579
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
548
580
|
* TextTransformations: "<TextTransformations>", // required
|
|
581
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
549
582
|
* },
|
|
550
583
|
* SizeConstraintStatement: {
|
|
551
584
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
552
585
|
* ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
|
|
553
586
|
* Size: Number("long"), // required
|
|
554
587
|
* TextTransformations: "<TextTransformations>", // required
|
|
588
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
555
589
|
* },
|
|
556
590
|
* GeoMatchStatement: {
|
|
557
591
|
* CountryCodes: [
|
|
@@ -603,6 +637,7 @@ declare const UpdateWebACLCommand_base: {
|
|
|
603
637
|
* ARN: "STRING_VALUE", // required
|
|
604
638
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
605
639
|
* TextTransformations: "<TextTransformations>", // required
|
|
640
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
606
641
|
* },
|
|
607
642
|
* RateBasedStatement: {
|
|
608
643
|
* Limit: Number("long"), // required
|
|
@@ -844,6 +879,7 @@ declare const UpdateWebACLCommand_base: {
|
|
|
844
879
|
* RegexString: "STRING_VALUE", // required
|
|
845
880
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
846
881
|
* TextTransformations: "<TextTransformations>", // required
|
|
882
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
847
883
|
* },
|
|
848
884
|
* AsnMatchStatement: { // AsnMatchStatement
|
|
849
885
|
* AsnList: [ // AsnList // required
|
|
@@ -1078,6 +1114,7 @@ declare const UpdateWebACLCommand_base: {
|
|
|
1078
1114
|
* RegexString: "STRING_VALUE", // required
|
|
1079
1115
|
* FieldToMatch: "<FieldToMatch>", // required
|
|
1080
1116
|
* TextTransformations: "<TextTransformations>", // required
|
|
1117
|
+
* PreParseTextTransformations: "<PreParseTextTransformations>",
|
|
1081
1118
|
* },
|
|
1082
1119
|
* AsnMatchStatement: {
|
|
1083
1120
|
* AsnList: [ // required
|
|
@@ -94,6 +94,21 @@ export declare const PositionalConstraint: {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
export type PositionalConstraint = (typeof PositionalConstraint)[keyof typeof PositionalConstraint];
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
* @enum
|
|
100
|
+
*/
|
|
101
|
+
export declare const PreParseTextTransformationType: {
|
|
102
|
+
readonly COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA: "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA";
|
|
103
|
+
readonly NONE: "NONE";
|
|
104
|
+
readonly REPLACE_SEMICOLONS_WITH_AMPERSANDS: "REPLACE_SEMICOLONS_WITH_AMPERSANDS";
|
|
105
|
+
readonly URL_DECODE: "URL_DECODE";
|
|
106
|
+
readonly URL_DECODE_UNI: "URL_DECODE_UNI";
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export type PreParseTextTransformationType = (typeof PreParseTextTransformationType)[keyof typeof PreParseTextTransformationType];
|
|
97
112
|
/**
|
|
98
113
|
* @public
|
|
99
114
|
* @enum
|
|
@@ -102,21 +117,31 @@ export declare const TextTransformationType: {
|
|
|
102
117
|
readonly BASE64_DECODE: "BASE64_DECODE";
|
|
103
118
|
readonly BASE64_DECODE_EXT: "BASE64_DECODE_EXT";
|
|
104
119
|
readonly CMD_LINE: "CMD_LINE";
|
|
120
|
+
readonly CMD_LINE_UNIX: "CMD_LINE_UNIX";
|
|
121
|
+
readonly CMD_LINE_WIN: "CMD_LINE_WIN";
|
|
105
122
|
readonly COMPRESS_WHITE_SPACE: "COMPRESS_WHITE_SPACE";
|
|
106
123
|
readonly CSS_DECODE: "CSS_DECODE";
|
|
107
124
|
readonly ESCAPE_SEQ_DECODE: "ESCAPE_SEQ_DECODE";
|
|
108
125
|
readonly HEX_DECODE: "HEX_DECODE";
|
|
109
126
|
readonly HTML_ENTITY_DECODE: "HTML_ENTITY_DECODE";
|
|
110
127
|
readonly JS_DECODE: "JS_DECODE";
|
|
128
|
+
readonly JS_DECODE_EXT: "JS_DECODE_EXT";
|
|
111
129
|
readonly LOWERCASE: "LOWERCASE";
|
|
112
130
|
readonly MD5: "MD5";
|
|
113
131
|
readonly NONE: "NONE";
|
|
114
132
|
readonly NORMALIZE_PATH: "NORMALIZE_PATH";
|
|
115
133
|
readonly NORMALIZE_PATH_WIN: "NORMALIZE_PATH_WIN";
|
|
134
|
+
readonly REMOVE_COMMENTS_CHAR: "REMOVE_COMMENTS_CHAR";
|
|
116
135
|
readonly REMOVE_NULLS: "REMOVE_NULLS";
|
|
136
|
+
readonly REMOVE_WHITESPACE: "REMOVE_WHITESPACE";
|
|
117
137
|
readonly REPLACE_COMMENTS: "REPLACE_COMMENTS";
|
|
118
138
|
readonly REPLACE_NULLS: "REPLACE_NULLS";
|
|
139
|
+
readonly SHA256: "SHA256";
|
|
119
140
|
readonly SQL_HEX_DECODE: "SQL_HEX_DECODE";
|
|
141
|
+
readonly TRIM: "TRIM";
|
|
142
|
+
readonly TRIM_LEFT: "TRIM_LEFT";
|
|
143
|
+
readonly TRIM_RIGHT: "TRIM_RIGHT";
|
|
144
|
+
readonly UPPERCASE: "UPPERCASE";
|
|
120
145
|
readonly URL_DECODE: "URL_DECODE";
|
|
121
146
|
readonly URL_DECODE_UNI: "URL_DECODE_UNI";
|
|
122
147
|
readonly UTF8_TO_UNICODE: "UTF8_TO_UNICODE";
|
|
@@ -573,6 +598,7 @@ export declare const ParameterExceptionField: {
|
|
|
573
598
|
readonly PAYLOAD_TYPE: "PAYLOAD_TYPE";
|
|
574
599
|
readonly PAYMENT_NETWORK: "PAYMENT_NETWORK";
|
|
575
600
|
readonly POSITION: "POSITION";
|
|
601
|
+
readonly PRE_PARSE_TEXT_TRANSFORMATION: "PRE_PARSE_TEXT_TRANSFORMATION";
|
|
576
602
|
readonly PRICE_AMOUNT: "PRICE_AMOUNT";
|
|
577
603
|
readonly RATE_BASED_STATEMENT: "RATE_BASED_STATEMENT";
|
|
578
604
|
readonly REGEX_PATTERN_REFERENCE_STATEMENT: "REGEX_PATTERN_REFERENCE_STATEMENT";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionValue, AssociatedResourceType, BlockchainChain, BodyParsingFallbackBehavior, ComparisonOperator, CountryCode, CryptoCurrency, Currency, CurrencyMode, DataProtectionAction, FailureReason, FallbackBehavior, FieldToProtectType, FilterBehavior, FilterRequirement, ForwardedIPPosition, GroupByType, InspectionLevel, IntervalType, IPAddressVersion, JsonMatchScope, LabelMatchScope, LogScope, LogType, LowReputationMode, MapMatchScope, OversizeHandling, PayloadType, Platform, PositionalConstraint, RankingSortBy, RankingStatisticType, RateBasedStatementAggregateKeyType, ResourceType, ResponseContentType, Scope, SensitivityLevel, SensitivityToAct, SettlementSortBy, SettlementStatus, SizeInspectionLimit, SortOrder, TextTransformationType, TimeSeriesStatisticType, UsageOfAction } from "./enums";
|
|
1
|
+
import type { ActionValue, AssociatedResourceType, BlockchainChain, BodyParsingFallbackBehavior, ComparisonOperator, CountryCode, CryptoCurrency, Currency, CurrencyMode, DataProtectionAction, FailureReason, FallbackBehavior, FieldToProtectType, FilterBehavior, FilterRequirement, ForwardedIPPosition, GroupByType, InspectionLevel, IntervalType, IPAddressVersion, JsonMatchScope, LabelMatchScope, LogScope, LogType, LowReputationMode, MapMatchScope, OversizeHandling, PayloadType, Platform, PositionalConstraint, PreParseTextTransformationType, RankingSortBy, RankingStatisticType, RateBasedStatementAggregateKeyType, ResourceType, ResponseContentType, Scope, SensitivityLevel, SensitivityToAct, SettlementSortBy, SettlementStatus, SizeInspectionLimit, SortOrder, TextTransformationType, TimeSeriesStatisticType, UsageOfAction } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>A single action condition for a <a>Condition</a> in a logging filter.</p>
|
|
4
4
|
* @public
|
|
@@ -954,6 +954,26 @@ export interface FieldToMatch {
|
|
|
954
954
|
*/
|
|
955
955
|
UriFragment?: UriFragment | undefined;
|
|
956
956
|
}
|
|
957
|
+
/**
|
|
958
|
+
* <p>A pre-parse text transformation that normalizes the raw query string before WAF parses
|
|
959
|
+
* it into individual query arguments. Pre-parse text transformations are only supported when
|
|
960
|
+
* <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or <code>AllQueryArguments</code>. </p>
|
|
961
|
+
* @public
|
|
962
|
+
*/
|
|
963
|
+
export interface PreParseTextTransformation {
|
|
964
|
+
/**
|
|
965
|
+
* <p>Sets the relative processing order for the pre-parse text transformations that you define.
|
|
966
|
+
* WAF processes all transformations, from lowest priority value to highest,
|
|
967
|
+
* before inspecting the transformed content. </p>
|
|
968
|
+
* @public
|
|
969
|
+
*/
|
|
970
|
+
Priority: number | undefined;
|
|
971
|
+
/**
|
|
972
|
+
* <p>The type of pre-parse text transformation to apply to the raw query string.</p>
|
|
973
|
+
* @public
|
|
974
|
+
*/
|
|
975
|
+
Type: PreParseTextTransformationType | undefined;
|
|
976
|
+
}
|
|
957
977
|
/**
|
|
958
978
|
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web
|
|
959
979
|
* requests in an effort to bypass detection. </p>
|
|
@@ -1042,6 +1062,14 @@ export interface ByteMatchStatement {
|
|
|
1042
1062
|
* @public
|
|
1043
1063
|
*/
|
|
1044
1064
|
TextTransformations: TextTransformation[] | undefined;
|
|
1065
|
+
/**
|
|
1066
|
+
* <p>Pre-parse text transformations normalize the raw query string before WAF parses it into individual
|
|
1067
|
+
* query arguments. They are applied before the standard text transformations. Pre-parse text transformations
|
|
1068
|
+
* are only supported when <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or
|
|
1069
|
+
* <code>AllQueryArguments</code>. You can specify up to 3 pre-parse text transformations per rule statement.</p>
|
|
1070
|
+
* @public
|
|
1071
|
+
*/
|
|
1072
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
1045
1073
|
/**
|
|
1046
1074
|
* <p>The area within the portion of the web request that you want WAF to search for
|
|
1047
1075
|
* <code>SearchString</code>. Valid values include the following:</p>
|
|
@@ -1710,7 +1738,7 @@ export interface AWSManagedRulesACFPRuleSet {
|
|
|
1710
1738
|
*/
|
|
1711
1739
|
export interface Regex {
|
|
1712
1740
|
/**
|
|
1713
|
-
* <p>The string representing the regular expression
|
|
1741
|
+
* <p>The string representing the regular expression. WAF enforces a quota on the maximum number of characters in a regex pattern. For the current limit, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the <i>WAF Developer Guide</i>.</p>
|
|
1714
1742
|
* @public
|
|
1715
1743
|
*/
|
|
1716
1744
|
RegexString?: string | undefined;
|
|
@@ -2583,7 +2611,7 @@ export interface RateBasedStatementCustomKey {
|
|
|
2583
2611
|
*/
|
|
2584
2612
|
export interface RegexMatchStatement {
|
|
2585
2613
|
/**
|
|
2586
|
-
* <p>The string representing the regular expression
|
|
2614
|
+
* <p>The string representing the regular expression. WAF enforces a quota on the maximum number of characters in a regex pattern. For the current limit, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the <i>WAF Developer Guide</i>.</p>
|
|
2587
2615
|
* @public
|
|
2588
2616
|
*/
|
|
2589
2617
|
RegexString: string | undefined;
|
|
@@ -2597,6 +2625,14 @@ export interface RegexMatchStatement {
|
|
|
2597
2625
|
* @public
|
|
2598
2626
|
*/
|
|
2599
2627
|
TextTransformations: TextTransformation[] | undefined;
|
|
2628
|
+
/**
|
|
2629
|
+
* <p>Pre-parse text transformations normalize the raw query string before WAF parses it into individual
|
|
2630
|
+
* query arguments. They are applied before the standard text transformations. Pre-parse text transformations
|
|
2631
|
+
* are only supported when <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or
|
|
2632
|
+
* <code>AllQueryArguments</code>. You can specify up to 3 pre-parse text transformations per rule statement.</p>
|
|
2633
|
+
* @public
|
|
2634
|
+
*/
|
|
2635
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
2600
2636
|
}
|
|
2601
2637
|
/**
|
|
2602
2638
|
* <p>A rule statement used to search web request components for matches with regular expressions. To use this, create a <a>RegexPatternSet</a> that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set. To create a regex pattern set, see <a>CreateRegexPatternSet</a>.</p>
|
|
@@ -2620,6 +2656,14 @@ export interface RegexPatternSetReferenceStatement {
|
|
|
2620
2656
|
* @public
|
|
2621
2657
|
*/
|
|
2622
2658
|
TextTransformations: TextTransformation[] | undefined;
|
|
2659
|
+
/**
|
|
2660
|
+
* <p>Pre-parse text transformations normalize the raw query string before WAF parses it into individual
|
|
2661
|
+
* query arguments. They are applied before the standard text transformations. Pre-parse text transformations
|
|
2662
|
+
* are only supported when <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or
|
|
2663
|
+
* <code>AllQueryArguments</code>. You can specify up to 3 pre-parse text transformations per rule statement.</p>
|
|
2664
|
+
* @public
|
|
2665
|
+
*/
|
|
2666
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
2623
2667
|
}
|
|
2624
2668
|
/**
|
|
2625
2669
|
* <p>A rule statement used to run the rules that are defined in a <a>RuleGroup</a>. To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.</p>
|
|
@@ -2678,6 +2722,14 @@ export interface SizeConstraintStatement {
|
|
|
2678
2722
|
* @public
|
|
2679
2723
|
*/
|
|
2680
2724
|
TextTransformations: TextTransformation[] | undefined;
|
|
2725
|
+
/**
|
|
2726
|
+
* <p>Pre-parse text transformations normalize the raw query string before WAF parses it into individual
|
|
2727
|
+
* query arguments. They are applied before the standard text transformations. Pre-parse text transformations
|
|
2728
|
+
* are only supported when <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or
|
|
2729
|
+
* <code>AllQueryArguments</code>. You can specify up to 3 pre-parse text transformations per rule statement.</p>
|
|
2730
|
+
* @public
|
|
2731
|
+
*/
|
|
2732
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
2681
2733
|
}
|
|
2682
2734
|
/**
|
|
2683
2735
|
* <p>A rule statement that inspects for malicious SQL code. Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it. </p>
|
|
@@ -2694,6 +2746,14 @@ export interface SqliMatchStatement {
|
|
|
2694
2746
|
* @public
|
|
2695
2747
|
*/
|
|
2696
2748
|
TextTransformations: TextTransformation[] | undefined;
|
|
2749
|
+
/**
|
|
2750
|
+
* <p>Pre-parse text transformations normalize the raw query string before WAF parses it into individual
|
|
2751
|
+
* query arguments. They are applied before the standard text transformations. Pre-parse text transformations
|
|
2752
|
+
* are only supported when <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or
|
|
2753
|
+
* <code>AllQueryArguments</code>. You can specify up to 3 pre-parse text transformations per rule statement.</p>
|
|
2754
|
+
* @public
|
|
2755
|
+
*/
|
|
2756
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
2697
2757
|
/**
|
|
2698
2758
|
* <p>The sensitivity that you want WAF to use to inspect for SQL injection attacks. </p>
|
|
2699
2759
|
* <p>
|
|
@@ -2727,6 +2787,14 @@ export interface XssMatchStatement {
|
|
|
2727
2787
|
* @public
|
|
2728
2788
|
*/
|
|
2729
2789
|
TextTransformations: TextTransformation[] | undefined;
|
|
2790
|
+
/**
|
|
2791
|
+
* <p>Pre-parse text transformations normalize the raw query string before WAF parses it into individual
|
|
2792
|
+
* query arguments. They are applied before the standard text transformations. Pre-parse text transformations
|
|
2793
|
+
* are only supported when <code>FieldToMatch</code> is <code>SingleQueryArgument</code> or
|
|
2794
|
+
* <code>AllQueryArguments</code>. You can specify up to 3 pre-parse text transformations per rule statement.</p>
|
|
2795
|
+
* @public
|
|
2796
|
+
*/
|
|
2797
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
2730
2798
|
}
|
|
2731
2799
|
/**
|
|
2732
2800
|
* <p>Information for a single API key. </p>
|
|
@@ -8480,7 +8548,7 @@ export interface GetRuleGroupResponse {
|
|
|
8480
8548
|
LockToken?: string | undefined;
|
|
8481
8549
|
}
|
|
8482
8550
|
/**
|
|
8483
|
-
* <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 resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application,
|
|
8551
|
+
* <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 resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application, Amazon Web Services Verified Access instance, and Amazon Bedrock AgentCore Gateway. </p>
|
|
8484
8552
|
* @public
|
|
8485
8553
|
*/
|
|
8486
8554
|
export interface WebACL {
|
|
@@ -218,6 +218,7 @@ export declare var PasswordField$: StaticStructureSchema;
|
|
|
218
218
|
export declare var PathStatistics$: StaticStructureSchema;
|
|
219
219
|
export declare var PaymentNetwork$: StaticStructureSchema;
|
|
220
220
|
export declare var PhoneNumberField$: StaticStructureSchema;
|
|
221
|
+
export declare var PreParseTextTransformation$: StaticStructureSchema;
|
|
221
222
|
export declare var Price$: StaticStructureSchema;
|
|
222
223
|
export declare var PutLoggingConfigurationRequest$: StaticStructureSchema;
|
|
223
224
|
export declare var PutLoggingConfigurationResponse$: StaticStructureSchema;
|
|
@@ -46,25 +46,44 @@ export declare const PositionalConstraint: {
|
|
|
46
46
|
readonly STARTS_WITH: "STARTS_WITH";
|
|
47
47
|
};
|
|
48
48
|
export type PositionalConstraint = (typeof PositionalConstraint)[keyof typeof PositionalConstraint];
|
|
49
|
+
export declare const PreParseTextTransformationType: {
|
|
50
|
+
readonly COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA: "COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA";
|
|
51
|
+
readonly NONE: "NONE";
|
|
52
|
+
readonly REPLACE_SEMICOLONS_WITH_AMPERSANDS: "REPLACE_SEMICOLONS_WITH_AMPERSANDS";
|
|
53
|
+
readonly URL_DECODE: "URL_DECODE";
|
|
54
|
+
readonly URL_DECODE_UNI: "URL_DECODE_UNI";
|
|
55
|
+
};
|
|
56
|
+
export type PreParseTextTransformationType =
|
|
57
|
+
(typeof PreParseTextTransformationType)[keyof typeof PreParseTextTransformationType];
|
|
49
58
|
export declare const TextTransformationType: {
|
|
50
59
|
readonly BASE64_DECODE: "BASE64_DECODE";
|
|
51
60
|
readonly BASE64_DECODE_EXT: "BASE64_DECODE_EXT";
|
|
52
61
|
readonly CMD_LINE: "CMD_LINE";
|
|
62
|
+
readonly CMD_LINE_UNIX: "CMD_LINE_UNIX";
|
|
63
|
+
readonly CMD_LINE_WIN: "CMD_LINE_WIN";
|
|
53
64
|
readonly COMPRESS_WHITE_SPACE: "COMPRESS_WHITE_SPACE";
|
|
54
65
|
readonly CSS_DECODE: "CSS_DECODE";
|
|
55
66
|
readonly ESCAPE_SEQ_DECODE: "ESCAPE_SEQ_DECODE";
|
|
56
67
|
readonly HEX_DECODE: "HEX_DECODE";
|
|
57
68
|
readonly HTML_ENTITY_DECODE: "HTML_ENTITY_DECODE";
|
|
58
69
|
readonly JS_DECODE: "JS_DECODE";
|
|
70
|
+
readonly JS_DECODE_EXT: "JS_DECODE_EXT";
|
|
59
71
|
readonly LOWERCASE: "LOWERCASE";
|
|
60
72
|
readonly MD5: "MD5";
|
|
61
73
|
readonly NONE: "NONE";
|
|
62
74
|
readonly NORMALIZE_PATH: "NORMALIZE_PATH";
|
|
63
75
|
readonly NORMALIZE_PATH_WIN: "NORMALIZE_PATH_WIN";
|
|
76
|
+
readonly REMOVE_COMMENTS_CHAR: "REMOVE_COMMENTS_CHAR";
|
|
64
77
|
readonly REMOVE_NULLS: "REMOVE_NULLS";
|
|
78
|
+
readonly REMOVE_WHITESPACE: "REMOVE_WHITESPACE";
|
|
65
79
|
readonly REPLACE_COMMENTS: "REPLACE_COMMENTS";
|
|
66
80
|
readonly REPLACE_NULLS: "REPLACE_NULLS";
|
|
81
|
+
readonly SHA256: "SHA256";
|
|
67
82
|
readonly SQL_HEX_DECODE: "SQL_HEX_DECODE";
|
|
83
|
+
readonly TRIM: "TRIM";
|
|
84
|
+
readonly TRIM_LEFT: "TRIM_LEFT";
|
|
85
|
+
readonly TRIM_RIGHT: "TRIM_RIGHT";
|
|
86
|
+
readonly UPPERCASE: "UPPERCASE";
|
|
68
87
|
readonly URL_DECODE: "URL_DECODE";
|
|
69
88
|
readonly URL_DECODE_UNI: "URL_DECODE_UNI";
|
|
70
89
|
readonly UTF8_TO_UNICODE: "UTF8_TO_UNICODE";
|
|
@@ -440,6 +459,7 @@ export declare const ParameterExceptionField: {
|
|
|
440
459
|
readonly PAYLOAD_TYPE: "PAYLOAD_TYPE";
|
|
441
460
|
readonly PAYMENT_NETWORK: "PAYMENT_NETWORK";
|
|
442
461
|
readonly POSITION: "POSITION";
|
|
462
|
+
readonly PRE_PARSE_TEXT_TRANSFORMATION: "PRE_PARSE_TEXT_TRANSFORMATION";
|
|
443
463
|
readonly PRICE_AMOUNT: "PRICE_AMOUNT";
|
|
444
464
|
readonly RATE_BASED_STATEMENT: "RATE_BASED_STATEMENT";
|
|
445
465
|
readonly REGEX_PATTERN_REFERENCE_STATEMENT: "REGEX_PATTERN_REFERENCE_STATEMENT";
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
PayloadType,
|
|
30
30
|
Platform,
|
|
31
31
|
PositionalConstraint,
|
|
32
|
+
PreParseTextTransformationType,
|
|
32
33
|
RankingSortBy,
|
|
33
34
|
RankingStatisticType,
|
|
34
35
|
RateBasedStatementAggregateKeyType,
|
|
@@ -141,6 +142,10 @@ export interface FieldToMatch {
|
|
|
141
142
|
JA4Fingerprint?: JA4Fingerprint | undefined;
|
|
142
143
|
UriFragment?: UriFragment | undefined;
|
|
143
144
|
}
|
|
145
|
+
export interface PreParseTextTransformation {
|
|
146
|
+
Priority: number | undefined;
|
|
147
|
+
Type: PreParseTextTransformationType | undefined;
|
|
148
|
+
}
|
|
144
149
|
export interface TextTransformation {
|
|
145
150
|
Priority: number | undefined;
|
|
146
151
|
Type: TextTransformationType | undefined;
|
|
@@ -149,6 +154,7 @@ export interface ByteMatchStatement {
|
|
|
149
154
|
SearchString: Uint8Array | undefined;
|
|
150
155
|
FieldToMatch: FieldToMatch | undefined;
|
|
151
156
|
TextTransformations: TextTransformation[] | undefined;
|
|
157
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
152
158
|
PositionalConstraint: PositionalConstraint | undefined;
|
|
153
159
|
}
|
|
154
160
|
export interface GeoMatchStatement {
|
|
@@ -343,11 +349,13 @@ export interface RegexMatchStatement {
|
|
|
343
349
|
RegexString: string | undefined;
|
|
344
350
|
FieldToMatch: FieldToMatch | undefined;
|
|
345
351
|
TextTransformations: TextTransformation[] | undefined;
|
|
352
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
346
353
|
}
|
|
347
354
|
export interface RegexPatternSetReferenceStatement {
|
|
348
355
|
ARN: string | undefined;
|
|
349
356
|
FieldToMatch: FieldToMatch | undefined;
|
|
350
357
|
TextTransformations: TextTransformation[] | undefined;
|
|
358
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
351
359
|
}
|
|
352
360
|
export interface RuleGroupReferenceStatement {
|
|
353
361
|
ARN: string | undefined;
|
|
@@ -359,15 +367,18 @@ export interface SizeConstraintStatement {
|
|
|
359
367
|
ComparisonOperator: ComparisonOperator | undefined;
|
|
360
368
|
Size: number | undefined;
|
|
361
369
|
TextTransformations: TextTransformation[] | undefined;
|
|
370
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
362
371
|
}
|
|
363
372
|
export interface SqliMatchStatement {
|
|
364
373
|
FieldToMatch: FieldToMatch | undefined;
|
|
365
374
|
TextTransformations: TextTransformation[] | undefined;
|
|
375
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
366
376
|
SensitivityLevel?: SensitivityLevel | undefined;
|
|
367
377
|
}
|
|
368
378
|
export interface XssMatchStatement {
|
|
369
379
|
FieldToMatch: FieldToMatch | undefined;
|
|
370
380
|
TextTransformations: TextTransformation[] | undefined;
|
|
381
|
+
PreParseTextTransformations?: PreParseTextTransformation[] | undefined;
|
|
371
382
|
}
|
|
372
383
|
export interface APIKeySummary {
|
|
373
384
|
TokenDomains?: string[] | undefined;
|
|
@@ -213,6 +213,7 @@ export declare var PasswordField$: StaticStructureSchema;
|
|
|
213
213
|
export declare var PathStatistics$: StaticStructureSchema;
|
|
214
214
|
export declare var PaymentNetwork$: StaticStructureSchema;
|
|
215
215
|
export declare var PhoneNumberField$: StaticStructureSchema;
|
|
216
|
+
export declare var PreParseTextTransformation$: StaticStructureSchema;
|
|
216
217
|
export declare var Price$: StaticStructureSchema;
|
|
217
218
|
export declare var PutLoggingConfigurationRequest$: StaticStructureSchema;
|
|
218
219
|
export declare var PutLoggingConfigurationResponse$: StaticStructureSchema;
|