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

io.burkard.cdk.services.sam.CanarySettingProperty.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    deploymentId: Option[String] = None,
    percentTraffic: Option[Number] = None,
    stageVariableOverrides: Option[Map[String, String]] = None,
    useStageCache: Option[Boolean] = None
  ): software.amazon.awscdk.services.sam.CfnApi.CanarySettingProperty =
    (new software.amazon.awscdk.services.sam.CfnApi.CanarySettingProperty.Builder)
      .deploymentId(deploymentId.orNull)
      .percentTraffic(percentTraffic.orNull)
      .stageVariableOverrides(stageVariableOverrides.map(_.asJava).orNull)
      .useStageCache(useStageCache.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy