Interface CfnLaunchTemplate.ICpuOptionsProperty
Specifies the CPU options for an instance.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICpuOptionsProperty
Syntax (vb)
Public Interface 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
Properties
Amd |
Indicates whether to enable the instance for AMD SEV-SNP. |
Core |
The number of CPU cores for the instance. |
Threads |
The number of threads per CPU core. |
Properties
AmdSevSnp
Indicates whether to enable the instance for AMD SEV-SNP.
virtual string AmdSevSnp { get; }
Property Value
System.
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.
virtual Nullable<double> CoreCount { get; }
Property Value
System.
Remarks
ThreadsPerCore
The number of threads per CPU core.
virtual Nullable<double> ThreadsPerCore { get; }
Property Value
System.
Remarks
To disable multithreading for the instance, specify a value of 1
. Otherwise, specify the default value of 2
.