io.burkard.cdk.cloudformation.CfnInclude.scala Maven / Gradle / Ivy
package io.burkard.cdk.cloudformation
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnInclude {
def apply(
internalResourceId: String,
templateFile: String,
parameters: Option[Map[String, _]] = None,
loadNestedStacks: Option[Map[String, _ <: software.amazon.awscdk.cloudformation.include.CfnIncludeProps]] = None,
preserveLogicalIds: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.cloudformation.include.CfnInclude =
software.amazon.awscdk.cloudformation.include.CfnInclude.Builder
.create(stackCtx, internalResourceId)
.templateFile(templateFile)
.parameters(parameters.map(_.asJava).orNull)
.loadNestedStacks(loadNestedStacks.map(_.asJava).orNull)
.preserveLogicalIds(preserveLogicalIds.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy