module Stratosphere.Bedrock.Flow.FlowNodeInputProperty (
        FlowNodeInputProperty(..), mkFlowNodeInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowNodeInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html>
    FlowNodeInputProperty {FlowNodeInputProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-category>
                           FlowNodeInputProperty -> Maybe (Value Text)
category :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-expression>
                           FlowNodeInputProperty -> Value Text
expression :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-name>
                           FlowNodeInputProperty -> Value Text
name :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-type>
                           FlowNodeInputProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (FlowNodeInputProperty -> FlowNodeInputProperty -> Bool
(FlowNodeInputProperty -> FlowNodeInputProperty -> Bool)
-> (FlowNodeInputProperty -> FlowNodeInputProperty -> Bool)
-> Eq FlowNodeInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FlowNodeInputProperty -> FlowNodeInputProperty -> Bool
== :: FlowNodeInputProperty -> FlowNodeInputProperty -> Bool
$c/= :: FlowNodeInputProperty -> FlowNodeInputProperty -> Bool
/= :: FlowNodeInputProperty -> FlowNodeInputProperty -> Bool
Prelude.Eq, Int -> FlowNodeInputProperty -> ShowS
[FlowNodeInputProperty] -> ShowS
FlowNodeInputProperty -> String
(Int -> FlowNodeInputProperty -> ShowS)
-> (FlowNodeInputProperty -> String)
-> ([FlowNodeInputProperty] -> ShowS)
-> Show FlowNodeInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FlowNodeInputProperty -> ShowS
showsPrec :: Int -> FlowNodeInputProperty -> ShowS
$cshow :: FlowNodeInputProperty -> String
show :: FlowNodeInputProperty -> String
$cshowList :: [FlowNodeInputProperty] -> ShowS
showList :: [FlowNodeInputProperty] -> ShowS
Prelude.Show)
mkFlowNodeInputProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> FlowNodeInputProperty
mkFlowNodeInputProperty :: Value Text -> Value Text -> Value Text -> FlowNodeInputProperty
mkFlowNodeInputProperty Value Text
expression Value Text
name Value Text
type'
  = FlowNodeInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), expression :: Value Text
expression = Value Text
expression, name :: Value Text
name = Value Text
name,
       type' :: Value Text
type' = Value Text
type', category :: Maybe (Value Text)
category = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FlowNodeInputProperty where
  toResourceProperties :: FlowNodeInputProperty -> ResourceProperties
toResourceProperties FlowNodeInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FlowNodeInputProperty -> ()
category :: FlowNodeInputProperty -> Maybe (Value Text)
expression :: FlowNodeInputProperty -> Value Text
name :: FlowNodeInputProperty -> Value Text
type' :: FlowNodeInputProperty -> Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Flow.FlowNodeInput",
         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
"Expression" 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
expression, 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 -> 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
"Category" (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)
category]))}
instance JSON.ToJSON FlowNodeInputProperty where
  toJSON :: FlowNodeInputProperty -> Value
toJSON FlowNodeInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FlowNodeInputProperty -> ()
category :: FlowNodeInputProperty -> Maybe (Value Text)
expression :: FlowNodeInputProperty -> Value Text
name :: FlowNodeInputProperty -> Value Text
type' :: FlowNodeInputProperty -> Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
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
"Expression" 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
expression, 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 -> 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
"Category" (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)
category])))
instance Property "Category" FlowNodeInputProperty where
  type PropertyType "Category" FlowNodeInputProperty = Value Prelude.Text
  set :: PropertyType "Category" FlowNodeInputProperty
-> FlowNodeInputProperty -> FlowNodeInputProperty
set PropertyType "Category" FlowNodeInputProperty
newValue FlowNodeInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FlowNodeInputProperty -> ()
category :: FlowNodeInputProperty -> Maybe (Value Text)
expression :: FlowNodeInputProperty -> Value Text
name :: FlowNodeInputProperty -> Value Text
type' :: FlowNodeInputProperty -> Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
type' :: Value Text
..}
    = FlowNodeInputProperty {category :: Maybe (Value Text)
category = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Category" FlowNodeInputProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
expression :: Value Text
name :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
expression :: Value Text
name :: Value Text
type' :: Value Text
..}
instance Property "Expression" FlowNodeInputProperty where
  type PropertyType "Expression" FlowNodeInputProperty = Value Prelude.Text
  set :: PropertyType "Expression" FlowNodeInputProperty
-> FlowNodeInputProperty -> FlowNodeInputProperty
set PropertyType "Expression" FlowNodeInputProperty
newValue FlowNodeInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FlowNodeInputProperty -> ()
category :: FlowNodeInputProperty -> Maybe (Value Text)
expression :: FlowNodeInputProperty -> Value Text
name :: FlowNodeInputProperty -> Value Text
type' :: FlowNodeInputProperty -> Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
type' :: Value Text
..}
    = FlowNodeInputProperty {expression :: Value Text
expression = PropertyType "Expression" FlowNodeInputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
name :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
name :: Value Text
type' :: Value Text
..}
instance Property "Name" FlowNodeInputProperty where
  type PropertyType "Name" FlowNodeInputProperty = Value Prelude.Text
  set :: PropertyType "Name" FlowNodeInputProperty
-> FlowNodeInputProperty -> FlowNodeInputProperty
set PropertyType "Name" FlowNodeInputProperty
newValue FlowNodeInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FlowNodeInputProperty -> ()
category :: FlowNodeInputProperty -> Maybe (Value Text)
expression :: FlowNodeInputProperty -> Value Text
name :: FlowNodeInputProperty -> Value Text
type' :: FlowNodeInputProperty -> Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
type' :: Value Text
..}
    = FlowNodeInputProperty {name :: Value Text
name = PropertyType "Name" FlowNodeInputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
type' :: Value Text
..}
instance Property "Type" FlowNodeInputProperty where
  type PropertyType "Type" FlowNodeInputProperty = Value Prelude.Text
  set :: PropertyType "Type" FlowNodeInputProperty
-> FlowNodeInputProperty -> FlowNodeInputProperty
set PropertyType "Type" FlowNodeInputProperty
newValue FlowNodeInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FlowNodeInputProperty -> ()
category :: FlowNodeInputProperty -> Maybe (Value Text)
expression :: FlowNodeInputProperty -> Value Text
name :: FlowNodeInputProperty -> Value Text
type' :: FlowNodeInputProperty -> Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
type' :: Value Text
..}
    = FlowNodeInputProperty {type' :: Value Text
type' = PropertyType "Type" FlowNodeInputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
haddock_workaround_ :: ()
category :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
..}