@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.104Z") @Stability(value=Stable) public enum AmazonLinuxVirt extends Enum<AmazonLinuxVirt>
Example:
// Pick a Windows edition to use
WindowsImage windows = new WindowsImage(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.
AmazonLinuxImage amznLinux = AmazonLinuxImage.Builder.create()
.generation(AmazonLinuxGeneration.AMAZON_LINUX)
.edition(AmazonLinuxEdition.STANDARD)
.virtualization(AmazonLinuxVirt.HVM)
.storage(AmazonLinuxStorage.GENERAL_PURPOSE)
.build();
// For other custom (Linux) images, instantiate a `GenericLinuxImage` with
// a map giving the AMI to in for each region:
GenericLinuxImage linux = new GenericLinuxImage(Map.of(
"us-east-1", "ami-97785bed",
"eu-west-1", "ami-12345678"));
| Enum Constant and Description |
|---|
HVM
HVM virtualization (recommended).
|
PV
PV virtualization.
|
| Modifier and Type | Method and Description |
|---|---|
static AmazonLinuxVirt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmazonLinuxVirt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final AmazonLinuxVirt HVM
@Stability(value=Stable) public static final AmazonLinuxVirt PV
public static AmazonLinuxVirt[] values()
for (AmazonLinuxVirt c : AmazonLinuxVirt.values()) System.out.println(c);
public static AmazonLinuxVirt valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.