Interface CfnInstance.ICpuOptionsProperty
Specifies the CPU options for the instance.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICpuOptionsProperty
Syntax (vb)
Public Interface ICpuOptionsProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cpuOptionsProperty = new CpuOptionsProperty {
CoreCount = 123,
ThreadsPerCore = 123
};
Synopsis
Properties
CoreCount | The number of CPU cores for the instance. |
ThreadsPerCore | The number of threads per CPU core. |
Properties
CoreCount
The number of CPU cores for the instance.
virtual Nullable<double> CoreCount { get; }
Property Value
System.Nullable<System.Double>
Remarks
ThreadsPerCore
The number of threads per CPU core.
virtual Nullable<double> ThreadsPerCore { get; }
Property Value
System.Nullable<System.Double>