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