Class CfnInstance.HardwareProperty
Hardware
is a property of the AWS::Lightsail::Instance resource. It describes the hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HardwareProperty : Object, CfnInstance.IHardwareProperty
Syntax (vb)
Public Class HardwareProperty
Inherits Object
Implements CfnInstance.IHardwareProperty
Remarks
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.AWS.Lightsail;
var hardwareProperty = new HardwareProperty {
CpuCount = 123,
Disks = new [] { new DiskProperty {
DiskName = "diskName",
Path = "path",
// the properties below are optional
AttachedTo = "attachedTo",
AttachmentState = "attachmentState",
Iops = 123,
IsSystemDisk = false,
SizeInGb = "sizeInGb"
} },
RamSizeInGb = 123
};
Synopsis
Constructors
HardwareProperty() |
Properties
CpuCount | The number of vCPUs the instance has. |
Disks | The disks attached to the instance. |
RamSizeInGb | The amount of RAM in GB on the instance (for example, |
Constructors
HardwareProperty()
public HardwareProperty()
Properties
CpuCount
The number of vCPUs the instance has.
public Nullable<double> CpuCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The CpuCount
property is read-only and should not be specified in a create instance or update instance request.
Disks
The disks attached to the instance.
public object Disks { get; set; }
Property Value
System.Object
Remarks
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.
RamSizeInGb
The amount of RAM in GB on the instance (for example, 1.0
).
public Nullable<double> RamSizeInGb { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The RamSizeInGb
property is read-only and should not be specified in a create instance or update instance request.