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-rule
install by yarn
yarn add @gammarers/aws-waf-ip-rate-limit-rule
Python
pip install gammarers.aws-waf-ip-rate-limit-rule
Example
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.
Metadata
Release files for gammarers.aws-waf-ip-rate-limit-rule 2.0.58
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gammarers_aws_waf_ip_rate_limit_rule-2.0.58.tar.gz | 28.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gammarers_aws_waf_ip_rate_limit_rule-2.0.58-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.3 kB
Release files / gammarers_aws_waf_ip_rate_limit_rule-2.0.58.tar.gz
| Download URL | gammarers_aws_waf_ip_rate_limit_rule-2.0.58.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e691f89182bc1996e09cd0c8606fddb01d5db3cb146f5d9681fcfb33a167e329
|
|
BLAKE2b-256 checksum How to use checksums |
42d5c253ebb583b771679fe0ce4758587ca0be2fa7136ace1770f3e4d63ee444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.2
|
Release files / gammarers_aws_waf_ip_rate_limit_rule-2.0.58-py3-none-any.whl
| Download URL | gammarers_aws_waf_ip_rate_limit_rule-2.0.58-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31d69826d7061179abf75940514907bc95d7be11438cbfe3afd998c5cc2b19d5
|
|
BLAKE2b-256 checksum How to use checksums |
fc767d929e3eed831689d797bff8644586f128f2a667132864037deb7bb2f4c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.2
|