Class CfnInstance.CpuOptionsProperty
Specifies the CPU options for the instance.
Inheritance
System.Object
CfnInstance.CpuOptionsProperty
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CpuOptionsProperty : Object, CfnInstance.ICpuOptionsProperty
Syntax (vb)
Public Class CpuOptionsProperty
Inherits Object
Implements CfnInstance.ICpuOptionsProperty
Remarks
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 .
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
Constructors
CpuOptionsProperty() |
Properties
CoreCount | The number of CPU cores for the instance. |
ThreadsPerCore | The number of threads per CPU core. |
Constructors
CpuOptionsProperty()
public CpuOptionsProperty()
Properties
CoreCount
The number of CPU cores for the instance.
public Nullable<double> CoreCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
ThreadsPerCore
The number of threads per CPU core.
public Nullable<double> ThreadsPerCore { get; set; }
Property Value
System.Nullable<System.Double>