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
C# / .Net
dotnet add package Gammarer.CDK.AWS.WafGeoRestrictionRuleGroup
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-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecee8e22b23165d59feb944f324c75576f506e87b71b0c61a42d6e29bc5feaf5 |
|
MD5 | f057bd92b6e254a8fc8dd9bd7709e646 |
|
BLAKE2b-256 | f2d5a92ba7bd5aab84cc9834196a41fbe736e0b8b456531566daaedafa52f24e |
Close
Hashes for gammarer.aws_waf_geo_restriction_rule_group-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e819cfa9e59c749a6edc2660c385dfad9509f57e62faf2936fd6dc076a7c3460 |
|
MD5 | 5b6fc8af591c06006c63ebeda1ecd818 |
|
BLAKE2b-256 | 0bcc7ec34f33ef4b3a06633360dda839dc43bd56fafbb717e2c54565ec173d19 |