module Stratosphere.EMRServerless.Application.InteractiveConfigurationProperty (
InteractiveConfigurationProperty(..),
mkInteractiveConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InteractiveConfigurationProperty
=
InteractiveConfigurationProperty {InteractiveConfigurationProperty -> ()
haddock_workaround_ :: (),
InteractiveConfigurationProperty -> Maybe (Value Bool)
livyEndpointEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
InteractiveConfigurationProperty -> Maybe (Value Bool)
studioEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool
(InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool)
-> (InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool)
-> Eq InteractiveConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool
== :: InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool
$c/= :: InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool
/= :: InteractiveConfigurationProperty
-> InteractiveConfigurationProperty -> Bool
Prelude.Eq, Int -> InteractiveConfigurationProperty -> ShowS
[InteractiveConfigurationProperty] -> ShowS
InteractiveConfigurationProperty -> String
(Int -> InteractiveConfigurationProperty -> ShowS)
-> (InteractiveConfigurationProperty -> String)
-> ([InteractiveConfigurationProperty] -> ShowS)
-> Show InteractiveConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InteractiveConfigurationProperty -> ShowS
showsPrec :: Int -> InteractiveConfigurationProperty -> ShowS
$cshow :: InteractiveConfigurationProperty -> String
show :: InteractiveConfigurationProperty -> String
$cshowList :: [InteractiveConfigurationProperty] -> ShowS
showList :: [InteractiveConfigurationProperty] -> ShowS
Prelude.Show)
mkInteractiveConfigurationProperty ::
InteractiveConfigurationProperty
mkInteractiveConfigurationProperty :: InteractiveConfigurationProperty
mkInteractiveConfigurationProperty
= InteractiveConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), livyEndpointEnabled :: Maybe (Value Bool)
livyEndpointEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
studioEnabled :: Maybe (Value Bool)
studioEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InteractiveConfigurationProperty where
toResourceProperties :: InteractiveConfigurationProperty -> ResourceProperties
toResourceProperties InteractiveConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: InteractiveConfigurationProperty -> ()
livyEndpointEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
studioEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
livyEndpointEnabled :: Maybe (Value Bool)
studioEnabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMRServerless::Application.InteractiveConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LivyEndpointEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
livyEndpointEnabled,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StudioEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
studioEnabled])}
instance JSON.ToJSON InteractiveConfigurationProperty where
toJSON :: InteractiveConfigurationProperty -> Value
toJSON InteractiveConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: InteractiveConfigurationProperty -> ()
livyEndpointEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
studioEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
livyEndpointEnabled :: Maybe (Value Bool)
studioEnabled :: Maybe (Value Bool)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LivyEndpointEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
livyEndpointEnabled,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StudioEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
studioEnabled]))
instance Property "LivyEndpointEnabled" InteractiveConfigurationProperty where
type PropertyType "LivyEndpointEnabled" InteractiveConfigurationProperty = Value Prelude.Bool
set :: PropertyType "LivyEndpointEnabled" InteractiveConfigurationProperty
-> InteractiveConfigurationProperty
-> InteractiveConfigurationProperty
set PropertyType "LivyEndpointEnabled" InteractiveConfigurationProperty
newValue InteractiveConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: InteractiveConfigurationProperty -> ()
livyEndpointEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
studioEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
livyEndpointEnabled :: Maybe (Value Bool)
studioEnabled :: Maybe (Value Bool)
..}
= InteractiveConfigurationProperty
{livyEndpointEnabled :: Maybe (Value Bool)
livyEndpointEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LivyEndpointEnabled" InteractiveConfigurationProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
studioEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
studioEnabled :: Maybe (Value Bool)
..}
instance Property "StudioEnabled" InteractiveConfigurationProperty where
type PropertyType "StudioEnabled" InteractiveConfigurationProperty = Value Prelude.Bool
set :: PropertyType "StudioEnabled" InteractiveConfigurationProperty
-> InteractiveConfigurationProperty
-> InteractiveConfigurationProperty
set PropertyType "StudioEnabled" InteractiveConfigurationProperty
newValue InteractiveConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: InteractiveConfigurationProperty -> ()
livyEndpointEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
studioEnabled :: InteractiveConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
livyEndpointEnabled :: Maybe (Value Bool)
studioEnabled :: Maybe (Value Bool)
..}
= InteractiveConfigurationProperty
{studioEnabled :: Maybe (Value Bool)
studioEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StudioEnabled" InteractiveConfigurationProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
livyEndpointEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
livyEndpointEnabled :: Maybe (Value Bool)
..}