{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.StorageGateway.Types.StorediSCSIVolume
-- 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)
module Amazonka.StorageGateway.Types.StorediSCSIVolume where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.StorageGateway.Types.VolumeiSCSIAttributes

-- | Describes an iSCSI stored volume.
--
-- /See:/ 'newStorediSCSIVolume' smart constructor.
data StorediSCSIVolume = StorediSCSIVolume'
  { -- | An VolumeiSCSIAttributes object that represents a collection of iSCSI
    -- attributes for one stored volume.
    StorediSCSIVolume -> Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes :: Prelude.Maybe VolumeiSCSIAttributes,
    -- | One of the VolumeStatus values that indicates the state of the storage
    -- volume.
    StorediSCSIVolume -> Maybe Text
volumeStatus :: Prelude.Maybe Prelude.Text,
    -- | If the stored volume was created from a snapshot, this field contains
    -- the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not
    -- included.
    StorediSCSIVolume -> Maybe Text
sourceSnapshotId :: Prelude.Maybe Prelude.Text,
    -- | Indicates if when the stored volume was created, existing data on the
    -- underlying local disk was preserved.
    --
    -- Valid Values: @true@ | @false@
    StorediSCSIVolume -> Maybe Bool
preservedExistingData :: Prelude.Maybe Prelude.Bool,
    StorediSCSIVolume -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates whether a storage volume is attached to, detached
    -- from, or is in the process of detaching from a gateway. For more
    -- information, see
    -- <https://docs.aws.amazon.com/storagegateway/latest/userguide/managing-volumes.html#attach-detach-volume Moving your volumes to a different gateway>.
    StorediSCSIVolume -> Maybe Text
volumeAttachmentStatus :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the storage volume.
    StorediSCSIVolume -> Maybe Text
volumeARN :: Prelude.Maybe Prelude.Text,
    -- | Represents the percentage complete if the volume is restoring or
    -- bootstrapping that represents the percent of data transferred. This
    -- field does not appear in the response if the stored volume is not
    -- restoring or bootstrapping.
    StorediSCSIVolume -> Maybe Double
volumeProgress :: Prelude.Maybe Prelude.Double,
    -- | The size of the volume in bytes.
    StorediSCSIVolume -> Maybe Integer
volumeSizeInBytes :: Prelude.Maybe Prelude.Integer,
    -- | The size of the data stored on the volume in bytes. This value is
    -- calculated based on the number of blocks that are touched, instead of
    -- the actual amount of data written. This value can be useful for
    -- sequential write patterns but less accurate for random write patterns.
    -- @VolumeUsedInBytes@ is different from the compressed size of the volume,
    -- which is the value that is used to calculate your bill.
    --
    -- This value is not available for volumes created prior to May 13, 2015,
    -- until you store data on the volume.
    StorediSCSIVolume -> Maybe Integer
volumeUsedInBytes :: Prelude.Maybe Prelude.Integer,
    -- | The date the volume was created. Volumes created prior to March 28, 2017
    -- don’t have this timestamp.
    StorediSCSIVolume -> Maybe POSIX
createdDate :: Prelude.Maybe Core.POSIX,
    -- | The unique identifier of the volume, e.g., vol-AE4B946D.
    StorediSCSIVolume -> Maybe Text
volumeId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the local disk that was specified in the
    -- CreateStorediSCSIVolume operation.
    StorediSCSIVolume -> Maybe Text
volumeDiskId :: Prelude.Maybe Prelude.Text,
    -- | One of the VolumeType enumeration values describing the type of the
    -- volume.
    StorediSCSIVolume -> Maybe Text
volumeType :: Prelude.Maybe Prelude.Text,
    -- | The name of the iSCSI target used by an initiator to connect to a volume
    -- and used as a suffix for the target ARN. For example, specifying
    -- @TargetName@ as /myvolume/ results in the target ARN of
    -- @arn:aws:storagegateway:us-east-2:111122223333:gateway\/sgw-12A3456B\/target\/iqn.1997-05.com.amazon:myvolume@.
    -- The target name must be unique across all volumes on a gateway.
    --
    -- If you don\'t specify a value, Storage Gateway uses the value that was
    -- previously used for this volume as the new target name.
    StorediSCSIVolume -> Maybe Text
targetName :: Prelude.Maybe Prelude.Text
  }
  deriving (StorediSCSIVolume -> StorediSCSIVolume -> Bool
(StorediSCSIVolume -> StorediSCSIVolume -> Bool)
-> (StorediSCSIVolume -> StorediSCSIVolume -> Bool)
-> Eq StorediSCSIVolume
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
$c/= :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
== :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
$c== :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
Prelude.Eq, ReadPrec [StorediSCSIVolume]
ReadPrec StorediSCSIVolume
Int -> ReadS StorediSCSIVolume
ReadS [StorediSCSIVolume]
(Int -> ReadS StorediSCSIVolume)
-> ReadS [StorediSCSIVolume]
-> ReadPrec StorediSCSIVolume
-> ReadPrec [StorediSCSIVolume]
-> Read StorediSCSIVolume
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StorediSCSIVolume]
$creadListPrec :: ReadPrec [StorediSCSIVolume]
readPrec :: ReadPrec StorediSCSIVolume
$creadPrec :: ReadPrec StorediSCSIVolume
readList :: ReadS [StorediSCSIVolume]
$creadList :: ReadS [StorediSCSIVolume]
readsPrec :: Int -> ReadS StorediSCSIVolume
$creadsPrec :: Int -> ReadS StorediSCSIVolume
Prelude.Read, Int -> StorediSCSIVolume -> ShowS
[StorediSCSIVolume] -> ShowS
StorediSCSIVolume -> String
(Int -> StorediSCSIVolume -> ShowS)
-> (StorediSCSIVolume -> String)
-> ([StorediSCSIVolume] -> ShowS)
-> Show StorediSCSIVolume
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StorediSCSIVolume] -> ShowS
$cshowList :: [StorediSCSIVolume] -> ShowS
show :: StorediSCSIVolume -> String
$cshow :: StorediSCSIVolume -> String
showsPrec :: Int -> StorediSCSIVolume -> ShowS
$cshowsPrec :: Int -> StorediSCSIVolume -> ShowS
Prelude.Show, (forall x. StorediSCSIVolume -> Rep StorediSCSIVolume x)
-> (forall x. Rep StorediSCSIVolume x -> StorediSCSIVolume)
-> Generic StorediSCSIVolume
forall x. Rep StorediSCSIVolume x -> StorediSCSIVolume
forall x. StorediSCSIVolume -> Rep StorediSCSIVolume x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StorediSCSIVolume x -> StorediSCSIVolume
$cfrom :: forall x. StorediSCSIVolume -> Rep StorediSCSIVolume x
Prelude.Generic)

-- |
-- Create a value of 'StorediSCSIVolume' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'volumeiSCSIAttributes', 'storediSCSIVolume_volumeiSCSIAttributes' - An VolumeiSCSIAttributes object that represents a collection of iSCSI
-- attributes for one stored volume.
--
-- 'volumeStatus', 'storediSCSIVolume_volumeStatus' - One of the VolumeStatus values that indicates the state of the storage
-- volume.
--
-- 'sourceSnapshotId', 'storediSCSIVolume_sourceSnapshotId' - If the stored volume was created from a snapshot, this field contains
-- the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not
-- included.
--
-- 'preservedExistingData', 'storediSCSIVolume_preservedExistingData' - Indicates if when the stored volume was created, existing data on the
-- underlying local disk was preserved.
--
-- Valid Values: @true@ | @false@
--
-- 'kmsKey', 'storediSCSIVolume_kmsKey' - Undocumented member.
--
-- 'volumeAttachmentStatus', 'storediSCSIVolume_volumeAttachmentStatus' - A value that indicates whether a storage volume is attached to, detached
-- from, or is in the process of detaching from a gateway. For more
-- information, see
-- <https://docs.aws.amazon.com/storagegateway/latest/userguide/managing-volumes.html#attach-detach-volume Moving your volumes to a different gateway>.
--
-- 'volumeARN', 'storediSCSIVolume_volumeARN' - The Amazon Resource Name (ARN) of the storage volume.
--
-- 'volumeProgress', 'storediSCSIVolume_volumeProgress' - Represents the percentage complete if the volume is restoring or
-- bootstrapping that represents the percent of data transferred. This
-- field does not appear in the response if the stored volume is not
-- restoring or bootstrapping.
--
-- 'volumeSizeInBytes', 'storediSCSIVolume_volumeSizeInBytes' - The size of the volume in bytes.
--
-- 'volumeUsedInBytes', 'storediSCSIVolume_volumeUsedInBytes' - The size of the data stored on the volume in bytes. This value is
-- calculated based on the number of blocks that are touched, instead of
-- the actual amount of data written. This value can be useful for
-- sequential write patterns but less accurate for random write patterns.
-- @VolumeUsedInBytes@ is different from the compressed size of the volume,
-- which is the value that is used to calculate your bill.
--
-- This value is not available for volumes created prior to May 13, 2015,
-- until you store data on the volume.
--
-- 'createdDate', 'storediSCSIVolume_createdDate' - The date the volume was created. Volumes created prior to March 28, 2017
-- don’t have this timestamp.
--
-- 'volumeId', 'storediSCSIVolume_volumeId' - The unique identifier of the volume, e.g., vol-AE4B946D.
--
-- 'volumeDiskId', 'storediSCSIVolume_volumeDiskId' - The ID of the local disk that was specified in the
-- CreateStorediSCSIVolume operation.
--
-- 'volumeType', 'storediSCSIVolume_volumeType' - One of the VolumeType enumeration values describing the type of the
-- volume.
--
-- 'targetName', 'storediSCSIVolume_targetName' - The name of the iSCSI target used by an initiator to connect to a volume
-- and used as a suffix for the target ARN. For example, specifying
-- @TargetName@ as /myvolume/ results in the target ARN of
-- @arn:aws:storagegateway:us-east-2:111122223333:gateway\/sgw-12A3456B\/target\/iqn.1997-05.com.amazon:myvolume@.
-- The target name must be unique across all volumes on a gateway.
--
-- If you don\'t specify a value, Storage Gateway uses the value that was
-- previously used for this volume as the new target name.
newStorediSCSIVolume ::
  StorediSCSIVolume
newStorediSCSIVolume :: StorediSCSIVolume
newStorediSCSIVolume =
  StorediSCSIVolume' :: Maybe VolumeiSCSIAttributes
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume
StorediSCSIVolume'
    { $sel:volumeiSCSIAttributes:StorediSCSIVolume' :: Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes =
        Maybe VolumeiSCSIAttributes
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeStatus:StorediSCSIVolume' :: Maybe Text
volumeStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceSnapshotId:StorediSCSIVolume' :: Maybe Text
sourceSnapshotId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:preservedExistingData:StorediSCSIVolume' :: Maybe Bool
preservedExistingData = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKey:StorediSCSIVolume' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeAttachmentStatus:StorediSCSIVolume' :: Maybe Text
volumeAttachmentStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeARN:StorediSCSIVolume' :: Maybe Text
volumeARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeProgress:StorediSCSIVolume' :: Maybe Double
volumeProgress = Maybe Double
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeSizeInBytes:StorediSCSIVolume' :: Maybe Integer
volumeSizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeUsedInBytes:StorediSCSIVolume' :: Maybe Integer
volumeUsedInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:createdDate:StorediSCSIVolume' :: Maybe POSIX
createdDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeId:StorediSCSIVolume' :: Maybe Text
volumeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeDiskId:StorediSCSIVolume' :: Maybe Text
volumeDiskId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeType:StorediSCSIVolume' :: Maybe Text
volumeType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:targetName:StorediSCSIVolume' :: Maybe Text
targetName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | An VolumeiSCSIAttributes object that represents a collection of iSCSI
-- attributes for one stored volume.
storediSCSIVolume_volumeiSCSIAttributes :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe VolumeiSCSIAttributes)
storediSCSIVolume_volumeiSCSIAttributes :: (Maybe VolumeiSCSIAttributes -> f (Maybe VolumeiSCSIAttributes))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeiSCSIAttributes = (StorediSCSIVolume -> Maybe VolumeiSCSIAttributes)
-> (StorediSCSIVolume
    -> Maybe VolumeiSCSIAttributes -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume
     StorediSCSIVolume
     (Maybe VolumeiSCSIAttributes)
     (Maybe VolumeiSCSIAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes :: Maybe VolumeiSCSIAttributes
$sel:volumeiSCSIAttributes:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes} -> Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe VolumeiSCSIAttributes
a -> StorediSCSIVolume
s {$sel:volumeiSCSIAttributes:StorediSCSIVolume' :: Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes = Maybe VolumeiSCSIAttributes
a} :: StorediSCSIVolume)

-- | One of the VolumeStatus values that indicates the state of the storage
-- volume.
storediSCSIVolume_volumeStatus :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeStatus :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeStatus = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeStatus :: Maybe Text
$sel:volumeStatus:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeStatus} -> Maybe Text
volumeStatus) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeStatus:StorediSCSIVolume' :: Maybe Text
volumeStatus = Maybe Text
a} :: StorediSCSIVolume)

-- | If the stored volume was created from a snapshot, this field contains
-- the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not
-- included.
storediSCSIVolume_sourceSnapshotId :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_sourceSnapshotId :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_sourceSnapshotId = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
sourceSnapshotId :: Maybe Text
$sel:sourceSnapshotId:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
sourceSnapshotId} -> Maybe Text
sourceSnapshotId) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:sourceSnapshotId:StorediSCSIVolume' :: Maybe Text
sourceSnapshotId = Maybe Text
a} :: StorediSCSIVolume)

-- | Indicates if when the stored volume was created, existing data on the
-- underlying local disk was preserved.
--
-- Valid Values: @true@ | @false@
storediSCSIVolume_preservedExistingData :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Bool)
storediSCSIVolume_preservedExistingData :: (Maybe Bool -> f (Maybe Bool))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_preservedExistingData = (StorediSCSIVolume -> Maybe Bool)
-> (StorediSCSIVolume -> Maybe Bool -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Bool
preservedExistingData :: Maybe Bool
$sel:preservedExistingData:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Bool
preservedExistingData} -> Maybe Bool
preservedExistingData) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Bool
a -> StorediSCSIVolume
s {$sel:preservedExistingData:StorediSCSIVolume' :: Maybe Bool
preservedExistingData = Maybe Bool
a} :: StorediSCSIVolume)

-- | Undocumented member.
storediSCSIVolume_kmsKey :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_kmsKey :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_kmsKey = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:kmsKey:StorediSCSIVolume' :: Maybe Text
kmsKey = Maybe Text
a} :: StorediSCSIVolume)

-- | A value that indicates whether a storage volume is attached to, detached
-- from, or is in the process of detaching from a gateway. For more
-- information, see
-- <https://docs.aws.amazon.com/storagegateway/latest/userguide/managing-volumes.html#attach-detach-volume Moving your volumes to a different gateway>.
storediSCSIVolume_volumeAttachmentStatus :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeAttachmentStatus :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeAttachmentStatus = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeAttachmentStatus :: Maybe Text
$sel:volumeAttachmentStatus:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeAttachmentStatus} -> Maybe Text
volumeAttachmentStatus) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeAttachmentStatus:StorediSCSIVolume' :: Maybe Text
volumeAttachmentStatus = Maybe Text
a} :: StorediSCSIVolume)

-- | The Amazon Resource Name (ARN) of the storage volume.
storediSCSIVolume_volumeARN :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeARN :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeARN = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeARN :: Maybe Text
$sel:volumeARN:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeARN} -> Maybe Text
volumeARN) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeARN:StorediSCSIVolume' :: Maybe Text
volumeARN = Maybe Text
a} :: StorediSCSIVolume)

-- | Represents the percentage complete if the volume is restoring or
-- bootstrapping that represents the percent of data transferred. This
-- field does not appear in the response if the stored volume is not
-- restoring or bootstrapping.
storediSCSIVolume_volumeProgress :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Double)
storediSCSIVolume_volumeProgress :: (Maybe Double -> f (Maybe Double))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeProgress = (StorediSCSIVolume -> Maybe Double)
-> (StorediSCSIVolume -> Maybe Double -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Double
volumeProgress :: Maybe Double
$sel:volumeProgress:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Double
volumeProgress} -> Maybe Double
volumeProgress) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Double
a -> StorediSCSIVolume
s {$sel:volumeProgress:StorediSCSIVolume' :: Maybe Double
volumeProgress = Maybe Double
a} :: StorediSCSIVolume)

-- | The size of the volume in bytes.
storediSCSIVolume_volumeSizeInBytes :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Integer)
storediSCSIVolume_volumeSizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeSizeInBytes = (StorediSCSIVolume -> Maybe Integer)
-> (StorediSCSIVolume -> Maybe Integer -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Integer
volumeSizeInBytes :: Maybe Integer
$sel:volumeSizeInBytes:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Integer
volumeSizeInBytes} -> Maybe Integer
volumeSizeInBytes) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Integer
a -> StorediSCSIVolume
s {$sel:volumeSizeInBytes:StorediSCSIVolume' :: Maybe Integer
volumeSizeInBytes = Maybe Integer
a} :: StorediSCSIVolume)

-- | The size of the data stored on the volume in bytes. This value is
-- calculated based on the number of blocks that are touched, instead of
-- the actual amount of data written. This value can be useful for
-- sequential write patterns but less accurate for random write patterns.
-- @VolumeUsedInBytes@ is different from the compressed size of the volume,
-- which is the value that is used to calculate your bill.
--
-- This value is not available for volumes created prior to May 13, 2015,
-- until you store data on the volume.
storediSCSIVolume_volumeUsedInBytes :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Integer)
storediSCSIVolume_volumeUsedInBytes :: (Maybe Integer -> f (Maybe Integer))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeUsedInBytes = (StorediSCSIVolume -> Maybe Integer)
-> (StorediSCSIVolume -> Maybe Integer -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Integer
volumeUsedInBytes :: Maybe Integer
$sel:volumeUsedInBytes:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Integer
volumeUsedInBytes} -> Maybe Integer
volumeUsedInBytes) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Integer
a -> StorediSCSIVolume
s {$sel:volumeUsedInBytes:StorediSCSIVolume' :: Maybe Integer
volumeUsedInBytes = Maybe Integer
a} :: StorediSCSIVolume)

-- | The date the volume was created. Volumes created prior to March 28, 2017
-- don’t have this timestamp.
storediSCSIVolume_createdDate :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.UTCTime)
storediSCSIVolume_createdDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_createdDate = (StorediSCSIVolume -> Maybe POSIX)
-> (StorediSCSIVolume -> Maybe POSIX -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe POSIX
a -> StorediSCSIVolume
s {$sel:createdDate:StorediSCSIVolume' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: StorediSCSIVolume) ((Maybe POSIX -> f (Maybe POSIX))
 -> StorediSCSIVolume -> f StorediSCSIVolume)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StorediSCSIVolume
-> f StorediSCSIVolume
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The unique identifier of the volume, e.g., vol-AE4B946D.
storediSCSIVolume_volumeId :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeId :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeId = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeId :: Maybe Text
$sel:volumeId:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeId} -> Maybe Text
volumeId) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeId:StorediSCSIVolume' :: Maybe Text
volumeId = Maybe Text
a} :: StorediSCSIVolume)

-- | The ID of the local disk that was specified in the
-- CreateStorediSCSIVolume operation.
storediSCSIVolume_volumeDiskId :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeDiskId :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeDiskId = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeDiskId :: Maybe Text
$sel:volumeDiskId:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeDiskId} -> Maybe Text
volumeDiskId) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeDiskId:StorediSCSIVolume' :: Maybe Text
volumeDiskId = Maybe Text
a} :: StorediSCSIVolume)

-- | One of the VolumeType enumeration values describing the type of the
-- volume.
storediSCSIVolume_volumeType :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeType :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeType = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeType :: Maybe Text
$sel:volumeType:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeType} -> Maybe Text
volumeType) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeType:StorediSCSIVolume' :: Maybe Text
volumeType = Maybe Text
a} :: StorediSCSIVolume)

-- | The name of the iSCSI target used by an initiator to connect to a volume
-- and used as a suffix for the target ARN. For example, specifying
-- @TargetName@ as /myvolume/ results in the target ARN of
-- @arn:aws:storagegateway:us-east-2:111122223333:gateway\/sgw-12A3456B\/target\/iqn.1997-05.com.amazon:myvolume@.
-- The target name must be unique across all volumes on a gateway.
--
-- If you don\'t specify a value, Storage Gateway uses the value that was
-- previously used for this volume as the new target name.
storediSCSIVolume_targetName :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_targetName :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_targetName = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
     StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
targetName :: Maybe Text
$sel:targetName:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
targetName} -> Maybe Text
targetName) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:targetName:StorediSCSIVolume' :: Maybe Text
targetName = Maybe Text
a} :: StorediSCSIVolume)

instance Core.FromJSON StorediSCSIVolume where
  parseJSON :: Value -> Parser StorediSCSIVolume
parseJSON =
    String
-> (Object -> Parser StorediSCSIVolume)
-> Value
-> Parser StorediSCSIVolume
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"StorediSCSIVolume"
      ( \Object
x ->
          Maybe VolumeiSCSIAttributes
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume
StorediSCSIVolume'
            (Maybe VolumeiSCSIAttributes
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Double
 -> Maybe Integer
 -> Maybe Integer
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> StorediSCSIVolume)
-> Parser (Maybe VolumeiSCSIAttributes)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe VolumeiSCSIAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeiSCSIAttributes")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeStatus")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceSnapshotId")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PreservedExistingData")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KMSKey")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeAttachmentStatus")
            Parser
  (Maybe Text
   -> Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
     (Maybe Double
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeARN")
            Parser
  (Maybe Double
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Double)
-> Parser
     (Maybe Integer
      -> Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeProgress")
            Parser
  (Maybe Integer
   -> Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Integer
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeSizeInBytes")
            Parser
  (Maybe Integer
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe Integer)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeUsedInBytes")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StorediSCSIVolume)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedDate")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeId")
            Parser
  (Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeDiskId")
            Parser (Maybe Text -> Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text) -> Parser (Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeType")
            Parser (Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text) -> Parser StorediSCSIVolume
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TargetName")
      )

instance Prelude.Hashable StorediSCSIVolume

instance Prelude.NFData StorediSCSIVolume