@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.321Z") @Stability(value=Stable) public interface BatchJobProps extends software.amazon.jsii.JsiiSerializable, TargetBaseProps
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.batch.*;
import software.amazon.awscdk.services.ecs.ContainerImage;
Object jobQueue = JobQueue.Builder.create(this, "MyQueue")
.computeEnvironments(List.of(Map.of(
"computeEnvironment", ComputeEnvironment.Builder.create(this, "ComputeEnvironment")
.managed(false)
.build(),
"order", 1)))
.build();
Object jobDefinition = JobDefinition.Builder.create(this, "MyJob")
.container(Map.of(
"image", ContainerImage.fromRegistry("test-repo")))
.build();
Queue queue = new Queue(this, "Queue");
Rule rule = Rule.Builder.create(this, "Rule")
.schedule(Schedule.rate(Duration.hours(1)))
.build();
rule.addTarget(BatchJob.Builder.create(jobQueue.getJobQueueArn(), jobQueue, jobDefinition.getJobDefinitionArn(), jobDefinition)
.deadLetterQueue(queue)
.event(RuleTargetInput.fromObject(Map.of("SomeParam", "SomeValue")))
.retryAttempts(2)
.maxEventAge(Duration.hours(2))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
BatchJobProps.Builder
A builder for
BatchJobProps |
static class |
BatchJobProps.Jsii$Proxy
An implementation for
BatchJobProps |
| Modifier and Type | Method and Description |
|---|---|
static BatchJobProps.Builder |
builder() |
default Number |
getAttempts()
The number of times to attempt to retry, if the job fails.
|
default RuleTargetInput |
getEvent()
The event to send to the Lambda.
|
default String |
getJobName()
The name of the submitted job.
|
default Number |
getSize()
The size of the array, if this is an array batch job.
|
getDeadLetterQueue, getMaxEventAge, getRetryAttempts@Stability(value=Stable) @Nullable default Number getAttempts()
Valid values are 1–10.
Default: no retryStrategy is set
@Stability(value=Stable) @Nullable default RuleTargetInput getEvent()
This will be the payload sent to the Lambda Function.
Default: the entire EventBridge event
@Stability(value=Stable) @Nullable default String getJobName()
Default: - Automatically generated
@Stability(value=Stable) @Nullable default Number getSize()
Valid values are integers between 2 and 10,000.
Default: no arrayProperties are set
@Stability(value=Stable) static BatchJobProps.Builder builder()
builder in interface TargetBasePropsBatchJobProps.Builder of BatchJobPropsCopyright © 2022. All rights reserved.