Class CfnLaunchTemplate.CpuOptionsProperty
Specifies the CPU options for an instance.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CpuOptionsProperty : Object, CfnLaunchTemplate.ICpuOptionsProperty
Syntax (vb)
Public Class CpuOptionsProperty
Inherits Object
Implements CfnLaunchTemplate.ICpuOptionsProperty
Remarks
For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide .
CpuOptions
is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
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 {
AmdSevSnp = "amdSevSnp",
CoreCount = 123,
ThreadsPerCore = 123
};
Synopsis
Constructors
CpuOptionsProperty() |
Properties
AmdSevSnp | Indicates whether to enable the instance for AMD SEV-SNP. |
CoreCount | The number of CPU cores for the instance. |
ThreadsPerCore | The number of threads per CPU core. |
Constructors
CpuOptionsProperty()
public CpuOptionsProperty()
Properties
AmdSevSnp
Indicates whether to enable the instance for AMD SEV-SNP.
public string AmdSevSnp { get; set; }
Property Value
System.String
Remarks
AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP for Amazon EC2 instances .
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>
Remarks
To disable multithreading for the instance, specify a value of 1
. Otherwise, specify the default value of 2
.