CDK Constructs for AWS Cloudfront to AWS S3 integration.
Project description
aws-cloudfront-s3 module
---This is a developer preview (public beta) module.
All classes are under active development and subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
API Reference: | http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-cloudfront-s3/ |
---|
Language | Package |
---|---|
{: style="height:16px;width:16px"} Python | aws_solutions_konstruk.aws_cloudfront_s3 |
{: style="height:16px;width:16px"} Typescript | @aws-solutions-konstruk/aws-cloudfront-s3 |
This AWS Solutions Konstruk implements an AWS Cloudfront fronting an AWS S3 Bucket.
Here is a minimal deployable pattern definition:
const { CloudFrontToS3 } = require('@aws-solutions-konstruk/aws-cloudfront-s3');
new CloudFrontToS3(stack, 'test-cloudfront-s3', {
deployBucket: true
});
Initializer
new CloudFrontToS3(scope: Construct, id: string, props: CloudFrontToS3Props);
Parameters
- scope
Construct
- id
string
- props
CloudFrontToS3Props
Pattern Construct Props
Name | Type | Description |
---|---|---|
deployBucket | boolean |
Whether to create a S3 Bucket or use an existing S3 Bucket |
existingBucketObj? | s3.Bucket |
Existing instance of S3 Bucket object |
bucketProps? | s3.BucketProps |
Optional user provided props to override the default props for S3 Bucket |
cloudFrontDistributionProps? | cloudfront.CloudFrontWebDistributionProps |
Optional user provided props to override the default props for Cloudfront Distribution |
insertHttpSecurityHeaders? | boolean |
Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all resonses from cloudfront |
Pattern Properties
Name | Type | Description |
---|---|---|
cloudFrontWebDistribution() | cloudfront.CloudFrontWebDistribution |
Returns an instance of cloudfront.CloudFrontWebDistribution created by the construct |
bucket() | s3.Bucket |
Returns an instance of s3.Bucket created by the construct |
Architecture
© Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 aws-solutions-konstruk.aws-cloudfront-s3-0.8.1.tar.gz
.
File metadata
- Download URL: aws-solutions-konstruk.aws-cloudfront-s3-0.8.1.tar.gz
- Upload date:
- Size: 131.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8697893eaa074759484a990b3e2f6ff7115b294e52f189717d60c925fe1c1138 |
|
MD5 | 07c4f884c6d79c91dc6912e1c56f5345 |
|
BLAKE2b-256 | b107fc4385ebad23cd0a45d41e0f9e8c5066ffc76bc4e2d167a2ac09ec858de0 |
File details
Details for the file aws_solutions_konstruk.aws_cloudfront_s3-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: aws_solutions_konstruk.aws_cloudfront_s3-0.8.1-py3-none-any.whl
- Upload date:
- Size: 129.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fceaa6e7c7d832efeafbffbb31a396eb894a3fbf4bbfb2dc5f065f44901b97d2 |
|
MD5 | a732859a6199754148c464f50154aeac |
|
BLAKE2b-256 | cd522a5140fdb142d688b9f8f5287bd763a8bd22acc1d1d1a675939cfe32f748 |