Class CfnInstance.DiskProperty
Disk
is a property of the Hardware property. It describes a disk attached to an instance.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DiskProperty : Object, CfnInstance.IDiskProperty
Syntax (vb)
Public Class DiskProperty
Inherits Object
Implements CfnInstance.IDiskProperty
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 diskProperty = new DiskProperty {
DiskName = "diskName",
Path = "path",
// the properties below are optional
AttachedTo = "attachedTo",
AttachmentState = "attachmentState",
Iops = 123,
IsSystemDisk = false,
SizeInGb = "sizeInGb"
};
Synopsis
Constructors
DiskProperty() |
Properties
AttachedTo | The resources to which the disk is attached. |
AttachmentState | (Deprecated) The attachment state of the disk. |
DiskName | The unique name of the disk. |
Iops | The input/output operations per second (IOPS) of the disk. |
IsSystemDisk | A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it). |
Path | The disk path. |
SizeInGb | The size of the disk in GB. |
Constructors
DiskProperty()
public DiskProperty()
Properties
AttachedTo
The resources to which the disk is attached.
public string AttachedTo { get; set; }
Property Value
System.String
Remarks
AttachmentState
(Deprecated) The attachment state of the disk.
public string AttachmentState { get; set; }
Property Value
System.String
Remarks
In releases prior to November 14, 2017, this parameter returned attached
for system disks in the API response. It is now deprecated, but still included in the response. Use isAttached
instead.
DiskName
The unique name of the disk.
public string DiskName { get; set; }
Property Value
System.String
Remarks
Iops
The input/output operations per second (IOPS) of the disk.
public Nullable<double> Iops { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
IsSystemDisk
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
public object IsSystemDisk { get; set; }
Property Value
System.Object
Remarks
Path
The disk path.
public string Path { get; set; }
Property Value
System.String
Remarks
SizeInGb
The size of the disk in GB.
public string SizeInGb { get; set; }
Property Value
System.String