module Stratosphere.MediaConnect.Flow.NdiDiscoveryServerConfigProperty (
        NdiDiscoveryServerConfigProperty(..),
        mkNdiDiscoveryServerConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NdiDiscoveryServerConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-ndidiscoveryserverconfig.html>
    NdiDiscoveryServerConfigProperty {NdiDiscoveryServerConfigProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-ndidiscoveryserverconfig.html#cfn-mediaconnect-flow-ndidiscoveryserverconfig-discoveryserveraddress>
                                      NdiDiscoveryServerConfigProperty -> Value Text
discoveryServerAddress :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-ndidiscoveryserverconfig.html#cfn-mediaconnect-flow-ndidiscoveryserverconfig-discoveryserverport>
                                      NdiDiscoveryServerConfigProperty -> Maybe (Value Integer)
discoveryServerPort :: (Prelude.Maybe (Value Prelude.Integer)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-ndidiscoveryserverconfig.html#cfn-mediaconnect-flow-ndidiscoveryserverconfig-vpcinterfaceadapter>
                                      NdiDiscoveryServerConfigProperty -> Value Text
vpcInterfaceAdapter :: (Value Prelude.Text)}
  deriving stock (NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty -> Bool
(NdiDiscoveryServerConfigProperty
 -> NdiDiscoveryServerConfigProperty -> Bool)
-> (NdiDiscoveryServerConfigProperty
    -> NdiDiscoveryServerConfigProperty -> Bool)
-> Eq NdiDiscoveryServerConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty -> Bool
== :: NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty -> Bool
$c/= :: NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty -> Bool
/= :: NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty -> Bool
Prelude.Eq, Int -> NdiDiscoveryServerConfigProperty -> ShowS
[NdiDiscoveryServerConfigProperty] -> ShowS
NdiDiscoveryServerConfigProperty -> String
(Int -> NdiDiscoveryServerConfigProperty -> ShowS)
-> (NdiDiscoveryServerConfigProperty -> String)
-> ([NdiDiscoveryServerConfigProperty] -> ShowS)
-> Show NdiDiscoveryServerConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NdiDiscoveryServerConfigProperty -> ShowS
showsPrec :: Int -> NdiDiscoveryServerConfigProperty -> ShowS
$cshow :: NdiDiscoveryServerConfigProperty -> String
show :: NdiDiscoveryServerConfigProperty -> String
$cshowList :: [NdiDiscoveryServerConfigProperty] -> ShowS
showList :: [NdiDiscoveryServerConfigProperty] -> ShowS
Prelude.Show)
mkNdiDiscoveryServerConfigProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> NdiDiscoveryServerConfigProperty
mkNdiDiscoveryServerConfigProperty :: Value Text -> Value Text -> NdiDiscoveryServerConfigProperty
mkNdiDiscoveryServerConfigProperty
  Value Text
discoveryServerAddress
  Value Text
vpcInterfaceAdapter
  = NdiDiscoveryServerConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       discoveryServerAddress :: Value Text
discoveryServerAddress = Value Text
discoveryServerAddress,
       vpcInterfaceAdapter :: Value Text
vpcInterfaceAdapter = Value Text
vpcInterfaceAdapter,
       discoveryServerPort :: Maybe (Value Integer)
discoveryServerPort = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NdiDiscoveryServerConfigProperty where
  toResourceProperties :: NdiDiscoveryServerConfigProperty -> ResourceProperties
toResourceProperties NdiDiscoveryServerConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: NdiDiscoveryServerConfigProperty -> ()
discoveryServerAddress :: NdiDiscoveryServerConfigProperty -> Value Text
discoveryServerPort :: NdiDiscoveryServerConfigProperty -> Maybe (Value Integer)
vpcInterfaceAdapter :: NdiDiscoveryServerConfigProperty -> Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConnect::Flow.NdiDiscoveryServerConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"DiscoveryServerAddress" 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..= Value Text
discoveryServerAddress,
                            Key
"VpcInterfaceAdapter" 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..= Value Text
vpcInterfaceAdapter]
                           ([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
"DiscoveryServerPort"
                                 (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)
discoveryServerPort]))}
instance JSON.ToJSON NdiDiscoveryServerConfigProperty where
  toJSON :: NdiDiscoveryServerConfigProperty -> Value
toJSON NdiDiscoveryServerConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: NdiDiscoveryServerConfigProperty -> ()
discoveryServerAddress :: NdiDiscoveryServerConfigProperty -> Value Text
discoveryServerPort :: NdiDiscoveryServerConfigProperty -> Maybe (Value Integer)
vpcInterfaceAdapter :: NdiDiscoveryServerConfigProperty -> Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"DiscoveryServerAddress" 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..= Value Text
discoveryServerAddress,
               Key
"VpcInterfaceAdapter" 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..= Value Text
vpcInterfaceAdapter]
              ([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
"DiscoveryServerPort"
                    (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)
discoveryServerPort])))
instance Property "DiscoveryServerAddress" NdiDiscoveryServerConfigProperty where
  type PropertyType "DiscoveryServerAddress" NdiDiscoveryServerConfigProperty = Value Prelude.Text
  set :: PropertyType
  "DiscoveryServerAddress" NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty
set PropertyType
  "DiscoveryServerAddress" NdiDiscoveryServerConfigProperty
newValue NdiDiscoveryServerConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: NdiDiscoveryServerConfigProperty -> ()
discoveryServerAddress :: NdiDiscoveryServerConfigProperty -> Value Text
discoveryServerPort :: NdiDiscoveryServerConfigProperty -> Maybe (Value Integer)
vpcInterfaceAdapter :: NdiDiscoveryServerConfigProperty -> Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
..}
    = NdiDiscoveryServerConfigProperty
        {discoveryServerAddress :: Value Text
discoveryServerAddress = PropertyType
  "DiscoveryServerAddress" NdiDiscoveryServerConfigProperty
Value Text
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
haddock_workaround_ :: ()
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
..}
instance Property "DiscoveryServerPort" NdiDiscoveryServerConfigProperty where
  type PropertyType "DiscoveryServerPort" NdiDiscoveryServerConfigProperty = Value Prelude.Integer
  set :: PropertyType "DiscoveryServerPort" NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty
set PropertyType "DiscoveryServerPort" NdiDiscoveryServerConfigProperty
newValue NdiDiscoveryServerConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: NdiDiscoveryServerConfigProperty -> ()
discoveryServerAddress :: NdiDiscoveryServerConfigProperty -> Value Text
discoveryServerPort :: NdiDiscoveryServerConfigProperty -> Maybe (Value Integer)
vpcInterfaceAdapter :: NdiDiscoveryServerConfigProperty -> Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
..}
    = NdiDiscoveryServerConfigProperty
        {discoveryServerPort :: Maybe (Value Integer)
discoveryServerPort = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DiscoveryServerPort" NdiDiscoveryServerConfigProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
vpcInterfaceAdapter :: Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
vpcInterfaceAdapter :: Value Text
..}
instance Property "VpcInterfaceAdapter" NdiDiscoveryServerConfigProperty where
  type PropertyType "VpcInterfaceAdapter" NdiDiscoveryServerConfigProperty = Value Prelude.Text
  set :: PropertyType "VpcInterfaceAdapter" NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty
-> NdiDiscoveryServerConfigProperty
set PropertyType "VpcInterfaceAdapter" NdiDiscoveryServerConfigProperty
newValue NdiDiscoveryServerConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: NdiDiscoveryServerConfigProperty -> ()
discoveryServerAddress :: NdiDiscoveryServerConfigProperty -> Value Text
discoveryServerPort :: NdiDiscoveryServerConfigProperty -> Maybe (Value Integer)
vpcInterfaceAdapter :: NdiDiscoveryServerConfigProperty -> Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
vpcInterfaceAdapter :: Value Text
..}
    = NdiDiscoveryServerConfigProperty
        {vpcInterfaceAdapter :: Value Text
vpcInterfaceAdapter = PropertyType "VpcInterfaceAdapter" NdiDiscoveryServerConfigProperty
Value Text
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
haddock_workaround_ :: ()
discoveryServerAddress :: Value Text
discoveryServerPort :: Maybe (Value Integer)
..}