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, 'MyComponent', {
platform: imagebuilder.Platform.LINUX,
data: imagebuilder.ComponentData.fromJsonObject({
schemaVersion: imagebuilder.ComponentSchemaVersion.V1_0,
phases: [
{
name: imagebuilder.ComponentPhaseName.BUILD,
steps: [
{
name: 'install-app',
action: imagebuilder.ComponentAction.EXECUTE_BASH,
inputs: {
commands: ['echo "Installing my application..."', 'yum update -y'],
},
},
],
},
],
}),
});
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 (