WindowsVersion

class aws_cdk.aws_ec2.WindowsVersion(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The Windows version to use for the WindowsImage.

ExampleMetadata:

lit=aws-autoscaling/test/example.images.lit.ts infused

Example:

# Pick a Windows edition to use
windows = ec2.WindowsImage(ec2.WindowsVersion.WINDOWS_SERVER_2019_ENGLISH_FULL_BASE)

# Pick the right Amazon Linux edition. All arguments shown are optional
# and will default to these values when omitted.
amzn_linux = ec2.AmazonLinuxImage(
    generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX,
    edition=ec2.AmazonLinuxEdition.STANDARD,
    virtualization=ec2.AmazonLinuxVirt.HVM,
    storage=ec2.AmazonLinuxStorage.GENERAL_PURPOSE
)

# For other custom (Linux) images, instantiate a `GenericLinuxImage` with
# a map giving the AMI to in for each region:

linux = ec2.GenericLinuxImage({
    "us-east-1": "ami-97785bed",
    "eu-west-1": "ami-12345678"
})

Attributes

WINDOWS_SERVER_1709_ENGLISH_CORE_CONTAINERSLATEST

1709 - Start.

WINDOWS_SERVER_1803_ENGLISH_CORE_BASE

1803 - Start.

WINDOWS_SERVER_1809_ENGLISH_CORE_BASE

1809 - Start.

WINDOWS_SERVER_2003_R2_SP2_LANGUAGE_PACKS_32BIT_BASE

2003 - Start.

WINDOWS_SERVER_2007_R2_SP1_LANGUAGE_PACKS_64BIT_BASE

2007 - Start.

WINDOWS_SERVER_2008_SP2_ENGLISH_64BIT_SQL_2008_SP4_EXPRESS

2008 - Start.

WINDOWS_SERVER_2012_R2_RTM_CHINESE_SIMPLIFIED_64BIT_BASE

2012 - Start.

WINDOWS_SERVER_2016_ENGLISH_CORE_CONTAINERS

2016 - Start.

WINDOWS_SERVER_2019_ENGLISH_CORE_EKS_OPTIMIZED_1_22

EKS Optimized - Start.

WINDOWS_SERVER_2019_ENGLISH_FULL_SQL_2017_WEB

2019 - Start.

WINDOWS_SERVER_2022_ENGLISH_STIG_FULL

2022 - Start.