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