aws-cdk-lib.aws_ec2.CfnLaunchTemplate.CpuOptionsProperty

interface CpuOptionsProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLaunchTemplate.CpuOptionsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLaunchTemplate_CpuOptionsProperty
Javasoftware.amazon.awscdk.services.ec2.CfnLaunchTemplate.CpuOptionsProperty
Pythonaws_cdk.aws_ec2.CfnLaunchTemplate.CpuOptionsProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnLaunchTemplate » CpuOptionsProperty

Specifies the CPU options for an instance.

For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide .

CpuOptions is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cpuOptionsProperty: ec2.CfnLaunchTemplate.CpuOptionsProperty = {
  amdSevSnp: 'amdSevSnp',
  coreCount: 123,
  threadsPerCore: 123,
};

Properties

NameTypeDescription
amdSevSnp?stringIndicates whether to enable the instance for AMD SEV-SNP.
coreCount?numberThe number of CPU cores for the instance.
threadsPerCore?numberThe number of threads per CPU core.

amdSevSnp?

Type: string (optional)

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 .


coreCount?

Type: number (optional)

The number of CPU cores for the instance.


threadsPerCore?

Type: number (optional)

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 .