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

Configuration details for a component, to include in a recipe.

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

## 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 component: imagebuilder_alpha.Component;
declare const componentParameterValue: imagebuilder_alpha.ComponentParameterValue;
const componentConfiguration: imagebuilder_alpha.ComponentConfiguration = {
  component: component,

  // the properties below are optional
  parameters: {
    parametersKey: componentParameterValue,
  },
};
```

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

# component: imagebuilder_alpha.Component
# component_parameter_value: imagebuilder_alpha.ComponentParameterValue

component_configuration = imagebuilder_alpha.ComponentConfiguration(
    component=component,

    # the properties below are optional
    parameters={
        "parameters_key": component_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.*;

Component component;
ComponentParameterValue componentParameterValue;

ComponentConfiguration componentConfiguration = ComponentConfiguration.builder()
        .component(component)

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

Component component;
ComponentParameterValue componentParameterValue;

var componentConfiguration = new ComponentConfiguration {
    Component = component,

    // the properties below are optional
    Parameters = new Dictionary<string, ComponentParameterValue> {
        { "parametersKey", componentParameterValue }
    }
};
```

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 component Component
var componentParameterValue ComponentParameterValue

componentConfiguration := &ComponentConfiguration{
	Component: component,

	// the properties below are optional
	Parameters: map[string]ComponentParameterValue{
		"parametersKey": componentParameterValue,
	},
}
```

## Properties

- `component`: [IComponent](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.IComponent.html) (required) — The component to execute as part of the image build.

- `parameters`: { [key: string]: [ComponentParameterValue](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.ComponentParameterValue.html) } — The parameters to use when executing the component.

  **Default:** no parameters. if the component contains parameters, their default values will be used. otherwise, any required parameters that are not included will result in a build failure
