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

Represents a platform for an EC2 Image Builder image.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/os-version.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/os-version.ts#L4)

## Example

```ts

const component = new imagebuilder.Component(this, 'JsonComponent', {
  platform: imagebuilder.Platform.LINUX,
  data: imagebuilder.ComponentData.fromJsonObject({
    schemaVersion: imagebuilder.ComponentSchemaVersion.V1_0,
    phases: [
      {
        name: imagebuilder.ComponentPhaseName.BUILD,
        steps: [
          {
            name: 'configure-app',
            action: imagebuilder.ComponentAction.CREATE_FILE,
            inputs: {
              path: '/etc/myapp/config.json',
              content: '{"env": "production"}'
            }
          }
        ]
      }
    ]
  })
});
```

## Members

| Member | Description |
| --- | --- |
| `LINUX` | Platform for Linux. |
| `WINDOWS` | Platform for Windows. |
| `MAC_OS` | Platform for macOS. |

## Referenced by

- [`AmazonManagedComponentOptions`](/v2/docs/@aws-cdk_aws-imagebuilder-alpha.AmazonManagedComponentOptions).platform
- [`ComponentProps`](/v2/docs/@aws-cdk_aws-imagebuilder-alpha.ComponentProps).platform
- [`OSVersion`](/v2/docs/@aws-cdk_aws-imagebuilder-alpha.OSVersion).platform
