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

Configuration details for a 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#L533)

## 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';

declare const workflow: imagebuilder_alpha.Workflow;
declare const workflowParameterValue: imagebuilder_alpha.WorkflowParameterValue;
const workflowConfiguration: imagebuilder_alpha.WorkflowConfiguration = {
  workflow: workflow,

  // the properties below are optional
  onFailure: imagebuilder_alpha.WorkflowOnFailure.ABORT,
  parallelGroup: 'parallelGroup',
  parameters: {
    parametersKey: workflowParameterValue,
  },
};
```

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: imagebuilder_alpha.Workflow
# workflow_parameter_value: imagebuilder_alpha.WorkflowParameterValue

workflow_configuration = imagebuilder_alpha.WorkflowConfiguration(
    workflow=workflow,

    # the properties below are optional
    on_failure=imagebuilder_alpha.WorkflowOnFailure.ABORT,
    parallel_group="parallelGroup",
    parameters={
        "parameters_key": workflow_parameter_value
    }
)
```

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

Workflow workflow;
WorkflowParameterValue workflowParameterValue;

WorkflowConfiguration workflowConfiguration = WorkflowConfiguration.builder()
        .workflow(workflow)

        // the properties below are optional
        .onFailure(WorkflowOnFailure.ABORT)
        .parallelGroup("parallelGroup")
        .parameters(Map.of(
                "parametersKey", workflowParameterValue))
        .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;

Workflow workflow;
WorkflowParameterValue workflowParameterValue;

var workflowConfiguration = new WorkflowConfiguration {
    Workflow = workflow,

    // the properties below are optional
    OnFailure = WorkflowOnFailure.ABORT,
    ParallelGroup = "parallelGroup",
    Parameters = new Dictionary<string, WorkflowParameterValue> {
        { "parametersKey", workflowParameterValue }
    }
};
```

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"

var workflow Workflow
var workflowParameterValue WorkflowParameterValue

workflowConfiguration := &WorkflowConfiguration{
	Workflow: workflow,

	// the properties below are optional
	OnFailure: imagebuilder_alpha.WorkflowOnFailure_ABORT,
	ParallelGroup: jsii.String("parallelGroup"),
	Parameters: map[string]WorkflowParameterValue{
		"parametersKey": workflowParameterValue,
	},
}
```

## Properties

- `onFailure`: [WorkflowOnFailure](/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.WorkflowOnFailure.html) = WorkflowOnFailure.ABORT — The action to take if the workflow fails.

- `parallelGroup`: string = None — The named parallel group to include this workflow in.

  Workflows in the same parallel group run in parallel of each
  other.

- `parameters`: { [key: string]: [WorkflowParameterValue](/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.WorkflowParameterValue.html) } — The parameters to pass to the workflow at execution time.

  **Default:** none if the workflow has no parameters, otherwise the default parameter values are used

- `workflow`: [IWorkflow](/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.IWorkflow.html) (required) — The workflow to execute in the image build.
