@aws-sdk/client-wafv2 3.521.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 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.521.0",
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",
@@ -20,42 +20,42 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.521.0",
24
- "@aws-sdk/core": "3.521.0",
25
- "@aws-sdk/credential-provider-node": "3.521.0",
26
- "@aws-sdk/middleware-host-header": "3.521.0",
27
- "@aws-sdk/middleware-logger": "3.521.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.521.0",
29
- "@aws-sdk/middleware-user-agent": "3.521.0",
30
- "@aws-sdk/region-config-resolver": "3.521.0",
31
- "@aws-sdk/types": "3.521.0",
32
- "@aws-sdk/util-endpoints": "3.521.0",
33
- "@aws-sdk/util-user-agent-browser": "3.521.0",
34
- "@aws-sdk/util-user-agent-node": "3.521.0",
35
- "@smithy/config-resolver": "^2.1.2",
36
- "@smithy/core": "^1.3.3",
37
- "@smithy/fetch-http-handler": "^2.4.2",
38
- "@smithy/hash-node": "^2.1.2",
39
- "@smithy/invalid-dependency": "^2.1.2",
40
- "@smithy/middleware-content-length": "^2.1.2",
41
- "@smithy/middleware-endpoint": "^2.4.2",
42
- "@smithy/middleware-retry": "^2.1.2",
43
- "@smithy/middleware-serde": "^2.1.2",
44
- "@smithy/middleware-stack": "^2.1.2",
45
- "@smithy/node-config-provider": "^2.2.2",
46
- "@smithy/node-http-handler": "^2.4.0",
47
- "@smithy/protocol-http": "^3.2.0",
48
- "@smithy/smithy-client": "^2.4.0",
49
- "@smithy/types": "^2.10.0",
50
- "@smithy/url-parser": "^2.1.2",
23
+ "@aws-sdk/client-sts": "3.523.0",
24
+ "@aws-sdk/core": "3.523.0",
25
+ "@aws-sdk/credential-provider-node": "3.523.0",
26
+ "@aws-sdk/middleware-host-header": "3.523.0",
27
+ "@aws-sdk/middleware-logger": "3.523.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.523.0",
30
+ "@aws-sdk/region-config-resolver": "3.523.0",
31
+ "@aws-sdk/types": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.523.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.523.0",
34
+ "@aws-sdk/util-user-agent-node": "3.523.0",
35
+ "@smithy/config-resolver": "^2.1.3",
36
+ "@smithy/core": "^1.3.4",
37
+ "@smithy/fetch-http-handler": "^2.4.3",
38
+ "@smithy/hash-node": "^2.1.3",
39
+ "@smithy/invalid-dependency": "^2.1.3",
40
+ "@smithy/middleware-content-length": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.3",
42
+ "@smithy/middleware-retry": "^2.1.3",
43
+ "@smithy/middleware-serde": "^2.1.3",
44
+ "@smithy/middleware-stack": "^2.1.3",
45
+ "@smithy/node-config-provider": "^2.2.3",
46
+ "@smithy/node-http-handler": "^2.4.1",
47
+ "@smithy/protocol-http": "^3.2.1",
48
+ "@smithy/smithy-client": "^2.4.1",
49
+ "@smithy/types": "^2.10.1",
50
+ "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.2",
55
- "@smithy/util-defaults-mode-node": "^2.2.1",
56
- "@smithy/util-endpoints": "^1.1.2",
57
- "@smithy/util-middleware": "^2.1.2",
58
- "@smithy/util-retry": "^2.1.2",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.3",
55
+ "@smithy/util-defaults-mode-node": "^2.2.2",
56
+ "@smithy/util-endpoints": "^1.1.3",
57
+ "@smithy/util-middleware": "^2.1.3",
58
+ "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0"
61
61
  },