module Stratosphere.MediaLive.Multiplex.MultiplexOutputDestinationProperty (
module Exports, MultiplexOutputDestinationProperty(..),
mkMultiplexOutputDestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Multiplex.MultiplexMediaConnectOutputDestinationSettingsProperty as Exports
import Stratosphere.ResourceProperties
data MultiplexOutputDestinationProperty
=
MultiplexOutputDestinationProperty {MultiplexOutputDestinationProperty -> ()
haddock_workaround_ :: (),
MultiplexOutputDestinationProperty
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
multiplexMediaConnectOutputDestinationSettings :: (Prelude.Maybe MultiplexMediaConnectOutputDestinationSettingsProperty)}
deriving stock (MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool
(MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool)
-> (MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool)
-> Eq MultiplexOutputDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool
== :: MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool
$c/= :: MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool
/= :: MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty -> Bool
Prelude.Eq, Int -> MultiplexOutputDestinationProperty -> ShowS
[MultiplexOutputDestinationProperty] -> ShowS
MultiplexOutputDestinationProperty -> String
(Int -> MultiplexOutputDestinationProperty -> ShowS)
-> (MultiplexOutputDestinationProperty -> String)
-> ([MultiplexOutputDestinationProperty] -> ShowS)
-> Show MultiplexOutputDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MultiplexOutputDestinationProperty -> ShowS
showsPrec :: Int -> MultiplexOutputDestinationProperty -> ShowS
$cshow :: MultiplexOutputDestinationProperty -> String
show :: MultiplexOutputDestinationProperty -> String
$cshowList :: [MultiplexOutputDestinationProperty] -> ShowS
showList :: [MultiplexOutputDestinationProperty] -> ShowS
Prelude.Show)
mkMultiplexOutputDestinationProperty ::
MultiplexOutputDestinationProperty
mkMultiplexOutputDestinationProperty :: MultiplexOutputDestinationProperty
mkMultiplexOutputDestinationProperty
= MultiplexOutputDestinationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
multiplexMediaConnectOutputDestinationSettings :: Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
multiplexMediaConnectOutputDestinationSettings = Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MultiplexOutputDestinationProperty where
toResourceProperties :: MultiplexOutputDestinationProperty -> ResourceProperties
toResourceProperties MultiplexOutputDestinationProperty {Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
()
haddock_workaround_ :: MultiplexOutputDestinationProperty -> ()
multiplexMediaConnectOutputDestinationSettings :: MultiplexOutputDestinationProperty
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
haddock_workaround_ :: ()
multiplexMediaConnectOutputDestinationSettings :: Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Multiplex.MultiplexOutputDestination",
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
-> MultiplexMediaConnectOutputDestinationSettingsProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MultiplexMediaConnectOutputDestinationSettings"
(MultiplexMediaConnectOutputDestinationSettingsProperty
-> (Key, Value))
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
multiplexMediaConnectOutputDestinationSettings])}
instance JSON.ToJSON MultiplexOutputDestinationProperty where
toJSON :: MultiplexOutputDestinationProperty -> Value
toJSON MultiplexOutputDestinationProperty {Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
()
haddock_workaround_ :: MultiplexOutputDestinationProperty -> ()
multiplexMediaConnectOutputDestinationSettings :: MultiplexOutputDestinationProperty
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
haddock_workaround_ :: ()
multiplexMediaConnectOutputDestinationSettings :: Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
..}
= [(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
-> MultiplexMediaConnectOutputDestinationSettingsProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MultiplexMediaConnectOutputDestinationSettings"
(MultiplexMediaConnectOutputDestinationSettingsProperty
-> (Key, Value))
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
multiplexMediaConnectOutputDestinationSettings]))
instance Property "MultiplexMediaConnectOutputDestinationSettings" MultiplexOutputDestinationProperty where
type PropertyType "MultiplexMediaConnectOutputDestinationSettings" MultiplexOutputDestinationProperty = MultiplexMediaConnectOutputDestinationSettingsProperty
set :: PropertyType
"MultiplexMediaConnectOutputDestinationSettings"
MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty
-> MultiplexOutputDestinationProperty
set PropertyType
"MultiplexMediaConnectOutputDestinationSettings"
MultiplexOutputDestinationProperty
newValue MultiplexOutputDestinationProperty {Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
()
haddock_workaround_ :: MultiplexOutputDestinationProperty -> ()
multiplexMediaConnectOutputDestinationSettings :: MultiplexOutputDestinationProperty
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
haddock_workaround_ :: ()
multiplexMediaConnectOutputDestinationSettings :: Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
..}
= MultiplexOutputDestinationProperty
{multiplexMediaConnectOutputDestinationSettings :: Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
multiplexMediaConnectOutputDestinationSettings = MultiplexMediaConnectOutputDestinationSettingsProperty
-> Maybe MultiplexMediaConnectOutputDestinationSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure
PropertyType
"MultiplexMediaConnectOutputDestinationSettings"
MultiplexOutputDestinationProperty
MultiplexMediaConnectOutputDestinationSettingsProperty
newValue,
()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}