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