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