interface CpuOptionsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnInstance.CpuOptionsProperty |
Java | software.amazon.awscdk.services.ec2.CfnInstance.CpuOptionsProperty |
Python | aws_cdk.aws_ec2.CfnInstance.CpuOptionsProperty |
TypeScript | @aws-cdk/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 * as ec2 from '@aws-cdk/aws-ec2';
const cpuOptionsProperty: ec2.CfnInstance.CpuOptionsProperty = {
coreCount: 123,
threadsPerCore: 123,
};
Properties
Name | Type | Description |
---|---|---|
core | number | The number of CPU cores for the instance. |
threads | number | The 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.