gammarer.aws-waf-ip-restriction-rule-group

This is an AWS CDK Construct for IP Restriction Rule Group on WAF V2


Keywords
aws, aws-cdk, cdk, ip, restrict, waf
License
Apache-2.0
Install
pip install gammarer.aws-waf-ip-restriction-rule-group==1.3.3

Documentation

AWS WAF(V2) IP Restriction Rule Group

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

View on Construct Hub

This is an AWS CDK Construct for IP Restriction Rule Group on WAF V2

Resources

This construct creating resource list.

  • WAF V2 RuleGroup

Install

TypeScript

install by npm

npm install @gammarers/aws-waf-ip-restriction-rule-group

install by yarn

yarn add @gammarers/aws-waf-ip-restriction-rule-group

install by pnpm

pnpm add @gammarers/aws-waf-ip-restriction-rule-group

install by bun

bun add @gammarers/aws-waf-ip-restriction-rule-group

Python

pip install gammarers.aws-waf-ip-restriction-rule-group

C# / .Net

dotnet add package Gammarers.CDK.AWS.WafIpRestrictionRuleGroup

Example

import { WafIpRestrictRuleGroup } from '@gammarers/aws-waf-ip-restriction-rule-group';

declare const allowIpSet: waf.CfnIPSet;

new WafIpRestrictRuleGroup(stack, 'WafIpRestrictRuleGroup', {
  scope: Scope.GLOBAL, // GLOBAL(CloudFront) or REGIONAL(Application Load Balancer (ALB), Amazon API Gateway REST API, an AWS AppSync GraphQL API, or an Amazon Cognito user pool)
  allowIpSetArn: allowIpSet.attrArn,
});

License

This project is licensed under the Apache-2.0 License.