{-# 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.UpdateFileSystemLustreConfiguration
-- 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.UpdateFileSystemLustreConfiguration 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.AutoImportPolicyType
import Amazonka.FSx.Types.DataCompressionType
import Amazonka.FSx.Types.LustreLogCreateConfiguration
import Amazonka.FSx.Types.LustreRootSquashConfiguration
import qualified Amazonka.Prelude as Prelude

-- | The configuration object for Amazon FSx for Lustre file systems used in
-- the @UpdateFileSystem@ operation.
--
-- /See:/ 'newUpdateFileSystemLustreConfiguration' smart constructor.
data UpdateFileSystemLustreConfiguration = UpdateFileSystemLustreConfiguration'
  { -- | (Optional) When you create your file system, your existing S3 objects
    -- appear as file and directory listings. Use this property to choose how
    -- Amazon FSx keeps your file and directory listing up to date as you add
    -- or modify objects in your linked S3 bucket. @AutoImportPolicy@ can have
    -- the following values:
    --
    -- -   @NONE@ - (Default) AutoImport is off. Amazon FSx only updates file
    --     and directory listings from the linked S3 bucket when the file
    --     system is created. FSx does not update the file and directory
    --     listing for any new or changed objects after choosing this option.
    --
    -- -   @NEW@ - AutoImport is on. Amazon FSx automatically imports directory
    --     listings of any new objects added to the linked S3 bucket that do
    --     not currently exist in the FSx file system.
    --
    -- -   @NEW_CHANGED@ - AutoImport is on. Amazon FSx automatically imports
    --     file and directory listings of any new objects added to the S3
    --     bucket and any existing objects that are changed in the S3 bucket
    --     after you choose this option.
    --
    -- -   @NEW_CHANGED_DELETED@ - AutoImport is on. Amazon FSx automatically
    --     imports file and directory listings of any new objects added to the
    --     S3 bucket, any existing objects that are changed in the S3 bucket,
    --     and any objects that were deleted in the S3 bucket.
    --
    -- The @AutoImportPolicy@ parameter is not supported for Lustre file
    -- systems with the @Persistent_2@ deployment type. Instead, use to update
    -- a data repository association on your @Persistent_2@ file system.
    UpdateFileSystemLustreConfiguration -> Maybe AutoImportPolicyType
autoImportPolicy :: Prelude.Maybe AutoImportPolicyType,
    UpdateFileSystemLustreConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
    UpdateFileSystemLustreConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
    -- | Sets the data compression configuration for the file system.
    -- @DataCompressionType@ can have the following values:
    --
    -- -   @NONE@ - Data compression is turned off for the file system.
    --
    -- -   @LZ4@ - Data compression is turned on with the LZ4 algorithm.
    --
    -- If you don\'t use @DataCompressionType@, the file system retains its
    -- current data compression configuration.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-compression.html Lustre data compression>.
    UpdateFileSystemLustreConfiguration -> Maybe DataCompressionType
dataCompressionType :: Prelude.Maybe DataCompressionType,
    -- | The Lustre logging configuration used when updating an Amazon FSx for
    -- Lustre file system. When logging is enabled, Lustre logs error and
    -- warning events for data repositories associated with your file system to
    -- Amazon CloudWatch Logs.
    UpdateFileSystemLustreConfiguration
-> Maybe LustreLogCreateConfiguration
logConfiguration :: Prelude.Maybe LustreLogCreateConfiguration,
    -- | The Lustre root squash configuration used when updating an Amazon FSx
    -- for Lustre file system. When enabled, root squash restricts root-level
    -- access from clients that try to access your file system as a root user.
    UpdateFileSystemLustreConfiguration
-> Maybe LustreRootSquashConfiguration
rootSquashConfiguration :: Prelude.Maybe LustreRootSquashConfiguration,
    -- | (Optional) The preferred start time to perform weekly maintenance,
    -- formatted d:HH:MM in the UTC time zone. d is the weekday number, from 1
    -- through 7, beginning with Monday and ending with Sunday.
    UpdateFileSystemLustreConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
  }
  deriving (UpdateFileSystemLustreConfiguration
-> UpdateFileSystemLustreConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFileSystemLustreConfiguration
-> UpdateFileSystemLustreConfiguration -> Bool
$c/= :: UpdateFileSystemLustreConfiguration
-> UpdateFileSystemLustreConfiguration -> Bool
== :: UpdateFileSystemLustreConfiguration
-> UpdateFileSystemLustreConfiguration -> Bool
$c== :: UpdateFileSystemLustreConfiguration
-> UpdateFileSystemLustreConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateFileSystemLustreConfiguration]
ReadPrec UpdateFileSystemLustreConfiguration
Int -> ReadS UpdateFileSystemLustreConfiguration
ReadS [UpdateFileSystemLustreConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFileSystemLustreConfiguration]
$creadListPrec :: ReadPrec [UpdateFileSystemLustreConfiguration]
readPrec :: ReadPrec UpdateFileSystemLustreConfiguration
$creadPrec :: ReadPrec UpdateFileSystemLustreConfiguration
readList :: ReadS [UpdateFileSystemLustreConfiguration]
$creadList :: ReadS [UpdateFileSystemLustreConfiguration]
readsPrec :: Int -> ReadS UpdateFileSystemLustreConfiguration
$creadsPrec :: Int -> ReadS UpdateFileSystemLustreConfiguration
Prelude.Read, Int -> UpdateFileSystemLustreConfiguration -> ShowS
[UpdateFileSystemLustreConfiguration] -> ShowS
UpdateFileSystemLustreConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFileSystemLustreConfiguration] -> ShowS
$cshowList :: [UpdateFileSystemLustreConfiguration] -> ShowS
show :: UpdateFileSystemLustreConfiguration -> String
$cshow :: UpdateFileSystemLustreConfiguration -> String
showsPrec :: Int -> UpdateFileSystemLustreConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateFileSystemLustreConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateFileSystemLustreConfiguration x
-> UpdateFileSystemLustreConfiguration
forall x.
UpdateFileSystemLustreConfiguration
-> Rep UpdateFileSystemLustreConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFileSystemLustreConfiguration x
-> UpdateFileSystemLustreConfiguration
$cfrom :: forall x.
UpdateFileSystemLustreConfiguration
-> Rep UpdateFileSystemLustreConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateFileSystemLustreConfiguration' 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:
--
-- 'autoImportPolicy', 'updateFileSystemLustreConfiguration_autoImportPolicy' - (Optional) When you create your file system, your existing S3 objects
-- appear as file and directory listings. Use this property to choose how
-- Amazon FSx keeps your file and directory listing up to date as you add
-- or modify objects in your linked S3 bucket. @AutoImportPolicy@ can have
-- the following values:
--
-- -   @NONE@ - (Default) AutoImport is off. Amazon FSx only updates file
--     and directory listings from the linked S3 bucket when the file
--     system is created. FSx does not update the file and directory
--     listing for any new or changed objects after choosing this option.
--
-- -   @NEW@ - AutoImport is on. Amazon FSx automatically imports directory
--     listings of any new objects added to the linked S3 bucket that do
--     not currently exist in the FSx file system.
--
-- -   @NEW_CHANGED@ - AutoImport is on. Amazon FSx automatically imports
--     file and directory listings of any new objects added to the S3
--     bucket and any existing objects that are changed in the S3 bucket
--     after you choose this option.
--
-- -   @NEW_CHANGED_DELETED@ - AutoImport is on. Amazon FSx automatically
--     imports file and directory listings of any new objects added to the
--     S3 bucket, any existing objects that are changed in the S3 bucket,
--     and any objects that were deleted in the S3 bucket.
--
-- The @AutoImportPolicy@ parameter is not supported for Lustre file
-- systems with the @Persistent_2@ deployment type. Instead, use to update
-- a data repository association on your @Persistent_2@ file system.
--
-- 'automaticBackupRetentionDays', 'updateFileSystemLustreConfiguration_automaticBackupRetentionDays' - Undocumented member.
--
-- 'dailyAutomaticBackupStartTime', 'updateFileSystemLustreConfiguration_dailyAutomaticBackupStartTime' - Undocumented member.
--
-- 'dataCompressionType', 'updateFileSystemLustreConfiguration_dataCompressionType' - Sets the data compression configuration for the file system.
-- @DataCompressionType@ can have the following values:
--
-- -   @NONE@ - Data compression is turned off for the file system.
--
-- -   @LZ4@ - Data compression is turned on with the LZ4 algorithm.
--
-- If you don\'t use @DataCompressionType@, the file system retains its
-- current data compression configuration.
--
-- For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-compression.html Lustre data compression>.
--
-- 'logConfiguration', 'updateFileSystemLustreConfiguration_logConfiguration' - The Lustre logging configuration used when updating an Amazon FSx for
-- Lustre file system. When logging is enabled, Lustre logs error and
-- warning events for data repositories associated with your file system to
-- Amazon CloudWatch Logs.
--
-- 'rootSquashConfiguration', 'updateFileSystemLustreConfiguration_rootSquashConfiguration' - The Lustre root squash configuration used when updating an Amazon FSx
-- for Lustre file system. When enabled, root squash restricts root-level
-- access from clients that try to access your file system as a root user.
--
-- 'weeklyMaintenanceStartTime', 'updateFileSystemLustreConfiguration_weeklyMaintenanceStartTime' - (Optional) The preferred start time to perform weekly maintenance,
-- formatted d:HH:MM in the UTC time zone. d is the weekday number, from 1
-- through 7, beginning with Monday and ending with Sunday.
newUpdateFileSystemLustreConfiguration ::
  UpdateFileSystemLustreConfiguration
newUpdateFileSystemLustreConfiguration :: UpdateFileSystemLustreConfiguration
newUpdateFileSystemLustreConfiguration =
  UpdateFileSystemLustreConfiguration'
    { $sel:autoImportPolicy:UpdateFileSystemLustreConfiguration' :: Maybe AutoImportPolicyType
autoImportPolicy =
        forall a. Maybe a
Prelude.Nothing,
      $sel:automaticBackupRetentionDays:UpdateFileSystemLustreConfiguration' :: Maybe Natural
automaticBackupRetentionDays =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dailyAutomaticBackupStartTime:UpdateFileSystemLustreConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dataCompressionType:UpdateFileSystemLustreConfiguration' :: Maybe DataCompressionType
dataCompressionType = forall a. Maybe a
Prelude.Nothing,
      $sel:logConfiguration:UpdateFileSystemLustreConfiguration' :: Maybe LustreLogCreateConfiguration
logConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:rootSquashConfiguration:UpdateFileSystemLustreConfiguration' :: Maybe LustreRootSquashConfiguration
rootSquashConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:weeklyMaintenanceStartTime:UpdateFileSystemLustreConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
        forall a. Maybe a
Prelude.Nothing
    }

-- | (Optional) When you create your file system, your existing S3 objects
-- appear as file and directory listings. Use this property to choose how
-- Amazon FSx keeps your file and directory listing up to date as you add
-- or modify objects in your linked S3 bucket. @AutoImportPolicy@ can have
-- the following values:
--
-- -   @NONE@ - (Default) AutoImport is off. Amazon FSx only updates file
--     and directory listings from the linked S3 bucket when the file
--     system is created. FSx does not update the file and directory
--     listing for any new or changed objects after choosing this option.
--
-- -   @NEW@ - AutoImport is on. Amazon FSx automatically imports directory
--     listings of any new objects added to the linked S3 bucket that do
--     not currently exist in the FSx file system.
--
-- -   @NEW_CHANGED@ - AutoImport is on. Amazon FSx automatically imports
--     file and directory listings of any new objects added to the S3
--     bucket and any existing objects that are changed in the S3 bucket
--     after you choose this option.
--
-- -   @NEW_CHANGED_DELETED@ - AutoImport is on. Amazon FSx automatically
--     imports file and directory listings of any new objects added to the
--     S3 bucket, any existing objects that are changed in the S3 bucket,
--     and any objects that were deleted in the S3 bucket.
--
-- The @AutoImportPolicy@ parameter is not supported for Lustre file
-- systems with the @Persistent_2@ deployment type. Instead, use to update
-- a data repository association on your @Persistent_2@ file system.
updateFileSystemLustreConfiguration_autoImportPolicy :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe AutoImportPolicyType)
updateFileSystemLustreConfiguration_autoImportPolicy :: Lens'
  UpdateFileSystemLustreConfiguration (Maybe AutoImportPolicyType)
updateFileSystemLustreConfiguration_autoImportPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe AutoImportPolicyType
autoImportPolicy :: Maybe AutoImportPolicyType
$sel:autoImportPolicy:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe AutoImportPolicyType
autoImportPolicy} -> Maybe AutoImportPolicyType
autoImportPolicy) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe AutoImportPolicyType
a -> UpdateFileSystemLustreConfiguration
s {$sel:autoImportPolicy:UpdateFileSystemLustreConfiguration' :: Maybe AutoImportPolicyType
autoImportPolicy = Maybe AutoImportPolicyType
a} :: UpdateFileSystemLustreConfiguration)

-- | Undocumented member.
updateFileSystemLustreConfiguration_automaticBackupRetentionDays :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemLustreConfiguration_automaticBackupRetentionDays :: Lens' UpdateFileSystemLustreConfiguration (Maybe Natural)
updateFileSystemLustreConfiguration_automaticBackupRetentionDays = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe Natural
automaticBackupRetentionDays :: Maybe Natural
$sel:automaticBackupRetentionDays:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Natural
automaticBackupRetentionDays} -> Maybe Natural
automaticBackupRetentionDays) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe Natural
a -> UpdateFileSystemLustreConfiguration
s {$sel:automaticBackupRetentionDays:UpdateFileSystemLustreConfiguration' :: Maybe Natural
automaticBackupRetentionDays = Maybe Natural
a} :: UpdateFileSystemLustreConfiguration)

-- | Undocumented member.
updateFileSystemLustreConfiguration_dailyAutomaticBackupStartTime :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemLustreConfiguration_dailyAutomaticBackupStartTime :: Lens' UpdateFileSystemLustreConfiguration (Maybe Text)
updateFileSystemLustreConfiguration_dailyAutomaticBackupStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe Text
dailyAutomaticBackupStartTime :: Maybe Text
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
dailyAutomaticBackupStartTime} -> Maybe Text
dailyAutomaticBackupStartTime) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe Text
a -> UpdateFileSystemLustreConfiguration
s {$sel:dailyAutomaticBackupStartTime:UpdateFileSystemLustreConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime = Maybe Text
a} :: UpdateFileSystemLustreConfiguration)

-- | Sets the data compression configuration for the file system.
-- @DataCompressionType@ can have the following values:
--
-- -   @NONE@ - Data compression is turned off for the file system.
--
-- -   @LZ4@ - Data compression is turned on with the LZ4 algorithm.
--
-- If you don\'t use @DataCompressionType@, the file system retains its
-- current data compression configuration.
--
-- For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-compression.html Lustre data compression>.
updateFileSystemLustreConfiguration_dataCompressionType :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe DataCompressionType)
updateFileSystemLustreConfiguration_dataCompressionType :: Lens'
  UpdateFileSystemLustreConfiguration (Maybe DataCompressionType)
updateFileSystemLustreConfiguration_dataCompressionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe DataCompressionType
dataCompressionType :: Maybe DataCompressionType
$sel:dataCompressionType:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe DataCompressionType
dataCompressionType} -> Maybe DataCompressionType
dataCompressionType) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe DataCompressionType
a -> UpdateFileSystemLustreConfiguration
s {$sel:dataCompressionType:UpdateFileSystemLustreConfiguration' :: Maybe DataCompressionType
dataCompressionType = Maybe DataCompressionType
a} :: UpdateFileSystemLustreConfiguration)

-- | The Lustre logging configuration used when updating an Amazon FSx for
-- Lustre file system. When logging is enabled, Lustre logs error and
-- warning events for data repositories associated with your file system to
-- Amazon CloudWatch Logs.
updateFileSystemLustreConfiguration_logConfiguration :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe LustreLogCreateConfiguration)
updateFileSystemLustreConfiguration_logConfiguration :: Lens'
  UpdateFileSystemLustreConfiguration
  (Maybe LustreLogCreateConfiguration)
updateFileSystemLustreConfiguration_logConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe LustreLogCreateConfiguration
logConfiguration :: Maybe LustreLogCreateConfiguration
$sel:logConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreLogCreateConfiguration
logConfiguration} -> Maybe LustreLogCreateConfiguration
logConfiguration) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe LustreLogCreateConfiguration
a -> UpdateFileSystemLustreConfiguration
s {$sel:logConfiguration:UpdateFileSystemLustreConfiguration' :: Maybe LustreLogCreateConfiguration
logConfiguration = Maybe LustreLogCreateConfiguration
a} :: UpdateFileSystemLustreConfiguration)

-- | The Lustre root squash configuration used when updating an Amazon FSx
-- for Lustre file system. When enabled, root squash restricts root-level
-- access from clients that try to access your file system as a root user.
updateFileSystemLustreConfiguration_rootSquashConfiguration :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe LustreRootSquashConfiguration)
updateFileSystemLustreConfiguration_rootSquashConfiguration :: Lens'
  UpdateFileSystemLustreConfiguration
  (Maybe LustreRootSquashConfiguration)
updateFileSystemLustreConfiguration_rootSquashConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe LustreRootSquashConfiguration
rootSquashConfiguration :: Maybe LustreRootSquashConfiguration
$sel:rootSquashConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreRootSquashConfiguration
rootSquashConfiguration} -> Maybe LustreRootSquashConfiguration
rootSquashConfiguration) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe LustreRootSquashConfiguration
a -> UpdateFileSystemLustreConfiguration
s {$sel:rootSquashConfiguration:UpdateFileSystemLustreConfiguration' :: Maybe LustreRootSquashConfiguration
rootSquashConfiguration = Maybe LustreRootSquashConfiguration
a} :: UpdateFileSystemLustreConfiguration)

-- | (Optional) The preferred start time to perform weekly maintenance,
-- formatted d:HH:MM in the UTC time zone. d is the weekday number, from 1
-- through 7, beginning with Monday and ending with Sunday.
updateFileSystemLustreConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' UpdateFileSystemLustreConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemLustreConfiguration_weeklyMaintenanceStartTime :: Lens' UpdateFileSystemLustreConfiguration (Maybe Text)
updateFileSystemLustreConfiguration_weeklyMaintenanceStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemLustreConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
weeklyMaintenanceStartTime} -> Maybe Text
weeklyMaintenanceStartTime) (\s :: UpdateFileSystemLustreConfiguration
s@UpdateFileSystemLustreConfiguration' {} Maybe Text
a -> UpdateFileSystemLustreConfiguration
s {$sel:weeklyMaintenanceStartTime:UpdateFileSystemLustreConfiguration' :: Maybe Text
weeklyMaintenanceStartTime = Maybe Text
a} :: UpdateFileSystemLustreConfiguration)

instance
  Prelude.Hashable
    UpdateFileSystemLustreConfiguration
  where
  hashWithSalt :: Int -> UpdateFileSystemLustreConfiguration -> Int
hashWithSalt
    Int
_salt
    UpdateFileSystemLustreConfiguration' {Maybe Natural
Maybe Text
Maybe AutoImportPolicyType
Maybe DataCompressionType
Maybe LustreLogCreateConfiguration
Maybe LustreRootSquashConfiguration
weeklyMaintenanceStartTime :: Maybe Text
rootSquashConfiguration :: Maybe LustreRootSquashConfiguration
logConfiguration :: Maybe LustreLogCreateConfiguration
dataCompressionType :: Maybe DataCompressionType
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
autoImportPolicy :: Maybe AutoImportPolicyType
$sel:weeklyMaintenanceStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
$sel:rootSquashConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreRootSquashConfiguration
$sel:logConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreLogCreateConfiguration
$sel:dataCompressionType:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe DataCompressionType
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Natural
$sel:autoImportPolicy:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe AutoImportPolicyType
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutoImportPolicyType
autoImportPolicy
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
automaticBackupRetentionDays
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dailyAutomaticBackupStartTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataCompressionType
dataCompressionType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LustreLogCreateConfiguration
logConfiguration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LustreRootSquashConfiguration
rootSquashConfiguration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
weeklyMaintenanceStartTime

instance
  Prelude.NFData
    UpdateFileSystemLustreConfiguration
  where
  rnf :: UpdateFileSystemLustreConfiguration -> ()
rnf UpdateFileSystemLustreConfiguration' {Maybe Natural
Maybe Text
Maybe AutoImportPolicyType
Maybe DataCompressionType
Maybe LustreLogCreateConfiguration
Maybe LustreRootSquashConfiguration
weeklyMaintenanceStartTime :: Maybe Text
rootSquashConfiguration :: Maybe LustreRootSquashConfiguration
logConfiguration :: Maybe LustreLogCreateConfiguration
dataCompressionType :: Maybe DataCompressionType
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
autoImportPolicy :: Maybe AutoImportPolicyType
$sel:weeklyMaintenanceStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
$sel:rootSquashConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreRootSquashConfiguration
$sel:logConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreLogCreateConfiguration
$sel:dataCompressionType:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe DataCompressionType
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Natural
$sel:autoImportPolicy:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe AutoImportPolicyType
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AutoImportPolicyType
autoImportPolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
automaticBackupRetentionDays
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dailyAutomaticBackupStartTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataCompressionType
dataCompressionType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LustreLogCreateConfiguration
logConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LustreRootSquashConfiguration
rootSquashConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
weeklyMaintenanceStartTime

instance
  Data.ToJSON
    UpdateFileSystemLustreConfiguration
  where
  toJSON :: UpdateFileSystemLustreConfiguration -> Value
toJSON UpdateFileSystemLustreConfiguration' {Maybe Natural
Maybe Text
Maybe AutoImportPolicyType
Maybe DataCompressionType
Maybe LustreLogCreateConfiguration
Maybe LustreRootSquashConfiguration
weeklyMaintenanceStartTime :: Maybe Text
rootSquashConfiguration :: Maybe LustreRootSquashConfiguration
logConfiguration :: Maybe LustreLogCreateConfiguration
dataCompressionType :: Maybe DataCompressionType
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
autoImportPolicy :: Maybe AutoImportPolicyType
$sel:weeklyMaintenanceStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
$sel:rootSquashConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreRootSquashConfiguration
$sel:logConfiguration:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration
-> Maybe LustreLogCreateConfiguration
$sel:dataCompressionType:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe DataCompressionType
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe Natural
$sel:autoImportPolicy:UpdateFileSystemLustreConfiguration' :: UpdateFileSystemLustreConfiguration -> Maybe AutoImportPolicyType
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AutoImportPolicy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoImportPolicyType
autoImportPolicy,
            (Key
"AutomaticBackupRetentionDays" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
automaticBackupRetentionDays,
            (Key
"DailyAutomaticBackupStartTime" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
dailyAutomaticBackupStartTime,
            (Key
"DataCompressionType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataCompressionType
dataCompressionType,
            (Key
"LogConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LustreLogCreateConfiguration
logConfiguration,
            (Key
"RootSquashConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LustreRootSquashConfiguration
rootSquashConfiguration,
            (Key
"WeeklyMaintenanceStartTime" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
weeklyMaintenanceStartTime
          ]
      )