# AWS Secure Frontend Web App CloudFront Distribution (for AWS CDK v2)
[](https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-secure-frontend-web-app-cloudfront-distribution)
[](https://pypi.org/project/gammarers.aws-secure-frontend-web-app-cloudfront-distribution/)
[](https://www.nuget.org/packages/Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution/)
[](https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution/actions/workflows/release.yml)
[](https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution/releases)
[](https://constructs.dev/packages/@gammarers/aws-secure-frontend-web-app-cloudfront-distribution)
AWS CloudFront distribution for frontend web app (spa) optimized.
## Install
### TypeScript
#### npm
```shell
npm install @gammarers/aws-secure-frontend-web-app-cloudfront-distribution
```
#### yarn
```shell
yarn add @gammarers/aws-secure-frontend-web-app-cloudfront-distribution
```
### Python
```shell
pip install gammarers.aws-secure-frontend-web-app-cloudfront-distribution
```
### C# / .NET
```shell
dotnet add package Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution
```
## Example
### for Origin Access Control
```python
import { SecureFrontendWebAppCloudFrontDistribution } from '@gammarers/aws-secure-frontend-web-app-cloudfront-distribution';
declare const originBucket: s3.Bucket;
declare const accessLogBucket: s3.Bucket;
declare const certificate: acm.Certificate;
new SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {
comment: 'frontend web app distribution.', // optional
accessLogBucket: accessLogBucket, // optional
certificate: certificate,
distributionDomainName: 'example.com',
originBucket: originBucket,
});
```
## License
This project is licensed under the Apache-2.0 License.
Raw data
{
"_id": null,
"home_page": "https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution.git",
"name": "gammarers.aws-secure-frontend-web-app-cloudfront-distribution",
"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/72/c9/4ad0d7106e6203fee28d215d16bbed3e2d8f3ad3a2ad5a9b7c3599ef4a0f/gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.2.tar.gz",
"platform": null,
"description": "# AWS Secure Frontend Web App CloudFront Distribution (for AWS CDK v2)\n\n[](https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution/blob/main/LICENSE)\n[](https://www.npmjs.com/package/@gammarers/aws-secure-frontend-web-app-cloudfront-distribution)\n[](https://pypi.org/project/gammarers.aws-secure-frontend-web-app-cloudfront-distribution/)\n[](https://www.nuget.org/packages/Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution/)\n[](https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution/actions/workflows/release.yml)\n[](https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution/releases)\n\n[](https://constructs.dev/packages/@gammarers/aws-secure-frontend-web-app-cloudfront-distribution)\n\nAWS CloudFront distribution for frontend web app (spa) optimized.\n\n## Install\n\n### TypeScript\n\n#### npm\n\n```shell\nnpm install @gammarers/aws-secure-frontend-web-app-cloudfront-distribution\n```\n\n#### yarn\n\n```shell\nyarn add @gammarers/aws-secure-frontend-web-app-cloudfront-distribution\n```\n\n### Python\n\n```shell\npip install gammarers.aws-secure-frontend-web-app-cloudfront-distribution\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution\n```\n\n## Example\n\n### for Origin Access Control\n\n```python\nimport { SecureFrontendWebAppCloudFrontDistribution } from '@gammarers/aws-secure-frontend-web-app-cloudfront-distribution';\n\ndeclare const originBucket: s3.Bucket;\ndeclare const accessLogBucket: s3.Bucket;\ndeclare const certificate: acm.Certificate;\n\nnew SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {\n comment: 'frontend web app distribution.', // optional\n accessLogBucket: accessLogBucket, // optional\n certificate: certificate,\n distributionDomainName: 'example.com',\n originBucket: originBucket,\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": "AWS CloudFront distribution for frontend web app (spa) optimized.",
"version": "2.1.2",
"project_urls": {
"Homepage": "https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution.git",
"Source": "https://github.com/gammarers/aws-secure-frontend-web-app-cloudfront-distribution.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2928251f0ad2124e17866b9acd61b7281255f1d432507229696b6c04330f2e41",
"md5": "8355da95b7eb8cce4914f0d30939f71f",
"sha256": "999cd7c174b0f5c93c1b778f4768266aa19cf49493f421e787f04530e1caeccc"
},
"downloads": -1,
"filename": "gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8355da95b7eb8cce4914f0d30939f71f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 35687,
"upload_time": "2025-09-02T12:26:10",
"upload_time_iso_8601": "2025-09-02T12:26:10.011027Z",
"url": "https://files.pythonhosted.org/packages/29/28/251f0ad2124e17866b9acd61b7281255f1d432507229696b6c04330f2e41/gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "72c94ad0d7106e6203fee28d215d16bbed3e2d8f3ad3a2ad5a9b7c3599ef4a0f",
"md5": "1caff85ea48efd24c2a714ebe1609b7d",
"sha256": "925018eb40b3ce35f12005f9e50354c4f2a6aebadee995cb5ccf7f02dc4702e0"
},
"downloads": -1,
"filename": "gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.2.tar.gz",
"has_sig": false,
"md5_digest": "1caff85ea48efd24c2a714ebe1609b7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 36186,
"upload_time": "2025-09-02T12:26:10",
"upload_time_iso_8601": "2025-09-02T12:26:10.921964Z",
"url": "https://files.pythonhosted.org/packages/72/c9/4ad0d7106e6203fee28d215d16bbed3e2d8f3ad3a2ad5a9b7c3599ef4a0f/gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-02 12:26:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gammarers",
"github_project": "aws-secure-frontend-web-app-cloudfront-distribution",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gammarers.aws-secure-frontend-web-app-cloudfront-distribution"
}