# WorkerConfigurationProperty

Properties for the worker configuration.

- Source: [`aws-stepfunctions-tasks/lib/glue/start-job-run.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/glue/start-job-run.ts#L11)
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

```ts
new tasks.GlueStartJobRun(this, 'Task', {
  glueJobName: 'my-glue-job',
  workerConfiguration: {
    workerTypeV2: tasks.WorkerTypeV2.G_1X, // Worker type
    numberOfWorkers: 2, // Number of Workers
  },
});
```

## Properties

- `numberOfWorkers`: number (required) — The number of workers of a defined `WorkerType` that are allocated when a job runs.

- `workerType`: [WorkerType](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.WorkerType.html) — Use `workerTypeV2` for more flexibility in defining worker types.

  **Default:** must choose one of `workerType` or `workerTypeV2`

- `workerTypeV2`: [WorkerTypeV2](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.WorkerTypeV2.html) — The type of predefined worker that is allocated when a job runs.

  **Default:** must choose one of `workerType` or `workerTypeV2`

  Can be one of the
  predefined values or dynamic values using `WorkerTypeV2.of(...)`.
