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
File details
Details for the file gammarer.aws-waf-geo-restriction-rule-group-1.3.5.tar.gz
.
File metadata
- Download URL: gammarer.aws-waf-geo-restriction-rule-group-1.3.5.tar.gz
- Upload date:
- Size: 38.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7b01b37040f6a05bd6d2035d02d75d4a2b58eb4b777b9934a88afa62f5b39d1 |
|
MD5 | c4a9e1b2d9be17a82bd64c0bcf96e062 |
|
BLAKE2b-256 | ec4d37927885a0174256e9724e7293160f86aec713affec464a510659460ff34 |
File details
Details for the file gammarer.aws_waf_geo_restriction_rule_group-1.3.5-py3-none-any.whl
.
File metadata
- Download URL: gammarer.aws_waf_geo_restriction_rule_group-1.3.5-py3-none-any.whl
- Upload date:
- Size: 38.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4698a391bc6410f1d7f3cb4c71b5cea66c46677ad06a733a8e14eb2eac8f4596 |
|
MD5 | be72fcdef00510717391edfbe758e393 |
|
BLAKE2b-256 | 7a94dd9a344c999dceae682f8efcf0bbb8ed8dec3f5041b2f26c59059a30906a |