{-# 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.ZeppelinApplicationConfiguration where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.CatalogConfiguration
import Amazonka.KinesisAnalyticsV2.Types.CustomArtifactConfiguration
import Amazonka.KinesisAnalyticsV2.Types.DeployAsApplicationConfiguration
import Amazonka.KinesisAnalyticsV2.Types.ZeppelinMonitoringConfiguration
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ZeppelinApplicationConfiguration = ZeppelinApplicationConfiguration'
{
ZeppelinApplicationConfiguration
-> Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration :: Prelude.Maybe ZeppelinMonitoringConfiguration,
ZeppelinApplicationConfiguration -> Maybe CatalogConfiguration
catalogConfiguration :: Prelude.Maybe CatalogConfiguration,
ZeppelinApplicationConfiguration
-> Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration :: Prelude.Maybe DeployAsApplicationConfiguration,
ZeppelinApplicationConfiguration
-> Maybe [CustomArtifactConfiguration]
customArtifactsConfiguration :: Prelude.Maybe [CustomArtifactConfiguration]
}
deriving (ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool
(ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool)
-> (ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool)
-> Eq ZeppelinApplicationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool
$c/= :: ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool
== :: ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool
$c== :: ZeppelinApplicationConfiguration
-> ZeppelinApplicationConfiguration -> Bool
Prelude.Eq, ReadPrec [ZeppelinApplicationConfiguration]
ReadPrec ZeppelinApplicationConfiguration
Int -> ReadS ZeppelinApplicationConfiguration
ReadS [ZeppelinApplicationConfiguration]
(Int -> ReadS ZeppelinApplicationConfiguration)
-> ReadS [ZeppelinApplicationConfiguration]
-> ReadPrec ZeppelinApplicationConfiguration
-> ReadPrec [ZeppelinApplicationConfiguration]
-> Read ZeppelinApplicationConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ZeppelinApplicationConfiguration]
$creadListPrec :: ReadPrec [ZeppelinApplicationConfiguration]
readPrec :: ReadPrec ZeppelinApplicationConfiguration
$creadPrec :: ReadPrec ZeppelinApplicationConfiguration
readList :: ReadS [ZeppelinApplicationConfiguration]
$creadList :: ReadS [ZeppelinApplicationConfiguration]
readsPrec :: Int -> ReadS ZeppelinApplicationConfiguration
$creadsPrec :: Int -> ReadS ZeppelinApplicationConfiguration
Prelude.Read, Int -> ZeppelinApplicationConfiguration -> ShowS
[ZeppelinApplicationConfiguration] -> ShowS
ZeppelinApplicationConfiguration -> String
(Int -> ZeppelinApplicationConfiguration -> ShowS)
-> (ZeppelinApplicationConfiguration -> String)
-> ([ZeppelinApplicationConfiguration] -> ShowS)
-> Show ZeppelinApplicationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ZeppelinApplicationConfiguration] -> ShowS
$cshowList :: [ZeppelinApplicationConfiguration] -> ShowS
show :: ZeppelinApplicationConfiguration -> String
$cshow :: ZeppelinApplicationConfiguration -> String
showsPrec :: Int -> ZeppelinApplicationConfiguration -> ShowS
$cshowsPrec :: Int -> ZeppelinApplicationConfiguration -> ShowS
Prelude.Show, (forall x.
ZeppelinApplicationConfiguration
-> Rep ZeppelinApplicationConfiguration x)
-> (forall x.
Rep ZeppelinApplicationConfiguration x
-> ZeppelinApplicationConfiguration)
-> Generic ZeppelinApplicationConfiguration
forall x.
Rep ZeppelinApplicationConfiguration x
-> ZeppelinApplicationConfiguration
forall x.
ZeppelinApplicationConfiguration
-> Rep ZeppelinApplicationConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ZeppelinApplicationConfiguration x
-> ZeppelinApplicationConfiguration
$cfrom :: forall x.
ZeppelinApplicationConfiguration
-> Rep ZeppelinApplicationConfiguration x
Prelude.Generic)
newZeppelinApplicationConfiguration ::
ZeppelinApplicationConfiguration
newZeppelinApplicationConfiguration :: ZeppelinApplicationConfiguration
newZeppelinApplicationConfiguration =
ZeppelinApplicationConfiguration' :: Maybe ZeppelinMonitoringConfiguration
-> Maybe CatalogConfiguration
-> Maybe DeployAsApplicationConfiguration
-> Maybe [CustomArtifactConfiguration]
-> ZeppelinApplicationConfiguration
ZeppelinApplicationConfiguration'
{ $sel:monitoringConfiguration:ZeppelinApplicationConfiguration' :: Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration =
Maybe ZeppelinMonitoringConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:catalogConfiguration:ZeppelinApplicationConfiguration' :: Maybe CatalogConfiguration
catalogConfiguration = Maybe CatalogConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:deployAsApplicationConfiguration:ZeppelinApplicationConfiguration' :: Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration =
Maybe DeployAsApplicationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:customArtifactsConfiguration:ZeppelinApplicationConfiguration' :: Maybe [CustomArtifactConfiguration]
customArtifactsConfiguration =
Maybe [CustomArtifactConfiguration]
forall a. Maybe a
Prelude.Nothing
}
zeppelinApplicationConfiguration_monitoringConfiguration :: Lens.Lens' ZeppelinApplicationConfiguration (Prelude.Maybe ZeppelinMonitoringConfiguration)
zeppelinApplicationConfiguration_monitoringConfiguration :: (Maybe ZeppelinMonitoringConfiguration
-> f (Maybe ZeppelinMonitoringConfiguration))
-> ZeppelinApplicationConfiguration
-> f ZeppelinApplicationConfiguration
zeppelinApplicationConfiguration_monitoringConfiguration = (ZeppelinApplicationConfiguration
-> Maybe ZeppelinMonitoringConfiguration)
-> (ZeppelinApplicationConfiguration
-> Maybe ZeppelinMonitoringConfiguration
-> ZeppelinApplicationConfiguration)
-> Lens
ZeppelinApplicationConfiguration
ZeppelinApplicationConfiguration
(Maybe ZeppelinMonitoringConfiguration)
(Maybe ZeppelinMonitoringConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfiguration' {Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration :: Maybe ZeppelinMonitoringConfiguration
$sel:monitoringConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration
-> Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration} -> Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration) (\s :: ZeppelinApplicationConfiguration
s@ZeppelinApplicationConfiguration' {} Maybe ZeppelinMonitoringConfiguration
a -> ZeppelinApplicationConfiguration
s {$sel:monitoringConfiguration:ZeppelinApplicationConfiguration' :: Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration = Maybe ZeppelinMonitoringConfiguration
a} :: ZeppelinApplicationConfiguration)
zeppelinApplicationConfiguration_catalogConfiguration :: Lens.Lens' ZeppelinApplicationConfiguration (Prelude.Maybe CatalogConfiguration)
zeppelinApplicationConfiguration_catalogConfiguration :: (Maybe CatalogConfiguration -> f (Maybe CatalogConfiguration))
-> ZeppelinApplicationConfiguration
-> f ZeppelinApplicationConfiguration
zeppelinApplicationConfiguration_catalogConfiguration = (ZeppelinApplicationConfiguration -> Maybe CatalogConfiguration)
-> (ZeppelinApplicationConfiguration
-> Maybe CatalogConfiguration -> ZeppelinApplicationConfiguration)
-> Lens
ZeppelinApplicationConfiguration
ZeppelinApplicationConfiguration
(Maybe CatalogConfiguration)
(Maybe CatalogConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfiguration' {Maybe CatalogConfiguration
catalogConfiguration :: Maybe CatalogConfiguration
$sel:catalogConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration -> Maybe CatalogConfiguration
catalogConfiguration} -> Maybe CatalogConfiguration
catalogConfiguration) (\s :: ZeppelinApplicationConfiguration
s@ZeppelinApplicationConfiguration' {} Maybe CatalogConfiguration
a -> ZeppelinApplicationConfiguration
s {$sel:catalogConfiguration:ZeppelinApplicationConfiguration' :: Maybe CatalogConfiguration
catalogConfiguration = Maybe CatalogConfiguration
a} :: ZeppelinApplicationConfiguration)
zeppelinApplicationConfiguration_deployAsApplicationConfiguration :: Lens.Lens' ZeppelinApplicationConfiguration (Prelude.Maybe DeployAsApplicationConfiguration)
zeppelinApplicationConfiguration_deployAsApplicationConfiguration :: (Maybe DeployAsApplicationConfiguration
-> f (Maybe DeployAsApplicationConfiguration))
-> ZeppelinApplicationConfiguration
-> f ZeppelinApplicationConfiguration
zeppelinApplicationConfiguration_deployAsApplicationConfiguration = (ZeppelinApplicationConfiguration
-> Maybe DeployAsApplicationConfiguration)
-> (ZeppelinApplicationConfiguration
-> Maybe DeployAsApplicationConfiguration
-> ZeppelinApplicationConfiguration)
-> Lens
ZeppelinApplicationConfiguration
ZeppelinApplicationConfiguration
(Maybe DeployAsApplicationConfiguration)
(Maybe DeployAsApplicationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfiguration' {Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration :: Maybe DeployAsApplicationConfiguration
$sel:deployAsApplicationConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration
-> Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration} -> Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration) (\s :: ZeppelinApplicationConfiguration
s@ZeppelinApplicationConfiguration' {} Maybe DeployAsApplicationConfiguration
a -> ZeppelinApplicationConfiguration
s {$sel:deployAsApplicationConfiguration:ZeppelinApplicationConfiguration' :: Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration = Maybe DeployAsApplicationConfiguration
a} :: ZeppelinApplicationConfiguration)
zeppelinApplicationConfiguration_customArtifactsConfiguration :: Lens.Lens' ZeppelinApplicationConfiguration (Prelude.Maybe [CustomArtifactConfiguration])
zeppelinApplicationConfiguration_customArtifactsConfiguration :: (Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> ZeppelinApplicationConfiguration
-> f ZeppelinApplicationConfiguration
zeppelinApplicationConfiguration_customArtifactsConfiguration = (ZeppelinApplicationConfiguration
-> Maybe [CustomArtifactConfiguration])
-> (ZeppelinApplicationConfiguration
-> Maybe [CustomArtifactConfiguration]
-> ZeppelinApplicationConfiguration)
-> Lens
ZeppelinApplicationConfiguration
ZeppelinApplicationConfiguration
(Maybe [CustomArtifactConfiguration])
(Maybe [CustomArtifactConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ZeppelinApplicationConfiguration' {Maybe [CustomArtifactConfiguration]
customArtifactsConfiguration :: Maybe [CustomArtifactConfiguration]
$sel:customArtifactsConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration
-> Maybe [CustomArtifactConfiguration]
customArtifactsConfiguration} -> Maybe [CustomArtifactConfiguration]
customArtifactsConfiguration) (\s :: ZeppelinApplicationConfiguration
s@ZeppelinApplicationConfiguration' {} Maybe [CustomArtifactConfiguration]
a -> ZeppelinApplicationConfiguration
s {$sel:customArtifactsConfiguration:ZeppelinApplicationConfiguration' :: Maybe [CustomArtifactConfiguration]
customArtifactsConfiguration = Maybe [CustomArtifactConfiguration]
a} :: ZeppelinApplicationConfiguration) ((Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> ZeppelinApplicationConfiguration
-> f ZeppelinApplicationConfiguration)
-> ((Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> (Maybe [CustomArtifactConfiguration]
-> f (Maybe [CustomArtifactConfiguration]))
-> ZeppelinApplicationConfiguration
-> f ZeppelinApplicationConfiguration
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
instance
Prelude.Hashable
ZeppelinApplicationConfiguration
instance
Prelude.NFData
ZeppelinApplicationConfiguration
instance Core.ToJSON ZeppelinApplicationConfiguration where
toJSON :: ZeppelinApplicationConfiguration -> Value
toJSON ZeppelinApplicationConfiguration' {Maybe [CustomArtifactConfiguration]
Maybe CatalogConfiguration
Maybe DeployAsApplicationConfiguration
Maybe ZeppelinMonitoringConfiguration
customArtifactsConfiguration :: Maybe [CustomArtifactConfiguration]
deployAsApplicationConfiguration :: Maybe DeployAsApplicationConfiguration
catalogConfiguration :: Maybe CatalogConfiguration
monitoringConfiguration :: Maybe ZeppelinMonitoringConfiguration
$sel:customArtifactsConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration
-> Maybe [CustomArtifactConfiguration]
$sel:deployAsApplicationConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration
-> Maybe DeployAsApplicationConfiguration
$sel:catalogConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration -> Maybe CatalogConfiguration
$sel:monitoringConfiguration:ZeppelinApplicationConfiguration' :: ZeppelinApplicationConfiguration
-> Maybe ZeppelinMonitoringConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"MonitoringConfiguration" Text -> ZeppelinMonitoringConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ZeppelinMonitoringConfiguration -> Pair)
-> Maybe ZeppelinMonitoringConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ZeppelinMonitoringConfiguration
monitoringConfiguration,
(Text
"CatalogConfiguration" Text -> CatalogConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CatalogConfiguration -> Pair)
-> Maybe CatalogConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CatalogConfiguration
catalogConfiguration,
(Text
"DeployAsApplicationConfiguration" Text -> DeployAsApplicationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DeployAsApplicationConfiguration -> Pair)
-> Maybe DeployAsApplicationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeployAsApplicationConfiguration
deployAsApplicationConfiguration,
(Text
"CustomArtifactsConfiguration" 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]
customArtifactsConfiguration
]
)