Interface LaunchTemplateCpuOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LaunchTemplateCpuOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:08.798Z")
@Stability(Stable)
public interface LaunchTemplateCpuOptions
extends software.amazon.jsii.JsiiSerializable
The CPU options for the instance.
Example:
LaunchTemplate.Builder.create(this, "LaunchTemplate")
.machineImage(MachineImage.latestAmazonLinux2023())
.cpuOptions(LaunchTemplateCpuOptions.builder()
.coreCount(4)
.threadsPerCore(1)
.nestedVirtualization(true)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLaunchTemplateCpuOptionsstatic final classAn implementation forLaunchTemplateCpuOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanIndicates whether to enable the instance for AMD SEV-SNP.default NumberThe number of CPU cores for the instance.default BooleanIndicates whether the instance is enabled for nested virtualization.default NumberThe number of threads per CPU core.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAmdSevSnp
Indicates whether to enable the instance for AMD SEV-SNP.AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only.
Default: - AMD SEV-SNP is not specified in the launch template.
- See Also:
-
getCoreCount
The number of CPU cores for the instance.Default: - The default number of CPU cores for the selected instance type.
-
getNestedVirtualization
Indicates whether the instance is enabled for nested virtualization.Default: - Nested virtualization is not specified in the launch template.
-
getThreadsPerCore
The number of threads per CPU core.To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.
Default: - The default number of threads per core for the selected instance type.
-
builder
- Returns:
- a
LaunchTemplateCpuOptions.BuilderofLaunchTemplateCpuOptions
-