@Stability(value=Stable)
public static interface CfnInstance.CpuOptionsProperty
extends software.amazon.jsii.JsiiSerializable
When you specify CPU options, you must specify both the number of CPU cores and threads per core.
For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide .
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 |
CfnInstance.CpuOptionsProperty.Builder
A builder for
CfnInstance.CpuOptionsProperty |
static class |
CfnInstance.CpuOptionsProperty.Jsii$Proxy
An implementation for
CfnInstance.CpuOptionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.CpuOptionsProperty.Builder |
builder() |
default Number |
getCoreCount()
The number of CPU cores for the instance.
|
default Number |
getThreadsPerCore()
The number of threads per CPU core.
|
@Stability(value=Stable) @Nullable default Number getCoreCount()
@Stability(value=Stable) @Nullable default Number getThreadsPerCore()
@Stability(value=Stable) static CfnInstance.CpuOptionsProperty.Builder builder()
Copyright © 2022. All rights reserved.