@gammarers/aws-waf-ip-rate-limit-rule
v2.0.57
Published
This is an AWS CDK Rate Limit Rule on WAF V2.
Readme
AWS WAF(V2) IP Rete Limit Rule
This is an AWS CDK WAF IP Rate Limit Rule
Resources
This construct creating resource list.
- WAF V2 RuleGroup
Install
TypeScript
install by npm
npm install @gammarers/aws-waf-ip-rate-limit-ruleinstall by yarn
yarn add @gammarers/aws-waf-ip-rate-limit-rulePython
pip install gammarers.aws-waf-ip-rate-limit-ruleExample
import { WAFIPRateLimitRule } from '@gammarers/aws-waf-ip-rate-limit-rule';
const ipRateLimitRule = new WAFIPRateLimitRule({
rateLimit: 100,
});
new wafv2.CfnWebACL(stack, 'WebACL', {
defaultAction: { allow: {} },
scope: 'CLOUD_FRONT',
name: 'WebAclWithCustomRules',
visibilityConfig: {
cloudWatchMetricsEnabled: true,
metricName: 'WebAclMetric',
sampledRequestsEnabled: true,
},
rules: [
ipRateLimitRule.blockRule({
priority: 1,
}),
],
});License
This project is licensed under the Apache-2.0 License.
