Show / Hide Table of Contents

Enum AmazonLinuxVirt

Virtualization type for Amazon Linux.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum AmazonLinuxVirt
Syntax (vb)
Public Enum AmazonLinuxVirt
Remarks

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

Examples
// Pick a Windows edition to use
            var 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.
            var amznLinux = new AmazonLinuxImage(new AmazonLinuxImageProps {
                Generation = AmazonLinuxGeneration.AMAZON_LINUX,
                Edition = AmazonLinuxEdition.STANDARD,
                Virtualization = AmazonLinuxVirt.HVM,
                Storage = AmazonLinuxStorage.GENERAL_PURPOSE
            });

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

            var linux = new GenericLinuxImage(new Dictionary<string, string> {
                { "us-east-1", "ami-97785bed" },
                { "eu-west-1", "ami-12345678" }
            });

Synopsis

Fields

HVM

HVM virtualization (recommended).

PV

PV virtualization.

Fields

Name Description
HVM

HVM virtualization (recommended).

PV

PV virtualization.

Back to top Generated by DocFX