module Stratosphere.Bedrock.PromptVersion.ToolInputSchemaProperty (
ToolInputSchemaProperty(..), mkToolInputSchemaProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
data ToolInputSchemaProperty
=
ToolInputSchemaProperty {ToolInputSchemaProperty -> ()
haddock_workaround_ :: (),
ToolInputSchemaProperty -> Object
json :: JSON.Object}
deriving stock (ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool
(ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool)
-> (ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool)
-> Eq ToolInputSchemaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool
== :: ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool
$c/= :: ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool
/= :: ToolInputSchemaProperty -> ToolInputSchemaProperty -> Bool
Prelude.Eq, Int -> ToolInputSchemaProperty -> ShowS
[ToolInputSchemaProperty] -> ShowS
ToolInputSchemaProperty -> String
(Int -> ToolInputSchemaProperty -> ShowS)
-> (ToolInputSchemaProperty -> String)
-> ([ToolInputSchemaProperty] -> ShowS)
-> Show ToolInputSchemaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ToolInputSchemaProperty -> ShowS
showsPrec :: Int -> ToolInputSchemaProperty -> ShowS
$cshow :: ToolInputSchemaProperty -> String
show :: ToolInputSchemaProperty -> String
$cshowList :: [ToolInputSchemaProperty] -> ShowS
showList :: [ToolInputSchemaProperty] -> ShowS
Prelude.Show)
mkToolInputSchemaProperty :: JSON.Object -> ToolInputSchemaProperty
mkToolInputSchemaProperty :: Object -> ToolInputSchemaProperty
mkToolInputSchemaProperty Object
json
= ToolInputSchemaProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), json :: Object
json = Object
json}
instance ToResourceProperties ToolInputSchemaProperty where
toResourceProperties :: ToolInputSchemaProperty -> ResourceProperties
toResourceProperties ToolInputSchemaProperty {()
Object
haddock_workaround_ :: ToolInputSchemaProperty -> ()
json :: ToolInputSchemaProperty -> Object
haddock_workaround_ :: ()
json :: Object
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::PromptVersion.ToolInputSchema",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Json" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
json]}
instance JSON.ToJSON ToolInputSchemaProperty where
toJSON :: ToolInputSchemaProperty -> Value
toJSON ToolInputSchemaProperty {()
Object
haddock_workaround_ :: ToolInputSchemaProperty -> ()
json :: ToolInputSchemaProperty -> Object
haddock_workaround_ :: ()
json :: Object
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Json" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
json]
instance Property "Json" ToolInputSchemaProperty where
type PropertyType "Json" ToolInputSchemaProperty = JSON.Object
set :: PropertyType "Json" ToolInputSchemaProperty
-> ToolInputSchemaProperty -> ToolInputSchemaProperty
set PropertyType "Json" ToolInputSchemaProperty
newValue ToolInputSchemaProperty {()
Object
haddock_workaround_ :: ToolInputSchemaProperty -> ()
json :: ToolInputSchemaProperty -> Object
haddock_workaround_ :: ()
json :: Object
..}
= ToolInputSchemaProperty {json :: Object
json = Object
PropertyType "Json" ToolInputSchemaProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}