io.burkard.cdk.CfnResource.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 CfnResource {
def apply(
internalResourceId: String,
`type`: String,
properties: Option[Map[String, _]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.CfnResource =
software.amazon.awscdk.CfnResource.Builder
.create(stackCtx, internalResourceId)
.`type`(`type`)
.properties(properties.map(_.asJava).orNull)
.build()
}