io.burkard.cdk.services.eventschemas.CfnDiscoverer.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.eventschemas
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDiscoverer {
def apply(
internalResourceId: String,
sourceArn: String,
tags: Option[List[_ <: software.amazon.awscdk.services.eventschemas.CfnDiscoverer.TagsEntryProperty]] = None,
description: Option[String] = None,
crossAccount: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.eventschemas.CfnDiscoverer =
software.amazon.awscdk.services.eventschemas.CfnDiscoverer.Builder
.create(stackCtx, internalResourceId)
.sourceArn(sourceArn)
.tags(tags.map(_.asJava).orNull)
.description(description.orNull)
.crossAccount(crossAccount.map(Boolean.box).orNull)
.build()
}