Class CfnInstancePropsMixin.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.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lightsail
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnInstancePropsMixin.HardwareProperty : CfnInstancePropsMixin.IHardwareProperty
Syntax (vb)
Public Class CfnInstancePropsMixin.HardwareProperty Implements 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
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()
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.
public HardwareProperty()
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
};
Properties
CpuCount
The number of vCPUs the instance has.
public double? CpuCount { get; set; }
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.
public object? Disks { get; set; }
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 ).
public double? RamSizeInGb { get; set; }
Property Value
Remarks
The <code>RamSizeInGb</code> property is read-only and should not be specified in a create instance or update instance request.