Class AmazonLinuxGeneration
What generation of Amazon Linux to use.
Inheritance
System.Object
AmazonLinuxGeneration
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class AmazonLinuxGeneration : Enum
Syntax (vb)
Public NotInheritable Class AmazonLinuxGeneration
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
new Instance(this, "Instance", new InstanceProps {
Vpc = vpc,
InstanceType = InstanceType.Of(InstanceClass.T3, InstanceSize.NANO),
MachineImage = new AmazonLinuxImage(new AmazonLinuxImageProps { Generation = AmazonLinuxGeneration.AMAZON_LINUX_2 }),
InstanceInitiatedShutdownBehavior = InstanceInitiatedShutdownBehavior.TERMINATE
});
Synopsis
Fields
AMAZON_LINUX | Amazon Linux. |
AMAZON_LINUX_2 | Amazon Linux 2. |
AMAZON_LINUX_2022 | Amazon Linux 2022. |
AMAZON_LINUX_2023 | Amazon Linux 2023. |
value__ |
Fields
AMAZON_LINUX
Amazon Linux.
public const AmazonLinuxGeneration AMAZON_LINUX
Field Value
Type | Description |
---|---|
AmazonLinuxGeneration |
AMAZON_LINUX_2
Amazon Linux 2.
public const AmazonLinuxGeneration AMAZON_LINUX_2
Field Value
Type | Description |
---|---|
AmazonLinuxGeneration |
AMAZON_LINUX_2022
Amazon Linux 2022.
public const AmazonLinuxGeneration AMAZON_LINUX_2022
Field Value
Type | Description |
---|---|
AmazonLinuxGeneration |
AMAZON_LINUX_2023
Amazon Linux 2023.
public const AmazonLinuxGeneration AMAZON_LINUX_2023
Field Value
Type | Description |
---|---|
AmazonLinuxGeneration |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |