Class CfnLaunchTemplatePropsMixin.CpuOptionsProperty
Specifies the CPU options for an instance.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnLaunchTemplatePropsMixin.CpuOptionsProperty : CfnLaunchTemplatePropsMixin.ICpuOptionsProperty
Syntax (vb)
Public Class CfnLaunchTemplatePropsMixin.CpuOptionsProperty Implements CfnLaunchTemplatePropsMixin.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.Mixins.Preview.AWS.EC2.Mixins;
var cpuOptionsProperty = new CpuOptionsProperty {
AmdSevSnp = "amdSevSnp",
CoreCount = 123,
ThreadsPerCore = 123
};
Synopsis
Constructors
| CpuOptionsProperty() | Specifies the CPU options for an instance. |
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()
Specifies the CPU options for an instance.
public CpuOptionsProperty()
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.Mixins.Preview.AWS.EC2.Mixins;
var cpuOptionsProperty = new CpuOptionsProperty {
AmdSevSnp = "amdSevSnp",
CoreCount = 123,
ThreadsPerCore = 123
};
Properties
AmdSevSnp
Indicates whether to enable the instance for AMD SEV-SNP.
public string? AmdSevSnp { get; set; }
Property Value
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 double? CoreCount { get; set; }
Property Value
Remarks
ThreadsPerCore
The number of threads per CPU core.
public double? ThreadsPerCore { get; set; }
Property Value
Remarks
To disable multithreading for the instance, specify a value of 1 . Otherwise, specify the default value of 2 .