WindowsVersion

class aws_cdk.aws_ec2.WindowsVersion(value)

Bases: enum.Enum

The Windows version to use for the WindowsImage.

Example:

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

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

# Read AMI id from SSM parameter store
ssm = ec2.MachineImage.from_sSMParameter("/my/ami", ec2.OperatingSystemType.LINUX)

# Look up the most recent image matching a set of AMI filters.
# In this case, look up the NAT instance AMI, by using a wildcard
# in the 'name' field:
nat_ami = ec2.MachineImage.lookup(
    name="amzn-ami-vpc-nat-*",
    owners=["amazon"]
)

# For other custom (Linux) images, instantiate a `GenericLinuxImage` with
# a map giving the AMI to in for each region:
linux = ec2.MachineImage.generic_linux({
    "us-east-1": "ami-97785bed",
    "eu-west-1": "ami-12345678"
})

# For other custom (Windows) images, instantiate a `GenericWindowsImage` with
# a map giving the AMI to in for each region:
generic_windows = ec2.MachineImage.generic_windows({
    "us-east-1": "ami-97785bed",
    "eu-west-1": "ami-12345678"
})

Attributes

WINDOWS_SERVER_2008_R2_SP1_PORTUGESE_BRAZIL_64BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2008_R2_SP1_PORTUGUESE_BRAZIL_64BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2008_SP2_PORTUGESE_BRAZIL_32BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2008_SP2_PORTUGUESE_BRAZIL_32BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2012_R2_RTM_PORTUGESE_BRAZIL_64BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2012_R2_RTM_PORTUGUESE_BRAZIL_64BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2012_R2_RTM_PORTUGESE_PORTUGAL_64BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2012_R2_RTM_PORTUGUESE_PORTUGAL_64BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2012_R2_SP1_PORTUGESE_BRAZIL_64BIT_CORE
Deprecated
  • use WINDOWS_SERVER_2012_R2_SP1_PORTUGUESE_BRAZIL_64BIT_CORE

Stability

deprecated

WINDOWS_SERVER_2012_RTM_PORTUGESE_BRAZIL_64BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2012_RTM_PORTUGUESE_BRAZIL_64BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2012_RTM_PORTUGESE_PORTUGAL_64BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2012_RTM_PORTUGUESE_PORTUGAL_64BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2012_SP2_PORTUGESE_BRAZIL_64BIT_BASE
Deprecated
  • use WINDOWS_SERVER_2012_SP2_PORTUGUESE_BRAZIL_64BIT_BASE

Stability

deprecated

WINDOWS_SERVER_2016_GERMAL_FULL_BASE
Deprecated
  • use WINDOWS_SERVER_2016_GERMAN_FULL_BASE

Stability

deprecated

WINDOWS_SERVER_2016_PORTUGESE_BRAZIL_FULL_BASE
Deprecated
  • use WINDOWS_SERVER_2016_PORTUGUESE_BRAZIL_FULL_BASE

Stability

deprecated

WINDOWS_SERVER_2016_PORTUGESE_PORTUGAL_FULL_BASE
Deprecated
  • use WINDOWS_SERVER_2016_PORTUGUESE_PORTUGAL_FULL_BASE

Stability

deprecated

WINDOWS_SERVER_2019_PORTUGESE_BRAZIL_FULL_BASE
Deprecated
  • use WINDOWS_SERVER_2019_PORTUGUESE_BRAZIL_FULL_BASE

Stability

deprecated

WINDOWS_SERVER_2019_PORTUGESE_PORTUGAL_FULL_BASE
Deprecated
  • use WINDOWS_SERVER_2019_PORTUGUESE_PORTUGAL_FULL_BASE

Stability

deprecated