Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Disk = Disk' {
- state :: Maybe DiskState
- resourceType :: Maybe ResourceType
- arn :: Maybe Text
- path :: Maybe Text
- createdAt :: Maybe POSIX
- location :: Maybe ResourceLocation
- iops :: Maybe Int
- isAttached :: Maybe Bool
- addOns :: Maybe [AddOn]
- attachmentState :: Maybe Text
- name :: Maybe Text
- sizeInGb :: Maybe Int
- supportCode :: Maybe Text
- isSystemDisk :: Maybe Bool
- attachedTo :: Maybe Text
- gbInUse :: Maybe Int
- tags :: Maybe [Tag]
- newDisk :: Disk
- disk_state :: Lens' Disk (Maybe DiskState)
- disk_resourceType :: Lens' Disk (Maybe ResourceType)
- disk_arn :: Lens' Disk (Maybe Text)
- disk_path :: Lens' Disk (Maybe Text)
- disk_createdAt :: Lens' Disk (Maybe UTCTime)
- disk_location :: Lens' Disk (Maybe ResourceLocation)
- disk_iops :: Lens' Disk (Maybe Int)
- disk_isAttached :: Lens' Disk (Maybe Bool)
- disk_addOns :: Lens' Disk (Maybe [AddOn])
- disk_attachmentState :: Lens' Disk (Maybe Text)
- disk_name :: Lens' Disk (Maybe Text)
- disk_sizeInGb :: Lens' Disk (Maybe Int)
- disk_supportCode :: Lens' Disk (Maybe Text)
- disk_isSystemDisk :: Lens' Disk (Maybe Bool)
- disk_attachedTo :: Lens' Disk (Maybe Text)
- disk_gbInUse :: Lens' Disk (Maybe Int)
- disk_tags :: Lens' Disk (Maybe [Tag])
Documentation
Describes a block storage disk.
See: newDisk
smart constructor.
Disk' | |
|
Instances
Create a value of Disk
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:state:Disk'
, disk_state
- Describes the status of the disk.
$sel:resourceType:Disk'
, disk_resourceType
- The Lightsail resource type (e.g., Disk
).
$sel:arn:Disk'
, disk_arn
- The Amazon Resource Name (ARN) of the disk.
$sel:path:Disk'
, disk_path
- The disk path.
$sel:createdAt:Disk'
, disk_createdAt
- The date when the disk was created.
$sel:location:Disk'
, disk_location
- The AWS Region and Availability Zone where the disk is located.
$sel:iops:Disk'
, disk_iops
- The input/output operations per second (IOPS) of the disk.
$sel:isAttached:Disk'
, disk_isAttached
- A Boolean value indicating whether the disk is attached.
$sel:addOns:Disk'
, disk_addOns
- An array of objects representing the add-ons enabled on the disk.
$sel:attachmentState:Disk'
, disk_attachmentState
- (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.
$sel:name:Disk'
, disk_name
- The unique name of the disk.
$sel:sizeInGb:Disk'
, disk_sizeInGb
- The size of the disk in GB.
$sel:supportCode:Disk'
, disk_supportCode
- The support code. Include this code in your email to support when you
have questions about an instance or another resource in Lightsail. This
code enables our support team to look up your Lightsail information more
easily.
$sel:isSystemDisk:Disk'
, disk_isSystemDisk
- A Boolean value indicating whether this disk is a system disk (has an
operating system loaded on it).
$sel:attachedTo:Disk'
, disk_attachedTo
- The resources to which the disk is attached.
$sel:gbInUse:Disk'
, disk_gbInUse
- (Deprecated) The number of GB in use by the disk.
In releases prior to November 14, 2017, this parameter was not included in the API response. It is now deprecated.
$sel:tags:Disk'
, disk_tags
- The tag keys and optional values for the resource. For more information
about tags in Lightsail, see the
Amazon Lightsail Developer Guide.
disk_resourceType :: Lens' Disk (Maybe ResourceType) Source #
The Lightsail resource type (e.g., Disk
).
disk_location :: Lens' Disk (Maybe ResourceLocation) Source #
The AWS Region and Availability Zone where the disk is located.
disk_iops :: Lens' Disk (Maybe Int) Source #
The input/output operations per second (IOPS) of the disk.
disk_isAttached :: Lens' Disk (Maybe Bool) Source #
A Boolean value indicating whether the disk is attached.
disk_addOns :: Lens' Disk (Maybe [AddOn]) Source #
An array of objects representing the add-ons enabled on the disk.
disk_attachmentState :: Lens' Disk (Maybe Text) Source #
(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.
disk_supportCode :: Lens' Disk (Maybe Text) Source #
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
disk_isSystemDisk :: Lens' Disk (Maybe Bool) Source #
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).