@aws-sdk/client-wafv2 3.523.0 → 3.524.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 +2 -0
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-types/commands/CheckCapacityCommand.d.ts +2 -0
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +2 -0
- package/dist-types/commands/CreateWebACLCommand.d.ts +2 -0
- package/dist-types/commands/GetRuleGroupCommand.d.ts +2 -0
- package/dist-types/commands/GetWebACLCommand.d.ts +2 -0
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +2 -0
- package/dist-types/commands/UpdateWebACLCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -2464,6 +2464,7 @@ var se_RateBasedStatement = /* @__PURE__ */ __name((input, context) => {
|
|
|
2464
2464
|
return (0, import_smithy_client.take)(input, {
|
|
2465
2465
|
AggregateKeyType: [],
|
|
2466
2466
|
CustomKeys: import_smithy_client._json,
|
|
2467
|
+
EvaluationWindowSec: [],
|
|
2467
2468
|
ForwardedIPConfig: import_smithy_client._json,
|
|
2468
2469
|
Limit: [],
|
|
2469
2470
|
ScopeDownStatement: (_) => se_Statement(_, context)
|
|
@@ -2741,6 +2742,7 @@ var de_RateBasedStatement = /* @__PURE__ */ __name((output, context) => {
|
|
|
2741
2742
|
return (0, import_smithy_client.take)(output, {
|
|
2742
2743
|
AggregateKeyType: import_smithy_client.expectString,
|
|
2743
2744
|
CustomKeys: import_smithy_client._json,
|
|
2745
|
+
EvaluationWindowSec: import_smithy_client.expectLong,
|
|
2744
2746
|
ForwardedIPConfig: import_smithy_client._json,
|
|
2745
2747
|
Limit: import_smithy_client.expectLong,
|
|
2746
2748
|
ScopeDownStatement: (_) => de_Statement(_, context)
|
|
@@ -1353,6 +1353,7 @@ const se_RateBasedStatement = (input, context) => {
|
|
|
1353
1353
|
return take(input, {
|
|
1354
1354
|
AggregateKeyType: [],
|
|
1355
1355
|
CustomKeys: _json,
|
|
1356
|
+
EvaluationWindowSec: [],
|
|
1356
1357
|
ForwardedIPConfig: _json,
|
|
1357
1358
|
Limit: [],
|
|
1358
1359
|
ScopeDownStatement: (_) => se_Statement(_, context),
|
|
@@ -1640,6 +1641,7 @@ const de_RateBasedStatement = (output, context) => {
|
|
|
1640
1641
|
return take(output, {
|
|
1641
1642
|
AggregateKeyType: __expectString,
|
|
1642
1643
|
CustomKeys: _json,
|
|
1644
|
+
EvaluationWindowSec: __expectLong,
|
|
1643
1645
|
ForwardedIPConfig: _json,
|
|
1644
1646
|
Limit: __expectLong,
|
|
1645
1647
|
ScopeDownStatement: (_) => de_Statement(_, context),
|
|
@@ -453,6 +453,7 @@ declare const CheckCapacityCommand_base: {
|
|
|
453
453
|
* },
|
|
454
454
|
* RateBasedStatement: { // RateBasedStatement
|
|
455
455
|
* Limit: Number("long"), // required
|
|
456
|
+
* EvaluationWindowSec: Number("long"),
|
|
456
457
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
457
458
|
* ScopeDownStatement: {
|
|
458
459
|
* ByteMatchStatement: {
|
|
@@ -536,6 +537,7 @@ declare const CheckCapacityCommand_base: {
|
|
|
536
537
|
* },
|
|
537
538
|
* RateBasedStatement: {
|
|
538
539
|
* Limit: Number("long"), // required
|
|
540
|
+
* EvaluationWindowSec: Number("long"),
|
|
539
541
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
540
542
|
* ScopeDownStatement: "<Statement>",
|
|
541
543
|
* ForwardedIPConfig: {
|
|
@@ -446,6 +446,7 @@ declare const CreateRuleGroupCommand_base: {
|
|
|
446
446
|
* },
|
|
447
447
|
* RateBasedStatement: { // RateBasedStatement
|
|
448
448
|
* Limit: Number("long"), // required
|
|
449
|
+
* EvaluationWindowSec: Number("long"),
|
|
449
450
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
450
451
|
* ScopeDownStatement: {
|
|
451
452
|
* ByteMatchStatement: {
|
|
@@ -529,6 +530,7 @@ declare const CreateRuleGroupCommand_base: {
|
|
|
529
530
|
* },
|
|
530
531
|
* RateBasedStatement: {
|
|
531
532
|
* Limit: Number("long"), // required
|
|
533
|
+
* EvaluationWindowSec: Number("long"),
|
|
532
534
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
533
535
|
* ScopeDownStatement: "<Statement>",
|
|
534
536
|
* ForwardedIPConfig: {
|
|
@@ -459,6 +459,7 @@ declare const CreateWebACLCommand_base: {
|
|
|
459
459
|
* },
|
|
460
460
|
* RateBasedStatement: { // RateBasedStatement
|
|
461
461
|
* Limit: Number("long"), // required
|
|
462
|
+
* EvaluationWindowSec: Number("long"),
|
|
462
463
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
463
464
|
* ScopeDownStatement: {
|
|
464
465
|
* ByteMatchStatement: {
|
|
@@ -532,6 +533,7 @@ declare const CreateWebACLCommand_base: {
|
|
|
532
533
|
* },
|
|
533
534
|
* RateBasedStatement: {
|
|
534
535
|
* Limit: Number("long"), // required
|
|
536
|
+
* EvaluationWindowSec: Number("long"),
|
|
535
537
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
536
538
|
* ScopeDownStatement: "<Statement>",
|
|
537
539
|
* ForwardedIPConfig: {
|
|
@@ -455,6 +455,7 @@ declare const GetRuleGroupCommand_base: {
|
|
|
455
455
|
* // },
|
|
456
456
|
* // RateBasedStatement: { // RateBasedStatement
|
|
457
457
|
* // Limit: Number("long"), // required
|
|
458
|
+
* // EvaluationWindowSec: Number("long"),
|
|
458
459
|
* // AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
459
460
|
* // ScopeDownStatement: {
|
|
460
461
|
* // ByteMatchStatement: {
|
|
@@ -538,6 +539,7 @@ declare const GetRuleGroupCommand_base: {
|
|
|
538
539
|
* // },
|
|
539
540
|
* // RateBasedStatement: {
|
|
540
541
|
* // Limit: Number("long"), // required
|
|
542
|
+
* // EvaluationWindowSec: Number("long"),
|
|
541
543
|
* // AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
542
544
|
* // ScopeDownStatement: "<Statement>",
|
|
543
545
|
* // ForwardedIPConfig: {
|
|
@@ -467,6 +467,7 @@ declare const GetWebACLCommand_base: {
|
|
|
467
467
|
* // },
|
|
468
468
|
* // RateBasedStatement: { // RateBasedStatement
|
|
469
469
|
* // Limit: Number("long"), // required
|
|
470
|
+
* // EvaluationWindowSec: Number("long"),
|
|
470
471
|
* // AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
471
472
|
* // ScopeDownStatement: {
|
|
472
473
|
* // ByteMatchStatement: {
|
|
@@ -540,6 +541,7 @@ declare const GetWebACLCommand_base: {
|
|
|
540
541
|
* // },
|
|
541
542
|
* // RateBasedStatement: {
|
|
542
543
|
* // Limit: Number("long"), // required
|
|
544
|
+
* // EvaluationWindowSec: Number("long"),
|
|
543
545
|
* // AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
544
546
|
* // ScopeDownStatement: "<Statement>",
|
|
545
547
|
* // ForwardedIPConfig: {
|
|
@@ -475,6 +475,7 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
475
475
|
* // },
|
|
476
476
|
* // RateBasedStatement: { // RateBasedStatement
|
|
477
477
|
* // Limit: Number("long"), // required
|
|
478
|
+
* // EvaluationWindowSec: Number("long"),
|
|
478
479
|
* // AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
479
480
|
* // ScopeDownStatement: {
|
|
480
481
|
* // ByteMatchStatement: {
|
|
@@ -548,6 +549,7 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
548
549
|
* // },
|
|
549
550
|
* // RateBasedStatement: {
|
|
550
551
|
* // Limit: Number("long"), // required
|
|
552
|
+
* // EvaluationWindowSec: Number("long"),
|
|
551
553
|
* // AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
552
554
|
* // ScopeDownStatement: "<Statement>",
|
|
553
555
|
* // ForwardedIPConfig: {
|
|
@@ -481,6 +481,7 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
481
481
|
* },
|
|
482
482
|
* RateBasedStatement: { // RateBasedStatement
|
|
483
483
|
* Limit: Number("long"), // required
|
|
484
|
+
* EvaluationWindowSec: Number("long"),
|
|
484
485
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
485
486
|
* ScopeDownStatement: {
|
|
486
487
|
* ByteMatchStatement: {
|
|
@@ -564,6 +565,7 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
564
565
|
* },
|
|
565
566
|
* RateBasedStatement: {
|
|
566
567
|
* Limit: Number("long"), // required
|
|
568
|
+
* EvaluationWindowSec: Number("long"),
|
|
567
569
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
568
570
|
* ScopeDownStatement: "<Statement>",
|
|
569
571
|
* ForwardedIPConfig: {
|
|
@@ -496,6 +496,7 @@ declare const UpdateWebACLCommand_base: {
|
|
|
496
496
|
* },
|
|
497
497
|
* RateBasedStatement: { // RateBasedStatement
|
|
498
498
|
* Limit: Number("long"), // required
|
|
499
|
+
* EvaluationWindowSec: Number("long"),
|
|
499
500
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
500
501
|
* ScopeDownStatement: {
|
|
501
502
|
* ByteMatchStatement: {
|
|
@@ -569,6 +570,7 @@ declare const UpdateWebACLCommand_base: {
|
|
|
569
570
|
* },
|
|
570
571
|
* RateBasedStatement: {
|
|
571
572
|
* Limit: Number("long"), // required
|
|
573
|
+
* EvaluationWindowSec: Number("long"),
|
|
572
574
|
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
573
575
|
* ScopeDownStatement: "<Statement>",
|
|
574
576
|
* ForwardedIPConfig: {
|
|
@@ -7121,6 +7121,17 @@ export interface RateBasedStatement {
|
|
|
7121
7121
|
* </ul>
|
|
7122
7122
|
*/
|
|
7123
7123
|
Limit: number | undefined;
|
|
7124
|
+
/**
|
|
7125
|
+
* @public
|
|
7126
|
+
* <p>The amount of time, in seconds, that WAF
|
|
7127
|
+
* should include in its request counts, looking back from the current time. For example,
|
|
7128
|
+
* for a setting of 120, when WAF checks the rate, it counts the requests for the 2 minutes immediately preceding
|
|
7129
|
+
* the current time. Valid settings are 60, 120, 300, and 600. </p>
|
|
7130
|
+
* <p>This setting doesn't determine how often WAF checks the rate, but how far back it looks each
|
|
7131
|
+
* time it checks. WAF checks the rate about every 10 seconds.</p>
|
|
7132
|
+
* <p>Default: <code>300</code> (5 minutes)</p>
|
|
7133
|
+
*/
|
|
7134
|
+
EvaluationWindowSec?: number;
|
|
7124
7135
|
/**
|
|
7125
7136
|
* @public
|
|
7126
7137
|
* <p>Setting that indicates how to aggregate the request counts. </p>
|
|
@@ -1639,6 +1639,7 @@ export interface NotStatement {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
export interface RateBasedStatement {
|
|
1641
1641
|
Limit: number | undefined;
|
|
1642
|
+
EvaluationWindowSec?: number;
|
|
1642
1643
|
AggregateKeyType: RateBasedStatementAggregateKeyType | undefined;
|
|
1643
1644
|
ScopeDownStatement?: Statement;
|
|
1644
1645
|
ForwardedIPConfig?: ForwardedIPConfig;
|
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.524.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-wafv2",
|