@aws-sdk/client-wafv2 3.370.0 → 3.373.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-types/commands/CheckCapacityCommand.d.ts +6 -0
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +6 -0
- package/dist-types/commands/CreateWebACLCommand.d.ts +6 -0
- package/dist-types/commands/GetRuleGroupCommand.d.ts +6 -0
- package/dist-types/commands/GetWebACLCommand.d.ts +6 -0
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +6 -0
- package/dist-types/commands/UpdateWebACLCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +20 -4
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +1 -1
|
@@ -547,6 +547,9 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
|
|
|
547
547
|
* LabelNamespace: { // RateLimitLabelNamespace
|
|
548
548
|
* Namespace: "STRING_VALUE", // required
|
|
549
549
|
* },
|
|
550
|
+
* UriPath: { // RateLimitUriPath
|
|
551
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
552
|
+
* },
|
|
550
553
|
* },
|
|
551
554
|
* ],
|
|
552
555
|
* },
|
|
@@ -764,6 +767,9 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
|
|
|
764
767
|
* LabelNamespace: {
|
|
765
768
|
* Namespace: "STRING_VALUE", // required
|
|
766
769
|
* },
|
|
770
|
+
* UriPath: {
|
|
771
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
772
|
+
* },
|
|
767
773
|
* },
|
|
768
774
|
* ],
|
|
769
775
|
* },
|
|
@@ -540,6 +540,9 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
|
|
|
540
540
|
* LabelNamespace: { // RateLimitLabelNamespace
|
|
541
541
|
* Namespace: "STRING_VALUE", // required
|
|
542
542
|
* },
|
|
543
|
+
* UriPath: { // RateLimitUriPath
|
|
544
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
545
|
+
* },
|
|
543
546
|
* },
|
|
544
547
|
* ],
|
|
545
548
|
* },
|
|
@@ -757,6 +760,9 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
|
|
|
757
760
|
* LabelNamespace: {
|
|
758
761
|
* Namespace: "STRING_VALUE", // required
|
|
759
762
|
* },
|
|
763
|
+
* UriPath: {
|
|
764
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
765
|
+
* },
|
|
760
766
|
* },
|
|
761
767
|
* ],
|
|
762
768
|
* },
|
|
@@ -543,6 +543,9 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
|
|
|
543
543
|
* LabelNamespace: { // RateLimitLabelNamespace
|
|
544
544
|
* Namespace: "STRING_VALUE", // required
|
|
545
545
|
* },
|
|
546
|
+
* UriPath: { // RateLimitUriPath
|
|
547
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
548
|
+
* },
|
|
546
549
|
* },
|
|
547
550
|
* ],
|
|
548
551
|
* },
|
|
@@ -752,6 +755,9 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
|
|
|
752
755
|
* LabelNamespace: {
|
|
753
756
|
* Namespace: "STRING_VALUE", // required
|
|
754
757
|
* },
|
|
758
|
+
* UriPath: {
|
|
759
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
760
|
+
* },
|
|
755
761
|
* },
|
|
756
762
|
* ],
|
|
757
763
|
* },
|
|
@@ -549,6 +549,9 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
|
|
|
549
549
|
* // LabelNamespace: { // RateLimitLabelNamespace
|
|
550
550
|
* // Namespace: "STRING_VALUE", // required
|
|
551
551
|
* // },
|
|
552
|
+
* // UriPath: { // RateLimitUriPath
|
|
553
|
+
* // TextTransformations: "<TextTransformations>", // required
|
|
554
|
+
* // },
|
|
552
555
|
* // },
|
|
553
556
|
* // ],
|
|
554
557
|
* // },
|
|
@@ -766,6 +769,9 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
|
|
|
766
769
|
* // LabelNamespace: {
|
|
767
770
|
* // Namespace: "STRING_VALUE", // required
|
|
768
771
|
* // },
|
|
772
|
+
* // UriPath: {
|
|
773
|
+
* // TextTransformations: "<TextTransformations>", // required
|
|
774
|
+
* // },
|
|
769
775
|
* // },
|
|
770
776
|
* // ],
|
|
771
777
|
* // },
|
|
@@ -551,6 +551,9 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
|
|
|
551
551
|
* // LabelNamespace: { // RateLimitLabelNamespace
|
|
552
552
|
* // Namespace: "STRING_VALUE", // required
|
|
553
553
|
* // },
|
|
554
|
+
* // UriPath: { // RateLimitUriPath
|
|
555
|
+
* // TextTransformations: "<TextTransformations>", // required
|
|
556
|
+
* // },
|
|
554
557
|
* // },
|
|
555
558
|
* // ],
|
|
556
559
|
* // },
|
|
@@ -760,6 +763,9 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
|
|
|
760
763
|
* // LabelNamespace: {
|
|
761
764
|
* // Namespace: "STRING_VALUE", // required
|
|
762
765
|
* // },
|
|
766
|
+
* // UriPath: {
|
|
767
|
+
* // TextTransformations: "<TextTransformations>", // required
|
|
768
|
+
* // },
|
|
763
769
|
* // },
|
|
764
770
|
* // ],
|
|
765
771
|
* // },
|
|
@@ -549,6 +549,9 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
|
|
|
549
549
|
* // LabelNamespace: { // RateLimitLabelNamespace
|
|
550
550
|
* // Namespace: "STRING_VALUE", // required
|
|
551
551
|
* // },
|
|
552
|
+
* // UriPath: { // RateLimitUriPath
|
|
553
|
+
* // TextTransformations: "<TextTransformations>", // required
|
|
554
|
+
* // },
|
|
552
555
|
* // },
|
|
553
556
|
* // ],
|
|
554
557
|
* // },
|
|
@@ -758,6 +761,9 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
|
|
|
758
761
|
* // LabelNamespace: {
|
|
759
762
|
* // Namespace: "STRING_VALUE", // required
|
|
760
763
|
* // },
|
|
764
|
+
* // UriPath: {
|
|
765
|
+
* // TextTransformations: "<TextTransformations>", // required
|
|
766
|
+
* // },
|
|
761
767
|
* // },
|
|
762
768
|
* // ],
|
|
763
769
|
* // },
|
|
@@ -557,6 +557,9 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
|
|
|
557
557
|
* LabelNamespace: { // RateLimitLabelNamespace
|
|
558
558
|
* Namespace: "STRING_VALUE", // required
|
|
559
559
|
* },
|
|
560
|
+
* UriPath: { // RateLimitUriPath
|
|
561
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
562
|
+
* },
|
|
560
563
|
* },
|
|
561
564
|
* ],
|
|
562
565
|
* },
|
|
@@ -774,6 +777,9 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
|
|
|
774
777
|
* LabelNamespace: {
|
|
775
778
|
* Namespace: "STRING_VALUE", // required
|
|
776
779
|
* },
|
|
780
|
+
* UriPath: {
|
|
781
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
782
|
+
* },
|
|
777
783
|
* },
|
|
778
784
|
* ],
|
|
779
785
|
* },
|
|
@@ -562,6 +562,9 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
|
|
|
562
562
|
* LabelNamespace: { // RateLimitLabelNamespace
|
|
563
563
|
* Namespace: "STRING_VALUE", // required
|
|
564
564
|
* },
|
|
565
|
+
* UriPath: { // RateLimitUriPath
|
|
566
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
567
|
+
* },
|
|
565
568
|
* },
|
|
566
569
|
* ],
|
|
567
570
|
* },
|
|
@@ -771,6 +774,9 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
|
|
|
771
774
|
* LabelNamespace: {
|
|
772
775
|
* Namespace: "STRING_VALUE", // required
|
|
773
776
|
* },
|
|
777
|
+
* UriPath: {
|
|
778
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
779
|
+
* },
|
|
774
780
|
* },
|
|
775
781
|
* ],
|
|
776
782
|
* },
|
|
@@ -181,7 +181,7 @@ export interface Body {
|
|
|
181
181
|
* @public
|
|
182
182
|
* <p>The filter to use to identify the subset of cookies to inspect in a web request. </p>
|
|
183
183
|
* <p>You must specify exactly one setting: either <code>All</code>, <code>IncludedCookies</code>, or <code>ExcludedCookies</code>.</p>
|
|
184
|
-
* <p>Example JSON: <code>"MatchPattern": \{ "IncludedCookies":
|
|
184
|
+
* <p>Example JSON: <code>"MatchPattern": \{ "IncludedCookies": [ "session-id-time", "session-id" ] \}</code>
|
|
185
185
|
* </p>
|
|
186
186
|
*/
|
|
187
187
|
export interface CookieMatchPattern {
|
|
@@ -227,7 +227,7 @@ export interface Cookies {
|
|
|
227
227
|
/**
|
|
228
228
|
* <p>The filter to use to identify the subset of cookies to inspect in a web request. </p>
|
|
229
229
|
* <p>You must specify exactly one setting: either <code>All</code>, <code>IncludedCookies</code>, or <code>ExcludedCookies</code>.</p>
|
|
230
|
-
* <p>Example JSON: <code>"MatchPattern": \{ "IncludedCookies":
|
|
230
|
+
* <p>Example JSON: <code>"MatchPattern": \{ "IncludedCookies": [ "session-id-time", "session-id" ] \}</code>
|
|
231
231
|
* </p>
|
|
232
232
|
*/
|
|
233
233
|
MatchPattern: CookieMatchPattern | undefined;
|
|
@@ -298,7 +298,7 @@ export interface HeaderOrder {
|
|
|
298
298
|
* @public
|
|
299
299
|
* <p>The filter to use to identify the subset of headers to inspect in a web request. </p>
|
|
300
300
|
* <p>You must specify exactly one setting: either <code>All</code>, <code>IncludedHeaders</code>, or <code>ExcludedHeaders</code>.</p>
|
|
301
|
-
* <p>Example JSON: <code>"MatchPattern": \{ "ExcludedHeaders":
|
|
301
|
+
* <p>Example JSON: <code>"MatchPattern": \{ "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] \}</code>
|
|
302
302
|
* </p>
|
|
303
303
|
*/
|
|
304
304
|
export interface HeaderMatchPattern {
|
|
@@ -334,7 +334,7 @@ export interface Headers {
|
|
|
334
334
|
/**
|
|
335
335
|
* <p>The filter to use to identify the subset of headers to inspect in a web request. </p>
|
|
336
336
|
* <p>You must specify exactly one setting: either <code>All</code>, <code>IncludedHeaders</code>, or <code>ExcludedHeaders</code>.</p>
|
|
337
|
-
* <p>Example JSON: <code>"MatchPattern": \{ "ExcludedHeaders":
|
|
337
|
+
* <p>Example JSON: <code>"MatchPattern": \{ "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] \}</code>
|
|
338
338
|
* </p>
|
|
339
339
|
*/
|
|
340
340
|
MatchPattern: HeaderMatchPattern | undefined;
|
|
@@ -2411,6 +2411,17 @@ export interface RateLimitQueryString {
|
|
|
2411
2411
|
*/
|
|
2412
2412
|
TextTransformations: TextTransformation[] | undefined;
|
|
2413
2413
|
}
|
|
2414
|
+
/**
|
|
2415
|
+
* @public
|
|
2416
|
+
* <p>Specifies the request's URI path as an aggregate key for a rate-based rule. Each distinct URI path contributes to the aggregation instance. If you use just the
|
|
2417
|
+
* URI path as your custom key, then each URI path fully defines an aggregation instance. </p>
|
|
2418
|
+
*/
|
|
2419
|
+
export interface RateLimitUriPath {
|
|
2420
|
+
/**
|
|
2421
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2422
|
+
*/
|
|
2423
|
+
TextTransformations: TextTransformation[] | undefined;
|
|
2424
|
+
}
|
|
2414
2425
|
/**
|
|
2415
2426
|
* @public
|
|
2416
2427
|
* <p>Specifies a single custom aggregate key for a rate-base rule. </p>
|
|
@@ -2465,6 +2476,11 @@ export interface RateBasedStatementCustomKey {
|
|
|
2465
2476
|
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html">Label syntax and naming requirements</a> in the <i>WAF Developer Guide</i>.</p>
|
|
2466
2477
|
*/
|
|
2467
2478
|
LabelNamespace?: RateLimitLabelNamespace;
|
|
2479
|
+
/**
|
|
2480
|
+
* <p>Use the request's URI path as an aggregate key. Each distinct URI path contributes to the aggregation instance. If you use just the
|
|
2481
|
+
* URI path as your custom key, then each URI path fully defines an aggregation instance. </p>
|
|
2482
|
+
*/
|
|
2483
|
+
UriPath?: RateLimitUriPath;
|
|
2468
2484
|
}
|
|
2469
2485
|
/**
|
|
2470
2486
|
* @public
|
|
@@ -594,6 +594,9 @@ export interface RateLimitQueryArgument {
|
|
|
594
594
|
export interface RateLimitQueryString {
|
|
595
595
|
TextTransformations: TextTransformation[] | undefined;
|
|
596
596
|
}
|
|
597
|
+
export interface RateLimitUriPath {
|
|
598
|
+
TextTransformations: TextTransformation[] | undefined;
|
|
599
|
+
}
|
|
597
600
|
export interface RateBasedStatementCustomKey {
|
|
598
601
|
Header?: RateLimitHeader;
|
|
599
602
|
Cookie?: RateLimitCookie;
|
|
@@ -603,6 +606,7 @@ export interface RateBasedStatementCustomKey {
|
|
|
603
606
|
ForwardedIP?: RateLimitForwardedIP;
|
|
604
607
|
IP?: RateLimitIP;
|
|
605
608
|
LabelNamespace?: RateLimitLabelNamespace;
|
|
609
|
+
UriPath?: RateLimitUriPath;
|
|
606
610
|
}
|
|
607
611
|
export interface RegexMatchStatement {
|
|
608
612
|
RegexString: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wafv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.373.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|