{-# 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 #-}
module Amazonka.FSx.Types.UpdateFileSystemWindowsConfiguration 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.SelfManagedActiveDirectoryConfigurationUpdates
import Amazonka.FSx.Types.WindowsAuditLogCreateConfiguration
import qualified Amazonka.Prelude as Prelude
data UpdateFileSystemWindowsConfiguration = UpdateFileSystemWindowsConfiguration'
{
UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration :: Prelude.Maybe WindowsAuditLogCreateConfiguration,
UpdateFileSystemWindowsConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
UpdateFileSystemWindowsConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration :: Prelude.Maybe SelfManagedActiveDirectoryConfigurationUpdates,
UpdateFileSystemWindowsConfiguration -> Maybe Natural
throughputCapacity :: Prelude.Maybe Prelude.Natural,
UpdateFileSystemWindowsConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
}
deriving (UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
$c/= :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
== :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
$c== :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
Prelude.Eq, Int -> UpdateFileSystemWindowsConfiguration -> ShowS
[UpdateFileSystemWindowsConfiguration] -> ShowS
UpdateFileSystemWindowsConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFileSystemWindowsConfiguration] -> ShowS
$cshowList :: [UpdateFileSystemWindowsConfiguration] -> ShowS
show :: UpdateFileSystemWindowsConfiguration -> String
$cshow :: UpdateFileSystemWindowsConfiguration -> String
showsPrec :: Int -> UpdateFileSystemWindowsConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateFileSystemWindowsConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateFileSystemWindowsConfiguration x
-> UpdateFileSystemWindowsConfiguration
forall x.
UpdateFileSystemWindowsConfiguration
-> Rep UpdateFileSystemWindowsConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFileSystemWindowsConfiguration x
-> UpdateFileSystemWindowsConfiguration
$cfrom :: forall x.
UpdateFileSystemWindowsConfiguration
-> Rep UpdateFileSystemWindowsConfiguration x
Prelude.Generic)
newUpdateFileSystemWindowsConfiguration ::
UpdateFileSystemWindowsConfiguration
newUpdateFileSystemWindowsConfiguration :: UpdateFileSystemWindowsConfiguration
newUpdateFileSystemWindowsConfiguration =
UpdateFileSystemWindowsConfiguration'
{ $sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
automaticBackupRetentionDays =
forall a. Maybe a
Prelude.Nothing,
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime =
forall a. Maybe a
Prelude.Nothing,
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
throughputCapacity = forall a. Maybe a
Prelude.Nothing,
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
forall a. Maybe a
Prelude.Nothing
}
updateFileSystemWindowsConfiguration_auditLogConfiguration :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe WindowsAuditLogCreateConfiguration)
updateFileSystemWindowsConfiguration_auditLogConfiguration :: Lens'
UpdateFileSystemWindowsConfiguration
(Maybe WindowsAuditLogCreateConfiguration)
updateFileSystemWindowsConfiguration_auditLogConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration} -> Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe WindowsAuditLogCreateConfiguration
a -> UpdateFileSystemWindowsConfiguration
s {$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration = Maybe WindowsAuditLogCreateConfiguration
a} :: UpdateFileSystemWindowsConfiguration)
updateFileSystemWindowsConfiguration_automaticBackupRetentionDays :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemWindowsConfiguration_automaticBackupRetentionDays :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Natural)
updateFileSystemWindowsConfiguration_automaticBackupRetentionDays = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Natural
automaticBackupRetentionDays :: Maybe Natural
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
automaticBackupRetentionDays} -> Maybe Natural
automaticBackupRetentionDays) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Natural
a -> UpdateFileSystemWindowsConfiguration
s {$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
automaticBackupRetentionDays = Maybe Natural
a} :: UpdateFileSystemWindowsConfiguration)
updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Text)
updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Text
dailyAutomaticBackupStartTime :: Maybe Text
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
dailyAutomaticBackupStartTime} -> Maybe Text
dailyAutomaticBackupStartTime) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Text
a -> UpdateFileSystemWindowsConfiguration
s {$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime = Maybe Text
a} :: UpdateFileSystemWindowsConfiguration)
updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe SelfManagedActiveDirectoryConfigurationUpdates)
updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration :: Lens'
UpdateFileSystemWindowsConfiguration
(Maybe SelfManagedActiveDirectoryConfigurationUpdates)
updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration} -> Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe SelfManagedActiveDirectoryConfigurationUpdates
a -> UpdateFileSystemWindowsConfiguration
s {$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration = Maybe SelfManagedActiveDirectoryConfigurationUpdates
a} :: UpdateFileSystemWindowsConfiguration)
updateFileSystemWindowsConfiguration_throughputCapacity :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemWindowsConfiguration_throughputCapacity :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Natural)
updateFileSystemWindowsConfiguration_throughputCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Natural
throughputCapacity :: Maybe Natural
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
throughputCapacity} -> Maybe Natural
throughputCapacity) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Natural
a -> UpdateFileSystemWindowsConfiguration
s {$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
throughputCapacity = Maybe Natural
a} :: UpdateFileSystemWindowsConfiguration)
updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Text)
updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
weeklyMaintenanceStartTime} -> Maybe Text
weeklyMaintenanceStartTime) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Text
a -> UpdateFileSystemWindowsConfiguration
s {$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
weeklyMaintenanceStartTime = Maybe Text
a} :: UpdateFileSystemWindowsConfiguration)
instance
Prelude.Hashable
UpdateFileSystemWindowsConfiguration
where
hashWithSalt :: Int -> UpdateFileSystemWindowsConfiguration -> Int
hashWithSalt
Int
_salt
UpdateFileSystemWindowsConfiguration' {Maybe Natural
Maybe Text
Maybe SelfManagedActiveDirectoryConfigurationUpdates
Maybe WindowsAuditLogCreateConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration
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 SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
throughputCapacity
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
weeklyMaintenanceStartTime
instance
Prelude.NFData
UpdateFileSystemWindowsConfiguration
where
rnf :: UpdateFileSystemWindowsConfiguration -> ()
rnf UpdateFileSystemWindowsConfiguration' {Maybe Natural
Maybe Text
Maybe SelfManagedActiveDirectoryConfigurationUpdates
Maybe WindowsAuditLogCreateConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration
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 SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
throughputCapacity
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
weeklyMaintenanceStartTime
instance
Data.ToJSON
UpdateFileSystemWindowsConfiguration
where
toJSON :: UpdateFileSystemWindowsConfiguration -> Value
toJSON UpdateFileSystemWindowsConfiguration' {Maybe Natural
Maybe Text
Maybe SelfManagedActiveDirectoryConfigurationUpdates
Maybe WindowsAuditLogCreateConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AuditLogConfiguration" 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 WindowsAuditLogCreateConfiguration
auditLogConfiguration,
(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
"SelfManagedActiveDirectoryConfiguration" 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 SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration,
(Key
"ThroughputCapacity" 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
throughputCapacity,
(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
]
)