module Stratosphere.GroundStation.MissionProfile.DataflowEdgeProperty (
DataflowEdgeProperty(..), mkDataflowEdgeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataflowEdgeProperty
=
DataflowEdgeProperty {DataflowEdgeProperty -> ()
haddock_workaround_ :: (),
DataflowEdgeProperty -> Maybe (Value Text)
destination :: (Prelude.Maybe (Value Prelude.Text)),
DataflowEdgeProperty -> Maybe (Value Text)
source :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DataflowEdgeProperty -> DataflowEdgeProperty -> Bool
(DataflowEdgeProperty -> DataflowEdgeProperty -> Bool)
-> (DataflowEdgeProperty -> DataflowEdgeProperty -> Bool)
-> Eq DataflowEdgeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataflowEdgeProperty -> DataflowEdgeProperty -> Bool
== :: DataflowEdgeProperty -> DataflowEdgeProperty -> Bool
$c/= :: DataflowEdgeProperty -> DataflowEdgeProperty -> Bool
/= :: DataflowEdgeProperty -> DataflowEdgeProperty -> Bool
Prelude.Eq, Int -> DataflowEdgeProperty -> ShowS
[DataflowEdgeProperty] -> ShowS
DataflowEdgeProperty -> String
(Int -> DataflowEdgeProperty -> ShowS)
-> (DataflowEdgeProperty -> String)
-> ([DataflowEdgeProperty] -> ShowS)
-> Show DataflowEdgeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataflowEdgeProperty -> ShowS
showsPrec :: Int -> DataflowEdgeProperty -> ShowS
$cshow :: DataflowEdgeProperty -> String
show :: DataflowEdgeProperty -> String
$cshowList :: [DataflowEdgeProperty] -> ShowS
showList :: [DataflowEdgeProperty] -> ShowS
Prelude.Show)
mkDataflowEdgeProperty :: DataflowEdgeProperty
mkDataflowEdgeProperty :: DataflowEdgeProperty
mkDataflowEdgeProperty
= DataflowEdgeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: Maybe (Value Text)
destination = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
source :: Maybe (Value Text)
source = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataflowEdgeProperty where
toResourceProperties :: DataflowEdgeProperty -> ResourceProperties
toResourceProperties DataflowEdgeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEdgeProperty -> ()
destination :: DataflowEdgeProperty -> Maybe (Value Text)
source :: DataflowEdgeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: Maybe (Value Text)
source :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GroundStation::MissionProfile.DataflowEdge",
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
"Destination" (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)
destination,
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
"Source" (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)
source])}
instance JSON.ToJSON DataflowEdgeProperty where
toJSON :: DataflowEdgeProperty -> Value
toJSON DataflowEdgeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEdgeProperty -> ()
destination :: DataflowEdgeProperty -> Maybe (Value Text)
source :: DataflowEdgeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: Maybe (Value Text)
source :: 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
"Destination" (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)
destination,
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
"Source" (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)
source]))
instance Property "Destination" DataflowEdgeProperty where
type PropertyType "Destination" DataflowEdgeProperty = Value Prelude.Text
set :: PropertyType "Destination" DataflowEdgeProperty
-> DataflowEdgeProperty -> DataflowEdgeProperty
set PropertyType "Destination" DataflowEdgeProperty
newValue DataflowEdgeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEdgeProperty -> ()
destination :: DataflowEdgeProperty -> Maybe (Value Text)
source :: DataflowEdgeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: Maybe (Value Text)
source :: Maybe (Value Text)
..}
= DataflowEdgeProperty {destination :: Maybe (Value Text)
destination = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Destination" DataflowEdgeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
source :: Maybe (Value Text)
haddock_workaround_ :: ()
source :: Maybe (Value Text)
..}
instance Property "Source" DataflowEdgeProperty where
type PropertyType "Source" DataflowEdgeProperty = Value Prelude.Text
set :: PropertyType "Source" DataflowEdgeProperty
-> DataflowEdgeProperty -> DataflowEdgeProperty
set PropertyType "Source" DataflowEdgeProperty
newValue DataflowEdgeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEdgeProperty -> ()
destination :: DataflowEdgeProperty -> Maybe (Value Text)
source :: DataflowEdgeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: Maybe (Value Text)
source :: Maybe (Value Text)
..}
= DataflowEdgeProperty {source :: Maybe (Value Text)
source = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Source" DataflowEdgeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
destination :: Maybe (Value Text)
haddock_workaround_ :: ()
destination :: Maybe (Value Text)
..}