# ExecutionClass

The excecution class of the job.

- Source: [`aws-stepfunctions-tasks/lib/glue/start-job-run.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/glue/start-job-run.ts#L340)
- Type last changed: v2.147.0 · 20 Jun 2024

## Example

TypeScript:

```ts
new tasks.GlueStartJobRun(this, 'Task', {
  glueJobName: 'my-glue-job',
  executionClass: tasks.ExecutionClass.FLEX,
});
```

Python:

```python
tasks.GlueStartJobRun(self, "Task",
    glue_job_name="my-glue-job",
    execution_class=tasks.ExecutionClass.FLEX
)
```

Java:

```java
GlueStartJobRun.Builder.create(this, "Task")
        .glueJobName("my-glue-job")
        .executionClass(ExecutionClass.FLEX)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
new GlueStartJobRun(this, "Task", new GlueStartJobRunProps {
    GlueJobName = "my-glue-job",
    ExecutionClass = ExecutionClass.FLEX
});
```

Golang:

```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"),
	ExecutionClass: tasks.ExecutionClass_FLEX,
})
```

## Members

| Member | Description |
| --- | --- |
| `FLEX` | The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary. |
| `STANDARD` | The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. |

## Referenced by

- [`GlueStartJobRunJsonataProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.GlueStartJobRunJsonataProps.html).executionClass
- [`GlueStartJobRunJsonPathProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.GlueStartJobRunJsonPathProps.html).executionClass
- [`GlueStartJobRunProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.GlueStartJobRunProps.html).executionClass
