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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnInstance.DiskProperty
static final class
An implementation forCfnInstance.DiskProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The resources to which the disk is attached.default String
(Deprecated) The attachment state of the disk.The unique name of the disk.default Number
getIops()
The input/output operations per second (IOPS) of the disk.default Object
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).getPath()
The disk path.default String
The 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.- See Also:
-
getPath
The disk path.- See Also:
-
getAttachedTo
The resources to which the disk is attached.- See Also:
-
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. UseisAttached
instead.- See Also:
-
getIops
The input/output operations per second (IOPS) of the disk.- See Also:
-
getIsSystemDisk
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).- See Also:
-
getSizeInGb
The size of the disk in GB.- See Also:
-
builder
- Returns:
- a
CfnInstance.DiskProperty.Builder
ofCfnInstance.DiskProperty
-