# AWS WAF(V2) IP Rete Limit Rule
[](https://github.com/gammarers/aws-waf-ip-rate-limit-rule/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-waf-ip-rate-limit-rule)
[](https://pypi.org/project/gammarers.aws-waf-ip-rate-limit-rule/)
[](https://github.com/gammarers/aws-waf-ip-rate-limit-rule/actions/workflows/release.yml)
[](https://github.com/gammarers/aws-waf-ip-rate-limit-rule/releases)
[](https://constructs.dev/packages/@gammarers/aws-waf-ip-rate-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
```shell
npm install @gammarers/aws-waf-ip-rate-limit-rule
```
#### install by yarn
```shell
yarn add @gammarers/aws-waf-ip-rate-limit-rule
```
### Python
```shell
pip install gammarers.aws-waf-ip-rate-limit-rule
```
## Example
```python
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/gammarers/aws-waf-ip-rate-limit-rule.git",
"name": "gammarers.aws-waf-ip-rate-limit-rule",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.9",
"maintainer_email": null,
"keywords": null,
"author": "yicr<yicr@users.noreply.github.com>",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d4/2b/a6d46c2c834b5d770444e41dbb35f6856ad88c9e757858c03c50a6b6423c/gammarers_aws_waf_ip_rate_limit_rule-2.0.36.tar.gz",
"platform": null,
"description": "# AWS WAF(V2) IP Rete Limit Rule\n\n[](https://github.com/gammarers/aws-waf-ip-rate-limit-rule/blob/main/LICENSE)\n[](https://www.npmjs.com/package/@gammarers/aws-waf-ip-rate-limit-rule)\n[](https://pypi.org/project/gammarers.aws-waf-ip-rate-limit-rule/)\n[](https://github.com/gammarers/aws-waf-ip-rate-limit-rule/actions/workflows/release.yml)\n[](https://github.com/gammarers/aws-waf-ip-rate-limit-rule/releases)\n\n[](https://constructs.dev/packages/@gammarers/aws-waf-ip-rate-limit-rule)\n\nThis is an AWS CDK WAF IP Rate Limit Rule\n\n## Resources\n\nThis construct creating resource list.\n\n* WAF V2 RuleGroup\n\n## Install\n\n### TypeScript\n\n#### install by npm\n\n```shell\nnpm install @gammarers/aws-waf-ip-rate-limit-rule\n```\n\n#### install by yarn\n\n```shell\nyarn add @gammarers/aws-waf-ip-rate-limit-rule\n```\n\n### Python\n\n```shell\npip install gammarers.aws-waf-ip-rate-limit-rule\n```\n\n## Example\n\n```python\nimport { WAFIPRateLimitRule } from '@gammarers/aws-waf-ip-rate-limit-rule';\n\nconst ipRateLimitRule = new WAFIPRateLimitRule({\n rateLimit: 100,\n});\n\nnew wafv2.CfnWebACL(stack, 'WebACL', {\n defaultAction: { allow: {} },\n scope: 'CLOUD_FRONT',\n name: 'WebAclWithCustomRules',\n visibilityConfig: {\n cloudWatchMetricsEnabled: true,\n metricName: 'WebAclMetric',\n sampledRequestsEnabled: true,\n },\n rules: [\n ipRateLimitRule.blockRule({\n priority: 1,\n }),\n ],\n});\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "This is an AWS CDK Rate Limit Rule on WAF V2.",
"version": "2.0.36",
"project_urls": {
"Homepage": "https://github.com/gammarers/aws-waf-ip-rate-limit-rule.git",
"Source": "https://github.com/gammarers/aws-waf-ip-rate-limit-rule.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ea64a9ac55acb7eccce444f6cee940c7a10b643fa19a0e9d33bf7b7195b4543d",
"md5": "cce1e7c193dd60a6139d3a71f2594ed4",
"sha256": "0f74af4acb4c10a386a8ea2bb7da113268421c6c4981887060800ef019adcede"
},
"downloads": -1,
"filename": "gammarers_aws_waf_ip_rate_limit_rule-2.0.36-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cce1e7c193dd60a6139d3a71f2594ed4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 27778,
"upload_time": "2025-08-25T19:29:32",
"upload_time_iso_8601": "2025-08-25T19:29:32.229264Z",
"url": "https://files.pythonhosted.org/packages/ea/64/a9ac55acb7eccce444f6cee940c7a10b643fa19a0e9d33bf7b7195b4543d/gammarers_aws_waf_ip_rate_limit_rule-2.0.36-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d42ba6d46c2c834b5d770444e41dbb35f6856ad88c9e757858c03c50a6b6423c",
"md5": "f4a9ec8ff9a80f1b7f3e779dfa639a2a",
"sha256": "b6cb96975a5237dfa404779a54019f57d94feb3e2c3c571a48c41fa35613f558"
},
"downloads": -1,
"filename": "gammarers_aws_waf_ip_rate_limit_rule-2.0.36.tar.gz",
"has_sig": false,
"md5_digest": "f4a9ec8ff9a80f1b7f3e779dfa639a2a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 28548,
"upload_time": "2025-08-25T19:29:33",
"upload_time_iso_8601": "2025-08-25T19:29:33.096096Z",
"url": "https://files.pythonhosted.org/packages/d4/2b/a6d46c2c834b5d770444e41dbb35f6856ad88c9e757858c03c50a6b6423c/gammarers_aws_waf_ip_rate_limit_rule-2.0.36.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-25 19:29:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gammarers",
"github_project": "aws-waf-ip-rate-limit-rule",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gammarers.aws-waf-ip-rate-limit-rule"
}