io.burkard.cdk.services.sam.DeploymentPreferenceProperty.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 DeploymentPreferenceProperty {
def apply(
`type`: String,
enabled: Boolean,
hooks: Option[List[String]] = None,
alarms: Option[List[String]] = None
): software.amazon.awscdk.services.sam.CfnFunction.DeploymentPreferenceProperty =
(new software.amazon.awscdk.services.sam.CfnFunction.DeploymentPreferenceProperty.Builder)
.`type`(`type`)
.enabled(enabled)
.hooks(hooks.map(_.asJava).orNull)
.alarms(alarms.map(_.asJava).orNull)
.build()
}