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