module Stratosphere.MediaLive.Input.InputRequestDestinationRouteProperty (
InputRequestDestinationRouteProperty(..),
mkInputRequestDestinationRouteProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputRequestDestinationRouteProperty
=
InputRequestDestinationRouteProperty {InputRequestDestinationRouteProperty -> ()
haddock_workaround_ :: (),
InputRequestDestinationRouteProperty -> Maybe (Value Text)
cidr :: (Prelude.Maybe (Value Prelude.Text)),
InputRequestDestinationRouteProperty -> Maybe (Value Text)
gateway :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool
(InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool)
-> (InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool)
-> Eq InputRequestDestinationRouteProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool
== :: InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool
$c/= :: InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool
/= :: InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty -> Bool
Prelude.Eq, Int -> InputRequestDestinationRouteProperty -> ShowS
[InputRequestDestinationRouteProperty] -> ShowS
InputRequestDestinationRouteProperty -> String
(Int -> InputRequestDestinationRouteProperty -> ShowS)
-> (InputRequestDestinationRouteProperty -> String)
-> ([InputRequestDestinationRouteProperty] -> ShowS)
-> Show InputRequestDestinationRouteProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputRequestDestinationRouteProperty -> ShowS
showsPrec :: Int -> InputRequestDestinationRouteProperty -> ShowS
$cshow :: InputRequestDestinationRouteProperty -> String
show :: InputRequestDestinationRouteProperty -> String
$cshowList :: [InputRequestDestinationRouteProperty] -> ShowS
showList :: [InputRequestDestinationRouteProperty] -> ShowS
Prelude.Show)
mkInputRequestDestinationRouteProperty ::
InputRequestDestinationRouteProperty
mkInputRequestDestinationRouteProperty :: InputRequestDestinationRouteProperty
mkInputRequestDestinationRouteProperty
= InputRequestDestinationRouteProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), cidr :: Maybe (Value Text)
cidr = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
gateway :: Maybe (Value Text)
gateway = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputRequestDestinationRouteProperty where
toResourceProperties :: InputRequestDestinationRouteProperty -> ResourceProperties
toResourceProperties InputRequestDestinationRouteProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputRequestDestinationRouteProperty -> ()
cidr :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
gateway :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
gateway :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Input.InputRequestDestinationRoute",
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
"Cidr" (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)
cidr,
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
"Gateway" (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)
gateway])}
instance JSON.ToJSON InputRequestDestinationRouteProperty where
toJSON :: InputRequestDestinationRouteProperty -> Value
toJSON InputRequestDestinationRouteProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputRequestDestinationRouteProperty -> ()
cidr :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
gateway :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
gateway :: 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
"Cidr" (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)
cidr,
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
"Gateway" (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)
gateway]))
instance Property "Cidr" InputRequestDestinationRouteProperty where
type PropertyType "Cidr" InputRequestDestinationRouteProperty = Value Prelude.Text
set :: PropertyType "Cidr" InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty
set PropertyType "Cidr" InputRequestDestinationRouteProperty
newValue InputRequestDestinationRouteProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputRequestDestinationRouteProperty -> ()
cidr :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
gateway :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
gateway :: Maybe (Value Text)
..}
= InputRequestDestinationRouteProperty
{cidr :: Maybe (Value Text)
cidr = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Cidr" InputRequestDestinationRouteProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
gateway :: Maybe (Value Text)
haddock_workaround_ :: ()
gateway :: Maybe (Value Text)
..}
instance Property "Gateway" InputRequestDestinationRouteProperty where
type PropertyType "Gateway" InputRequestDestinationRouteProperty = Value Prelude.Text
set :: PropertyType "Gateway" InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty
-> InputRequestDestinationRouteProperty
set PropertyType "Gateway" InputRequestDestinationRouteProperty
newValue InputRequestDestinationRouteProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputRequestDestinationRouteProperty -> ()
cidr :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
gateway :: InputRequestDestinationRouteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
gateway :: Maybe (Value Text)
..}
= InputRequestDestinationRouteProperty
{gateway :: Maybe (Value Text)
gateway = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Gateway" InputRequestDestinationRouteProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
..}