amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lightsail.Types.DiskInfo

Description

 
Synopsis

Documentation

data DiskInfo Source #

Describes a disk.

See: newDiskInfo smart constructor.

Constructors

DiskInfo' 

Fields

Instances

Instances details
FromJSON DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

Generic DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

Associated Types

type Rep DiskInfo :: Type -> Type #

Methods

from :: DiskInfo -> Rep DiskInfo x #

to :: Rep DiskInfo x -> DiskInfo #

Read DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

Show DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

NFData DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

Methods

rnf :: DiskInfo -> () #

Eq DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

Hashable DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

Methods

hashWithSalt :: Int -> DiskInfo -> Int #

hash :: DiskInfo -> Int #

type Rep DiskInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.DiskInfo

type Rep DiskInfo = D1 ('MetaData "DiskInfo" "Amazonka.Lightsail.Types.DiskInfo" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DiskInfo'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "isSystemDisk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sizeInGb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newDiskInfo :: DiskInfo Source #

Create a value of DiskInfo 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:isSystemDisk:DiskInfo', diskInfo_isSystemDisk - A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

$sel:name:DiskInfo', diskInfo_name - The disk name.

$sel:path:DiskInfo', diskInfo_path - The disk path.

$sel:sizeInGb:DiskInfo', diskInfo_sizeInGb - The size of the disk in GB (e.g., 32).

diskInfo_isSystemDisk :: Lens' DiskInfo (Maybe Bool) Source #

A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

diskInfo_sizeInGb :: Lens' DiskInfo (Maybe Int) Source #

The size of the disk in GB (e.g., 32).