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