interface WorkerConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.WorkerConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#WorkerConfigurationProperty |
Java | software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty |
Python | aws_cdk.aws_stepfunctions_tasks.WorkerConfigurationProperty |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » WorkerConfigurationProperty |
Properties for the worker configuration.
Example
new tasks.GlueStartJobRun(this, 'Task', {
glueJobName: 'my-glue-job',
workerConfiguration: {
workerTypeV2: tasks.WorkerTypeV2.G_1X, // Worker type
numberOfWorkers: 2, // Number of Workers
},
});
Properties
| Name | Type | Description |
|---|---|---|
| number | number | The number of workers of a defined WorkerType that are allocated when a job runs. |
| worker | Worker | The type of predefined worker that is allocated when a job runs. |
| worker | Worker | The type of predefined worker that is allocated when a job runs. |
numberOfWorkers
Type:
number
The number of workers of a defined WorkerType that are allocated when a job runs.
workerType?
⚠️ Deprecated: Use workerTypeV2 for more flexibility in defining worker types.
Type:
Worker
(optional, default: must choose one of workerType or workerTypeV2)
The type of predefined worker that is allocated when a job runs.
workerTypeV2?
Type:
Worker
(optional, default: must choose one of workerType or workerTypeV2)
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(...).

.NET
Go
Java
Python
TypeScript (