CDK构建了AWS Cloudfront到aws3的集成。
aws-solutions-konstruk.aws-cloudfront-s3的Python项目详细描述
aws-cloudfront-s3模块
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/ |
---|
这个AWS解决方案Konstruk实现了一个面向aws3 Bucket的AWS Cloudfront。在
下面是一个最小的可部署模式定义:
const{CloudFrontToS3}=require('@aws-solutions-konstruk/aws-cloudfront-s3');newCloudFrontToS3(stack,'test-cloudfront-s3',{deployBucket:true});
初始值设定项
^{pr2}$参数
构装道具
Name | Type | Description |
---|---|---|
deployBucket | ^{ | Whether to create a S3 Bucket or use an existing S3 Bucket |
existingBucketObj? | ^{ | Existing instance of S3 Bucket object |
bucketProps? | ^{ | Optional user provided props to override the default props for S3 Bucket |
cloudFrontDistributionProps? | ^{ | Optional user provided props to override the default props for Cloudfront Distribution |
insertHttpSecurityHeaders? | ^{ | Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all resonses from cloudfront |
图案属性
Name | Type | Description |
---|---|---|
cloudFrontWebDistribution() | ^{ | Returns an instance of cloudfront.CloudFrontWebDistribution created by the construct |
bucket() | ^{ | Returns an instance of s3.Bucket created by the construct |
建筑
©2019年版权所有亚马逊网站,Inc.或其附属公司。版权所有。在
- 项目
标签: