gammarer.aws-secure-frontend-web-app-cloudfront-distribution


Namegammarer.aws-secure-frontend-web-app-cloudfront-distribution JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution.git
SummaryAWS CloudFront distribution for frontend web app (spa) optimized.
upload_time2024-04-21 18:23:32
maintainerNone
docs_urlNone
authoryicr<yicr@users.noreply.github.com>
requires_python~=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AWS Secure Frontend Web App CloudFront Distribution (for AWS CDK v2)

[![GitHub](https://img.shields.io/github/license/gammarer/aws-secure-frontend-web-app-cloudfront-distribution?style=flat-square)](https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/blob/main/LICENSE)
[![npm (scoped)](https://img.shields.io/npm/v/@gammarer/aws-secure-frontend-web-app-cloudfront-distribution?style=flat-square)](https://www.npmjs.com/package/@gammarer/aws-secure-frontend-web-app-cloudfront-distribution)
[![PyPI](https://img.shields.io/pypi/v/gammarer.aws-secure-frontend-web-app-cloudfront-distribution?style=flat-square)](https://pypi.org/project/gammarer.aws-secure-frontend-web-app-cloudfront-distribution/)
[![Nuget](https://img.shields.io/nuget/v/Gammarer.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution?style=flat-square)](https://www.nuget.org/packages/Gammarer.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution/)
[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/com.gammarer/aws-secure-frontend-web-app-cloudfront-distribution?server=https%3A%2F%2Fs01.oss.sonatype.org%2F&style=flat-square)](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/actions/workflows/release.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarer/aws-secure-frontend-web-app-cloudfront-distribution?sort=semver&style=flat-square)](https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/releases)

[![View on Construct Hub](https://constructs.dev/badge?package=@gammarer/aws-secure-frontend-web-app-cloudfront-distribution)](https://constructs.dev/packages/@gammarer/aws-secure-frontend-web-app-cloudfront-distribution)

AWS CloudFront distribution for frontend web app (spa) optimized.

## Install

### TypeScript

```shell
npm install @gammarer/aws-secure-frontend-web-app-cloudfront-distribution
# or
yarn add @gammarer/aws-secure-frontend-web-app-cloudfront-distribution
```

### Python

```shell
pip install gammarer.aws-secure-frontend-web-app-cloudfront-distribution
```

### C# / .NET

```shell
dotnet add package Gammarer.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution
```

### Java

Add the following to pom.xml:

```xml
<dependency>
  <groupId>com.gammarer</groupId>
  <artifactId>aws-secure-frontend-web-app-cloudfront-distribution</artifactId>
</dependency>
```

## Example

### for Origin Access Control

```python
import { SecureFrontendWebAppCloudFrontDistribution, S3OriginAccessType } from '@gammarer/aws-secure-frontend-web-app-cloudfront-distribution';

declare const originBucket: s3.Bucket;
declare const accessLogBucket: s3.Bucket;
declare const certificate: acm.Certificate;
declare const cfnOriginAccessControl: cloudfront.CfnOriginAccessControl

new SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {
  comment: 'frontend web app distribution.', // optional
  accessLogBucket: accessLogBucket, // optional
  certificate: certificate,
  distributionDomainName: 'example.com',
  s3OriginAccessType: S3OriginAccessType.ORIGIN_ACCESS_CONTROL,
  originAccessControlId: cfnOriginAccessControl.attrId,
  originBucket: originBucket,
});
```

### for Origin Access Identity

```python
import { SecureFrontendWebAppCloudFrontDistribution, S3OriginAccessType } from '@gammarer/aws-secure-frontend-web-app-cloudfront-distribution';

declare const originBucket: s3.Bucket;
declare const accessLogBucket: s3.Bucket;
declare const certificate: acm.Certificate;
declare const originAccessIdentity: cloudfront.OriginAccessIdentity;

new SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {
  comment: 'frontend web app distribution.', // optional
  accessLogBucket: accessLogBucket, // optional
  certificate: certificate,
  distributionDomainName: 'example.com',
  s3OriginAccessType: S3OriginAccessType.ORIGIN_ACCESS_IDENTITY,
  originAccessIdentity: originAccessIdentity,
  originBucket: originBucket,
});
```

## License

This project is licensed under the Apache-2.0 License.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution.git",
    "name": "gammarer.aws-secure-frontend-web-app-cloudfront-distribution",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "yicr<yicr@users.noreply.github.com>",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3e/47/af97d562283913331df140cbde756cb66de4fc6324bb83b93c3e930fce30/gammarer.aws-secure-frontend-web-app-cloudfront-distribution-1.2.2.tar.gz",
    "platform": null,
    "description": "# AWS Secure Frontend Web App CloudFront Distribution (for AWS CDK v2)\n\n[![GitHub](https://img.shields.io/github/license/gammarer/aws-secure-frontend-web-app-cloudfront-distribution?style=flat-square)](https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarer/aws-secure-frontend-web-app-cloudfront-distribution?style=flat-square)](https://www.npmjs.com/package/@gammarer/aws-secure-frontend-web-app-cloudfront-distribution)\n[![PyPI](https://img.shields.io/pypi/v/gammarer.aws-secure-frontend-web-app-cloudfront-distribution?style=flat-square)](https://pypi.org/project/gammarer.aws-secure-frontend-web-app-cloudfront-distribution/)\n[![Nuget](https://img.shields.io/nuget/v/Gammarer.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution?style=flat-square)](https://www.nuget.org/packages/Gammarer.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution/)\n[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/com.gammarer/aws-secure-frontend-web-app-cloudfront-distribution?server=https%3A%2F%2Fs01.oss.sonatype.org%2F&style=flat-square)](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarer/aws-secure-frontend-web-app-cloudfront-distribution?sort=semver&style=flat-square)](https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=@gammarer/aws-secure-frontend-web-app-cloudfront-distribution)](https://constructs.dev/packages/@gammarer/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```shell\nnpm install @gammarer/aws-secure-frontend-web-app-cloudfront-distribution\n# or\nyarn add @gammarer/aws-secure-frontend-web-app-cloudfront-distribution\n```\n\n### Python\n\n```shell\npip install gammarer.aws-secure-frontend-web-app-cloudfront-distribution\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarer.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution\n```\n\n### Java\n\nAdd the following to pom.xml:\n\n```xml\n<dependency>\n  <groupId>com.gammarer</groupId>\n  <artifactId>aws-secure-frontend-web-app-cloudfront-distribution</artifactId>\n</dependency>\n```\n\n## Example\n\n### for Origin Access Control\n\n```python\nimport { SecureFrontendWebAppCloudFrontDistribution, S3OriginAccessType } from '@gammarer/aws-secure-frontend-web-app-cloudfront-distribution';\n\ndeclare const originBucket: s3.Bucket;\ndeclare const accessLogBucket: s3.Bucket;\ndeclare const certificate: acm.Certificate;\ndeclare const cfnOriginAccessControl: cloudfront.CfnOriginAccessControl\n\nnew SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {\n  comment: 'frontend web app distribution.', // optional\n  accessLogBucket: accessLogBucket, // optional\n  certificate: certificate,\n  distributionDomainName: 'example.com',\n  s3OriginAccessType: S3OriginAccessType.ORIGIN_ACCESS_CONTROL,\n  originAccessControlId: cfnOriginAccessControl.attrId,\n  originBucket: originBucket,\n});\n```\n\n### for Origin Access Identity\n\n```python\nimport { SecureFrontendWebAppCloudFrontDistribution, S3OriginAccessType } from '@gammarer/aws-secure-frontend-web-app-cloudfront-distribution';\n\ndeclare const originBucket: s3.Bucket;\ndeclare const accessLogBucket: s3.Bucket;\ndeclare const certificate: acm.Certificate;\ndeclare const originAccessIdentity: cloudfront.OriginAccessIdentity;\n\nnew SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {\n  comment: 'frontend web app distribution.', // optional\n  accessLogBucket: accessLogBucket, // optional\n  certificate: certificate,\n  distributionDomainName: 'example.com',\n  s3OriginAccessType: S3OriginAccessType.ORIGIN_ACCESS_IDENTITY,\n  originAccessIdentity: originAccessIdentity,\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": "1.2.2",
    "project_urls": {
        "Homepage": "https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution.git",
        "Source": "https://github.com/gammarer/aws-secure-frontend-web-app-cloudfront-distribution.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d5abbdebec37419009fa573d6b38fecd2e7619246364a2651113f836a3b6e95",
                "md5": "2f422b3a7165ef2a4ad2438247bc068c",
                "sha256": "b661a55cfe51bbdfc6ed4a66f2848d63ded92d6129ba27aff61a6a94ac7e5630"
            },
            "downloads": -1,
            "filename": "gammarer.aws_secure_frontend_web_app_cloudfront_distribution-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f422b3a7165ef2a4ad2438247bc068c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 35882,
            "upload_time": "2024-04-21T18:23:30",
            "upload_time_iso_8601": "2024-04-21T18:23:30.406658Z",
            "url": "https://files.pythonhosted.org/packages/8d/5a/bbdebec37419009fa573d6b38fecd2e7619246364a2651113f836a3b6e95/gammarer.aws_secure_frontend_web_app_cloudfront_distribution-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e47af97d562283913331df140cbde756cb66de4fc6324bb83b93c3e930fce30",
                "md5": "c61b854aa10130779d63b885049959be",
                "sha256": "5ca1b2248d40175100b438cfe438d2d3818a98c208d50b9d495f4cd155cf06b0"
            },
            "downloads": -1,
            "filename": "gammarer.aws-secure-frontend-web-app-cloudfront-distribution-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c61b854aa10130779d63b885049959be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 36669,
            "upload_time": "2024-04-21T18:23:32",
            "upload_time_iso_8601": "2024-04-21T18:23:32.631925Z",
            "url": "https://files.pythonhosted.org/packages/3e/47/af97d562283913331df140cbde756cb66de4fc6324bb83b93c3e930fce30/gammarer.aws-secure-frontend-web-app-cloudfront-distribution-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-21 18:23:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gammarer",
    "github_project": "aws-secure-frontend-web-app-cloudfront-distribution",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gammarer.aws-secure-frontend-web-app-cloudfront-distribution"
}
        
Elapsed time: 0.23254s