Class CloudFrontToMediaStoreProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.cloudfrontmediastore.CloudFrontToMediaStoreProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFrontToMediaStoreProps>
- Enclosing interface:
CloudFrontToMediaStoreProps
public static final class CloudFrontToMediaStoreProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFrontToMediaStoreProps>
A builder for
CloudFrontToMediaStoreProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudFrontDistributionProps(Object cloudFrontDistributionProps) Sets the value ofCloudFrontToMediaStoreProps.getCloudFrontDistributionProps()cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps) Sets the value ofCloudFrontToMediaStoreProps.getCloudFrontLoggingBucketProps()existingMediaStoreContainerObj(software.amazon.awscdk.services.mediastore.CfnContainer existingMediaStoreContainerObj) Sets the value ofCloudFrontToMediaStoreProps.getExistingMediaStoreContainerObj()insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders) Sets the value ofCloudFrontToMediaStoreProps.getInsertHttpSecurityHeaders()mediaStoreContainerProps(software.amazon.awscdk.services.mediastore.CfnContainerProps mediaStoreContainerProps) Sets the value ofCloudFrontToMediaStoreProps.getMediaStoreContainerProps()responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps) Sets the value ofCloudFrontToMediaStoreProps.getResponseHeadersPolicyProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudFrontDistributionProps
public CloudFrontToMediaStoreProps.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps) Sets the value ofCloudFrontToMediaStoreProps.getCloudFrontDistributionProps()- Parameters:
cloudFrontDistributionProps- Optional user provided props to override the default props for the CloudFront.- Returns:
this
-
cloudFrontLoggingBucketProps
public CloudFrontToMediaStoreProps.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps) Sets the value ofCloudFrontToMediaStoreProps.getCloudFrontLoggingBucketProps()- Parameters:
cloudFrontLoggingBucketProps- Optional user provided props to override the default props for the CloudFront Logging Bucket.- Returns:
this
-
existingMediaStoreContainerObj
public CloudFrontToMediaStoreProps.Builder existingMediaStoreContainerObj(software.amazon.awscdk.services.mediastore.CfnContainer existingMediaStoreContainerObj) Sets the value ofCloudFrontToMediaStoreProps.getExistingMediaStoreContainerObj()- Parameters:
existingMediaStoreContainerObj- Existing instance of mediastore.CfnContainer object.- Returns:
this
-
insertHttpSecurityHeaders
public CloudFrontToMediaStoreProps.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders) Sets the value ofCloudFrontToMediaStoreProps.getInsertHttpSecurityHeaders()- Parameters:
insertHttpSecurityHeaders- Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront. Turning this on will inject default headers and is mutually exclusive with passing custom security headers via the responseHeadersPolicyProps parameter.- Returns:
this
-
mediaStoreContainerProps
public CloudFrontToMediaStoreProps.Builder mediaStoreContainerProps(software.amazon.awscdk.services.mediastore.CfnContainerProps mediaStoreContainerProps) Sets the value ofCloudFrontToMediaStoreProps.getMediaStoreContainerProps()- Parameters:
mediaStoreContainerProps- Optional user provided props to override the default props for the MediaStore.- Returns:
this
-
responseHeadersPolicyProps
public CloudFrontToMediaStoreProps.Builder responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps) Sets the value ofCloudFrontToMediaStoreProps.getResponseHeadersPolicyProps()- Parameters:
responseHeadersPolicyProps- Optional user provided configuration that cloudfront applies to all http responses. Can be used to pass a custom ResponseSecurityHeadersBehavior, ResponseCustomHeadersBehavior or ResponseHeadersCorsBehavior to the cloudfront distribution.Passing a custom ResponseSecurityHeadersBehavior is mutually exclusive with turning on the default security headers via
insertHttpSecurityHeadersprop. Will throw an error if bothinsertHttpSecurityHeadersis set totrueand ResponseSecurityHeadersBehavior is passed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudFrontToMediaStoreProps>- Returns:
- a new instance of
CloudFrontToMediaStoreProps - Throws:
NullPointerException- if any required attribute was not provided
-