io.burkard.cdk.services.cloudfront.OriginGroup.scala Maven / Gradle / Ivy
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 OriginGroup {
def apply(
primaryOrigin: software.amazon.awscdk.services.cloudfront.IOrigin,
fallbackOrigin: software.amazon.awscdk.services.cloudfront.IOrigin,
fallbackStatusCodes: Option[List[_ <: Number]] = None
): software.amazon.awscdk.services.cloudfront.origins.OriginGroup =
software.amazon.awscdk.services.cloudfront.origins.OriginGroup.Builder
.create()
.primaryOrigin(primaryOrigin)
.fallbackOrigin(fallbackOrigin)
.fallbackStatusCodes(fallbackStatusCodes.map(_.asJava).orNull)
.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy