This is an AWS CDK Construct for Geo Restriction Rule Group on WAF V2
Project description
AWS WAF(v2) GEO Restriction Rule Group
This is an AWS CDK Construct for Geo Restriction Rule Group on WAF V2
Resources
This construct creating resource list.
- WAF V2 RuleGroup
Install
TypeScript
npm install @gammarer/aws-waf-geo-restriction-rule-group
# or
yarn add @gammarer/aws-waf-geo-restriction-rule-group
Python
pip install gammarer.aws-waf-geo-restriction-rule-group
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-waf-geo-restriction-rule-group</artifactId>
</dependency>
Example
import { WafGeoRestrictRuleGroup } from '@gammarer/aws-waf-geo-restriction-rule-group';
new WafGeoRestrictRuleGroup(stack, 'WafGeoRestrictRuleGroup', {
scope: Scope.GLOBAL, // GLOBAL(CloudFront) or REIGONAL(Application Load Balancer (ALB), Amazon API Gateway REST API, an AWS AppSync GraphQL API, or an Amazon Cognito user pool)
allowCountries: ['JP'], // alpha-2 country and region codes from the International Organization for Standardization (ISO) 3166 standard
});
License
This project is licensed under the Apache-2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gammarer.aws-waf-geo-restriction-rule-group-0.9.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97666e7777f3a81a40d40dc8273e715fb14788c08395aca4169070b6581b5b46 |
|
MD5 | 870b94c75eb23ae465bedf8fe2bbb8d0 |
|
BLAKE2b-256 | d1d268f5a81c1f1fc58f6aa4dc6bb209a2a246a45f46fcc1d84797cbdfbf920d |
Close
Hashes for gammarer.aws_waf_geo_restriction_rule_group-0.9.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26007a4a3cb178c10fd7f6dda1acd94c059443ab0e41a321183fc59cc676df7d |
|
MD5 | 1a50b353b072faef0aba09aabaa9c9ac |
|
BLAKE2b-256 | 80549defebb669008972749285cbbd3fe10c8f4245e393045f9ab376bc55ac81 |