Class CloudFrontToMediaStore.Builder

java.lang.Object
software.amazon.awsconstructs.services.cloudfrontmediastore.CloudFrontToMediaStore.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFrontToMediaStore>
Enclosing class:
CloudFrontToMediaStore

public static final class CloudFrontToMediaStore.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToMediaStore>
A fluent builder for CloudFrontToMediaStore.
  • Method Details

    • create

      public static CloudFrontToMediaStore.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope -
      • represents the scope for all the resources.
      This parameter is required.
      id -
      • this is a scope-unique id.
      This parameter is required.
      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

      public CloudFrontToMediaStore.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.

      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 insertHttpSecurityHeaders prop. Will throw an error if both insertHttpSecurityHeaders is set to true and 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

      public CloudFrontToMediaStore build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CloudFrontToMediaStore>
      Returns:
      a newly built instance of CloudFrontToMediaStore.