module Stratosphere.AppStream.Stack.ApplicationSettingsProperty (
ApplicationSettingsProperty(..), mkApplicationSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApplicationSettingsProperty
=
ApplicationSettingsProperty {ApplicationSettingsProperty -> ()
haddock_workaround_ :: (),
ApplicationSettingsProperty -> Value Bool
enabled :: (Value Prelude.Bool),
ApplicationSettingsProperty -> Maybe (Value Text)
settingsGroup :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
(ApplicationSettingsProperty
-> ApplicationSettingsProperty -> Bool)
-> (ApplicationSettingsProperty
-> ApplicationSettingsProperty -> Bool)
-> Eq ApplicationSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
== :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
$c/= :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
/= :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
Prelude.Eq, Int -> ApplicationSettingsProperty -> ShowS
[ApplicationSettingsProperty] -> ShowS
ApplicationSettingsProperty -> String
(Int -> ApplicationSettingsProperty -> ShowS)
-> (ApplicationSettingsProperty -> String)
-> ([ApplicationSettingsProperty] -> ShowS)
-> Show ApplicationSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationSettingsProperty -> ShowS
showsPrec :: Int -> ApplicationSettingsProperty -> ShowS
$cshow :: ApplicationSettingsProperty -> String
show :: ApplicationSettingsProperty -> String
$cshowList :: [ApplicationSettingsProperty] -> ShowS
showList :: [ApplicationSettingsProperty] -> ShowS
Prelude.Show)
mkApplicationSettingsProperty ::
Value Prelude.Bool -> ApplicationSettingsProperty
mkApplicationSettingsProperty :: Value Bool -> ApplicationSettingsProperty
mkApplicationSettingsProperty Value Bool
enabled
= ApplicationSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
settingsGroup :: Maybe (Value Text)
settingsGroup = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApplicationSettingsProperty where
toResourceProperties :: ApplicationSettingsProperty -> ResourceProperties
toResourceProperties ApplicationSettingsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ApplicationSettingsProperty -> ()
enabled :: ApplicationSettingsProperty -> Value Bool
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
settingsGroup :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppStream::Stack.ApplicationSettings",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Enabled" 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..= Value Bool
enabled]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SettingsGroup" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
settingsGroup]))}
instance JSON.ToJSON ApplicationSettingsProperty where
toJSON :: ApplicationSettingsProperty -> Value
toJSON ApplicationSettingsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ApplicationSettingsProperty -> ()
enabled :: ApplicationSettingsProperty -> Value Bool
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
settingsGroup :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Enabled" 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..= Value Bool
enabled]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SettingsGroup" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
settingsGroup])))
instance Property "Enabled" ApplicationSettingsProperty where
type PropertyType "Enabled" ApplicationSettingsProperty = Value Prelude.Bool
set :: PropertyType "Enabled" ApplicationSettingsProperty
-> ApplicationSettingsProperty -> ApplicationSettingsProperty
set PropertyType "Enabled" ApplicationSettingsProperty
newValue ApplicationSettingsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ApplicationSettingsProperty -> ()
enabled :: ApplicationSettingsProperty -> Value Bool
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
settingsGroup :: Maybe (Value Text)
..}
= ApplicationSettingsProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" ApplicationSettingsProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
..}
instance Property "SettingsGroup" ApplicationSettingsProperty where
type PropertyType "SettingsGroup" ApplicationSettingsProperty = Value Prelude.Text
set :: PropertyType "SettingsGroup" ApplicationSettingsProperty
-> ApplicationSettingsProperty -> ApplicationSettingsProperty
set PropertyType "SettingsGroup" ApplicationSettingsProperty
newValue ApplicationSettingsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ApplicationSettingsProperty -> ()
enabled :: ApplicationSettingsProperty -> Value Bool
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
settingsGroup :: Maybe (Value Text)
..}
= ApplicationSettingsProperty
{settingsGroup :: Maybe (Value Text)
settingsGroup = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SettingsGroup" ApplicationSettingsProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}