> **Experimental**
>
> `@aws-cdk/aws-imagebuilder-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# WorkflowAttributes

Properties for an EC2 Image Builder Workflow.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/workflow.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/workflow.ts#L132)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
const workflowAttributes: imagebuilder_alpha.WorkflowAttributes = {
  workflowArn: 'workflowArn',
  workflowName: 'workflowName',
  workflowType: imagebuilder_alpha.WorkflowType.BUILD,
  workflowVersion: 'workflowVersion',
};
```

Python:

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

workflow_attributes = imagebuilder_alpha.WorkflowAttributes(
    workflow_arn="workflowArn",
    workflow_name="workflowName",
    workflow_type=imagebuilder_alpha.WorkflowType.BUILD,
    workflow_version="workflowVersion"
)
```

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

WorkflowAttributes workflowAttributes = WorkflowAttributes.builder()
        .workflowArn("workflowArn")
        .workflowName("workflowName")
        .workflowType(WorkflowType.BUILD)
        .workflowVersion("workflowVersion")
        .build();
```

C# / .NET:

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

var workflowAttributes = new WorkflowAttributes {
    WorkflowArn = "workflowArn",
    WorkflowName = "workflowName",
    WorkflowType = WorkflowType.BUILD,
    WorkflowVersion = "workflowVersion"
};
```

Golang:

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

workflowAttributes := &WorkflowAttributes{
	WorkflowArn: jsii.String("workflowArn"),
	WorkflowName: jsii.String("workflowName"),
	WorkflowType: imagebuilder_alpha.WorkflowType_BUILD,
	WorkflowVersion: jsii.String("workflowVersion"),
}
```

## Properties

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

  **Default:** the ARN is automatically constructed if a workflowName and workflowType is provided, otherwise a workflowArn is required

- `workflowName`: string — The name of the workflow.

  **Default:** the name is automatically constructed if a workflowArn is provided, otherwise a workflowName is required

- `workflowType`: [WorkflowType](/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.WorkflowType.html) — The type of the workflow.

  **Default:** the type is automatically constructed if a workflowArn is provided, otherwise a workflowType is required

- `workflowVersion`: string = x.x.x — The version of the workflow.
