Class BatchJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.targets.BatchJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BatchJobProps>
- Enclosing interface:
- BatchJobProps
@Stability(Stable)
public static final class BatchJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<BatchJobProps>
A builder for
BatchJobProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofBatchJobProps.getAttempts()
build()
Builds the configured instance.deadLetterQueue
(IQueue deadLetterQueue) Sets the value ofTargetBaseProps.getDeadLetterQueue()
event
(RuleTargetInput event) Sets the value ofBatchJobProps.getEvent()
Sets the value ofBatchJobProps.getJobName()
maxEventAge
(Duration maxEventAge) Sets the value ofTargetBaseProps.getMaxEventAge()
retryAttempts
(Number retryAttempts) Sets the value ofTargetBaseProps.getRetryAttempts()
Sets the value ofBatchJobProps.getSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attempts
Sets the value ofBatchJobProps.getAttempts()
- Parameters:
attempts
- The number of times to attempt to retry, if the job fails. Valid values are 1–10.- Returns:
this
-
event
Sets the value ofBatchJobProps.getEvent()
- Parameters:
event
- The event to send to the Lambda. This will be the payload sent to the Lambda Function.- Returns:
this
-
jobName
Sets the value ofBatchJobProps.getJobName()
- Parameters:
jobName
- The name of the submitted job.- Returns:
this
-
size
Sets the value ofBatchJobProps.getSize()
- Parameters:
size
- The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.- Returns:
this
-
deadLetterQueue
Sets the value ofTargetBaseProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue. 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.- Returns:
this
-
maxEventAge
Sets the value ofTargetBaseProps.getMaxEventAge()
- Parameters:
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing. Minimum value of 60. Maximum value of 86400.- Returns:
this
-
retryAttempts
Sets the value ofTargetBaseProps.getRetryAttempts()
- Parameters:
retryAttempts
- The maximum number of times to retry when the function returns an error. Minimum value of 0. Maximum value of 185.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BatchJobProps>
- Returns:
- a new instance of
BatchJobProps
- Throws:
NullPointerException
- if any required attribute was not provided
-