# WorkflowAttributes

Properties for importing a Workflow using its attributes.

Used as argument in: [Workflow.fromWorkflowAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Workflow.html#fromworkflowattributes)

- 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#L69)
- 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 workflowAttributes: glue.WorkflowAttributes = {
  workflowName: 'workflowName',

  // the properties below are optional
  workflowArn: 'workflowArn',
};
```

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_attributes = glue.WorkflowAttributes(
    workflow_name="workflowName",

    # the properties below are optional
    workflow_arn="workflowArn"
)
```

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.*;

WorkflowAttributes workflowAttributes = WorkflowAttributes.builder()
        .workflowName("workflowName")

        // the properties below are optional
        .workflowArn("workflowArn")
        .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 workflowAttributes = new WorkflowAttributes {
    WorkflowName = "workflowName",

    // the properties below are optional
    WorkflowArn = "workflowArn"
};
```

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"

workflowAttributes := &WorkflowAttributes{
	WorkflowName: jsii.String("workflowName"),

	// the properties below are optional
	WorkflowArn: jsii.String("workflowArn"),
}
```

## Properties

- `workflowArn`: string — The ARN of the workflow to import.

  **Default:** derived from the workflow name

- `workflowName`: string (required) — The name of the workflow to import.
