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