Skip to main content

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

Project description

AWS WAF(v2) GEO Restriction Rule Group

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

View on Construct Hub

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

File hashes

Hashes for gammarer.aws-waf-geo-restriction-rule-group-1.3.5.tar.gz
Algorithm Hash digest
SHA256 f7b01b37040f6a05bd6d2035d02d75d4a2b58eb4b777b9934a88afa62f5b39d1
MD5 c4a9e1b2d9be17a82bd64c0bcf96e062
BLAKE2b-256 ec4d37927885a0174256e9724e7293160f86aec713affec464a510659460ff34

See more details on using hashes here.

File details

Details for the file gammarer.aws_waf_geo_restriction_rule_group-1.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarer.aws_waf_geo_restriction_rule_group-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4698a391bc6410f1d7f3cb4c71b5cea66c46677ad06a733a8e14eb2eac8f4596
MD5 be72fcdef00510717391edfbe758e393
BLAKE2b-256 7a94dd9a344c999dceae682f8efcf0bbb8ed8dec3f5041b2f26c59059a30906a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page