Class OSVersion
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.imagebuilder.alpha.OSVersion
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.466Z")
@Stability(Experimental)
public class OSVersion
extends software.amazon.jsii.JsiiObject
(experimental) Represents an OS version for an EC2 Image Builder image.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.imagebuilder.alpha.*; OSVersion oSVersion = OSVersion.AMAZON_LINUX;
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OSVersion(experimental) OS version for all Amazon Linux images.static final OSVersion(experimental) OS version for Amazon Linux 2.static final OSVersion(experimental) OS version for Amazon Linux 2023.static final OSVersion(experimental) OS version for all Linux images.static final OSVersion(experimental) OS version for all macOS images.static final OSVersion(experimental) OS version for macOS 14.static final OSVersion(experimental) OS version for macOS 15.static final OSVersion(experimental) OS version for all Red Hat Enterprise Linux images.static final OSVersion(experimental) OS version for Red Hat Enterprise Linux 10.static final OSVersion(experimental) OS version for Red Hat Enterprise Linux 8.static final OSVersion(experimental) OS version for Red Hat Enterprise Linux 9.static final OSVersion(experimental) OS version for all SLES images.static final OSVersion(experimental) OS version for SLES 15.static final OSVersion(experimental) OS version for all Ubuntu images.static final OSVersion(experimental) OS version for Ubuntu 22.04.static final OSVersion(experimental) OS version for Ubuntu 24.04.static final OSVersion(experimental) OS version for all Windows images.static final OSVersion(experimental) OS version for all Windows server images.static final OSVersion(experimental) OS version for Windows Server 2016.static final OSVersion(experimental) OS version for Windows Server 2019.static final OSVersion(experimental) OS version for Windows Server 2022.static final OSVersion(experimental) OS version for Windows Server 2025. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
AMAZON_LINUX
(experimental) OS version for all Amazon Linux images. -
AMAZON_LINUX_2
(experimental) OS version for Amazon Linux 2. -
AMAZON_LINUX_2023
(experimental) OS version for Amazon Linux 2023. -
LINUX
(experimental) OS version for all Linux images. -
MAC_OS
(experimental) OS version for all macOS images. -
MAC_OS_14
(experimental) OS version for macOS 14. -
MAC_OS_15
(experimental) OS version for macOS 15. -
REDHAT_ENTERPRISE_LINUX
(experimental) OS version for all Red Hat Enterprise Linux images. -
REDHAT_ENTERPRISE_LINUX_10
(experimental) OS version for Red Hat Enterprise Linux 10. -
REDHAT_ENTERPRISE_LINUX_8
(experimental) OS version for Red Hat Enterprise Linux 8. -
REDHAT_ENTERPRISE_LINUX_9
(experimental) OS version for Red Hat Enterprise Linux 9. -
SLES
(experimental) OS version for all SLES images. -
SLES_15
(experimental) OS version for SLES 15. -
UBUNTU
(experimental) OS version for all Ubuntu images. -
UBUNTU_22_04
(experimental) OS version for Ubuntu 22.04. -
UBUNTU_24_04
(experimental) OS version for Ubuntu 24.04. -
WINDOWS
(experimental) OS version for all Windows images. -
WINDOWS_SERVER
(experimental) OS version for all Windows server images. -
WINDOWS_SERVER_2016
(experimental) OS version for Windows Server 2016. -
WINDOWS_SERVER_2019
(experimental) OS version for Windows Server 2019. -
WINDOWS_SERVER_2022
(experimental) OS version for Windows Server 2022. -
WINDOWS_SERVER_2025
(experimental) OS version for Windows Server 2025.
-
-
Constructor Details
-
OSVersion
protected OSVersion(software.amazon.jsii.JsiiObjectRef objRef) -
OSVersion
protected OSVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OSVersion
@Stability(Experimental) protected OSVersion(@NotNull Platform platform, @Nullable String osVersion) - Parameters:
platform- This parameter is required.osVersion-
-
OSVersion
- Parameters:
platform- This parameter is required.
-
-
Method Details
-
custom
@Stability(Experimental) @NotNull public static OSVersion custom(@NotNull Platform platform, @Nullable String osVersion) (experimental) Constructs an OS version with a custom name.- Parameters:
platform- The platform of the OS version. This parameter is required.osVersion- The custom OS version to use.
-
custom
(experimental) Constructs an OS version with a custom name.- Parameters:
platform- The platform of the OS version. This parameter is required.
-
getPlatform
(experimental) The Platform of the OS version. -
getOsVersion
(experimental) The OS version name.
-