All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ses.ReceiptRule.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 ReceiptRule {

  def apply(
    internalResourceId: String,
    ruleSet: software.amazon.awscdk.services.ses.IReceiptRuleSet,
    receiptRuleName: Option[String] = None,
    scanEnabled: Option[Boolean] = None,
    recipients: Option[List[String]] = None,
    enabled: Option[Boolean] = None,
    after: Option[software.amazon.awscdk.services.ses.IReceiptRule] = None,
    tlsPolicy: Option[software.amazon.awscdk.services.ses.TlsPolicy] = None,
    actions: Option[List[_ <: software.amazon.awscdk.services.ses.IReceiptRuleAction]] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ses.ReceiptRule =
    software.amazon.awscdk.services.ses.ReceiptRule.Builder
      .create(stackCtx, internalResourceId)
      .ruleSet(ruleSet)
      .receiptRuleName(receiptRuleName.orNull)
      .scanEnabled(scanEnabled.map(Boolean.box).orNull)
      .recipients(recipients.map(_.asJava).orNull)
      .enabled(enabled.map(Boolean.box).orNull)
      .after(after.orNull)
      .tlsPolicy(tlsPolicy.orNull)
      .actions(actions.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy