module Stratosphere.Bedrock.FlowVersion.KnowledgeBasePromptTemplateProperty (
KnowledgeBasePromptTemplateProperty(..),
mkKnowledgeBasePromptTemplateProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KnowledgeBasePromptTemplateProperty
=
KnowledgeBasePromptTemplateProperty {KnowledgeBasePromptTemplateProperty -> ()
haddock_workaround_ :: (),
KnowledgeBasePromptTemplateProperty -> Value Text
textPromptTemplate :: (Value Prelude.Text)}
deriving stock (KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool
(KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool)
-> (KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool)
-> Eq KnowledgeBasePromptTemplateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool
== :: KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool
$c/= :: KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool
/= :: KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty -> Bool
Prelude.Eq, Int -> KnowledgeBasePromptTemplateProperty -> ShowS
[KnowledgeBasePromptTemplateProperty] -> ShowS
KnowledgeBasePromptTemplateProperty -> String
(Int -> KnowledgeBasePromptTemplateProperty -> ShowS)
-> (KnowledgeBasePromptTemplateProperty -> String)
-> ([KnowledgeBasePromptTemplateProperty] -> ShowS)
-> Show KnowledgeBasePromptTemplateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KnowledgeBasePromptTemplateProperty -> ShowS
showsPrec :: Int -> KnowledgeBasePromptTemplateProperty -> ShowS
$cshow :: KnowledgeBasePromptTemplateProperty -> String
show :: KnowledgeBasePromptTemplateProperty -> String
$cshowList :: [KnowledgeBasePromptTemplateProperty] -> ShowS
showList :: [KnowledgeBasePromptTemplateProperty] -> ShowS
Prelude.Show)
mkKnowledgeBasePromptTemplateProperty ::
Value Prelude.Text -> KnowledgeBasePromptTemplateProperty
mkKnowledgeBasePromptTemplateProperty :: Value Text -> KnowledgeBasePromptTemplateProperty
mkKnowledgeBasePromptTemplateProperty Value Text
textPromptTemplate
= KnowledgeBasePromptTemplateProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), textPromptTemplate :: Value Text
textPromptTemplate = Value Text
textPromptTemplate}
instance ToResourceProperties KnowledgeBasePromptTemplateProperty where
toResourceProperties :: KnowledgeBasePromptTemplateProperty -> ResourceProperties
toResourceProperties KnowledgeBasePromptTemplateProperty {()
Value Text
haddock_workaround_ :: KnowledgeBasePromptTemplateProperty -> ()
textPromptTemplate :: KnowledgeBasePromptTemplateProperty -> Value Text
haddock_workaround_ :: ()
textPromptTemplate :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::FlowVersion.KnowledgeBasePromptTemplate",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"TextPromptTemplate" 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
textPromptTemplate]}
instance JSON.ToJSON KnowledgeBasePromptTemplateProperty where
toJSON :: KnowledgeBasePromptTemplateProperty -> Value
toJSON KnowledgeBasePromptTemplateProperty {()
Value Text
haddock_workaround_ :: KnowledgeBasePromptTemplateProperty -> ()
textPromptTemplate :: KnowledgeBasePromptTemplateProperty -> Value Text
haddock_workaround_ :: ()
textPromptTemplate :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"TextPromptTemplate" 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
textPromptTemplate]
instance Property "TextPromptTemplate" KnowledgeBasePromptTemplateProperty where
type PropertyType "TextPromptTemplate" KnowledgeBasePromptTemplateProperty = Value Prelude.Text
set :: PropertyType
"TextPromptTemplate" KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty
-> KnowledgeBasePromptTemplateProperty
set PropertyType
"TextPromptTemplate" KnowledgeBasePromptTemplateProperty
newValue KnowledgeBasePromptTemplateProperty {()
Value Text
haddock_workaround_ :: KnowledgeBasePromptTemplateProperty -> ()
textPromptTemplate :: KnowledgeBasePromptTemplateProperty -> Value Text
haddock_workaround_ :: ()
textPromptTemplate :: Value Text
..}
= KnowledgeBasePromptTemplateProperty
{textPromptTemplate :: Value Text
textPromptTemplate = PropertyType
"TextPromptTemplate" KnowledgeBasePromptTemplateProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}