{-# 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.KinesisAnalyticsV2.Types.ZeppelinApplicationConfigurationUpdate where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.CatalogConfigurationUpdate
import Amazonka.KinesisAnalyticsV2.Types.CustomArtifactConfiguration
import Amazonka.KinesisAnalyticsV2.Types.DeployAsApplicationConfigurationUpdate
import Amazonka.KinesisAnalyticsV2.Types.ZeppelinMonitoringConfigurationUpdate
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ZeppelinApplicationConfigurationUpdate = ZeppelinApplicationConfigurationUpdate'
{
ZeppelinApplicationConfigurationUpdate
-> Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate :: Prelude.Maybe [CustomArtifactConfiguration],
ZeppelinApplicationConfigurationUpdate
-> Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate :: Prelude.Maybe CatalogConfigurationUpdate,
ZeppelinApplicationConfigurationUpdate
-> Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate :: Prelude.Maybe DeployAsApplicationConfigurationUpdate,
ZeppelinApplicationConfigurationUpdate
-> Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate :: Prelude.Maybe ZeppelinMonitoringConfigurationUpdate
}
deriving (ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool
(ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool)
-> (ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool)
-> Eq ZeppelinApplicationConfigurationUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool
$c/= :: ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool
== :: ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool
$c== :: ZeppelinApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate -> Bool
Prelude.Eq, ReadPrec [ZeppelinApplicationConfigurationUpdate]
ReadPrec ZeppelinApplicationConfigurationUpdate
Int -> ReadS ZeppelinApplicationConfigurationUpdate
ReadS [ZeppelinApplicationConfigurationUpdate]
(Int -> ReadS ZeppelinApplicationConfigurationUpdate)
-> ReadS [ZeppelinApplicationConfigurationUpdate]
-> ReadPrec ZeppelinApplicationConfigurationUpdate
-> ReadPrec [ZeppelinApplicationConfigurationUpdate]
-> Read ZeppelinApplicationConfigurationUpdate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ZeppelinApplicationConfigurationUpdate]
$creadListPrec :: ReadPrec [ZeppelinApplicationConfigurationUpdate]
readPrec :: ReadPrec ZeppelinApplicationConfigurationUpdate
$creadPrec :: ReadPrec ZeppelinApplicationConfigurationUpdate
readList :: ReadS [ZeppelinApplicationConfigurationUpdate]
$creadList :: ReadS [ZeppelinApplicationConfigurationUpdate]
readsPrec :: Int -> ReadS ZeppelinApplicationConfigurationUpdate
$creadsPrec :: Int -> ReadS ZeppelinApplicationConfigurationUpdate
Prelude.Read, Int -> ZeppelinApplicationConfigurationUpdate -> ShowS
[ZeppelinApplicationConfigurationUpdate] -> ShowS
ZeppelinApplicationConfigurationUpdate -> String
(Int -> ZeppelinApplicationConfigurationUpdate -> ShowS)
-> (ZeppelinApplicationConfigurationUpdate -> String)
-> ([ZeppelinApplicationConfigurationUpdate] -> ShowS)
-> Show ZeppelinApplicationConfigurationUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ZeppelinApplicationConfigurationUpdate] -> ShowS
$cshowList :: [ZeppelinApplicationConfigurationUpdate] -> ShowS
show :: ZeppelinApplicationConfigurationUpdate -> String
$cshow :: ZeppelinApplicationConfigurationUpdate -> String
showsPrec :: Int -> ZeppelinApplicationConfigurationUpdate -> ShowS
$cshowsPrec :: Int -> ZeppelinApplicationConfigurationUpdate -> ShowS
Prelude.Show, (forall x.
ZeppelinApplicationConfigurationUpdate
-> Rep ZeppelinApplicationConfigurationUpdate x)
-> (forall x.
Rep ZeppelinApplicationConfigurationUpdate x
-> ZeppelinApplicationConfigurationUpdate)
-> Generic ZeppelinApplicationConfigurationUpdate
forall x.
Rep ZeppelinApplicationConfigurationUpdate x
-> ZeppelinApplicationConfigurationUpdate
forall x.
ZeppelinApplicationConfigurationUpdate
-> Rep ZeppelinApplicationConfigurationUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ZeppelinApplicationConfigurationUpdate x
-> ZeppelinApplicationConfigurationUpdate
$cfrom :: forall x.
ZeppelinApplicationConfigurationUpdate
-> Rep ZeppelinApplicationConfigurationUpdate x
Prelude.Generic)
newZeppelinApplicationConfigurationUpdate ::
ZeppelinApplicationConfigurationUpdate
newZeppelinApplicationConfigurationUpdate :: ZeppelinApplicationConfigurationUpdate
newZeppelinApplicationConfigurationUpdate =
ZeppelinApplicationConfigurationUpdate' :: Maybe [CustomArtifactConfiguration]
-> Maybe CatalogConfigurationUpdate
-> Maybe DeployAsApplicationConfigurationUpdate
-> Maybe ZeppelinMonitoringConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate
ZeppelinApplicationConfigurationUpdate'
{ $sel:customArtifactsConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate =
Maybe [CustomArtifactConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:catalogConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate =
Maybe CatalogConfigurationUpdate
forall a. Maybe a
Prelude.Nothing,
$sel:deployAsApplicationConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate =
Maybe DeployAsApplicationConfigurationUpdate
forall a. Maybe a
Prelude.Nothing,
$sel:monitoringConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate =
Maybe ZeppelinMonitoringConfigurationUpdate
forall a. Maybe a
Prelude.Nothing
}
zeppelinApplicationConfigurationUpdate_customArtifactsConfigurationUpdate :: Lens.Lens' ZeppelinApplicationConfigurationUpdate (Prelude.Maybe [CustomArtifactConfiguration])
zeppelinApplicationConfigurationUpdate_customArtifactsConfigurationUpdate :: (Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> ZeppelinApplicationConfigurationUpdate
-> f ZeppelinApplicationConfigurationUpdate
zeppelinApplicationConfigurationUpdate_customArtifactsConfigurationUpdate = (ZeppelinApplicationConfigurationUpdate
-> Maybe [CustomArtifactConfiguration])
-> (ZeppelinApplicationConfigurationUpdate
-> Maybe [CustomArtifactConfiguration]
-> ZeppelinApplicationConfigurationUpdate)
-> Lens
ZeppelinApplicationConfigurationUpdate
ZeppelinApplicationConfigurationUpdate
(Maybe [CustomArtifactConfiguration])
(Maybe [CustomArtifactConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfigurationUpdate' {Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate :: Maybe [CustomArtifactConfiguration]
$sel:customArtifactsConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate} -> Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate) (\s :: ZeppelinApplicationConfigurationUpdate
s@ZeppelinApplicationConfigurationUpdate' {} Maybe [CustomArtifactConfiguration]
a -> ZeppelinApplicationConfigurationUpdate
s {$sel:customArtifactsConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate = Maybe [CustomArtifactConfiguration]
a} :: ZeppelinApplicationConfigurationUpdate) ((Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> ZeppelinApplicationConfigurationUpdate
-> f ZeppelinApplicationConfigurationUpdate)
-> ((Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> (Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> ZeppelinApplicationConfigurationUpdate
-> f ZeppelinApplicationConfigurationUpdate
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CustomArtifactConfiguration]
[CustomArtifactConfiguration]
[CustomArtifactConfiguration]
[CustomArtifactConfiguration]
-> Iso
(Maybe [CustomArtifactConfiguration])
(Maybe [CustomArtifactConfiguration])
(Maybe [CustomArtifactConfiguration])
(Maybe [CustomArtifactConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[CustomArtifactConfiguration]
[CustomArtifactConfiguration]
[CustomArtifactConfiguration]
[CustomArtifactConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
zeppelinApplicationConfigurationUpdate_catalogConfigurationUpdate :: Lens.Lens' ZeppelinApplicationConfigurationUpdate (Prelude.Maybe CatalogConfigurationUpdate)
zeppelinApplicationConfigurationUpdate_catalogConfigurationUpdate :: (Maybe CatalogConfigurationUpdate
-> f (Maybe CatalogConfigurationUpdate))
-> ZeppelinApplicationConfigurationUpdate
-> f ZeppelinApplicationConfigurationUpdate
zeppelinApplicationConfigurationUpdate_catalogConfigurationUpdate = (ZeppelinApplicationConfigurationUpdate
-> Maybe CatalogConfigurationUpdate)
-> (ZeppelinApplicationConfigurationUpdate
-> Maybe CatalogConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate)
-> Lens
ZeppelinApplicationConfigurationUpdate
ZeppelinApplicationConfigurationUpdate
(Maybe CatalogConfigurationUpdate)
(Maybe CatalogConfigurationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfigurationUpdate' {Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate :: Maybe CatalogConfigurationUpdate
$sel:catalogConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate} -> Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate) (\s :: ZeppelinApplicationConfigurationUpdate
s@ZeppelinApplicationConfigurationUpdate' {} Maybe CatalogConfigurationUpdate
a -> ZeppelinApplicationConfigurationUpdate
s {$sel:catalogConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate = Maybe CatalogConfigurationUpdate
a} :: ZeppelinApplicationConfigurationUpdate)
zeppelinApplicationConfigurationUpdate_deployAsApplicationConfigurationUpdate :: Lens.Lens' ZeppelinApplicationConfigurationUpdate (Prelude.Maybe DeployAsApplicationConfigurationUpdate)
zeppelinApplicationConfigurationUpdate_deployAsApplicationConfigurationUpdate :: (Maybe DeployAsApplicationConfigurationUpdate
-> f (Maybe DeployAsApplicationConfigurationUpdate))
-> ZeppelinApplicationConfigurationUpdate
-> f ZeppelinApplicationConfigurationUpdate
zeppelinApplicationConfigurationUpdate_deployAsApplicationConfigurationUpdate = (ZeppelinApplicationConfigurationUpdate
-> Maybe DeployAsApplicationConfigurationUpdate)
-> (ZeppelinApplicationConfigurationUpdate
-> Maybe DeployAsApplicationConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate)
-> Lens
ZeppelinApplicationConfigurationUpdate
ZeppelinApplicationConfigurationUpdate
(Maybe DeployAsApplicationConfigurationUpdate)
(Maybe DeployAsApplicationConfigurationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfigurationUpdate' {Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate :: Maybe DeployAsApplicationConfigurationUpdate
$sel:deployAsApplicationConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate} -> Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate) (\s :: ZeppelinApplicationConfigurationUpdate
s@ZeppelinApplicationConfigurationUpdate' {} Maybe DeployAsApplicationConfigurationUpdate
a -> ZeppelinApplicationConfigurationUpdate
s {$sel:deployAsApplicationConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate = Maybe DeployAsApplicationConfigurationUpdate
a} :: ZeppelinApplicationConfigurationUpdate)
zeppelinApplicationConfigurationUpdate_monitoringConfigurationUpdate :: Lens.Lens' ZeppelinApplicationConfigurationUpdate (Prelude.Maybe ZeppelinMonitoringConfigurationUpdate)
zeppelinApplicationConfigurationUpdate_monitoringConfigurationUpdate :: (Maybe ZeppelinMonitoringConfigurationUpdate
-> f (Maybe ZeppelinMonitoringConfigurationUpdate))
-> ZeppelinApplicationConfigurationUpdate
-> f ZeppelinApplicationConfigurationUpdate
zeppelinApplicationConfigurationUpdate_monitoringConfigurationUpdate = (ZeppelinApplicationConfigurationUpdate
-> Maybe ZeppelinMonitoringConfigurationUpdate)
-> (ZeppelinApplicationConfigurationUpdate
-> Maybe ZeppelinMonitoringConfigurationUpdate
-> ZeppelinApplicationConfigurationUpdate)
-> Lens
ZeppelinApplicationConfigurationUpdate
ZeppelinApplicationConfigurationUpdate
(Maybe ZeppelinMonitoringConfigurationUpdate)
(Maybe ZeppelinMonitoringConfigurationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfigurationUpdate' {Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate :: Maybe ZeppelinMonitoringConfigurationUpdate
$sel:monitoringConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate} -> Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate) (\s :: ZeppelinApplicationConfigurationUpdate
s@ZeppelinApplicationConfigurationUpdate' {} Maybe ZeppelinMonitoringConfigurationUpdate
a -> ZeppelinApplicationConfigurationUpdate
s {$sel:monitoringConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate = Maybe ZeppelinMonitoringConfigurationUpdate
a} :: ZeppelinApplicationConfigurationUpdate)
instance
Prelude.Hashable
ZeppelinApplicationConfigurationUpdate
instance
Prelude.NFData
ZeppelinApplicationConfigurationUpdate
instance
Core.ToJSON
ZeppelinApplicationConfigurationUpdate
where
toJSON :: ZeppelinApplicationConfigurationUpdate -> Value
toJSON ZeppelinApplicationConfigurationUpdate' {Maybe [CustomArtifactConfiguration]
Maybe CatalogConfigurationUpdate
Maybe DeployAsApplicationConfigurationUpdate
Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate :: Maybe ZeppelinMonitoringConfigurationUpdate
deployAsApplicationConfigurationUpdate :: Maybe DeployAsApplicationConfigurationUpdate
catalogConfigurationUpdate :: Maybe CatalogConfigurationUpdate
customArtifactsConfigurationUpdate :: Maybe [CustomArtifactConfiguration]
$sel:monitoringConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe ZeppelinMonitoringConfigurationUpdate
$sel:deployAsApplicationConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe DeployAsApplicationConfigurationUpdate
$sel:catalogConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe CatalogConfigurationUpdate
$sel:customArtifactsConfigurationUpdate:ZeppelinApplicationConfigurationUpdate' :: ZeppelinApplicationConfigurationUpdate
-> Maybe [CustomArtifactConfiguration]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CustomArtifactsConfigurationUpdate" Text -> [CustomArtifactConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([CustomArtifactConfiguration] -> Pair)
-> Maybe [CustomArtifactConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CustomArtifactConfiguration]
customArtifactsConfigurationUpdate,
(Text
"CatalogConfigurationUpdate" Text -> CatalogConfigurationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CatalogConfigurationUpdate -> Pair)
-> Maybe CatalogConfigurationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CatalogConfigurationUpdate
catalogConfigurationUpdate,
(Text
"DeployAsApplicationConfigurationUpdate" Text -> DeployAsApplicationConfigurationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DeployAsApplicationConfigurationUpdate -> Pair)
-> Maybe DeployAsApplicationConfigurationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeployAsApplicationConfigurationUpdate
deployAsApplicationConfigurationUpdate,
(Text
"MonitoringConfigurationUpdate" Text -> ZeppelinMonitoringConfigurationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ZeppelinMonitoringConfigurationUpdate -> Pair)
-> Maybe ZeppelinMonitoringConfigurationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ZeppelinMonitoringConfigurationUpdate
monitoringConfigurationUpdate
]
)