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