Interface CfnInstance.DiskProperty
- All Superinterfaces:
 software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
 CfnInstance.DiskProperty.Jsii$Proxy
- Enclosing class:
 - CfnInstance
 
@Stability(Stable)
public static interface CfnInstance.DiskProperty
extends software.amazon.jsii.JsiiSerializable
Disk is a property of the Hardware property. It describes a disk attached to an instance.
 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.*;
 DiskProperty diskProperty = DiskProperty.builder()
         .diskName("diskName")
         .path("path")
         // the properties below are optional
         .attachedTo("attachedTo")
         .attachmentState("attachmentState")
         .iops(123)
         .isSystemDisk(false)
         .sizeInGb("sizeInGb")
         .build();
 - 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.DiskPropertystatic final classAn implementation forCfnInstance.DiskProperty - 
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe resources to which the disk is attached.default String(Deprecated) The attachment state of the disk.The unique name of the disk.default NumbergetIops()The input/output operations per second (IOPS) of the disk.default ObjectA Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).getPath()The disk path.default StringThe size of the disk in GB.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Method Details
- 
getDiskName
The unique name of the disk. - 
getPath
The disk path. - 
getAttachedTo
The resources to which the disk is attached. - 
getAttachmentState
(Deprecated) The attachment state of the disk.In releases prior to November 14, 2017, this parameter returned
attachedfor system disks in the API response. It is now deprecated, but still included in the response. UseisAttachedinstead. - 
getIops
The input/output operations per second (IOPS) of the disk. - 
getIsSystemDisk
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it). - 
getSizeInGb
The size of the disk in GB. - 
builder
- Returns:
 - a 
CfnInstance.DiskProperty.BuilderofCfnInstance.DiskProperty 
 
 -