gammarers.aws-waf-geo-restrict-rule


Namegammarers.aws-waf-geo-restrict-rule JSON
Version 2.0.38 PyPI version JSON
download
home_pagehttps://github.com/gammarers/aws-waf-geo-restrict-rule.git
SummaryThis is an AWS CDK Geo Restric Rule on WAF V2
upload_time2025-08-25 19:27:29
maintainerNone
docs_urlNone
authoryicr<yicr@users.noreply.github.com>
requires_python~=3.9
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AWS WAF(v2) GEO Restrict Rule

[![GitHub](https://img.shields.io/github/license/gammarers/aws-waf-geo-restrict-rule?style=flat-square)](https://github.com/gammarers/aws-waf-geo-restrict-rule/blob/main/LICENSE)
[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-waf-geo-restrict-rule?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-waf-geo-restrict-rule)
[![PyPI](https://img.shields.io/pypi/v/gammarers.aws-waf-geo-restrict-rule?style=flat-square)](https://pypi.org/project/gammarers.aws-waf-geo-restrict-rule/)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-waf-geo-restrict-rule/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers/aws-waf-geo-restrict-rule/actions/workflows/release.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-waf-geo-restrict-rule?sort=semver&style=flat-square)](https://github.com/gammarers/aws-waf-geo-restrict-rule/releases)

[![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-waf-geo-restrict-rule)](https://constructs.dev/packages/@gammarers/aws-waf-geo-restrict-rule)

This is an AWS CDK WAF Geo Restrict Rule on WAF V2

## Install

### TypeScript

#### install by npm

```shell
npm install @gammarers/aws-waf-geo-restrict-rule
```

#### install by yarn

```shell
yarn add @gammarers/aws-waf-geo-restrict-rule
```

### Python

```shell
pip install gammarers.aws-waf-geo-restrict-rule
```

## Example

```python
import { WAFGeoRestrictRule } from '@gammarers/aws-waf-geo-restrict-rule';

const geoRestrictRule = new WAFGeoRestrictRule({
  allowCountries: ['JP'],
});

new wafv2.CfnWebACL(stack, 'WebACL', {
  defaultAction: { allow: {} },
  scope: 'CLOUD_FRONT',
  name: 'WebAclWithCustomRules',
  visibilityConfig: {
    cloudWatchMetricsEnabled: true,
    metricName: 'WebAclMetric',
    sampledRequestsEnabled: true,
  },
  rules: [
    geoRestrictRule.allowRule({
      priority: 1,
    }),
    geoRestrictRule.blockRule({
      priority: 2,
    }),
  ],
});
```

## License

This project is licensed under the Apache-2.0 License.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gammarers/aws-waf-geo-restrict-rule.git",
    "name": "gammarers.aws-waf-geo-restrict-rule",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "yicr<yicr@users.noreply.github.com>",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a1/e3/baa8271e66cea397ffab06683f1e82362b8a5b558c289601a23638036036/gammarers_aws_waf_geo_restrict_rule-2.0.38.tar.gz",
    "platform": null,
    "description": "# AWS WAF(v2) GEO Restrict Rule\n\n[![GitHub](https://img.shields.io/github/license/gammarers/aws-waf-geo-restrict-rule?style=flat-square)](https://github.com/gammarers/aws-waf-geo-restrict-rule/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-waf-geo-restrict-rule?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-waf-geo-restrict-rule)\n[![PyPI](https://img.shields.io/pypi/v/gammarers.aws-waf-geo-restrict-rule?style=flat-square)](https://pypi.org/project/gammarers.aws-waf-geo-restrict-rule/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-waf-geo-restrict-rule/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers/aws-waf-geo-restrict-rule/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-waf-geo-restrict-rule?sort=semver&style=flat-square)](https://github.com/gammarers/aws-waf-geo-restrict-rule/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-waf-geo-restrict-rule)](https://constructs.dev/packages/@gammarers/aws-waf-geo-restrict-rule)\n\nThis is an AWS CDK WAF Geo Restrict Rule on WAF V2\n\n## Install\n\n### TypeScript\n\n#### install by npm\n\n```shell\nnpm install @gammarers/aws-waf-geo-restrict-rule\n```\n\n#### install by yarn\n\n```shell\nyarn add @gammarers/aws-waf-geo-restrict-rule\n```\n\n### Python\n\n```shell\npip install gammarers.aws-waf-geo-restrict-rule\n```\n\n## Example\n\n```python\nimport { WAFGeoRestrictRule } from '@gammarers/aws-waf-geo-restrict-rule';\n\nconst geoRestrictRule = new WAFGeoRestrictRule({\n  allowCountries: ['JP'],\n});\n\nnew wafv2.CfnWebACL(stack, 'WebACL', {\n  defaultAction: { allow: {} },\n  scope: 'CLOUD_FRONT',\n  name: 'WebAclWithCustomRules',\n  visibilityConfig: {\n    cloudWatchMetricsEnabled: true,\n    metricName: 'WebAclMetric',\n    sampledRequestsEnabled: true,\n  },\n  rules: [\n    geoRestrictRule.allowRule({\n      priority: 1,\n    }),\n    geoRestrictRule.blockRule({\n      priority: 2,\n    }),\n  ],\n});\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "This is an AWS CDK Geo Restric Rule on WAF V2",
    "version": "2.0.38",
    "project_urls": {
        "Homepage": "https://github.com/gammarers/aws-waf-geo-restrict-rule.git",
        "Source": "https://github.com/gammarers/aws-waf-geo-restrict-rule.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7c257cbca38e3df728329b4f8dd50936957bde406951ba63efa76f3b11365adf",
                "md5": "3f0ad06dab0dfefb3470c81b31052c0d",
                "sha256": "b03f35a2120809e2e130f7a5d38a385c11cf0b68f10e3d135d65e79b8c33eba3"
            },
            "downloads": -1,
            "filename": "gammarers_aws_waf_geo_restrict_rule-2.0.38-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3f0ad06dab0dfefb3470c81b31052c0d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.9",
            "size": 27328,
            "upload_time": "2025-08-25T19:27:28",
            "upload_time_iso_8601": "2025-08-25T19:27:28.258521Z",
            "url": "https://files.pythonhosted.org/packages/7c/25/7cbca38e3df728329b4f8dd50936957bde406951ba63efa76f3b11365adf/gammarers_aws_waf_geo_restrict_rule-2.0.38-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a1e3baa8271e66cea397ffab06683f1e82362b8a5b558c289601a23638036036",
                "md5": "a9583c3c9e5c61ce0873cc58e9318792",
                "sha256": "cd8b77d65e688e9bcb0dfd9d031301b5ff2b86861d5d0535e0b9554b5c4edbb3"
            },
            "downloads": -1,
            "filename": "gammarers_aws_waf_geo_restrict_rule-2.0.38.tar.gz",
            "has_sig": false,
            "md5_digest": "a9583c3c9e5c61ce0873cc58e9318792",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.9",
            "size": 28126,
            "upload_time": "2025-08-25T19:27:29",
            "upload_time_iso_8601": "2025-08-25T19:27:29.136023Z",
            "url": "https://files.pythonhosted.org/packages/a1/e3/baa8271e66cea397ffab06683f1e82362b8a5b558c289601a23638036036/gammarers_aws_waf_geo_restrict_rule-2.0.38.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-25 19:27:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gammarers",
    "github_project": "aws-waf-geo-restrict-rule",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gammarers.aws-waf-geo-restrict-rule"
}
        
Elapsed time: 0.91750s