Interface CfnInstancePropsMixin.IHardwareProperty
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.
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lightsail
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnInstancePropsMixin.IHardwareProperty
Syntax (vb)
Public Interface CfnInstancePropsMixin.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.CfnPropertyMixins.AWS.Lightsail;
var hardwareProperty = new HardwareProperty {
CpuCount = 123,
Disks = new [] { new DiskProperty {
AttachedTo = "attachedTo",
AttachmentState = "attachmentState",
DiskName = "diskName",
Iops = 123,
IsSystemDisk = false,
Path = "path",
SizeInGb = "sizeInGb"
} },
RamSizeInGb = 123
};
Synopsis
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, |
Properties
CpuCount
The number of vCPUs the instance has.
double? CpuCount { get; }
Property Value
Remarks
The <code>CpuCount</code> property is read-only and should not be specified in a create instance or update instance request.
Disks
The disks attached to the instance.
object? Disks { get; }
Property Value
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.
Type union: either IResolvable or (either IResolvable or CfnInstancePropsMixin.IDiskProperty)[]
RamSizeInGb
The amount of RAM in GB on the instance (for example, 1.0 ).
double? RamSizeInGb { get; }
Property Value
Remarks
The <code>RamSizeInGb</code> property is read-only and should not be specified in a create instance or update instance request.