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

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

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object OriginOptions {

  def apply(
    connectionAttempts: Option[Number] = None,
    connectionTimeout: Option[software.amazon.awscdk.Duration] = None,
    customHeaders: Option[Map[String, String]] = None,
    originShieldRegion: Option[String] = None
  ): software.amazon.awscdk.services.cloudfront.OriginOptions =
    (new software.amazon.awscdk.services.cloudfront.OriginOptions.Builder)
      .connectionAttempts(connectionAttempts.orNull)
      .connectionTimeout(connectionTimeout.orNull)
      .customHeaders(customHeaders.map(_.asJava).orNull)
      .originShieldRegion(originShieldRegion.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy