WorkerTypeV2

class aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2(*args: Any, **kwargs)

Bases: object

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

If you need to use a WorkerTypeV2 that doesn’t exist as a static member, you can instantiate a WorkerTypeV2 object, e.g: WorkerTypeV2.of('other type').

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

G_025_X = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
G_1_X = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
G_2_X = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
G_4_X = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
G_8_X = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
STANDARD = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
Z_2_X = <aws_cdk.aws_stepfunctions_tasks.WorkerTypeV2 object>
name

The name of this WorkerType, as expected by Job resource.

Static Methods

classmethod of(worker_type)

Custom worker type.

Parameters:

worker_type (str) – custom worker type.

Return type:

WorkerTypeV2