Platform
- class aws_cdk.aws_imagebuilder_alpha.Platform(*values)
Bases:
Enum(experimental) Represents a platform for an EC2 Image Builder image.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
component = imagebuilder.Component(self, "MyComponent", platform=imagebuilder.Platform.LINUX, data=imagebuilder.ComponentData.from_json_object({ "schema_version": 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"] } } ] } ] }) )
Attributes
- LINUX
(experimental) Platform for Linux.
- Stability:
experimental
- MAC_OS
(experimental) Platform for macOS.
- Stability:
experimental
- WINDOWS
(experimental) Platform for Windows.
- Stability:
experimental