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

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

package io.burkard.cdk.services.cloudfront

sealed abstract class ViewerProtocolPolicy(val underlying: software.amazon.awscdk.services.cloudfront.ViewerProtocolPolicy)
  extends Product
    with Serializable

object ViewerProtocolPolicy {
  implicit def toAws(value: ViewerProtocolPolicy): software.amazon.awscdk.services.cloudfront.ViewerProtocolPolicy =
    Option(value).map(_.underlying).orNull

  case object AllowAll
    extends ViewerProtocolPolicy(software.amazon.awscdk.services.cloudfront.ViewerProtocolPolicy.ALLOW_ALL)

  case object HttpsOnly
    extends ViewerProtocolPolicy(software.amazon.awscdk.services.cloudfront.ViewerProtocolPolicy.HTTPS_ONLY)

  case object RedirectToHttps
    extends ViewerProtocolPolicy(software.amazon.awscdk.services.cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy