public static interface CfnLaunchTemplate.CpuOptionsProperty
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 software.amazon.awscdk.services.ec2.*; CpuOptionsProperty cpuOptionsProperty = CpuOptionsProperty.builder() .coreCount(123) .threadsPerCore(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnLaunchTemplate.CpuOptionsProperty.Builder
A builder for
CfnLaunchTemplate.CpuOptionsProperty |
static class |
CfnLaunchTemplate.CpuOptionsProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.CpuOptionsProperty |
Modifier and Type | Method and Description |
---|---|
static CfnLaunchTemplate.CpuOptionsProperty.Builder |
builder() |
default java.lang.Number |
getCoreCount()
The number of CPU cores for the instance.
|
default java.lang.Number |
getThreadsPerCore()
The number of threads per CPU core.
|
default java.lang.Number getCoreCount()
default java.lang.Number getThreadsPerCore()
To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.
static CfnLaunchTemplate.CpuOptionsProperty.Builder builder()