This is an AWS CDK Construct for IP Restriction Rule Group on WAF V2
This construct creating resource list.
- WAF V2 RuleGroup
npm install @gammarers/aws-waf-ip-restriction-rule-group
yarn add @gammarers/aws-waf-ip-restriction-rule-group
pnpm add @gammarers/aws-waf-ip-restriction-rule-group
bun add @gammarers/aws-waf-ip-restriction-rule-group
pip install gammarers.aws-waf-ip-restriction-rule-group
dotnet add package Gammarers.CDK.AWS.WafIpRestrictionRuleGroup
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,
});
This project is licensed under the Apache-2.0 License.