Skip to content

EC2  >  Structures  >  LaunchTemplateCpuOptionsRequest

LaunchTemplateCpuOptionsRequest

Structure Class

LaunchTemplateCpuOptionsRequest dataclass

Bases: _SerdeShape

The CPU options for the instance. Both the core count and threads per core must be specified in the request.

Attributes

amd_sev_snp class-attribute instance-attribute
amd_sev_snp: str | None = ...

Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP for Amazon EC2 instances.

core_count class-attribute instance-attribute
core_count: int | None = ...

The number of CPU cores for the instance.

nested_virtualization class-attribute instance-attribute
nested_virtualization: str | None = ...

Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported only on 8th generation Intel-based instance types (c8i, m8i, r8i, and their flex variants). When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.

threads_per_core class-attribute instance-attribute
threads_per_core: int | None = ...

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.