{-# 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.FSx.Types.OpenZFSVolumeConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FSx.Types.OpenZFSVolumeConfiguration where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FSx.Types.OpenZFSDataCompressionType
import Amazonka.FSx.Types.OpenZFSNfsExport
import Amazonka.FSx.Types.OpenZFSOriginSnapshotConfiguration
import Amazonka.FSx.Types.OpenZFSUserOrGroupQuota
import qualified Amazonka.Prelude as Prelude

-- | The configuration of an Amazon FSx for OpenZFS volume.
--
-- /See:/ 'newOpenZFSVolumeConfiguration' smart constructor.
data OpenZFSVolumeConfiguration = OpenZFSVolumeConfiguration'
  { -- | A Boolean value indicating whether tags for the volume should be copied
    -- to snapshots. This value defaults to @false@. If it\'s set to @true@,
    -- all tags for the volume are copied to snapshots where the user doesn\'t
    -- specify tags. If this value is @true@ and you specify one or more tags,
    -- only the specified tags are copied to snapshots. If you specify one or
    -- more tags when creating the snapshot, no tags are copied from the
    -- volume, regardless of this value.
    OpenZFSVolumeConfiguration -> Maybe Bool
copyTagsToSnapshots :: Prelude.Maybe Prelude.Bool,
    -- | Specifies the method used to compress the data on the volume. The
    -- compression type is @NONE@ by default.
    --
    -- -   @NONE@ - Doesn\'t compress the data on the volume. @NONE@ is the
    --     default.
    --
    -- -   @ZSTD@ - Compresses the data in the volume using the Zstandard
    --     (ZSTD) compression algorithm. Compared to LZ4, Z-Standard provides a
    --     better compression ratio to minimize on-disk storage utilization.
    --
    -- -   @LZ4@ - Compresses the data in the volume using the LZ4 compression
    --     algorithm. Compared to Z-Standard, LZ4 is less compute-intensive and
    --     delivers higher write throughput speeds.
    OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
dataCompressionType :: Prelude.Maybe OpenZFSDataCompressionType,
    -- | A Boolean value indicating whether dependent clone volumes created from
    -- intermediate snapshots should be deleted when a volume is restored from
    -- snapshot.
    OpenZFSVolumeConfiguration -> Maybe Bool
deleteClonedVolumes :: Prelude.Maybe Prelude.Bool,
    -- | A Boolean value indicating whether snapshots between the current state
    -- and the specified snapshot should be deleted when a volume is restored
    -- from snapshot.
    OpenZFSVolumeConfiguration -> Maybe Bool
deleteIntermediateSnaphots :: Prelude.Maybe Prelude.Bool,
    -- | The configuration object for mounting a Network File System (NFS) file
    -- system.
    OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
nfsExports :: Prelude.Maybe [OpenZFSNfsExport],
    -- | The configuration object that specifies the snapshot to use as the
    -- origin of the data for the volume.
    OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot :: Prelude.Maybe OpenZFSOriginSnapshotConfiguration,
    -- | The ID of the parent volume.
    OpenZFSVolumeConfiguration -> Maybe Text
parentVolumeId :: Prelude.Maybe Prelude.Text,
    -- | A Boolean value indicating whether the volume is read-only.
    OpenZFSVolumeConfiguration -> Maybe Bool
readOnly :: Prelude.Maybe Prelude.Bool,
    -- | The record size of an OpenZFS volume, in kibibytes (KiB). Valid values
    -- are 4, 8, 16, 32, 64, 128, 256, 512, or 1024 KiB. The default is 128
    -- KiB. Most workloads should use the default record size. For guidance on
    -- when to set a custom record size, see the /Amazon FSx for OpenZFS User
    -- Guide/.
    OpenZFSVolumeConfiguration -> Maybe Natural
recordSizeKiB :: Prelude.Maybe Prelude.Natural,
    -- | Specifies the ID of the snapshot to which the volume was restored.
    OpenZFSVolumeConfiguration -> Maybe Text
restoreToSnapshot :: Prelude.Maybe Prelude.Text,
    -- | The maximum amount of storage in gibibtyes (GiB) that the volume can use
    -- from its parent. You can specify a quota larger than the storage on the
    -- parent volume.
    OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityQuotaGiB :: Prelude.Maybe Prelude.Natural,
    -- | The amount of storage in gibibytes (GiB) to reserve from the parent
    -- volume. You can\'t reserve more storage than the parent volume has
    -- reserved.
    OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityReservationGiB :: Prelude.Maybe Prelude.Natural,
    -- | An object specifying how much storage users or groups can use on the
    -- volume.
    OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas :: Prelude.Maybe [OpenZFSUserOrGroupQuota],
    -- | The path to the volume from the root volume. For example,
    -- @fsx\/parentVolume\/volume1@.
    OpenZFSVolumeConfiguration -> Maybe Text
volumePath :: Prelude.Maybe Prelude.Text
  }
  deriving (OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
$c/= :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
== :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
$c== :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
Prelude.Eq, ReadPrec [OpenZFSVolumeConfiguration]
ReadPrec OpenZFSVolumeConfiguration
Int -> ReadS OpenZFSVolumeConfiguration
ReadS [OpenZFSVolumeConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OpenZFSVolumeConfiguration]
$creadListPrec :: ReadPrec [OpenZFSVolumeConfiguration]
readPrec :: ReadPrec OpenZFSVolumeConfiguration
$creadPrec :: ReadPrec OpenZFSVolumeConfiguration
readList :: ReadS [OpenZFSVolumeConfiguration]
$creadList :: ReadS [OpenZFSVolumeConfiguration]
readsPrec :: Int -> ReadS OpenZFSVolumeConfiguration
$creadsPrec :: Int -> ReadS OpenZFSVolumeConfiguration
Prelude.Read, Int -> OpenZFSVolumeConfiguration -> ShowS
[OpenZFSVolumeConfiguration] -> ShowS
OpenZFSVolumeConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OpenZFSVolumeConfiguration] -> ShowS
$cshowList :: [OpenZFSVolumeConfiguration] -> ShowS
show :: OpenZFSVolumeConfiguration -> String
$cshow :: OpenZFSVolumeConfiguration -> String
showsPrec :: Int -> OpenZFSVolumeConfiguration -> ShowS
$cshowsPrec :: Int -> OpenZFSVolumeConfiguration -> ShowS
Prelude.Show, forall x.
Rep OpenZFSVolumeConfiguration x -> OpenZFSVolumeConfiguration
forall x.
OpenZFSVolumeConfiguration -> Rep OpenZFSVolumeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OpenZFSVolumeConfiguration x -> OpenZFSVolumeConfiguration
$cfrom :: forall x.
OpenZFSVolumeConfiguration -> Rep OpenZFSVolumeConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'OpenZFSVolumeConfiguration' 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:
--
-- 'copyTagsToSnapshots', 'openZFSVolumeConfiguration_copyTagsToSnapshots' - A Boolean value indicating whether tags for the volume should be copied
-- to snapshots. This value defaults to @false@. If it\'s set to @true@,
-- all tags for the volume are copied to snapshots where the user doesn\'t
-- specify tags. If this value is @true@ and you specify one or more tags,
-- only the specified tags are copied to snapshots. If you specify one or
-- more tags when creating the snapshot, no tags are copied from the
-- volume, regardless of this value.
--
-- 'dataCompressionType', 'openZFSVolumeConfiguration_dataCompressionType' - Specifies the method used to compress the data on the volume. The
-- compression type is @NONE@ by default.
--
-- -   @NONE@ - Doesn\'t compress the data on the volume. @NONE@ is the
--     default.
--
-- -   @ZSTD@ - Compresses the data in the volume using the Zstandard
--     (ZSTD) compression algorithm. Compared to LZ4, Z-Standard provides a
--     better compression ratio to minimize on-disk storage utilization.
--
-- -   @LZ4@ - Compresses the data in the volume using the LZ4 compression
--     algorithm. Compared to Z-Standard, LZ4 is less compute-intensive and
--     delivers higher write throughput speeds.
--
-- 'deleteClonedVolumes', 'openZFSVolumeConfiguration_deleteClonedVolumes' - A Boolean value indicating whether dependent clone volumes created from
-- intermediate snapshots should be deleted when a volume is restored from
-- snapshot.
--
-- 'deleteIntermediateSnaphots', 'openZFSVolumeConfiguration_deleteIntermediateSnaphots' - A Boolean value indicating whether snapshots between the current state
-- and the specified snapshot should be deleted when a volume is restored
-- from snapshot.
--
-- 'nfsExports', 'openZFSVolumeConfiguration_nfsExports' - The configuration object for mounting a Network File System (NFS) file
-- system.
--
-- 'originSnapshot', 'openZFSVolumeConfiguration_originSnapshot' - The configuration object that specifies the snapshot to use as the
-- origin of the data for the volume.
--
-- 'parentVolumeId', 'openZFSVolumeConfiguration_parentVolumeId' - The ID of the parent volume.
--
-- 'readOnly', 'openZFSVolumeConfiguration_readOnly' - A Boolean value indicating whether the volume is read-only.
--
-- 'recordSizeKiB', 'openZFSVolumeConfiguration_recordSizeKiB' - The record size of an OpenZFS volume, in kibibytes (KiB). Valid values
-- are 4, 8, 16, 32, 64, 128, 256, 512, or 1024 KiB. The default is 128
-- KiB. Most workloads should use the default record size. For guidance on
-- when to set a custom record size, see the /Amazon FSx for OpenZFS User
-- Guide/.
--
-- 'restoreToSnapshot', 'openZFSVolumeConfiguration_restoreToSnapshot' - Specifies the ID of the snapshot to which the volume was restored.
--
-- 'storageCapacityQuotaGiB', 'openZFSVolumeConfiguration_storageCapacityQuotaGiB' - The maximum amount of storage in gibibtyes (GiB) that the volume can use
-- from its parent. You can specify a quota larger than the storage on the
-- parent volume.
--
-- 'storageCapacityReservationGiB', 'openZFSVolumeConfiguration_storageCapacityReservationGiB' - The amount of storage in gibibytes (GiB) to reserve from the parent
-- volume. You can\'t reserve more storage than the parent volume has
-- reserved.
--
-- 'userAndGroupQuotas', 'openZFSVolumeConfiguration_userAndGroupQuotas' - An object specifying how much storage users or groups can use on the
-- volume.
--
-- 'volumePath', 'openZFSVolumeConfiguration_volumePath' - The path to the volume from the root volume. For example,
-- @fsx\/parentVolume\/volume1@.
newOpenZFSVolumeConfiguration ::
  OpenZFSVolumeConfiguration
newOpenZFSVolumeConfiguration :: OpenZFSVolumeConfiguration
newOpenZFSVolumeConfiguration =
  OpenZFSVolumeConfiguration'
    { $sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: Maybe Bool
copyTagsToSnapshots =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dataCompressionType:OpenZFSVolumeConfiguration' :: Maybe OpenZFSDataCompressionType
dataCompressionType = forall a. Maybe a
Prelude.Nothing,
      $sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteClonedVolumes = forall a. Maybe a
Prelude.Nothing,
      $sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteIntermediateSnaphots = forall a. Maybe a
Prelude.Nothing,
      $sel:nfsExports:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSNfsExport]
nfsExports = forall a. Maybe a
Prelude.Nothing,
      $sel:originSnapshot:OpenZFSVolumeConfiguration' :: Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot = forall a. Maybe a
Prelude.Nothing,
      $sel:parentVolumeId:OpenZFSVolumeConfiguration' :: Maybe Text
parentVolumeId = forall a. Maybe a
Prelude.Nothing,
      $sel:readOnly:OpenZFSVolumeConfiguration' :: Maybe Bool
readOnly = forall a. Maybe a
Prelude.Nothing,
      $sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: Maybe Natural
recordSizeKiB = forall a. Maybe a
Prelude.Nothing,
      $sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: Maybe Text
restoreToSnapshot = forall a. Maybe a
Prelude.Nothing,
      $sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityQuotaGiB = forall a. Maybe a
Prelude.Nothing,
      $sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityReservationGiB = forall a. Maybe a
Prelude.Nothing,
      $sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas = forall a. Maybe a
Prelude.Nothing,
      $sel:volumePath:OpenZFSVolumeConfiguration' :: Maybe Text
volumePath = forall a. Maybe a
Prelude.Nothing
    }

-- | A Boolean value indicating whether tags for the volume should be copied
-- to snapshots. This value defaults to @false@. If it\'s set to @true@,
-- all tags for the volume are copied to snapshots where the user doesn\'t
-- specify tags. If this value is @true@ and you specify one or more tags,
-- only the specified tags are copied to snapshots. If you specify one or
-- more tags when creating the snapshot, no tags are copied from the
-- volume, regardless of this value.
openZFSVolumeConfiguration_copyTagsToSnapshots :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_copyTagsToSnapshots :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_copyTagsToSnapshots = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
copyTagsToSnapshots :: Maybe Bool
$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
copyTagsToSnapshots} -> Maybe Bool
copyTagsToSnapshots) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: Maybe Bool
copyTagsToSnapshots = Maybe Bool
a} :: OpenZFSVolumeConfiguration)

-- | Specifies the method used to compress the data on the volume. The
-- compression type is @NONE@ by default.
--
-- -   @NONE@ - Doesn\'t compress the data on the volume. @NONE@ is the
--     default.
--
-- -   @ZSTD@ - Compresses the data in the volume using the Zstandard
--     (ZSTD) compression algorithm. Compared to LZ4, Z-Standard provides a
--     better compression ratio to minimize on-disk storage utilization.
--
-- -   @LZ4@ - Compresses the data in the volume using the LZ4 compression
--     algorithm. Compared to Z-Standard, LZ4 is less compute-intensive and
--     delivers higher write throughput speeds.
openZFSVolumeConfiguration_dataCompressionType :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe OpenZFSDataCompressionType)
openZFSVolumeConfiguration_dataCompressionType :: Lens' OpenZFSVolumeConfiguration (Maybe OpenZFSDataCompressionType)
openZFSVolumeConfiguration_dataCompressionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe OpenZFSDataCompressionType
dataCompressionType :: Maybe OpenZFSDataCompressionType
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
dataCompressionType} -> Maybe OpenZFSDataCompressionType
dataCompressionType) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe OpenZFSDataCompressionType
a -> OpenZFSVolumeConfiguration
s {$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: Maybe OpenZFSDataCompressionType
dataCompressionType = Maybe OpenZFSDataCompressionType
a} :: OpenZFSVolumeConfiguration)

-- | A Boolean value indicating whether dependent clone volumes created from
-- intermediate snapshots should be deleted when a volume is restored from
-- snapshot.
openZFSVolumeConfiguration_deleteClonedVolumes :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_deleteClonedVolumes :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_deleteClonedVolumes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
deleteClonedVolumes :: Maybe Bool
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
deleteClonedVolumes} -> Maybe Bool
deleteClonedVolumes) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteClonedVolumes = Maybe Bool
a} :: OpenZFSVolumeConfiguration)

-- | A Boolean value indicating whether snapshots between the current state
-- and the specified snapshot should be deleted when a volume is restored
-- from snapshot.
openZFSVolumeConfiguration_deleteIntermediateSnaphots :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_deleteIntermediateSnaphots :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_deleteIntermediateSnaphots = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
deleteIntermediateSnaphots :: Maybe Bool
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
deleteIntermediateSnaphots} -> Maybe Bool
deleteIntermediateSnaphots) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteIntermediateSnaphots = Maybe Bool
a} :: OpenZFSVolumeConfiguration)

-- | The configuration object for mounting a Network File System (NFS) file
-- system.
openZFSVolumeConfiguration_nfsExports :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe [OpenZFSNfsExport])
openZFSVolumeConfiguration_nfsExports :: Lens' OpenZFSVolumeConfiguration (Maybe [OpenZFSNfsExport])
openZFSVolumeConfiguration_nfsExports = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe [OpenZFSNfsExport]
nfsExports :: Maybe [OpenZFSNfsExport]
$sel:nfsExports:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
nfsExports} -> Maybe [OpenZFSNfsExport]
nfsExports) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe [OpenZFSNfsExport]
a -> OpenZFSVolumeConfiguration
s {$sel:nfsExports:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSNfsExport]
nfsExports = Maybe [OpenZFSNfsExport]
a} :: OpenZFSVolumeConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The configuration object that specifies the snapshot to use as the
-- origin of the data for the volume.
openZFSVolumeConfiguration_originSnapshot :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe OpenZFSOriginSnapshotConfiguration)
openZFSVolumeConfiguration_originSnapshot :: Lens'
  OpenZFSVolumeConfiguration
  (Maybe OpenZFSOriginSnapshotConfiguration)
openZFSVolumeConfiguration_originSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot :: Maybe OpenZFSOriginSnapshotConfiguration
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot} -> Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe OpenZFSOriginSnapshotConfiguration
a -> OpenZFSVolumeConfiguration
s {$sel:originSnapshot:OpenZFSVolumeConfiguration' :: Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot = Maybe OpenZFSOriginSnapshotConfiguration
a} :: OpenZFSVolumeConfiguration)

-- | The ID of the parent volume.
openZFSVolumeConfiguration_parentVolumeId :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Text)
openZFSVolumeConfiguration_parentVolumeId :: Lens' OpenZFSVolumeConfiguration (Maybe Text)
openZFSVolumeConfiguration_parentVolumeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Text
parentVolumeId :: Maybe Text
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
parentVolumeId} -> Maybe Text
parentVolumeId) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Text
a -> OpenZFSVolumeConfiguration
s {$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: Maybe Text
parentVolumeId = Maybe Text
a} :: OpenZFSVolumeConfiguration)

-- | A Boolean value indicating whether the volume is read-only.
openZFSVolumeConfiguration_readOnly :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_readOnly :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_readOnly = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
readOnly :: Maybe Bool
$sel:readOnly:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
readOnly} -> Maybe Bool
readOnly) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:readOnly:OpenZFSVolumeConfiguration' :: Maybe Bool
readOnly = Maybe Bool
a} :: OpenZFSVolumeConfiguration)

-- | The record size of an OpenZFS volume, in kibibytes (KiB). Valid values
-- are 4, 8, 16, 32, 64, 128, 256, 512, or 1024 KiB. The default is 128
-- KiB. Most workloads should use the default record size. For guidance on
-- when to set a custom record size, see the /Amazon FSx for OpenZFS User
-- Guide/.
openZFSVolumeConfiguration_recordSizeKiB :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Natural)
openZFSVolumeConfiguration_recordSizeKiB :: Lens' OpenZFSVolumeConfiguration (Maybe Natural)
openZFSVolumeConfiguration_recordSizeKiB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Natural
recordSizeKiB :: Maybe Natural
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
recordSizeKiB} -> Maybe Natural
recordSizeKiB) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Natural
a -> OpenZFSVolumeConfiguration
s {$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: Maybe Natural
recordSizeKiB = Maybe Natural
a} :: OpenZFSVolumeConfiguration)

-- | Specifies the ID of the snapshot to which the volume was restored.
openZFSVolumeConfiguration_restoreToSnapshot :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Text)
openZFSVolumeConfiguration_restoreToSnapshot :: Lens' OpenZFSVolumeConfiguration (Maybe Text)
openZFSVolumeConfiguration_restoreToSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Text
restoreToSnapshot :: Maybe Text
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
restoreToSnapshot} -> Maybe Text
restoreToSnapshot) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Text
a -> OpenZFSVolumeConfiguration
s {$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: Maybe Text
restoreToSnapshot = Maybe Text
a} :: OpenZFSVolumeConfiguration)

-- | The maximum amount of storage in gibibtyes (GiB) that the volume can use
-- from its parent. You can specify a quota larger than the storage on the
-- parent volume.
openZFSVolumeConfiguration_storageCapacityQuotaGiB :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Natural)
openZFSVolumeConfiguration_storageCapacityQuotaGiB :: Lens' OpenZFSVolumeConfiguration (Maybe Natural)
openZFSVolumeConfiguration_storageCapacityQuotaGiB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Natural
storageCapacityQuotaGiB :: Maybe Natural
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityQuotaGiB} -> Maybe Natural
storageCapacityQuotaGiB) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Natural
a -> OpenZFSVolumeConfiguration
s {$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityQuotaGiB = Maybe Natural
a} :: OpenZFSVolumeConfiguration)

-- | The amount of storage in gibibytes (GiB) to reserve from the parent
-- volume. You can\'t reserve more storage than the parent volume has
-- reserved.
openZFSVolumeConfiguration_storageCapacityReservationGiB :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Natural)
openZFSVolumeConfiguration_storageCapacityReservationGiB :: Lens' OpenZFSVolumeConfiguration (Maybe Natural)
openZFSVolumeConfiguration_storageCapacityReservationGiB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Natural
storageCapacityReservationGiB :: Maybe Natural
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityReservationGiB} -> Maybe Natural
storageCapacityReservationGiB) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Natural
a -> OpenZFSVolumeConfiguration
s {$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityReservationGiB = Maybe Natural
a} :: OpenZFSVolumeConfiguration)

-- | An object specifying how much storage users or groups can use on the
-- volume.
openZFSVolumeConfiguration_userAndGroupQuotas :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe [OpenZFSUserOrGroupQuota])
openZFSVolumeConfiguration_userAndGroupQuotas :: Lens' OpenZFSVolumeConfiguration (Maybe [OpenZFSUserOrGroupQuota])
openZFSVolumeConfiguration_userAndGroupQuotas = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas :: Maybe [OpenZFSUserOrGroupQuota]
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas} -> Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe [OpenZFSUserOrGroupQuota]
a -> OpenZFSVolumeConfiguration
s {$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas = Maybe [OpenZFSUserOrGroupQuota]
a} :: OpenZFSVolumeConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The path to the volume from the root volume. For example,
-- @fsx\/parentVolume\/volume1@.
openZFSVolumeConfiguration_volumePath :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Text)
openZFSVolumeConfiguration_volumePath :: Lens' OpenZFSVolumeConfiguration (Maybe Text)
openZFSVolumeConfiguration_volumePath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Text
volumePath :: Maybe Text
$sel:volumePath:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
volumePath} -> Maybe Text
volumePath) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Text
a -> OpenZFSVolumeConfiguration
s {$sel:volumePath:OpenZFSVolumeConfiguration' :: Maybe Text
volumePath = Maybe Text
a} :: OpenZFSVolumeConfiguration)

instance Data.FromJSON OpenZFSVolumeConfiguration where
  parseJSON :: Value -> Parser OpenZFSVolumeConfiguration
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"OpenZFSVolumeConfiguration"
      ( \Object
x ->
          Maybe Bool
-> Maybe OpenZFSDataCompressionType
-> Maybe Bool
-> Maybe Bool
-> Maybe [OpenZFSNfsExport]
-> Maybe OpenZFSOriginSnapshotConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe [OpenZFSUserOrGroupQuota]
-> Maybe Text
-> OpenZFSVolumeConfiguration
OpenZFSVolumeConfiguration'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CopyTagsToSnapshots")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DataCompressionType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeleteClonedVolumes")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeleteIntermediateSnaphots")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NfsExports" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OriginSnapshot")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ParentVolumeId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ReadOnly")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecordSizeKiB")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RestoreToSnapshot")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StorageCapacityQuotaGiB")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StorageCapacityReservationGiB")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"UserAndGroupQuotas"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VolumePath")
      )

instance Prelude.Hashable OpenZFSVolumeConfiguration where
  hashWithSalt :: Int -> OpenZFSVolumeConfiguration -> Int
hashWithSalt Int
_salt OpenZFSVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe [OpenZFSNfsExport]
Maybe [OpenZFSUserOrGroupQuota]
Maybe Text
Maybe OpenZFSDataCompressionType
Maybe OpenZFSOriginSnapshotConfiguration
volumePath :: Maybe Text
userAndGroupQuotas :: Maybe [OpenZFSUserOrGroupQuota]
storageCapacityReservationGiB :: Maybe Natural
storageCapacityQuotaGiB :: Maybe Natural
restoreToSnapshot :: Maybe Text
recordSizeKiB :: Maybe Natural
readOnly :: Maybe Bool
parentVolumeId :: Maybe Text
originSnapshot :: Maybe OpenZFSOriginSnapshotConfiguration
nfsExports :: Maybe [OpenZFSNfsExport]
deleteIntermediateSnaphots :: Maybe Bool
deleteClonedVolumes :: Maybe Bool
dataCompressionType :: Maybe OpenZFSDataCompressionType
copyTagsToSnapshots :: Maybe Bool
$sel:volumePath:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:readOnly:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
$sel:nfsExports:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
copyTagsToSnapshots
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OpenZFSDataCompressionType
dataCompressionType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deleteClonedVolumes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deleteIntermediateSnaphots
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [OpenZFSNfsExport]
nfsExports
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
parentVolumeId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
readOnly
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
recordSizeKiB
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
restoreToSnapshot
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
storageCapacityQuotaGiB
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
storageCapacityReservationGiB
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
volumePath

instance Prelude.NFData OpenZFSVolumeConfiguration where
  rnf :: OpenZFSVolumeConfiguration -> ()
rnf OpenZFSVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe [OpenZFSNfsExport]
Maybe [OpenZFSUserOrGroupQuota]
Maybe Text
Maybe OpenZFSDataCompressionType
Maybe OpenZFSOriginSnapshotConfiguration
volumePath :: Maybe Text
userAndGroupQuotas :: Maybe [OpenZFSUserOrGroupQuota]
storageCapacityReservationGiB :: Maybe Natural
storageCapacityQuotaGiB :: Maybe Natural
restoreToSnapshot :: Maybe Text
recordSizeKiB :: Maybe Natural
readOnly :: Maybe Bool
parentVolumeId :: Maybe Text
originSnapshot :: Maybe OpenZFSOriginSnapshotConfiguration
nfsExports :: Maybe [OpenZFSNfsExport]
deleteIntermediateSnaphots :: Maybe Bool
deleteClonedVolumes :: Maybe Bool
dataCompressionType :: Maybe OpenZFSDataCompressionType
copyTagsToSnapshots :: Maybe Bool
$sel:volumePath:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:readOnly:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
$sel:nfsExports:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
copyTagsToSnapshots
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OpenZFSDataCompressionType
dataCompressionType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deleteClonedVolumes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deleteIntermediateSnaphots
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [OpenZFSNfsExport]
nfsExports
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
parentVolumeId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
readOnly
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
recordSizeKiB
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
restoreToSnapshot
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
storageCapacityQuotaGiB
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
storageCapacityReservationGiB
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
volumePath