io.burkard.cdk.services.sns.TopicProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.sns
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object TopicProps {
def apply(
displayName: Option[String] = None,
topicName: Option[String] = None,
contentBasedDeduplication: Option[Boolean] = None,
masterKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
fifo: Option[Boolean] = None
): software.amazon.awscdk.services.sns.TopicProps =
(new software.amazon.awscdk.services.sns.TopicProps.Builder)
.displayName(displayName.orNull)
.topicName(topicName.orNull)
.contentBasedDeduplication(contentBasedDeduplication.map(Boolean.box).orNull)
.masterKey(masterKey.orNull)
.fifo(fifo.map(Boolean.box).orNull)
.build()
}