io.burkard.cdk.services.sns.CfnTopicProps.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 CfnTopicProps {
def apply(
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
): software.amazon.awscdk.services.sns.CfnTopicProps =
(new software.amazon.awscdk.services.sns.CfnTopicProps.Builder)
.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()
}