public static final class CloudFrontToS3.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToS3>
CloudFrontToS3.| Modifier and Type | Method and Description |
|---|---|
CloudFrontToS3.Builder |
bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps)
Optional user provided props to override the default props for the S3 Bucket.
|
CloudFrontToS3 |
build() |
CloudFrontToS3.Builder |
cloudFrontDistributionProps(Object cloudFrontDistributionProps)
Optional user provided props to override the default props.
|
CloudFrontToS3.Builder |
cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
Optional user provided props to override the default props for the CloudFront Logging Bucket.
|
static CloudFrontToS3.Builder |
create(software.constructs.Construct scope,
String id) |
CloudFrontToS3.Builder |
existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj)
Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error.
|
CloudFrontToS3.Builder |
insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront.
|
CloudFrontToS3.Builder |
loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps)
Optional user provided props to override the default props for the S3 Logging Bucket.
|
CloudFrontToS3.Builder |
logS3AccessLogs(Boolean logS3AccessLogs)
Whether to turn on Access Logs for the S3 bucket with the associated storage costs.
|
CloudFrontToS3.Builder |
originPath(String originPath)
Optional user provided props to provide an originPath that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
|
public static CloudFrontToS3.Builder create(software.constructs.Construct scope, String id)
scope - - represents the scope for all the resources. This parameter is required.id - - this is a a scope-unique id. This parameter is required.CloudFrontToS3.Builder.public CloudFrontToS3.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps)
Default: - Default props are used
bucketProps - Optional user provided props to override the default props for the S3 Bucket. This parameter is required.thispublic CloudFrontToS3.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps)
Default: - Default props are used
cloudFrontDistributionProps - Optional user provided props to override the default props. This parameter is required.thispublic CloudFrontToS3.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
Default: - Default props are used
cloudFrontLoggingBucketProps - Optional user provided props to override the default props for the CloudFront Logging Bucket. This parameter is required.thispublic CloudFrontToS3.Builder existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj)
Default: - None
existingBucketObj - Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error. This parameter is required.thispublic CloudFrontToS3.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
Default: - true
insertHttpSecurityHeaders - Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront. This parameter is required.thispublic CloudFrontToS3.Builder loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps)
Default: - Default props are used
loggingBucketProps - Optional user provided props to override the default props for the S3 Logging Bucket. This parameter is required.thispublic CloudFrontToS3.Builder logS3AccessLogs(Boolean logS3AccessLogs)
Enabling Access Logging is a best practice.
Default: - true
logS3AccessLogs - Whether to turn on Access Logs for the S3 bucket with the associated storage costs. This parameter is required.thispublic CloudFrontToS3.Builder originPath(String originPath)
The string should start with a /, for example /production.
originPath - Optional user provided props to provide an originPath that CloudFront appends to the origin domain name when CloudFront requests content from the origin. This parameter is required.thispublic CloudFrontToS3 build()
build in interface software.amazon.jsii.Builder<CloudFrontToS3>Copyright © 2022. All rights reserved.