module Stratosphere.MediaLive.Channel.SrtOutputSettingsProperty (
module Exports, SrtOutputSettingsProperty(..),
mkSrtOutputSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.OutputLocationRefProperty as Exports
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.UdpContainerSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SrtOutputSettingsProperty
=
SrtOutputSettingsProperty {SrtOutputSettingsProperty -> ()
haddock_workaround_ :: (),
SrtOutputSettingsProperty -> Maybe (Value Integer)
bufferMsec :: (Prelude.Maybe (Value Prelude.Integer)),
SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
containerSettings :: (Prelude.Maybe UdpContainerSettingsProperty),
SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
destination :: (Prelude.Maybe OutputLocationRefProperty),
SrtOutputSettingsProperty -> Maybe (Value Text)
encryptionType :: (Prelude.Maybe (Value Prelude.Text)),
SrtOutputSettingsProperty -> Maybe (Value Integer)
latency :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool
(SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool)
-> (SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool)
-> Eq SrtOutputSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool
== :: SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool
$c/= :: SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool
/= :: SrtOutputSettingsProperty -> SrtOutputSettingsProperty -> Bool
Prelude.Eq, Int -> SrtOutputSettingsProperty -> ShowS
[SrtOutputSettingsProperty] -> ShowS
SrtOutputSettingsProperty -> String
(Int -> SrtOutputSettingsProperty -> ShowS)
-> (SrtOutputSettingsProperty -> String)
-> ([SrtOutputSettingsProperty] -> ShowS)
-> Show SrtOutputSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SrtOutputSettingsProperty -> ShowS
showsPrec :: Int -> SrtOutputSettingsProperty -> ShowS
$cshow :: SrtOutputSettingsProperty -> String
show :: SrtOutputSettingsProperty -> String
$cshowList :: [SrtOutputSettingsProperty] -> ShowS
showList :: [SrtOutputSettingsProperty] -> ShowS
Prelude.Show)
mkSrtOutputSettingsProperty :: SrtOutputSettingsProperty
mkSrtOutputSettingsProperty :: SrtOutputSettingsProperty
mkSrtOutputSettingsProperty
= SrtOutputSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bufferMsec :: Maybe (Value Integer)
bufferMsec = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
containerSettings :: Maybe UdpContainerSettingsProperty
containerSettings = Maybe UdpContainerSettingsProperty
forall a. Maybe a
Prelude.Nothing, destination :: Maybe OutputLocationRefProperty
destination = Maybe OutputLocationRefProperty
forall a. Maybe a
Prelude.Nothing,
encryptionType :: Maybe (Value Text)
encryptionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, latency :: Maybe (Value Integer)
latency = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SrtOutputSettingsProperty where
toResourceProperties :: SrtOutputSettingsProperty -> ResourceProperties
toResourceProperties SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.SrtOutputSettings",
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
"BufferMsec" (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)
bufferMsec,
Key -> UdpContainerSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerSettings" (UdpContainerSettingsProperty -> (Key, Value))
-> Maybe UdpContainerSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UdpContainerSettingsProperty
containerSettings,
Key -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination,
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
"EncryptionType" (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)
encryptionType,
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
"Latency" (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)
latency])}
instance JSON.ToJSON SrtOutputSettingsProperty where
toJSON :: SrtOutputSettingsProperty -> Value
toJSON SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: 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
"BufferMsec" (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)
bufferMsec,
Key -> UdpContainerSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerSettings" (UdpContainerSettingsProperty -> (Key, Value))
-> Maybe UdpContainerSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UdpContainerSettingsProperty
containerSettings,
Key -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination,
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
"EncryptionType" (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)
encryptionType,
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
"Latency" (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)
latency]))
instance Property "BufferMsec" SrtOutputSettingsProperty where
type PropertyType "BufferMsec" SrtOutputSettingsProperty = Value Prelude.Integer
set :: PropertyType "BufferMsec" SrtOutputSettingsProperty
-> SrtOutputSettingsProperty -> SrtOutputSettingsProperty
set PropertyType "BufferMsec" SrtOutputSettingsProperty
newValue SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
= SrtOutputSettingsProperty
{bufferMsec :: Maybe (Value Integer)
bufferMsec = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BufferMsec" SrtOutputSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: ()
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
haddock_workaround_ :: ()
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
instance Property "ContainerSettings" SrtOutputSettingsProperty where
type PropertyType "ContainerSettings" SrtOutputSettingsProperty = UdpContainerSettingsProperty
set :: PropertyType "ContainerSettings" SrtOutputSettingsProperty
-> SrtOutputSettingsProperty -> SrtOutputSettingsProperty
set PropertyType "ContainerSettings" SrtOutputSettingsProperty
newValue SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
= SrtOutputSettingsProperty
{containerSettings :: Maybe UdpContainerSettingsProperty
containerSettings = UdpContainerSettingsProperty -> Maybe UdpContainerSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerSettings" SrtOutputSettingsProperty
UdpContainerSettingsProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
instance Property "Destination" SrtOutputSettingsProperty where
type PropertyType "Destination" SrtOutputSettingsProperty = OutputLocationRefProperty
set :: PropertyType "Destination" SrtOutputSettingsProperty
-> SrtOutputSettingsProperty -> SrtOutputSettingsProperty
set PropertyType "Destination" SrtOutputSettingsProperty
newValue SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
= SrtOutputSettingsProperty
{destination :: Maybe OutputLocationRefProperty
destination = OutputLocationRefProperty -> Maybe OutputLocationRefProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Destination" SrtOutputSettingsProperty
OutputLocationRefProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
instance Property "EncryptionType" SrtOutputSettingsProperty where
type PropertyType "EncryptionType" SrtOutputSettingsProperty = Value Prelude.Text
set :: PropertyType "EncryptionType" SrtOutputSettingsProperty
-> SrtOutputSettingsProperty -> SrtOutputSettingsProperty
set PropertyType "EncryptionType" SrtOutputSettingsProperty
newValue SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
= SrtOutputSettingsProperty
{encryptionType :: Maybe (Value Text)
encryptionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EncryptionType" SrtOutputSettingsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
latency :: Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
latency :: Maybe (Value Integer)
..}
instance Property "Latency" SrtOutputSettingsProperty where
type PropertyType "Latency" SrtOutputSettingsProperty = Value Prelude.Integer
set :: PropertyType "Latency" SrtOutputSettingsProperty
-> SrtOutputSettingsProperty -> SrtOutputSettingsProperty
set PropertyType "Latency" SrtOutputSettingsProperty
newValue SrtOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: SrtOutputSettingsProperty -> ()
bufferMsec :: SrtOutputSettingsProperty -> Maybe (Value Integer)
containerSettings :: SrtOutputSettingsProperty -> Maybe UdpContainerSettingsProperty
destination :: SrtOutputSettingsProperty -> Maybe OutputLocationRefProperty
encryptionType :: SrtOutputSettingsProperty -> Maybe (Value Text)
latency :: SrtOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
latency :: Maybe (Value Integer)
..}
= SrtOutputSettingsProperty {latency :: Maybe (Value Integer)
latency = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Latency" SrtOutputSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
Maybe UdpContainerSettingsProperty
()
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
haddock_workaround_ :: ()
bufferMsec :: Maybe (Value Integer)
containerSettings :: Maybe UdpContainerSettingsProperty
destination :: Maybe OutputLocationRefProperty
encryptionType :: Maybe (Value Text)
..}