module Stratosphere.MediaLive.Channel.MotionGraphicsSettingsProperty (
module Exports, MotionGraphicsSettingsProperty(..),
mkMotionGraphicsSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.HtmlMotionGraphicsSettingsProperty as Exports
import Stratosphere.ResourceProperties
data MotionGraphicsSettingsProperty
=
MotionGraphicsSettingsProperty {MotionGraphicsSettingsProperty -> ()
haddock_workaround_ :: (),
MotionGraphicsSettingsProperty
-> Maybe HtmlMotionGraphicsSettingsProperty
htmlMotionGraphicsSettings :: (Prelude.Maybe HtmlMotionGraphicsSettingsProperty)}
deriving stock (MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool
(MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool)
-> (MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool)
-> Eq MotionGraphicsSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool
== :: MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool
$c/= :: MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool
/= :: MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> Bool
Prelude.Eq, Int -> MotionGraphicsSettingsProperty -> ShowS
[MotionGraphicsSettingsProperty] -> ShowS
MotionGraphicsSettingsProperty -> String
(Int -> MotionGraphicsSettingsProperty -> ShowS)
-> (MotionGraphicsSettingsProperty -> String)
-> ([MotionGraphicsSettingsProperty] -> ShowS)
-> Show MotionGraphicsSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MotionGraphicsSettingsProperty -> ShowS
showsPrec :: Int -> MotionGraphicsSettingsProperty -> ShowS
$cshow :: MotionGraphicsSettingsProperty -> String
show :: MotionGraphicsSettingsProperty -> String
$cshowList :: [MotionGraphicsSettingsProperty] -> ShowS
showList :: [MotionGraphicsSettingsProperty] -> ShowS
Prelude.Show)
mkMotionGraphicsSettingsProperty :: MotionGraphicsSettingsProperty
mkMotionGraphicsSettingsProperty :: MotionGraphicsSettingsProperty
mkMotionGraphicsSettingsProperty
= MotionGraphicsSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
htmlMotionGraphicsSettings :: Maybe HtmlMotionGraphicsSettingsProperty
htmlMotionGraphicsSettings = Maybe HtmlMotionGraphicsSettingsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MotionGraphicsSettingsProperty where
toResourceProperties :: MotionGraphicsSettingsProperty -> ResourceProperties
toResourceProperties MotionGraphicsSettingsProperty {Maybe HtmlMotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsSettingsProperty -> ()
htmlMotionGraphicsSettings :: MotionGraphicsSettingsProperty
-> Maybe HtmlMotionGraphicsSettingsProperty
haddock_workaround_ :: ()
htmlMotionGraphicsSettings :: Maybe HtmlMotionGraphicsSettingsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.MotionGraphicsSettings",
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 -> HtmlMotionGraphicsSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HtmlMotionGraphicsSettings"
(HtmlMotionGraphicsSettingsProperty -> (Key, Value))
-> Maybe HtmlMotionGraphicsSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HtmlMotionGraphicsSettingsProperty
htmlMotionGraphicsSettings])}
instance JSON.ToJSON MotionGraphicsSettingsProperty where
toJSON :: MotionGraphicsSettingsProperty -> Value
toJSON MotionGraphicsSettingsProperty {Maybe HtmlMotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsSettingsProperty -> ()
htmlMotionGraphicsSettings :: MotionGraphicsSettingsProperty
-> Maybe HtmlMotionGraphicsSettingsProperty
haddock_workaround_ :: ()
htmlMotionGraphicsSettings :: Maybe HtmlMotionGraphicsSettingsProperty
..}
= [(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 -> HtmlMotionGraphicsSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HtmlMotionGraphicsSettings"
(HtmlMotionGraphicsSettingsProperty -> (Key, Value))
-> Maybe HtmlMotionGraphicsSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HtmlMotionGraphicsSettingsProperty
htmlMotionGraphicsSettings]))
instance Property "HtmlMotionGraphicsSettings" MotionGraphicsSettingsProperty where
type PropertyType "HtmlMotionGraphicsSettings" MotionGraphicsSettingsProperty = HtmlMotionGraphicsSettingsProperty
set :: PropertyType
"HtmlMotionGraphicsSettings" MotionGraphicsSettingsProperty
-> MotionGraphicsSettingsProperty -> MotionGraphicsSettingsProperty
set PropertyType
"HtmlMotionGraphicsSettings" MotionGraphicsSettingsProperty
newValue MotionGraphicsSettingsProperty {Maybe HtmlMotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsSettingsProperty -> ()
htmlMotionGraphicsSettings :: MotionGraphicsSettingsProperty
-> Maybe HtmlMotionGraphicsSettingsProperty
haddock_workaround_ :: ()
htmlMotionGraphicsSettings :: Maybe HtmlMotionGraphicsSettingsProperty
..}
= MotionGraphicsSettingsProperty
{htmlMotionGraphicsSettings :: Maybe HtmlMotionGraphicsSettingsProperty
htmlMotionGraphicsSettings = HtmlMotionGraphicsSettingsProperty
-> Maybe HtmlMotionGraphicsSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"HtmlMotionGraphicsSettings" MotionGraphicsSettingsProperty
HtmlMotionGraphicsSettingsProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}