enum ComponentSchemaVersion
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.ComponentSchemaVersion |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#ComponentSchemaVersion |
Java | software.amazon.awscdk.services.imagebuilder.alpha.ComponentSchemaVersion |
Python | aws_cdk.aws_imagebuilder_alpha.ComponentSchemaVersion |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป ComponentSchemaVersion |
The schema version of the component.
Example
const customComponent = 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: ['yum install -y my-application']
}
}
]
}
]
})
});
const imageRecipe = new imagebuilder.ImageRecipe(this, 'ComponentImageRecipe', {
baseImage: imagebuilder.BaseImage.fromSsmParameterName(
'/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64'
),
components: [
{
component: customComponent
}
]
});
Members
| Name | Description |
|---|---|
| V1_0 | Schema version 1.0 for the component document. |
V1_0
Schema version 1.0 for the component document.

.NET
Go
Java
Python
TypeScript (