module Stratosphere.MediaLive.Channel.InputLossBehaviorProperty (
        module Exports, InputLossBehaviorProperty(..),
        mkInputLossBehaviorProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.InputLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputLossBehaviorProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputlossbehavior.html>
    InputLossBehaviorProperty {InputLossBehaviorProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputlossbehavior.html#cfn-medialive-channel-inputlossbehavior-blackframemsec>
                               InputLossBehaviorProperty -> Maybe (Value Integer)
blackFrameMsec :: (Prelude.Maybe (Value Prelude.Integer)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputlossbehavior.html#cfn-medialive-channel-inputlossbehavior-inputlossimagecolor>
                               InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageColor :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputlossbehavior.html#cfn-medialive-channel-inputlossbehavior-inputlossimageslate>
                               InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageSlate :: (Prelude.Maybe InputLocationProperty),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputlossbehavior.html#cfn-medialive-channel-inputlossbehavior-inputlossimagetype>
                               InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageType :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputlossbehavior.html#cfn-medialive-channel-inputlossbehavior-repeatframemsec>
                               InputLossBehaviorProperty -> Maybe (Value Integer)
repeatFrameMsec :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool
(InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool)
-> (InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool)
-> Eq InputLossBehaviorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool
== :: InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool
$c/= :: InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool
/= :: InputLossBehaviorProperty -> InputLossBehaviorProperty -> Bool
Prelude.Eq, Int -> InputLossBehaviorProperty -> ShowS
[InputLossBehaviorProperty] -> ShowS
InputLossBehaviorProperty -> String
(Int -> InputLossBehaviorProperty -> ShowS)
-> (InputLossBehaviorProperty -> String)
-> ([InputLossBehaviorProperty] -> ShowS)
-> Show InputLossBehaviorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputLossBehaviorProperty -> ShowS
showsPrec :: Int -> InputLossBehaviorProperty -> ShowS
$cshow :: InputLossBehaviorProperty -> String
show :: InputLossBehaviorProperty -> String
$cshowList :: [InputLossBehaviorProperty] -> ShowS
showList :: [InputLossBehaviorProperty] -> ShowS
Prelude.Show)
mkInputLossBehaviorProperty :: InputLossBehaviorProperty
mkInputLossBehaviorProperty :: InputLossBehaviorProperty
mkInputLossBehaviorProperty
  = InputLossBehaviorProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), blackFrameMsec :: Maybe (Value Integer)
blackFrameMsec = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       inputLossImageColor :: Maybe (Value Text)
inputLossImageColor = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageSlate = Maybe InputLocationProperty
forall a. Maybe a
Prelude.Nothing,
       inputLossImageType :: Maybe (Value Text)
inputLossImageType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       repeatFrameMsec :: Maybe (Value Integer)
repeatFrameMsec = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputLossBehaviorProperty where
  toResourceProperties :: InputLossBehaviorProperty -> ResourceProperties
toResourceProperties InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.InputLossBehavior",
         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 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
"BlackFrameMsec" (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)
blackFrameMsec,
                            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
"InputLossImageColor" (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)
inputLossImageColor,
                            Key -> InputLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputLossImageSlate" (InputLocationProperty -> (Key, Value))
-> Maybe InputLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLocationProperty
inputLossImageSlate,
                            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
"InputLossImageType" (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)
inputLossImageType,
                            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
"RepeatFrameMsec" (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)
repeatFrameMsec])}
instance JSON.ToJSON InputLossBehaviorProperty where
  toJSON :: InputLossBehaviorProperty -> Value
toJSON InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: 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 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
"BlackFrameMsec" (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)
blackFrameMsec,
               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
"InputLossImageColor" (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)
inputLossImageColor,
               Key -> InputLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputLossImageSlate" (InputLocationProperty -> (Key, Value))
-> Maybe InputLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLocationProperty
inputLossImageSlate,
               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
"InputLossImageType" (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)
inputLossImageType,
               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
"RepeatFrameMsec" (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)
repeatFrameMsec]))
instance Property "BlackFrameMsec" InputLossBehaviorProperty where
  type PropertyType "BlackFrameMsec" InputLossBehaviorProperty = Value Prelude.Integer
  set :: PropertyType "BlackFrameMsec" InputLossBehaviorProperty
-> InputLossBehaviorProperty -> InputLossBehaviorProperty
set PropertyType "BlackFrameMsec" InputLossBehaviorProperty
newValue InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
    = InputLossBehaviorProperty
        {blackFrameMsec :: Maybe (Value Integer)
blackFrameMsec = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BlackFrameMsec" InputLossBehaviorProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: ()
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
haddock_workaround_ :: ()
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
instance Property "InputLossImageColor" InputLossBehaviorProperty where
  type PropertyType "InputLossImageColor" InputLossBehaviorProperty = Value Prelude.Text
  set :: PropertyType "InputLossImageColor" InputLossBehaviorProperty
-> InputLossBehaviorProperty -> InputLossBehaviorProperty
set PropertyType "InputLossImageColor" InputLossBehaviorProperty
newValue InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
    = InputLossBehaviorProperty
        {inputLossImageColor :: Maybe (Value Text)
inputLossImageColor = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputLossImageColor" InputLossBehaviorProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
instance Property "InputLossImageSlate" InputLossBehaviorProperty where
  type PropertyType "InputLossImageSlate" InputLossBehaviorProperty = InputLocationProperty
  set :: PropertyType "InputLossImageSlate" InputLossBehaviorProperty
-> InputLossBehaviorProperty -> InputLossBehaviorProperty
set PropertyType "InputLossImageSlate" InputLossBehaviorProperty
newValue InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
    = InputLossBehaviorProperty
        {inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageSlate = InputLocationProperty -> Maybe InputLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputLossImageSlate" InputLossBehaviorProperty
InputLocationProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
instance Property "InputLossImageType" InputLossBehaviorProperty where
  type PropertyType "InputLossImageType" InputLossBehaviorProperty = Value Prelude.Text
  set :: PropertyType "InputLossImageType" InputLossBehaviorProperty
-> InputLossBehaviorProperty -> InputLossBehaviorProperty
set PropertyType "InputLossImageType" InputLossBehaviorProperty
newValue InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
    = InputLossBehaviorProperty
        {inputLossImageType :: Maybe (Value Text)
inputLossImageType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputLossImageType" InputLossBehaviorProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
repeatFrameMsec :: Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
repeatFrameMsec :: Maybe (Value Integer)
..}
instance Property "RepeatFrameMsec" InputLossBehaviorProperty where
  type PropertyType "RepeatFrameMsec" InputLossBehaviorProperty = Value Prelude.Integer
  set :: PropertyType "RepeatFrameMsec" InputLossBehaviorProperty
-> InputLossBehaviorProperty -> InputLossBehaviorProperty
set PropertyType "RepeatFrameMsec" InputLossBehaviorProperty
newValue InputLossBehaviorProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: InputLossBehaviorProperty -> ()
blackFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
inputLossImageColor :: InputLossBehaviorProperty -> Maybe (Value Text)
inputLossImageSlate :: InputLossBehaviorProperty -> Maybe InputLocationProperty
inputLossImageType :: InputLossBehaviorProperty -> Maybe (Value Text)
repeatFrameMsec :: InputLossBehaviorProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
repeatFrameMsec :: Maybe (Value Integer)
..}
    = InputLossBehaviorProperty
        {repeatFrameMsec :: Maybe (Value Integer)
repeatFrameMsec = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RepeatFrameMsec" InputLossBehaviorProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
haddock_workaround_ :: ()
blackFrameMsec :: Maybe (Value Integer)
inputLossImageColor :: Maybe (Value Text)
inputLossImageSlate :: Maybe InputLocationProperty
inputLossImageType :: Maybe (Value Text)
..}