Skip to main content

This is an AWS CDK Rate Limit Rule on WAF V2.

Project description

AWS WAF(V2) IP Rete Limit Rule

GitHub npm (scoped) PyPI GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gammarers_aws_waf_ip_rate_limit_rule-2.0.1.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file gammarers_aws_waf_ip_rate_limit_rule-2.0.1.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_waf_ip_rate_limit_rule-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e640a102a1973fbba5c49508d789578a013d439191f0b0e6ad55fa2382a5bd34
MD5 65b0b2c980e9eff10f35ec817b288998
BLAKE2b-256 9039db9d078a35f239f9fe3d9b4db47aa3c128c305a6655abff26b92f0b875bf

See more details on using hashes here.

File details

Details for the file gammarers.aws_waf_ip_rate_limit_rule-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarers.aws_waf_ip_rate_limit_rule-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06bc712a4ad85b8b2b2f033397981d94fcccb1395a6e7a709ab6d6b4596f76b0
MD5 171d17897bbf88ffb5224de25ddca0a8
BLAKE2b-256 f51386b1bb7f88b3be455772e462e7b5b1047296619a73f999fb4f65742b1596

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page