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();
 
  • Method Details

    • getDiskName

      @Stability(Stable) @NotNull String getDiskName()
      The unique name of the disk.
    • getPath

      @Stability(Stable) @NotNull String getPath()
      The disk path.
    • getAttachedTo

      @Stability(Stable) @Nullable default String getAttachedTo()
      The resources to which the disk is attached.
    • getAttachmentState

      @Stability(Stable) @Nullable default String getAttachmentState()
      (Deprecated) The attachment state of the disk.

      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.

    • getIops

      @Stability(Stable) @Nullable default Number getIops()
      The input/output operations per second (IOPS) of the disk.
    • getIsSystemDisk

      @Stability(Stable) @Nullable default Object getIsSystemDisk()
      A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
    • getSizeInGb

      @Stability(Stable) @Nullable default String getSizeInGb()
      The size of the disk in GB.
    • builder

      @Stability(Stable) static CfnInstance.DiskProperty.Builder builder()
      Returns:
      a CfnInstance.DiskProperty.Builder of CfnInstance.DiskProperty