enum Platform
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.Platform |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#Platform |
Java | software.amazon.awscdk.services.imagebuilder.alpha.Platform |
Python | aws_cdk.aws_imagebuilder_alpha.Platform |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป Platform |
Represents a platform for an EC2 Image Builder image.
Example
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
| Name | Description |
|---|---|
| LINUX | Platform for Linux. |
| WINDOWS | Platform for Windows. |
| MAC_OS | Platform for macOS. |
LINUX
Platform for Linux.
WINDOWS
Platform for Windows.
MAC_OS
Platform for macOS.

.NET
Go
Java
Python
TypeScript (