WorkerConfigurationProperty

class aws_cdk.aws_stepfunctions_tasks.WorkerConfigurationProperty(*, number_of_workers, worker_type)

Bases: object

Properties for the worker configuration.

Parameters:
  • number_of_workers (Union[int, float]) – The number of workers of a defined WorkerType that are allocated when a job runs.

  • worker_type (WorkerType) – The type of predefined worker that is allocated when a job runs.

ExampleMetadata:

infused

Example:

tasks.GlueStartJobRun(self, "Task",
    glue_job_name="my-glue-job",
    worker_configuration=tasks.WorkerConfigurationProperty(
        worker_type=tasks.WorkerType.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

The type of predefined worker that is allocated when a job runs.