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.3.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.3.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_waf_ip_rate_limit_rule-2.0.3.tar.gz
Algorithm Hash digest
SHA256 e960a1d7b4746dd179a1d16e748d2cf5e1614f3b76b50b06e1b2639fce85f206
MD5 0f69e0f2ddb2a02c63cf5e1644b74b65
BLAKE2b-256 9dbe3186e2940060710409cfbf6c919f891dc2e1fa6709fc74587e018d2a89e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarers.aws_waf_ip_rate_limit_rule-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4e454db668538ae48b1092ef7d0dca26d5fbb4d9d3ebc21f2f5ba59539889fc
MD5 d6ed37b66c3f664b6aaf9c76bdda02b0
BLAKE2b-256 ccf824f07a088ab67f40b5ec4b99e599dd94640986cb72a061aea5ddb8f6cd46

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