io.burkard.cdk.services.sns.subscriptions.SubscriptionProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.sns.subscriptions
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SubscriptionProps {
def apply(
deadLetterQueue: Option[software.amazon.awscdk.services.sqs.IQueue] = None,
filterPolicy: Option[Map[String, _ <: software.amazon.awscdk.services.sns.SubscriptionFilter]] = None
): software.amazon.awscdk.services.sns.subscriptions.SubscriptionProps =
(new software.amazon.awscdk.services.sns.subscriptions.SubscriptionProps.Builder)
.deadLetterQueue(deadLetterQueue.orNull)
.filterPolicy(filterPolicy.map(_.asJava).orNull)
.build()
}