io.burkard.cdk.services.ses.ReceiptRuleSet.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ses
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ReceiptRuleSet {
def apply(
internalResourceId: String,
rules: Option[List[_ <: software.amazon.awscdk.services.ses.ReceiptRuleOptions]] = None,
receiptRuleSetName: Option[String] = None,
dropSpam: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ses.ReceiptRuleSet =
software.amazon.awscdk.services.ses.ReceiptRuleSet.Builder
.create(stackCtx, internalResourceId)
.rules(rules.map(_.asJava).orNull)
.receiptRuleSetName(receiptRuleSetName.orNull)
.dropSpam(dropSpam.map(Boolean.box).orNull)
.build()
}