{-# 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.MwAA.Types.LoggingConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MwAA.Types.ModuleLoggingConfiguration
import qualified Amazonka.Prelude as Prelude
data LoggingConfiguration = LoggingConfiguration'
{ LoggingConfiguration -> Maybe ModuleLoggingConfiguration
taskLogs :: Prelude.Maybe ModuleLoggingConfiguration,
LoggingConfiguration -> Maybe ModuleLoggingConfiguration
webserverLogs :: Prelude.Maybe ModuleLoggingConfiguration,
LoggingConfiguration -> Maybe ModuleLoggingConfiguration
schedulerLogs :: Prelude.Maybe ModuleLoggingConfiguration,
LoggingConfiguration -> Maybe ModuleLoggingConfiguration
dagProcessingLogs :: Prelude.Maybe ModuleLoggingConfiguration,
LoggingConfiguration -> Maybe ModuleLoggingConfiguration
workerLogs :: Prelude.Maybe ModuleLoggingConfiguration
}
deriving (LoggingConfiguration -> LoggingConfiguration -> Bool
(LoggingConfiguration -> LoggingConfiguration -> Bool)
-> (LoggingConfiguration -> LoggingConfiguration -> Bool)
-> Eq LoggingConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoggingConfiguration -> LoggingConfiguration -> Bool
$c/= :: LoggingConfiguration -> LoggingConfiguration -> Bool
== :: LoggingConfiguration -> LoggingConfiguration -> Bool
$c== :: LoggingConfiguration -> LoggingConfiguration -> Bool
Prelude.Eq, ReadPrec [LoggingConfiguration]
ReadPrec LoggingConfiguration
Int -> ReadS LoggingConfiguration
ReadS [LoggingConfiguration]
(Int -> ReadS LoggingConfiguration)
-> ReadS [LoggingConfiguration]
-> ReadPrec LoggingConfiguration
-> ReadPrec [LoggingConfiguration]
-> Read LoggingConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LoggingConfiguration]
$creadListPrec :: ReadPrec [LoggingConfiguration]
readPrec :: ReadPrec LoggingConfiguration
$creadPrec :: ReadPrec LoggingConfiguration
readList :: ReadS [LoggingConfiguration]
$creadList :: ReadS [LoggingConfiguration]
readsPrec :: Int -> ReadS LoggingConfiguration
$creadsPrec :: Int -> ReadS LoggingConfiguration
Prelude.Read, Int -> LoggingConfiguration -> ShowS
[LoggingConfiguration] -> ShowS
LoggingConfiguration -> String
(Int -> LoggingConfiguration -> ShowS)
-> (LoggingConfiguration -> String)
-> ([LoggingConfiguration] -> ShowS)
-> Show LoggingConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoggingConfiguration] -> ShowS
$cshowList :: [LoggingConfiguration] -> ShowS
show :: LoggingConfiguration -> String
$cshow :: LoggingConfiguration -> String
showsPrec :: Int -> LoggingConfiguration -> ShowS
$cshowsPrec :: Int -> LoggingConfiguration -> ShowS
Prelude.Show, (forall x. LoggingConfiguration -> Rep LoggingConfiguration x)
-> (forall x. Rep LoggingConfiguration x -> LoggingConfiguration)
-> Generic LoggingConfiguration
forall x. Rep LoggingConfiguration x -> LoggingConfiguration
forall x. LoggingConfiguration -> Rep LoggingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LoggingConfiguration x -> LoggingConfiguration
$cfrom :: forall x. LoggingConfiguration -> Rep LoggingConfiguration x
Prelude.Generic)
newLoggingConfiguration ::
LoggingConfiguration
newLoggingConfiguration :: LoggingConfiguration
newLoggingConfiguration =
LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration
LoggingConfiguration'
{ $sel:taskLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
taskLogs = Maybe ModuleLoggingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:webserverLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
webserverLogs = Maybe ModuleLoggingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:schedulerLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
schedulerLogs = Maybe ModuleLoggingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:dagProcessingLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
dagProcessingLogs = Maybe ModuleLoggingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:workerLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
workerLogs = Maybe ModuleLoggingConfiguration
forall a. Maybe a
Prelude.Nothing
}
loggingConfiguration_taskLogs :: Lens.Lens' LoggingConfiguration (Prelude.Maybe ModuleLoggingConfiguration)
loggingConfiguration_taskLogs :: (Maybe ModuleLoggingConfiguration
-> f (Maybe ModuleLoggingConfiguration))
-> LoggingConfiguration -> f LoggingConfiguration
loggingConfiguration_taskLogs = (LoggingConfiguration -> Maybe ModuleLoggingConfiguration)
-> (LoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Lens
LoggingConfiguration
LoggingConfiguration
(Maybe ModuleLoggingConfiguration)
(Maybe ModuleLoggingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfiguration' {Maybe ModuleLoggingConfiguration
taskLogs :: Maybe ModuleLoggingConfiguration
$sel:taskLogs:LoggingConfiguration' :: LoggingConfiguration -> Maybe ModuleLoggingConfiguration
taskLogs} -> Maybe ModuleLoggingConfiguration
taskLogs) (\s :: LoggingConfiguration
s@LoggingConfiguration' {} Maybe ModuleLoggingConfiguration
a -> LoggingConfiguration
s {$sel:taskLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
taskLogs = Maybe ModuleLoggingConfiguration
a} :: LoggingConfiguration)
loggingConfiguration_webserverLogs :: Lens.Lens' LoggingConfiguration (Prelude.Maybe ModuleLoggingConfiguration)
loggingConfiguration_webserverLogs :: (Maybe ModuleLoggingConfiguration
-> f (Maybe ModuleLoggingConfiguration))
-> LoggingConfiguration -> f LoggingConfiguration
loggingConfiguration_webserverLogs = (LoggingConfiguration -> Maybe ModuleLoggingConfiguration)
-> (LoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Lens
LoggingConfiguration
LoggingConfiguration
(Maybe ModuleLoggingConfiguration)
(Maybe ModuleLoggingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfiguration' {Maybe ModuleLoggingConfiguration
webserverLogs :: Maybe ModuleLoggingConfiguration
$sel:webserverLogs:LoggingConfiguration' :: LoggingConfiguration -> Maybe ModuleLoggingConfiguration
webserverLogs} -> Maybe ModuleLoggingConfiguration
webserverLogs) (\s :: LoggingConfiguration
s@LoggingConfiguration' {} Maybe ModuleLoggingConfiguration
a -> LoggingConfiguration
s {$sel:webserverLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
webserverLogs = Maybe ModuleLoggingConfiguration
a} :: LoggingConfiguration)
loggingConfiguration_schedulerLogs :: Lens.Lens' LoggingConfiguration (Prelude.Maybe ModuleLoggingConfiguration)
loggingConfiguration_schedulerLogs :: (Maybe ModuleLoggingConfiguration
-> f (Maybe ModuleLoggingConfiguration))
-> LoggingConfiguration -> f LoggingConfiguration
loggingConfiguration_schedulerLogs = (LoggingConfiguration -> Maybe ModuleLoggingConfiguration)
-> (LoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Lens
LoggingConfiguration
LoggingConfiguration
(Maybe ModuleLoggingConfiguration)
(Maybe ModuleLoggingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfiguration' {Maybe ModuleLoggingConfiguration
schedulerLogs :: Maybe ModuleLoggingConfiguration
$sel:schedulerLogs:LoggingConfiguration' :: LoggingConfiguration -> Maybe ModuleLoggingConfiguration
schedulerLogs} -> Maybe ModuleLoggingConfiguration
schedulerLogs) (\s :: LoggingConfiguration
s@LoggingConfiguration' {} Maybe ModuleLoggingConfiguration
a -> LoggingConfiguration
s {$sel:schedulerLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
schedulerLogs = Maybe ModuleLoggingConfiguration
a} :: LoggingConfiguration)
loggingConfiguration_dagProcessingLogs :: Lens.Lens' LoggingConfiguration (Prelude.Maybe ModuleLoggingConfiguration)
loggingConfiguration_dagProcessingLogs :: (Maybe ModuleLoggingConfiguration
-> f (Maybe ModuleLoggingConfiguration))
-> LoggingConfiguration -> f LoggingConfiguration
loggingConfiguration_dagProcessingLogs = (LoggingConfiguration -> Maybe ModuleLoggingConfiguration)
-> (LoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Lens
LoggingConfiguration
LoggingConfiguration
(Maybe ModuleLoggingConfiguration)
(Maybe ModuleLoggingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfiguration' {Maybe ModuleLoggingConfiguration
dagProcessingLogs :: Maybe ModuleLoggingConfiguration
$sel:dagProcessingLogs:LoggingConfiguration' :: LoggingConfiguration -> Maybe ModuleLoggingConfiguration
dagProcessingLogs} -> Maybe ModuleLoggingConfiguration
dagProcessingLogs) (\s :: LoggingConfiguration
s@LoggingConfiguration' {} Maybe ModuleLoggingConfiguration
a -> LoggingConfiguration
s {$sel:dagProcessingLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
dagProcessingLogs = Maybe ModuleLoggingConfiguration
a} :: LoggingConfiguration)
loggingConfiguration_workerLogs :: Lens.Lens' LoggingConfiguration (Prelude.Maybe ModuleLoggingConfiguration)
loggingConfiguration_workerLogs :: (Maybe ModuleLoggingConfiguration
-> f (Maybe ModuleLoggingConfiguration))
-> LoggingConfiguration -> f LoggingConfiguration
loggingConfiguration_workerLogs = (LoggingConfiguration -> Maybe ModuleLoggingConfiguration)
-> (LoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Lens
LoggingConfiguration
LoggingConfiguration
(Maybe ModuleLoggingConfiguration)
(Maybe ModuleLoggingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfiguration' {Maybe ModuleLoggingConfiguration
workerLogs :: Maybe ModuleLoggingConfiguration
$sel:workerLogs:LoggingConfiguration' :: LoggingConfiguration -> Maybe ModuleLoggingConfiguration
workerLogs} -> Maybe ModuleLoggingConfiguration
workerLogs) (\s :: LoggingConfiguration
s@LoggingConfiguration' {} Maybe ModuleLoggingConfiguration
a -> LoggingConfiguration
s {$sel:workerLogs:LoggingConfiguration' :: Maybe ModuleLoggingConfiguration
workerLogs = Maybe ModuleLoggingConfiguration
a} :: LoggingConfiguration)
instance Core.FromJSON LoggingConfiguration where
parseJSON :: Value -> Parser LoggingConfiguration
parseJSON =
String
-> (Object -> Parser LoggingConfiguration)
-> Value
-> Parser LoggingConfiguration
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LoggingConfiguration"
( \Object
x ->
Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration
LoggingConfiguration'
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration)
-> Parser (Maybe ModuleLoggingConfiguration)
-> Parser
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ModuleLoggingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TaskLogs")
Parser
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration)
-> Parser (Maybe ModuleLoggingConfiguration)
-> Parser
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ModuleLoggingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"WebserverLogs")
Parser
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration
-> LoggingConfiguration)
-> Parser (Maybe ModuleLoggingConfiguration)
-> Parser
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ModuleLoggingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SchedulerLogs")
Parser
(Maybe ModuleLoggingConfiguration
-> Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Parser (Maybe ModuleLoggingConfiguration)
-> Parser
(Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ModuleLoggingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DagProcessingLogs")
Parser (Maybe ModuleLoggingConfiguration -> LoggingConfiguration)
-> Parser (Maybe ModuleLoggingConfiguration)
-> Parser LoggingConfiguration
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ModuleLoggingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"WorkerLogs")
)
instance Prelude.Hashable LoggingConfiguration
instance Prelude.NFData LoggingConfiguration