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