aws-cdk-lib.aws_ec2.CfnInstance.CpuOptionsProperty

interface CpuOptionsProperty

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

Specifies the CPU options for the instance.

When you specify CPU options, you must specify both the number of CPU cores and threads per core.

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

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.CfnInstance.CpuOptionsProperty = {
  coreCount: 123,
  threadsPerCore: 123,
};

Properties

NameTypeDescription
coreCount?numberThe number of CPU cores for the instance.
threadsPerCore?numberThe number of threads per CPU core.

coreCount?

Type: number (optional)

The number of CPU cores for the instance.


threadsPerCore?

Type: number (optional)

The number of threads per CPU core.