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:
  • Method Details

    • getAmdSevSnp

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default Number getCoreCount()
      The number of CPU cores for the instance.

      Default: - The default number of CPU cores for the selected instance type.

    • getNestedVirtualization

      @Stability(Stable) @Nullable default Boolean getNestedVirtualization()
      Indicates whether the instance is enabled for nested virtualization.

      Default: - Nested virtualization is not specified in the launch template.

    • getThreadsPerCore

      @Stability(Stable) @Nullable default Number 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

      @Stability(Stable) static LaunchTemplateCpuOptions.Builder builder()
      Returns:
      a LaunchTemplateCpuOptions.Builder of LaunchTemplateCpuOptions