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

io.burkard.cdk.services.cloudfront.cfnResponseHeadersPolicy.SecurityHeadersConfigProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.cloudfront.cfnResponseHeadersPolicy

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

  def apply(
    xssProtection: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty] = None,
    contentTypeOptions: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty] = None,
    referrerPolicy: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty] = None,
    frameOptions: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty] = None,
    strictTransportSecurity: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty] = None,
    contentSecurityPolicy: Option[software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty] = None
  ): software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty =
    (new software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder)
      .xssProtection(xssProtection.orNull)
      .contentTypeOptions(contentTypeOptions.orNull)
      .referrerPolicy(referrerPolicy.orNull)
      .frameOptions(frameOptions.orNull)
      .strictTransportSecurity(strictTransportSecurity.orNull)
      .contentSecurityPolicy(contentSecurityPolicy.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy