WorkerConfigurationProperty
- class aws_cdk.aws_stepfunctions_tasks.WorkerConfigurationProperty(*, number_of_workers, worker_type=None, worker_type_v2=None)
Bases:
objectProperties for the worker configuration.
- Parameters:
number_of_workers (
Union[int,float]) – The number of workers of a definedWorkerTypethat are allocated when a job runs.worker_type (
Optional[WorkerType]) – (deprecated) The type of predefined worker that is allocated when a job runs. Default: - must choose one ofworkerTypeorworkerTypeV2worker_type_v2 (
Optional[WorkerTypeV2]) – The type of predefined worker that is allocated when a job runs. Can be one of the predefined values or dynamic values usingWorkerTypeV2.of(...). Default: - must choose one ofworkerTypeorworkerTypeV2
- ExampleMetadata:
infused
Example:
tasks.GlueStartJobRun(self, "Task", glue_job_name="my-glue-job", worker_configuration=tasks.WorkerConfigurationProperty( worker_type_v2=tasks.WorkerTypeV2.G_1X, # Worker type number_of_workers=2 ) )
Attributes
- number_of_workers
The number of workers of a defined
WorkerTypethat are allocated when a job runs.
- worker_type
(deprecated) The type of predefined worker that is allocated when a job runs.
- Default:
must choose one of
workerTypeorworkerTypeV2
- Deprecated:
Use
workerTypeV2for more flexibility in defining worker types.- Stability:
deprecated
- worker_type_v2
The type of predefined worker that is allocated when a job runs.
Can be one of the predefined values or dynamic values using
WorkerTypeV2.of(...).- Default:
must choose one of
workerTypeorworkerTypeV2