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