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

io.burkard.cdk.services.sns.CfnSubscriptionProps.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.sns

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnSubscriptionProps {

  def apply(
    topicArn: String,
    protocol: String,
    subscriptionRoleArn: Option[String] = None,
    deliveryPolicy: Option[AnyRef] = None,
    rawMessageDelivery: Option[Boolean] = None,
    region: Option[String] = None,
    endpoint: Option[String] = None,
    filterPolicy: Option[AnyRef] = None,
    redrivePolicy: Option[AnyRef] = None
  ): software.amazon.awscdk.services.sns.CfnSubscriptionProps =
    (new software.amazon.awscdk.services.sns.CfnSubscriptionProps.Builder)
      .topicArn(topicArn)
      .protocol(protocol)
      .subscriptionRoleArn(subscriptionRoleArn.orNull)
      .deliveryPolicy(deliveryPolicy.orNull)
      .rawMessageDelivery(rawMessageDelivery.map(Boolean.box).orNull)
      .region(region.orNull)
      .endpoint(endpoint.orNull)
      .filterPolicy(filterPolicy.orNull)
      .redrivePolicy(redrivePolicy.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy