WorkerConfigurationProperty
- class aws_cdk.aws_stepfunctions_tasks.WorkerConfigurationProperty(*, number_of_workers, worker_type=None, worker_type_v2=None)
Bases:
object
Properties for the worker configuration.
- Parameters:
number_of_workers (
Union
[int
,float
]) – The number of workers of a definedWorkerType
that 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 ofworkerType
orworkerTypeV2
worker_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 ofworkerType
orworkerTypeV2
- 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
WorkerType
that 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
workerType
orworkerTypeV2
- Deprecated:
Use
workerTypeV2
for 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
workerType
orworkerTypeV2