WorkerConfigurationProperty Struct
Properties for the worker configuration.
| Source | aws-stepfunctions-tasks/lib/glue/start-job-run.ts |
|---|---|
| Type last changed |
Example
ts
new tasks.GlueStartJobRun(this, 'Task', {
glueJobName: 'my-glue-job',
workerConfiguration: {
workerTypeV2: tasks.WorkerTypeV2.G_1X, // Worker type
numberOfWorkers: 2, // Number of Workers
},
});
python
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
)
)
java
GlueStartJobRun.Builder.create(this, "Task")
.glueJobName("my-glue-job")
.workerConfiguration(WorkerConfigurationProperty.builder()
.workerTypeV2(WorkerTypeV2.G_1X) // Worker type
.numberOfWorkers(2)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new GlueStartJobRun(this, "Task", new GlueStartJobRunProps {
GlueJobName = "my-glue-job",
WorkerConfiguration = new WorkerConfigurationProperty {
WorkerTypeV2 = WorkerTypeV2.G_1X, // Worker type
NumberOfWorkers = 2
}
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
tasks.NewGlueStartJobRun(this, jsii.String("Task"), &GlueStartJobRunProps{
GlueJobName: jsii.String("my-glue-job"),
WorkerConfiguration: &WorkerConfigurationProperty{
WorkerTypeV2: tasks.WorkerTypeV2_G_1X(),
// Worker type
NumberOfWorkers: jsii.Number(2),
},
})
Properties
numberOfWorkersnumbernumber_of_workersint | floatnumberOfWorkersNumberNumberOfWorkersdoubleNumberOfWorkers*float64 required #The number of workers of a defined `WorkerType` that are allocated when a job runs.
workerTypeoptionalWorkerTypeworker_typeoptionalWorkerTypeworkerTypeoptionalWorkerTypeWorkerTypeoptionalWorkerTypeWorkerTypeoptionalWorkerType deprecated #Use `workerTypeV2` for more flexibility in defining worker types.
Default: must choose one of workerType or workerTypeV2
workerTypeV2optionalWorkerTypeV2worker_type_v2optionalWorkerTypeV2workerTypeV2optionalWorkerTypeV2WorkerTypeV2optionalWorkerTypeV2WorkerTypeV2optionalWorkerTypeV2 #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(...).