Interface BatchJobProps

All Superinterfaces:, TargetBaseProps
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-30T02:11:07.719Z") @Stability(Stable) public interface BatchJobProps extends, TargetBaseProps
Customize the Batch Job Event Target.


 Vpc vpc;
 FargateComputeEnvironment computeEnvironment = FargateComputeEnvironment.Builder.create(this, "ComputeEnv")
 JobQueue jobQueue = JobQueue.Builder.create(this, "JobQueue")
 EcsJobDefinition jobDefinition = EcsJobDefinition.Builder.create(this, "MyJob")
         .container(EcsEc2ContainerDefinition.Builder.create(this, "Container")
 Queue queue = new Queue(this, "Queue");
 Rule rule = Rule.Builder.create(this, "Rule")
 rule.addTarget(BatchJob.Builder.create(jobQueue.getJobQueueArn(), jobQueue, jobDefinition.getJobDefinitionArn(), jobDefinition)
         .event(RuleTargetInput.fromObject(Map.of("SomeParam", "SomeValue")))
  • Method Details

    • getAttempts

      @Stability(Stable) @Nullable default Number getAttempts()
      The number of times to attempt to retry, if the job fails.

      Valid values are 1–10.

      Default: no retryStrategy is set

    • getEvent

      @Stability(Stable) @Nullable default RuleTargetInput getEvent()
      The event to send to the Lambda.

      This will be the payload sent to the Lambda Function.

      Default: the entire EventBridge event

    • getJobName

      @Stability(Stable) @Nullable default String getJobName()
      The name of the submitted job.

      Default: - Automatically generated

    • getSize

      @Stability(Stable) @Nullable default Number getSize()
      The size of the array, if this is an array batch job.

      Valid values are integers between 2 and 10,000.

      Default: no arrayProperties are set

    • builder

      @Stability(Stable) static BatchJobProps.Builder builder()
      a BatchJobProps.Builder of BatchJobProps