@Stability(value=Stable) public static final class BatchJobProps.Builder extends Object implements software.amazon.jsii.Builder<BatchJobProps>
BatchJobProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BatchJobProps.Builder |
attempts(Number attempts)
Sets the value of
BatchJobProps.getAttempts() |
BatchJobProps |
build()
Builds the configured instance.
|
BatchJobProps.Builder |
deadLetterQueue(IQueue deadLetterQueue)
Sets the value of
TargetBaseProps.getDeadLetterQueue() |
BatchJobProps.Builder |
event(RuleTargetInput event)
Sets the value of
BatchJobProps.getEvent() |
BatchJobProps.Builder |
jobName(String jobName)
Sets the value of
BatchJobProps.getJobName() |
BatchJobProps.Builder |
maxEventAge(Duration maxEventAge)
Sets the value of
TargetBaseProps.getMaxEventAge() |
BatchJobProps.Builder |
retryAttempts(Number retryAttempts)
Sets the value of
TargetBaseProps.getRetryAttempts() |
BatchJobProps.Builder |
size(Number size)
Sets the value of
BatchJobProps.getSize() |
@Stability(value=Stable) public BatchJobProps.Builder attempts(Number attempts)
BatchJobProps.getAttempts()attempts - The number of times to attempt to retry, if the job fails.
Valid values are 1–10.this@Stability(value=Stable) public BatchJobProps.Builder event(RuleTargetInput event)
BatchJobProps.getEvent()event - The event to send to the Lambda.
This will be the payload sent to the Lambda Function.this@Stability(value=Stable) public BatchJobProps.Builder jobName(String jobName)
BatchJobProps.getJobName()jobName - The name of the submitted job.this@Stability(value=Stable) public BatchJobProps.Builder size(Number size)
BatchJobProps.getSize()size - The size of the array, if this is an array batch job.
Valid values are integers between 2 and 10,000.this@Stability(value=Stable) public BatchJobProps.Builder deadLetterQueue(IQueue deadLetterQueue)
TargetBaseProps.getDeadLetterQueue()deadLetterQueue - The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a dead-letter queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations).
The events not successfully delivered are automatically retried for a specified period of time,
depending on the retry policy of the target.
If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.this@Stability(value=Stable) public BatchJobProps.Builder maxEventAge(Duration maxEventAge)
TargetBaseProps.getMaxEventAge()maxEventAge - The maximum age of a request that Lambda sends to a function for processing.
Minimum value of 60.
Maximum value of 86400.this@Stability(value=Stable) public BatchJobProps.Builder retryAttempts(Number retryAttempts)
TargetBaseProps.getRetryAttempts()retryAttempts - The maximum number of times to retry when the function returns an error.
Minimum value of 0.
Maximum value of 185.this@Stability(value=Stable) public BatchJobProps build()
build in interface software.amazon.jsii.Builder<BatchJobProps>BatchJobPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.