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