module Stratosphere.MediaLive.Input.InputDestinationRequestProperty (
        module Exports, InputDestinationRequestProperty(..),
        mkInputDestinationRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Input.InputRequestDestinationRouteProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputDestinationRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdestinationrequest.html>
    InputDestinationRequestProperty {InputDestinationRequestProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdestinationrequest.html#cfn-medialive-input-inputdestinationrequest-network>
                                     InputDestinationRequestProperty -> Maybe (Value Text)
network :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdestinationrequest.html#cfn-medialive-input-inputdestinationrequest-networkroutes>
                                     InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
networkRoutes :: (Prelude.Maybe [InputRequestDestinationRouteProperty]),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdestinationrequest.html#cfn-medialive-input-inputdestinationrequest-staticipaddress>
                                     InputDestinationRequestProperty -> Maybe (Value Text)
staticIpAddress :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdestinationrequest.html#cfn-medialive-input-inputdestinationrequest-streamname>
                                     InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (InputDestinationRequestProperty
-> InputDestinationRequestProperty -> Bool
(InputDestinationRequestProperty
 -> InputDestinationRequestProperty -> Bool)
-> (InputDestinationRequestProperty
    -> InputDestinationRequestProperty -> Bool)
-> Eq InputDestinationRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputDestinationRequestProperty
-> InputDestinationRequestProperty -> Bool
== :: InputDestinationRequestProperty
-> InputDestinationRequestProperty -> Bool
$c/= :: InputDestinationRequestProperty
-> InputDestinationRequestProperty -> Bool
/= :: InputDestinationRequestProperty
-> InputDestinationRequestProperty -> Bool
Prelude.Eq, Int -> InputDestinationRequestProperty -> ShowS
[InputDestinationRequestProperty] -> ShowS
InputDestinationRequestProperty -> String
(Int -> InputDestinationRequestProperty -> ShowS)
-> (InputDestinationRequestProperty -> String)
-> ([InputDestinationRequestProperty] -> ShowS)
-> Show InputDestinationRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputDestinationRequestProperty -> ShowS
showsPrec :: Int -> InputDestinationRequestProperty -> ShowS
$cshow :: InputDestinationRequestProperty -> String
show :: InputDestinationRequestProperty -> String
$cshowList :: [InputDestinationRequestProperty] -> ShowS
showList :: [InputDestinationRequestProperty] -> ShowS
Prelude.Show)
mkInputDestinationRequestProperty ::
  InputDestinationRequestProperty
mkInputDestinationRequestProperty :: InputDestinationRequestProperty
mkInputDestinationRequestProperty
  = InputDestinationRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), network :: Maybe (Value Text)
network = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
networkRoutes = Maybe [InputRequestDestinationRouteProperty]
forall a. Maybe a
Prelude.Nothing, staticIpAddress :: Maybe (Value Text)
staticIpAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       streamName :: Maybe (Value Text)
streamName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputDestinationRequestProperty where
  toResourceProperties :: InputDestinationRequestProperty -> ResourceProperties
toResourceProperties InputDestinationRequestProperty {Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: InputDestinationRequestProperty -> ()
network :: InputDestinationRequestProperty -> Maybe (Value Text)
networkRoutes :: InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: InputDestinationRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Input.InputDestinationRequest",
         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
"Network" (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)
network,
                            Key -> [InputRequestDestinationRouteProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NetworkRoutes" ([InputRequestDestinationRouteProperty] -> (Key, Value))
-> Maybe [InputRequestDestinationRouteProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputRequestDestinationRouteProperty]
networkRoutes,
                            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
"StaticIpAddress" (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)
staticIpAddress,
                            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
"StreamName" (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)
streamName])}
instance JSON.ToJSON InputDestinationRequestProperty where
  toJSON :: InputDestinationRequestProperty -> Value
toJSON InputDestinationRequestProperty {Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: InputDestinationRequestProperty -> ()
network :: InputDestinationRequestProperty -> Maybe (Value Text)
networkRoutes :: InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: InputDestinationRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: 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
"Network" (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)
network,
               Key -> [InputRequestDestinationRouteProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NetworkRoutes" ([InputRequestDestinationRouteProperty] -> (Key, Value))
-> Maybe [InputRequestDestinationRouteProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputRequestDestinationRouteProperty]
networkRoutes,
               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
"StaticIpAddress" (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)
staticIpAddress,
               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
"StreamName" (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)
streamName]))
instance Property "Network" InputDestinationRequestProperty where
  type PropertyType "Network" InputDestinationRequestProperty = Value Prelude.Text
  set :: PropertyType "Network" InputDestinationRequestProperty
-> InputDestinationRequestProperty
-> InputDestinationRequestProperty
set PropertyType "Network" InputDestinationRequestProperty
newValue InputDestinationRequestProperty {Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: InputDestinationRequestProperty -> ()
network :: InputDestinationRequestProperty -> Maybe (Value Text)
networkRoutes :: InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: InputDestinationRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
    = InputDestinationRequestProperty
        {network :: Maybe (Value Text)
network = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Network" InputDestinationRequestProperty
Value Text
newValue, Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
haddock_workaround_ :: ()
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
instance Property "NetworkRoutes" InputDestinationRequestProperty where
  type PropertyType "NetworkRoutes" InputDestinationRequestProperty = [InputRequestDestinationRouteProperty]
  set :: PropertyType "NetworkRoutes" InputDestinationRequestProperty
-> InputDestinationRequestProperty
-> InputDestinationRequestProperty
set PropertyType "NetworkRoutes" InputDestinationRequestProperty
newValue InputDestinationRequestProperty {Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: InputDestinationRequestProperty -> ()
network :: InputDestinationRequestProperty -> Maybe (Value Text)
networkRoutes :: InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: InputDestinationRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
    = InputDestinationRequestProperty
        {networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
networkRoutes = [InputRequestDestinationRouteProperty]
-> Maybe [InputRequestDestinationRouteProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [InputRequestDestinationRouteProperty]
PropertyType "NetworkRoutes" InputDestinationRequestProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
network :: Maybe (Value Text)
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
instance Property "StaticIpAddress" InputDestinationRequestProperty where
  type PropertyType "StaticIpAddress" InputDestinationRequestProperty = Value Prelude.Text
  set :: PropertyType "StaticIpAddress" InputDestinationRequestProperty
-> InputDestinationRequestProperty
-> InputDestinationRequestProperty
set PropertyType "StaticIpAddress" InputDestinationRequestProperty
newValue InputDestinationRequestProperty {Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: InputDestinationRequestProperty -> ()
network :: InputDestinationRequestProperty -> Maybe (Value Text)
networkRoutes :: InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: InputDestinationRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
    = InputDestinationRequestProperty
        {staticIpAddress :: Maybe (Value Text)
staticIpAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StaticIpAddress" InputDestinationRequestProperty
Value Text
newValue, Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
streamName :: Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
streamName :: Maybe (Value Text)
..}
instance Property "StreamName" InputDestinationRequestProperty where
  type PropertyType "StreamName" InputDestinationRequestProperty = Value Prelude.Text
  set :: PropertyType "StreamName" InputDestinationRequestProperty
-> InputDestinationRequestProperty
-> InputDestinationRequestProperty
set PropertyType "StreamName" InputDestinationRequestProperty
newValue InputDestinationRequestProperty {Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: InputDestinationRequestProperty -> ()
network :: InputDestinationRequestProperty -> Maybe (Value Text)
networkRoutes :: InputDestinationRequestProperty
-> Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: InputDestinationRequestProperty -> Maybe (Value Text)
streamName :: InputDestinationRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
streamName :: Maybe (Value Text)
..}
    = InputDestinationRequestProperty
        {streamName :: Maybe (Value Text)
streamName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StreamName" InputDestinationRequestProperty
Value Text
newValue, Maybe [InputRequestDestinationRouteProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
haddock_workaround_ :: ()
network :: Maybe (Value Text)
networkRoutes :: Maybe [InputRequestDestinationRouteProperty]
staticIpAddress :: Maybe (Value Text)
..}