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