module Stratosphere.Bedrock.FlowVersion.TextPromptTemplateConfigurationProperty (
        module Exports, TextPromptTemplateConfigurationProperty(..),
        mkTextPromptTemplateConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.PromptInputVariableProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TextPromptTemplateConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html>
    TextPromptTemplateConfigurationProperty {TextPromptTemplateConfigurationProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html#cfn-bedrock-flowversion-textprompttemplateconfiguration-inputvariables>
                                             TextPromptTemplateConfigurationProperty
-> Maybe [PromptInputVariableProperty]
inputVariables :: (Prelude.Maybe [PromptInputVariableProperty]),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html#cfn-bedrock-flowversion-textprompttemplateconfiguration-text>
                                             TextPromptTemplateConfigurationProperty -> Value Text
text :: (Value Prelude.Text)}
  deriving stock (TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty -> Bool
(TextPromptTemplateConfigurationProperty
 -> TextPromptTemplateConfigurationProperty -> Bool)
-> (TextPromptTemplateConfigurationProperty
    -> TextPromptTemplateConfigurationProperty -> Bool)
-> Eq TextPromptTemplateConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty -> Bool
== :: TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty -> Bool
$c/= :: TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty -> Bool
/= :: TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty -> Bool
Prelude.Eq, Int -> TextPromptTemplateConfigurationProperty -> ShowS
[TextPromptTemplateConfigurationProperty] -> ShowS
TextPromptTemplateConfigurationProperty -> String
(Int -> TextPromptTemplateConfigurationProperty -> ShowS)
-> (TextPromptTemplateConfigurationProperty -> String)
-> ([TextPromptTemplateConfigurationProperty] -> ShowS)
-> Show TextPromptTemplateConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TextPromptTemplateConfigurationProperty -> ShowS
showsPrec :: Int -> TextPromptTemplateConfigurationProperty -> ShowS
$cshow :: TextPromptTemplateConfigurationProperty -> String
show :: TextPromptTemplateConfigurationProperty -> String
$cshowList :: [TextPromptTemplateConfigurationProperty] -> ShowS
showList :: [TextPromptTemplateConfigurationProperty] -> ShowS
Prelude.Show)
mkTextPromptTemplateConfigurationProperty ::
  Value Prelude.Text -> TextPromptTemplateConfigurationProperty
mkTextPromptTemplateConfigurationProperty :: Value Text -> TextPromptTemplateConfigurationProperty
mkTextPromptTemplateConfigurationProperty Value Text
text
  = TextPromptTemplateConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), text :: Value Text
text = Value Text
text,
       inputVariables :: Maybe [PromptInputVariableProperty]
inputVariables = Maybe [PromptInputVariableProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TextPromptTemplateConfigurationProperty where
  toResourceProperties :: TextPromptTemplateConfigurationProperty -> ResourceProperties
toResourceProperties TextPromptTemplateConfigurationProperty {Maybe [PromptInputVariableProperty]
()
Value Text
haddock_workaround_ :: TextPromptTemplateConfigurationProperty -> ()
inputVariables :: TextPromptTemplateConfigurationProperty
-> Maybe [PromptInputVariableProperty]
text :: TextPromptTemplateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputVariables :: Maybe [PromptInputVariableProperty]
text :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::FlowVersion.TextPromptTemplateConfiguration",
         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
"Text" 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
text]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [PromptInputVariableProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputVariables" ([PromptInputVariableProperty] -> (Key, Value))
-> Maybe [PromptInputVariableProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PromptInputVariableProperty]
inputVariables]))}
instance JSON.ToJSON TextPromptTemplateConfigurationProperty where
  toJSON :: TextPromptTemplateConfigurationProperty -> Value
toJSON TextPromptTemplateConfigurationProperty {Maybe [PromptInputVariableProperty]
()
Value Text
haddock_workaround_ :: TextPromptTemplateConfigurationProperty -> ()
inputVariables :: TextPromptTemplateConfigurationProperty
-> Maybe [PromptInputVariableProperty]
text :: TextPromptTemplateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputVariables :: Maybe [PromptInputVariableProperty]
text :: 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
"Text" 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
text]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [PromptInputVariableProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputVariables" ([PromptInputVariableProperty] -> (Key, Value))
-> Maybe [PromptInputVariableProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PromptInputVariableProperty]
inputVariables])))
instance Property "InputVariables" TextPromptTemplateConfigurationProperty where
  type PropertyType "InputVariables" TextPromptTemplateConfigurationProperty = [PromptInputVariableProperty]
  set :: PropertyType
  "InputVariables" TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty
set PropertyType
  "InputVariables" TextPromptTemplateConfigurationProperty
newValue TextPromptTemplateConfigurationProperty {Maybe [PromptInputVariableProperty]
()
Value Text
haddock_workaround_ :: TextPromptTemplateConfigurationProperty -> ()
inputVariables :: TextPromptTemplateConfigurationProperty
-> Maybe [PromptInputVariableProperty]
text :: TextPromptTemplateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputVariables :: Maybe [PromptInputVariableProperty]
text :: Value Text
..}
    = TextPromptTemplateConfigurationProperty
        {inputVariables :: Maybe [PromptInputVariableProperty]
inputVariables = [PromptInputVariableProperty]
-> Maybe [PromptInputVariableProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [PromptInputVariableProperty]
PropertyType
  "InputVariables" TextPromptTemplateConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
text :: Value Text
haddock_workaround_ :: ()
text :: Value Text
..}
instance Property "Text" TextPromptTemplateConfigurationProperty where
  type PropertyType "Text" TextPromptTemplateConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Text" TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty
-> TextPromptTemplateConfigurationProperty
set PropertyType "Text" TextPromptTemplateConfigurationProperty
newValue TextPromptTemplateConfigurationProperty {Maybe [PromptInputVariableProperty]
()
Value Text
haddock_workaround_ :: TextPromptTemplateConfigurationProperty -> ()
inputVariables :: TextPromptTemplateConfigurationProperty
-> Maybe [PromptInputVariableProperty]
text :: TextPromptTemplateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputVariables :: Maybe [PromptInputVariableProperty]
text :: Value Text
..}
    = TextPromptTemplateConfigurationProperty {text :: Value Text
text = PropertyType "Text" TextPromptTemplateConfigurationProperty
Value Text
newValue, Maybe [PromptInputVariableProperty]
()
haddock_workaround_ :: ()
inputVariables :: Maybe [PromptInputVariableProperty]
haddock_workaround_ :: ()
inputVariables :: Maybe [PromptInputVariableProperty]
..}