module Stratosphere.MediaLive.Channel.TtmlDestinationSettingsProperty (
TtmlDestinationSettingsProperty(..),
mkTtmlDestinationSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TtmlDestinationSettingsProperty
=
TtmlDestinationSettingsProperty {TtmlDestinationSettingsProperty -> ()
haddock_workaround_ :: (),
TtmlDestinationSettingsProperty -> Maybe (Value Text)
styleControl :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool
(TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool)
-> (TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool)
-> Eq TtmlDestinationSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool
== :: TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool
$c/= :: TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool
/= :: TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty -> Bool
Prelude.Eq, Int -> TtmlDestinationSettingsProperty -> ShowS
[TtmlDestinationSettingsProperty] -> ShowS
TtmlDestinationSettingsProperty -> String
(Int -> TtmlDestinationSettingsProperty -> ShowS)
-> (TtmlDestinationSettingsProperty -> String)
-> ([TtmlDestinationSettingsProperty] -> ShowS)
-> Show TtmlDestinationSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TtmlDestinationSettingsProperty -> ShowS
showsPrec :: Int -> TtmlDestinationSettingsProperty -> ShowS
$cshow :: TtmlDestinationSettingsProperty -> String
show :: TtmlDestinationSettingsProperty -> String
$cshowList :: [TtmlDestinationSettingsProperty] -> ShowS
showList :: [TtmlDestinationSettingsProperty] -> ShowS
Prelude.Show)
mkTtmlDestinationSettingsProperty ::
TtmlDestinationSettingsProperty
mkTtmlDestinationSettingsProperty :: TtmlDestinationSettingsProperty
mkTtmlDestinationSettingsProperty
= TtmlDestinationSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), styleControl :: Maybe (Value Text)
styleControl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TtmlDestinationSettingsProperty where
toResourceProperties :: TtmlDestinationSettingsProperty -> ResourceProperties
toResourceProperties TtmlDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TtmlDestinationSettingsProperty -> ()
styleControl :: TtmlDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
styleControl :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.TtmlDestinationSettings",
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 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
"StyleControl" (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)
styleControl])}
instance JSON.ToJSON TtmlDestinationSettingsProperty where
toJSON :: TtmlDestinationSettingsProperty -> Value
toJSON TtmlDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TtmlDestinationSettingsProperty -> ()
styleControl :: TtmlDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
styleControl :: Maybe (Value Text)
..}
= [(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 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
"StyleControl" (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)
styleControl]))
instance Property "StyleControl" TtmlDestinationSettingsProperty where
type PropertyType "StyleControl" TtmlDestinationSettingsProperty = Value Prelude.Text
set :: PropertyType "StyleControl" TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty
-> TtmlDestinationSettingsProperty
set PropertyType "StyleControl" TtmlDestinationSettingsProperty
newValue TtmlDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TtmlDestinationSettingsProperty -> ()
styleControl :: TtmlDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
styleControl :: Maybe (Value Text)
..}
= TtmlDestinationSettingsProperty
{styleControl :: Maybe (Value Text)
styleControl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StyleControl" TtmlDestinationSettingsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}