module Stratosphere.Bedrock.FlowVersion.FlowNodeProperty (
        module Exports, FlowNodeProperty(..), mkFlowNodeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.FlowNodeConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.FlowNodeInputProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.FlowNodeOutputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowNodeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html>
    FlowNodeProperty {FlowNodeProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-configuration>
                      FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
configuration :: (Prelude.Maybe FlowNodeConfigurationProperty),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-inputs>
                      FlowNodeProperty -> Maybe [FlowNodeInputProperty]
inputs :: (Prelude.Maybe [FlowNodeInputProperty]),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-name>
                      FlowNodeProperty -> Value Text
name :: (Value Prelude.Text),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-outputs>
                      FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
outputs :: (Prelude.Maybe [FlowNodeOutputProperty]),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-type>
                      FlowNodeProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (FlowNodeProperty -> FlowNodeProperty -> Bool
(FlowNodeProperty -> FlowNodeProperty -> Bool)
-> (FlowNodeProperty -> FlowNodeProperty -> Bool)
-> Eq FlowNodeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FlowNodeProperty -> FlowNodeProperty -> Bool
== :: FlowNodeProperty -> FlowNodeProperty -> Bool
$c/= :: FlowNodeProperty -> FlowNodeProperty -> Bool
/= :: FlowNodeProperty -> FlowNodeProperty -> Bool
Prelude.Eq, Int -> FlowNodeProperty -> ShowS
[FlowNodeProperty] -> ShowS
FlowNodeProperty -> String
(Int -> FlowNodeProperty -> ShowS)
-> (FlowNodeProperty -> String)
-> ([FlowNodeProperty] -> ShowS)
-> Show FlowNodeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FlowNodeProperty -> ShowS
showsPrec :: Int -> FlowNodeProperty -> ShowS
$cshow :: FlowNodeProperty -> String
show :: FlowNodeProperty -> String
$cshowList :: [FlowNodeProperty] -> ShowS
showList :: [FlowNodeProperty] -> ShowS
Prelude.Show)
mkFlowNodeProperty ::
  Value Prelude.Text -> Value Prelude.Text -> FlowNodeProperty
mkFlowNodeProperty :: Value Text -> Value Text -> FlowNodeProperty
mkFlowNodeProperty Value Text
name Value Text
type'
  = FlowNodeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, type' :: Value Text
type' = Value Text
type',
       configuration :: Maybe FlowNodeConfigurationProperty
configuration = Maybe FlowNodeConfigurationProperty
forall a. Maybe a
Prelude.Nothing, inputs :: Maybe [FlowNodeInputProperty]
inputs = Maybe [FlowNodeInputProperty]
forall a. Maybe a
Prelude.Nothing,
       outputs :: Maybe [FlowNodeOutputProperty]
outputs = Maybe [FlowNodeOutputProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FlowNodeProperty where
  toResourceProperties :: FlowNodeProperty -> ResourceProperties
toResourceProperties FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::FlowVersion.FlowNode",
         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
"Name" 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
name, Key
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> FlowNodeConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (FlowNodeConfigurationProperty -> (Key, Value))
-> Maybe FlowNodeConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FlowNodeConfigurationProperty
configuration,
                               Key -> [FlowNodeInputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Inputs" ([FlowNodeInputProperty] -> (Key, Value))
-> Maybe [FlowNodeInputProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FlowNodeInputProperty]
inputs,
                               Key -> [FlowNodeOutputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Outputs" ([FlowNodeOutputProperty] -> (Key, Value))
-> Maybe [FlowNodeOutputProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FlowNodeOutputProperty]
outputs]))}
instance JSON.ToJSON FlowNodeProperty where
  toJSON :: FlowNodeProperty -> Value
toJSON FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: 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
"Name" 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
name, Key
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> FlowNodeConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (FlowNodeConfigurationProperty -> (Key, Value))
-> Maybe FlowNodeConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FlowNodeConfigurationProperty
configuration,
                  Key -> [FlowNodeInputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Inputs" ([FlowNodeInputProperty] -> (Key, Value))
-> Maybe [FlowNodeInputProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FlowNodeInputProperty]
inputs,
                  Key -> [FlowNodeOutputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Outputs" ([FlowNodeOutputProperty] -> (Key, Value))
-> Maybe [FlowNodeOutputProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FlowNodeOutputProperty]
outputs])))
instance Property "Configuration" FlowNodeProperty where
  type PropertyType "Configuration" FlowNodeProperty = FlowNodeConfigurationProperty
  set :: PropertyType "Configuration" FlowNodeProperty
-> FlowNodeProperty -> FlowNodeProperty
set PropertyType "Configuration" FlowNodeProperty
newValue FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
    = FlowNodeProperty {configuration :: Maybe FlowNodeConfigurationProperty
configuration = FlowNodeConfigurationProperty
-> Maybe FlowNodeConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Configuration" FlowNodeProperty
FlowNodeConfigurationProperty
newValue, Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
()
Value Text
haddock_workaround_ :: ()
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
haddock_workaround_ :: ()
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
instance Property "Inputs" FlowNodeProperty where
  type PropertyType "Inputs" FlowNodeProperty = [FlowNodeInputProperty]
  set :: PropertyType "Inputs" FlowNodeProperty
-> FlowNodeProperty -> FlowNodeProperty
set PropertyType "Inputs" FlowNodeProperty
newValue FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
    = FlowNodeProperty {inputs :: Maybe [FlowNodeInputProperty]
inputs = [FlowNodeInputProperty] -> Maybe [FlowNodeInputProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FlowNodeInputProperty]
PropertyType "Inputs" FlowNodeProperty
newValue, Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
instance Property "Name" FlowNodeProperty where
  type PropertyType "Name" FlowNodeProperty = Value Prelude.Text
  set :: PropertyType "Name" FlowNodeProperty
-> FlowNodeProperty -> FlowNodeProperty
set PropertyType "Name" FlowNodeProperty
newValue FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
    = FlowNodeProperty {name :: Value Text
name = PropertyType "Name" FlowNodeProperty
Value Text
newValue, Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
instance Property "Outputs" FlowNodeProperty where
  type PropertyType "Outputs" FlowNodeProperty = [FlowNodeOutputProperty]
  set :: PropertyType "Outputs" FlowNodeProperty
-> FlowNodeProperty -> FlowNodeProperty
set PropertyType "Outputs" FlowNodeProperty
newValue FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
    = FlowNodeProperty {outputs :: Maybe [FlowNodeOutputProperty]
outputs = [FlowNodeOutputProperty] -> Maybe [FlowNodeOutputProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FlowNodeOutputProperty]
PropertyType "Outputs" FlowNodeProperty
newValue, Maybe [FlowNodeInputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
type' :: Value Text
..}
instance Property "Type" FlowNodeProperty where
  type PropertyType "Type" FlowNodeProperty = Value Prelude.Text
  set :: PropertyType "Type" FlowNodeProperty
-> FlowNodeProperty -> FlowNodeProperty
set PropertyType "Type" FlowNodeProperty
newValue FlowNodeProperty {Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowNodeProperty -> ()
configuration :: FlowNodeProperty -> Maybe FlowNodeConfigurationProperty
inputs :: FlowNodeProperty -> Maybe [FlowNodeInputProperty]
name :: FlowNodeProperty -> Value Text
outputs :: FlowNodeProperty -> Maybe [FlowNodeOutputProperty]
type' :: FlowNodeProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
type' :: Value Text
..}
    = FlowNodeProperty {type' :: Value Text
type' = PropertyType "Type" FlowNodeProperty
Value Text
newValue, Maybe [FlowNodeInputProperty]
Maybe [FlowNodeOutputProperty]
Maybe FlowNodeConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
haddock_workaround_ :: ()
configuration :: Maybe FlowNodeConfigurationProperty
inputs :: Maybe [FlowNodeInputProperty]
name :: Value Text
outputs :: Maybe [FlowNodeOutputProperty]
..}