interface CpuOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnLaunchTemplatePropsMixin.CpuOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnLaunchTemplatePropsMixin_CpuOptionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnLaunchTemplatePropsMixin.CpuOptionsProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnLaunchTemplatePropsMixin.CpuOptionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnLaunchTemplatePropsMixin » CpuOptionsProperty |
Specifies the CPU options for an instance.
For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide .
CpuOptions is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const cpuOptionsProperty: ec2_mixins.CfnLaunchTemplatePropsMixin.CpuOptionsProperty = {
amdSevSnp: 'amdSevSnp',
coreCount: 123,
threadsPerCore: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| amd | string | Indicates whether to enable the instance for AMD SEV-SNP. |
| core | number | The number of CPU cores for the instance. |
| threads | number | The number of threads per CPU core. |
amdSevSnp?
Type:
string
(optional)
Indicates whether to enable the instance for AMD SEV-SNP.
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?
Type:
number
(optional)
The number of CPU cores for the instance.
threadsPerCore?
Type:
number
(optional)
The number of threads per CPU core.
To disable multithreading for the instance, specify a value of 1 . Otherwise, specify the default value of 2 .

.NET
Go
Java
Python
TypeScript