Experimental
@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Platform Enum
Represents a platform for an EC2 Image Builder image.
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.platformplatformplatformPlatformPlatformComponentProps.platformplatformplatformPlatformPlatformOSVersion.platformplatformplatformPlatformPlatform