Skip to content

Commit

Permalink
add second rule
Browse files Browse the repository at this point in the history
  • Loading branch information
daknhh committed Apr 15, 2024
1 parent 0d57740 commit 7cd2760
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions values/tests/rateBasedwithScopeDown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@ export const config: Config = {
},
priority: 100,
},
{
name: "ip-allow-two",
statement: {
rateBasedStatement: {
aggregateKeyType: "IP",
limit: 100,
evaluationWindowSec: 60,
},
},
action: {
block: {},
},
visibilityConfig: {
sampledRequestsEnabled: true,
cloudWatchMetricsEnabled: true,
metricName: "rate-test",
},
priority: 200,
},
],
},
PostProcess : {
Expand Down

0 comments on commit 7cd2760

Please sign in to comment.