public static final class CloudFrontToS3Props.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToS3Props>
CloudFrontToS3Props| Constructor and Description |
|---|
Builder() |
public CloudFrontToS3Props.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps)
CloudFrontToS3Props.getBucketProps()bucketProps - Optional user provided props to override the default props for the S3 Bucket.thispublic CloudFrontToS3Props.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps)
CloudFrontToS3Props.getCloudFrontDistributionProps()cloudFrontDistributionProps - Optional user provided props to override the default props.thispublic CloudFrontToS3Props.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
CloudFrontToS3Props.getCloudFrontLoggingBucketProps()cloudFrontLoggingBucketProps - Optional user provided props to override the default props for the CloudFront Logging Bucket.thispublic CloudFrontToS3Props.Builder existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj)
CloudFrontToS3Props.getExistingBucketObj()existingBucketObj - Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error.thispublic CloudFrontToS3Props.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
CloudFrontToS3Props.getInsertHttpSecurityHeaders()insertHttpSecurityHeaders - Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront.thispublic CloudFrontToS3Props.Builder loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps)
CloudFrontToS3Props.getLoggingBucketProps()loggingBucketProps - Optional user provided props to override the default props for the S3 Logging Bucket.thispublic CloudFrontToS3Props.Builder logS3AccessLogs(Boolean logS3AccessLogs)
CloudFrontToS3Props.getLogS3AccessLogs()logS3AccessLogs - Whether to turn on Access Logs for the S3 bucket with the associated storage costs.
Enabling Access Logging is a best practice.thispublic CloudFrontToS3Props.Builder originPath(String originPath)
CloudFrontToS3Props.getOriginPath()originPath - Optional user provided props to provide an originPath that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
The string should start with a /, for example /production.thispublic CloudFrontToS3Props build()
build in interface software.amazon.jsii.Builder<CloudFrontToS3Props>CloudFrontToS3PropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.