Class CloudFrontToMediaStore.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFrontToMediaStore>
- Enclosing class:
CloudFrontToMediaStore
CloudFrontToMediaStore.-
Method Summary
Modifier and TypeMethodDescriptionbuild()cloudFrontDistributionProps(Object cloudFrontDistributionProps) Optional user provided props to override the default props for the CloudFront.cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps) Optional user provided props to override the default props for the CloudFront Logging Bucket.existingMediaStoreContainerObj(software.amazon.awscdk.services.mediastore.CfnContainer existingMediaStoreContainerObj) Existing instance of mediastore.CfnContainer object.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.mediaStoreContainerProps(software.amazon.awscdk.services.mediastore.CfnContainerProps mediaStoreContainerProps) Optional user provided props to override the default props for the MediaStore.responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps) Optional user provided configuration that cloudfront applies to all http responses.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a scope-unique id.
- Returns:
- a new instance of
CloudFrontToMediaStore.Builder.
-
cloudFrontDistributionProps
public CloudFrontToMediaStore.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps) Optional user provided props to override the default props for the CloudFront.Default: - Default props are used
- Parameters:
cloudFrontDistributionProps- Optional user provided props to override the default props for the CloudFront. This parameter is required.- Returns:
this
-
cloudFrontLoggingBucketProps
public CloudFrontToMediaStore.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps) Optional user provided props to override the default props for the CloudFront Logging Bucket.Default: - Default props are used
- Parameters:
cloudFrontLoggingBucketProps- Optional user provided props to override the default props for the CloudFront Logging Bucket. This parameter is required.- Returns:
this
-
existingMediaStoreContainerObj
public CloudFrontToMediaStore.Builder existingMediaStoreContainerObj(software.amazon.awscdk.services.mediastore.CfnContainer existingMediaStoreContainerObj) Existing instance of mediastore.CfnContainer object.Default: - None
- Parameters:
existingMediaStoreContainerObj- Existing instance of mediastore.CfnContainer object. This parameter is required.- Returns:
this
-
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.
Default: - true
- Parameters:
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.- Returns:
this
-
mediaStoreContainerProps
public CloudFrontToMediaStore.Builder mediaStoreContainerProps(software.amazon.awscdk.services.mediastore.CfnContainerProps mediaStoreContainerProps) Optional user provided props to override the default props for the MediaStore.Default: - Default props are used
- Parameters:
mediaStoreContainerProps- Optional user provided props to override the default props for the MediaStore. This parameter is required.- Returns:
this
-
responseHeadersPolicyProps
public CloudFrontToMediaStore.Builder responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps 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.Default: - undefined
- Parameters:
responseHeadersPolicyProps- Optional user provided configuration that cloudfront applies to all http responses. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudFrontToMediaStore>- Returns:
- a newly built instance of
CloudFrontToMediaStore.
-