@Stability(value=Stable)
public static interface CfnInstance.HardwareProperty
extends software.amazon.jsii.JsiiSerializable
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.lightsail.*;
HardwareProperty hardwareProperty = HardwareProperty.builder()
.cpuCount(123)
.disks(List.of(DiskProperty.builder()
.diskName("diskName")
.path("path")
// the properties below are optional
.attachedTo("attachedTo")
.attachmentState("attachmentState")
.iops(123)
.isSystemDisk(false)
.sizeInGb("sizeInGb")
.build()))
.ramSizeInGb(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstance.HardwareProperty.Builder
A builder for
CfnInstance.HardwareProperty |
static class |
CfnInstance.HardwareProperty.Jsii$Proxy
An implementation for
CfnInstance.HardwareProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.HardwareProperty.Builder |
builder() |
default Number |
getCpuCount()
The number of vCPUs the instance has.
|
default Object |
getDisks()
The disks attached to the instance.
|
default Number |
getRamSizeInGb()
The amount of RAM in GB on the instance (for example, `1.0` ).
|
@Stability(value=Stable) @Nullable default Number getCpuCount()
The
CpuCountproperty is read-only and should not be specified in a create instance or update instance request.
@Stability(value=Stable) @Nullable default Object getDisks()
The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.
@Stability(value=Stable) @Nullable default Number getRamSizeInGb()
The
RamSizeInGbproperty is read-only and should not be specified in a create instance or update instance request.
@Stability(value=Stable) static CfnInstance.HardwareProperty.Builder builder()
Copyright © 2022. All rights reserved.