io.burkard.cdk.CustomResourceProps.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 CustomResourceProps {
def apply(
serviceToken: String,
resourceType: Option[String] = None,
properties: Option[Map[String, _]] = None,
removalPolicy: Option[software.amazon.awscdk.RemovalPolicy] = None,
pascalCaseProperties: Option[Boolean] = None
): software.amazon.awscdk.CustomResourceProps =
(new software.amazon.awscdk.CustomResourceProps.Builder)
.serviceToken(serviceToken)
.resourceType(resourceType.orNull)
.properties(properties.map(_.asJava).orNull)
.removalPolicy(removalPolicy.orNull)
.pascalCaseProperties(pascalCaseProperties.map(Boolean.box).orNull)
.build()
}