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