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

Helper class for working with Amazon-managed workflows.

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

## Example

TypeScript:

```ts
const containerWorkflowPipeline = new imagebuilder.ImagePipeline(this, 'ContainerWorkflowPipeline', {
  recipe: exampleContainerRecipe,
  workflows: [
    { workflow: imagebuilder.AmazonManagedWorkflow.buildContainer(this, 'BuildContainer') },
    { workflow: imagebuilder.AmazonManagedWorkflow.testContainer(this, 'TestContainer') },
    { workflow: imagebuilder.AmazonManagedWorkflow.distributeContainer(this, 'DistributeContainer') }
  ]
});
```

Python:

```python
container_workflow_pipeline = imagebuilder.ImagePipeline(self, "ContainerWorkflowPipeline",
    recipe=example_container_recipe,
    workflows=[imagebuilder.WorkflowConfiguration(workflow=imagebuilder.AmazonManagedWorkflow.build_container(self, "BuildContainer")), imagebuilder.WorkflowConfiguration(workflow=imagebuilder.AmazonManagedWorkflow.test_container(self, "TestContainer")), imagebuilder.WorkflowConfiguration(workflow=imagebuilder.AmazonManagedWorkflow.distribute_container(self, "DistributeContainer"))
    ]
)
```

Java:

```java
ImagePipeline containerWorkflowPipeline = ImagePipeline.Builder.create(this, "ContainerWorkflowPipeline")
        .recipe(exampleContainerRecipe)
        .workflows(List.of(WorkflowConfiguration.builder().workflow(AmazonManagedWorkflow.buildContainer(this, "BuildContainer")).build(), WorkflowConfiguration.builder().workflow(AmazonManagedWorkflow.testContainer(this, "TestContainer")).build(), WorkflowConfiguration.builder().workflow(AmazonManagedWorkflow.distributeContainer(this, "DistributeContainer")).build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
var containerWorkflowPipeline = new ImagePipeline(this, "ContainerWorkflowPipeline", new ImagePipelineProps {
    Recipe = exampleContainerRecipe,
    Workflows = new [] { new WorkflowConfiguration { Workflow = AmazonManagedWorkflow.BuildContainer(this, "BuildContainer") }, new WorkflowConfiguration { Workflow = AmazonManagedWorkflow.TestContainer(this, "TestContainer") }, new WorkflowConfiguration { Workflow = AmazonManagedWorkflow.DistributeContainer(this, "DistributeContainer") } }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
containerWorkflowPipeline := imagebuilder.NewImagePipeline(this, jsii.String("ContainerWorkflowPipeline"), &ImagePipelineProps{
	Recipe: exampleContainerRecipe,
	Workflows: []WorkflowConfiguration{
		&WorkflowConfiguration{
			Workflow: imagebuilder.AmazonManagedWorkflow_BuildContainer(this, jsii.String("BuildContainer")),
		},
		&WorkflowConfiguration{
			Workflow: imagebuilder.AmazonManagedWorkflow_TestContainer(this, jsii.String("TestContainer")),
		},
		&WorkflowConfiguration{
			Workflow: imagebuilder.AmazonManagedWorkflow_DistributeContainer(this, jsii.String("DistributeContainer")),
		},
	},
})
```

## Initializer

TypeScript:

```ts
new AmazonManagedWorkflow()
```

Python:

```python
AmazonManagedWorkflow()
```

Java:

```java
new AmazonManagedWorkflow()
```

C# / .NET:

```csharp
new AmazonManagedWorkflow()
```

Golang:

```go
NewAmazonManagedWorkflow()
```

## Methods

- `buildContainer(scope: Construct, id: string): IWorkflow` (static) — Imports the build-container Amazon-managed workflow.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.

- `buildImage(scope: Construct, id: string): IWorkflow` (static) — Imports the build-image AWS-managed workflow.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.

- `distributeContainer(scope: Construct, id: string): IWorkflow` (static) — Imports the distribute-container AWS-managed workflow.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.

- `distributeImage(scope: Construct, id: string): IWorkflow` (static) — Imports the distribute-image AWS-managed workflow.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.

- `fromAmazonManagedWorkflowAttributes(scope: Construct, id: string, attrs: AmazonManagedWorkflowAttributes): IWorkflow` (static) — Imports an AWS-managed workflow from its attributes.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `attrs` — The attributes of the AWS-managed workflow.

- `testContainer(scope: Construct, id: string): IWorkflow` (static) — Imports the test-container AWS-managed workflow.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.

- `testImage(scope: Construct, id: string): IWorkflow` (static) — Imports the test-image AWS-managed workflow.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
