module Stratosphere.MediaLive.Channel.SrtGroupSettingsProperty (
        SrtGroupSettingsProperty(..), mkSrtGroupSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SrtGroupSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-srtgroupsettings.html>
    SrtGroupSettingsProperty {SrtGroupSettingsProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-srtgroupsettings.html#cfn-medialive-channel-srtgroupsettings-inputlossaction>
                              SrtGroupSettingsProperty -> Maybe (Value Text)
inputLossAction :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool
(SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool)
-> (SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool)
-> Eq SrtGroupSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool
== :: SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool
$c/= :: SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool
/= :: SrtGroupSettingsProperty -> SrtGroupSettingsProperty -> Bool
Prelude.Eq, Int -> SrtGroupSettingsProperty -> ShowS
[SrtGroupSettingsProperty] -> ShowS
SrtGroupSettingsProperty -> String
(Int -> SrtGroupSettingsProperty -> ShowS)
-> (SrtGroupSettingsProperty -> String)
-> ([SrtGroupSettingsProperty] -> ShowS)
-> Show SrtGroupSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SrtGroupSettingsProperty -> ShowS
showsPrec :: Int -> SrtGroupSettingsProperty -> ShowS
$cshow :: SrtGroupSettingsProperty -> String
show :: SrtGroupSettingsProperty -> String
$cshowList :: [SrtGroupSettingsProperty] -> ShowS
showList :: [SrtGroupSettingsProperty] -> ShowS
Prelude.Show)
mkSrtGroupSettingsProperty :: SrtGroupSettingsProperty
mkSrtGroupSettingsProperty :: SrtGroupSettingsProperty
mkSrtGroupSettingsProperty
  = SrtGroupSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputLossAction :: Maybe (Value Text)
inputLossAction = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SrtGroupSettingsProperty where
  toResourceProperties :: SrtGroupSettingsProperty -> ResourceProperties
toResourceProperties SrtGroupSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtGroupSettingsProperty -> ()
inputLossAction :: SrtGroupSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputLossAction :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.SrtGroupSettings",
         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
"InputLossAction" (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)
inputLossAction])}
instance JSON.ToJSON SrtGroupSettingsProperty where
  toJSON :: SrtGroupSettingsProperty -> Value
toJSON SrtGroupSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtGroupSettingsProperty -> ()
inputLossAction :: SrtGroupSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputLossAction :: Maybe (Value Text)
..}
    = [(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
"InputLossAction" (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)
inputLossAction]))
instance Property "InputLossAction" SrtGroupSettingsProperty where
  type PropertyType "InputLossAction" SrtGroupSettingsProperty = Value Prelude.Text
  set :: PropertyType "InputLossAction" SrtGroupSettingsProperty
-> SrtGroupSettingsProperty -> SrtGroupSettingsProperty
set PropertyType "InputLossAction" SrtGroupSettingsProperty
newValue SrtGroupSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtGroupSettingsProperty -> ()
inputLossAction :: SrtGroupSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputLossAction :: Maybe (Value Text)
..}
    = SrtGroupSettingsProperty
        {inputLossAction :: Maybe (Value Text)
inputLossAction = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputLossAction" SrtGroupSettingsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}