io.burkard.cdk.services.rds.CfnEventSubscriptionProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.rds
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnEventSubscriptionProps {
def apply(
snsTopicArn: String,
sourceType: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
enabled: Option[Boolean] = None,
sourceIds: Option[List[String]] = None,
subscriptionName: Option[String] = None,
eventCategories: Option[List[String]] = None
): software.amazon.awscdk.services.rds.CfnEventSubscriptionProps =
(new software.amazon.awscdk.services.rds.CfnEventSubscriptionProps.Builder)
.snsTopicArn(snsTopicArn)
.sourceType(sourceType.orNull)
.tags(tags.map(_.asJava).orNull)
.enabled(enabled.map(Boolean.box).orNull)
.sourceIds(sourceIds.map(_.asJava).orNull)
.subscriptionName(subscriptionName.orNull)
.eventCategories(eventCategories.map(_.asJava).orNull)
.build()
}