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

io.burkard.cdk.services.events.targets.EventBus.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.events.targets

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

  def apply(
    eventBus: software.amazon.awscdk.services.events.IEventBus,
    deadLetterQueue: Option[software.amazon.awscdk.services.sqs.IQueue] = None,
    role: Option[software.amazon.awscdk.services.iam.IRole] = None
  ): software.amazon.awscdk.services.events.targets.EventBus =
    software.amazon.awscdk.services.events.targets.EventBus.Builder
      .create(eventBus)
      .deadLetterQueue(deadLetterQueue.orNull)
      .role(role.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy