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

Represents the inputs for a step in the component document.

Obtainable from: ComponentStepInputs.fromList, ComponentStepInputs.fromObject

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

## Example

TypeScript:

```ts
const phase: imagebuilder.ComponentDocumentPhase = {
  name: imagebuilder.ComponentPhaseName.BUILD,
  steps: [
    {
      name: 'configure-app',
      action: imagebuilder.ComponentAction.CREATE_FILE,
      inputs: imagebuilder.ComponentStepInputs.fromObject({
        path: '/etc/myapp/config.json',
        content: '{"env": "production"}'
      })
    }
  ]
};
```

Python:

```python
phase = imagebuilder.ComponentDocumentPhase(
    name=imagebuilder.ComponentPhaseName.BUILD,
    steps=[imagebuilder.ComponentDocumentStep(
        name="configure-app",
        action=imagebuilder.ComponentAction.CREATE_FILE,
        inputs=imagebuilder.ComponentStepInputs.from_object({
            "path": "/etc/myapp/config.json",
            "content": "{\"env\": \"production\"}"
        })
    )
    ]
)
```

Java:

```java
ComponentDocumentPhase phase = ComponentDocumentPhase.builder()
        .name(ComponentPhaseName.BUILD)
        .steps(List.of(ComponentDocumentStep.builder()
                .name("configure-app")
                .action(ComponentAction.CREATE_FILE)
                .inputs(ComponentStepInputs.fromObject(Map.of(
                        "path", "/etc/myapp/config.json",
                        "content", "{\"env\": \"production\"}")))
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
var phase = new ComponentDocumentPhase {
    Name = ComponentPhaseName.BUILD,
    Steps = new [] { new ComponentDocumentStep {
        Name = "configure-app",
        Action = ComponentAction.CREATE_FILE,
        Inputs = ComponentStepInputs.FromObject(new Dictionary<string, object> {
            { "path", "/etc/myapp/config.json" },
            { "content", "{\"env\": \"production\"}" }
        })
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
phase := &ComponentDocumentPhase{
	Name: imagebuilder.ComponentPhaseName_BUILD,
	Steps: []ComponentDocumentStep{
		&ComponentDocumentStep{
			Name: jsii.String("configure-app"),
			Action: imagebuilder.ComponentAction_CREATE_FILE,
			Inputs: imagebuilder.ComponentStepInputs_FromObject(map[string]interface{}{
				"path": jsii.String("/etc/myapp/config.json"),
				"content": jsii.String("{\"env\": \"production\"}"),
			}),
		},
	},
}
```

## Properties

- `inputs`: any — The rendered input value.

## Methods

- `fromList(inputsObjectList: { [key: string]: any }[]): ComponentStepInputs // chainable` (static) — Creates the input value from a list of input objects, for the component step.

  **Parameters**

  - `inputsObjectList` — The list of objects containing the input values.

- `fromObject(inputsObject: { [key: string]: any }): ComponentStepInputs // chainable` (static) — Creates the input value from an object, for the component step.

  **Parameters**

  - `inputsObject` — The object containing the input values.
