# WorkflowProps

Properties for defining a Workflow.

Used as props by: [Workflow](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Workflow.html)

- Source: [`aws-glue/lib/triggers/workflow.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-glue/lib/triggers/workflow.ts#L85)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const workflowProps: glue.WorkflowProps = {
  defaultRunProperties: {
    defaultRunPropertiesKey: 'defaultRunProperties',
  },
  description: 'description',
  maxConcurrentRuns: 123,
  workflowName: 'workflowName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

workflow_props = glue.WorkflowProps(
    default_run_properties={
        "default_run_properties_key": "defaultRunProperties"
    },
    description="description",
    max_concurrent_runs=123,
    workflow_name="workflowName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

WorkflowProps workflowProps = WorkflowProps.builder()
        .defaultRunProperties(Map.of(
                "defaultRunPropertiesKey", "defaultRunProperties"))
        .description("description")
        .maxConcurrentRuns(123)
        .workflowName("workflowName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var workflowProps = new WorkflowProps {
    DefaultRunProperties = new Dictionary<string, string> {
        { "defaultRunPropertiesKey", "defaultRunProperties" }
    },
    Description = "description",
    MaxConcurrentRuns = 123,
    WorkflowName = "workflowName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

workflowProps := &WorkflowProps{
	DefaultRunProperties: map[string]*string{
		"defaultRunPropertiesKey": jsii.String("defaultRunProperties"),
	},
	Description: jsii.String("description"),
	MaxConcurrentRuns: jsii.Number(123),
	WorkflowName: jsii.String("workflowName"),
}
```

## Properties

- `defaultRunProperties`: { [key: string]: string } — A map of properties to use when this workflow is executed.

  **Default:** no default run properties

- `description`: string — A description of the workflow.

  **Default:** no description

- `maxConcurrentRuns`: number — The maximum number of concurrent runs allowed for the workflow.

  **Default:** no limit

- `workflowName`: string — Name of the workflow.

  **Default:** a name will be generated
