BatchJob¶
-
class
aws_cdk.aws_events_targets.
BatchJob
(job_queue, job_definition, *, attempts=None, event=None, job_name=None, size=None)¶ Bases:
object
(experimental) Use an AWS Batch Job / Queue as an event rule target.
- Stability
experimental
- Parameters
job_queue (
IJobQueue
) –job_definition (
IJobDefinition
) –attempts (
Union
[int
,float
,None
]) – (experimental) The number of times to attempt to retry, if the job fails. Valid values are 1–10. Default: no retryStrategy is setevent (
Optional
[RuleTargetInput
]) – (experimental) The event to send to the Lambda. This will be the payload sent to the Lambda Function. Default: the entire EventBridge eventjob_name (
Optional
[str
]) – (experimental) The name of the submitted job. Default: - Automatically generatedsize (
Union
[int
,float
,None
]) – (experimental) 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
- Stability
experimental
Methods