All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.cloudfront.ResponseHeadersPolicyConfigProperty.scala Maven / Gradle / Ivy

package io.burkard.cdk.services.cloudfront

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ResponseHeadersPolicyConfigProperty {

  def apply(
    name: String,
    corsConfig: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty] = None,
    customHeadersConfig: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty] = None,
    securityHeadersConfig: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty] = None,
    comment: Option[String] = None
  ): software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty =
    (new software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty.Builder)
      .name(name)
      .corsConfig(corsConfig.orNull)
      .customHeadersConfig(customHeadersConfig.orNull)
      .securityHeadersConfig(securityHeadersConfig.orNull)
      .comment(comment.orNull)
      .build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy