io.burkard.cdk.Stack.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object Stack {
def apply(
synthesizer: Option[software.amazon.awscdk.IStackSynthesizer] = None,
description: Option[String] = None,
tags: Option[Map[String, String]] = None,
terminationProtection: Option[Boolean] = None,
analyticsReporting: Option[Boolean] = None,
stackName: Option[String] = None,
env: Option[software.amazon.awscdk.Environment] = None
): software.amazon.awscdk.Stack =
software.amazon.awscdk.Stack.Builder
.create()
.synthesizer(synthesizer.orNull)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.terminationProtection(terminationProtection.map(Boolean.box).orNull)
.analyticsReporting(analyticsReporting.map(Boolean.box).orNull)
.stackName(stackName.orNull)
.env(env.orNull)
.build()
}