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

io.burkard.cdk.services.events.targets.BatchJob.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 BatchJob {

  def apply(
    jobQueueArn: String,
    jobQueueScope: software.constructs.IConstruct,
    jobDefinitionArn: String,
    jobDefinitionScope: software.constructs.IConstruct,
    jobName: Option[String] = None,
    attempts: Option[Number] = None,
    maxEventAge: Option[software.amazon.awscdk.Duration] = None,
    size: Option[Number] = None,
    event: Option[software.amazon.awscdk.services.events.RuleTargetInput] = None,
    deadLetterQueue: Option[software.amazon.awscdk.services.sqs.IQueue] = None,
    retryAttempts: Option[Number] = None
  ): software.amazon.awscdk.services.events.targets.BatchJob =
    software.amazon.awscdk.services.events.targets.BatchJob.Builder
      .create(jobQueueArn, jobQueueScope, jobDefinitionArn, jobDefinitionScope)
      .jobName(jobName.orNull)
      .attempts(attempts.orNull)
      .maxEventAge(maxEventAge.orNull)
      .size(size.orNull)
      .event(event.orNull)
      .deadLetterQueue(deadLetterQueue.orNull)
      .retryAttempts(retryAttempts.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy