interface CpuOptionsProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnInstance.CpuOptionsProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnInstance_CpuOptionsProperty |
![]() | software.amazon.awscdk.services.ec2.CfnInstance.CpuOptionsProperty |
![]() | aws_cdk.aws_ec2.CfnInstance.CpuOptionsProperty |
![]() | 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.
Modifying the CPU options for an instance results in instance replacement .
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
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.