Interface AmazonLinux2ImageSsmParameterProps
- All Superinterfaces:
AmazonLinuxImageSsmParameterBaseOptions
,AmazonLinuxImageSsmParameterCommonOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AmazonLinux2ImageSsmParameterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-19T18:11:58.792Z")
@Stability(Stable)
public interface AmazonLinux2ImageSsmParameterProps
extends software.amazon.jsii.JsiiSerializable, AmazonLinuxImageSsmParameterCommonOptions
Properties specific to amzn2 images.
Example:
Vpc vpc; InstanceType instanceType; // Amazon Linux 2 // Amazon Linux 2 Instance.Builder.create(this, "Instance2") .vpc(vpc) .instanceType(instanceType) .machineImage(MachineImage.latestAmazonLinux2()) .build(); // Amazon Linux 2 with kernel 5.x // Amazon Linux 2 with kernel 5.x Instance.Builder.create(this, "Instance3") .vpc(vpc) .instanceType(instanceType) .machineImage(MachineImage.latestAmazonLinux2(AmazonLinux2ImageSsmParameterProps.builder() .kernel(AmazonLinux2Kernel.KERNEL_5_10) .build())) .build(); // Amazon Linux 2023 // Amazon Linux 2023 Instance.Builder.create(this, "Instance4") .vpc(vpc) .instanceType(instanceType) .machineImage(MachineImage.latestAmazonLinux2023()) .build(); // Graviton 3 Processor // Graviton 3 Processor Instance.Builder.create(this, "Instance5") .vpc(vpc) .instanceType(InstanceType.of(InstanceClass.C7G, InstanceSize.LARGE)) .machineImage(MachineImage.latestAmazonLinux2023(AmazonLinux2023ImageSsmParameterProps.builder() .cpuType(AmazonLinuxCpuType.ARM_64) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAmazonLinux2ImageSsmParameterProps
static final class
An implementation forAmazonLinux2ImageSsmParameterProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default AmazonLinux2Kernel
What kernel version of Amazon Linux to use.default AmazonLinuxStorage
What storage backed image to use.default AmazonLinuxVirt
Virtualization type.Methods inherited from interface software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBaseOptions
getCachedInContext, getUserData
Methods inherited from interface software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterCommonOptions
getCpuType, getEdition
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKernel
What kernel version of Amazon Linux to use.Default: -
-
getStorage
What storage backed image to use.Default: GeneralPurpose
-
getVirtualization
Virtualization type.Default: HVM
-
builder
-