module Stratosphere.Bedrock.Agent.FunctionSchemaProperty (
        module Exports, FunctionSchemaProperty(..),
        mkFunctionSchemaProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Agent.FunctionProperty as Exports
import Stratosphere.ResourceProperties
data FunctionSchemaProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html>
    FunctionSchemaProperty {FunctionSchemaProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html#cfn-bedrock-agent-functionschema-functions>
                            FunctionSchemaProperty -> [FunctionProperty]
functions :: [FunctionProperty]}
  deriving stock (FunctionSchemaProperty -> FunctionSchemaProperty -> Bool
(FunctionSchemaProperty -> FunctionSchemaProperty -> Bool)
-> (FunctionSchemaProperty -> FunctionSchemaProperty -> Bool)
-> Eq FunctionSchemaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FunctionSchemaProperty -> FunctionSchemaProperty -> Bool
== :: FunctionSchemaProperty -> FunctionSchemaProperty -> Bool
$c/= :: FunctionSchemaProperty -> FunctionSchemaProperty -> Bool
/= :: FunctionSchemaProperty -> FunctionSchemaProperty -> Bool
Prelude.Eq, Int -> FunctionSchemaProperty -> ShowS
[FunctionSchemaProperty] -> ShowS
FunctionSchemaProperty -> String
(Int -> FunctionSchemaProperty -> ShowS)
-> (FunctionSchemaProperty -> String)
-> ([FunctionSchemaProperty] -> ShowS)
-> Show FunctionSchemaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FunctionSchemaProperty -> ShowS
showsPrec :: Int -> FunctionSchemaProperty -> ShowS
$cshow :: FunctionSchemaProperty -> String
show :: FunctionSchemaProperty -> String
$cshowList :: [FunctionSchemaProperty] -> ShowS
showList :: [FunctionSchemaProperty] -> ShowS
Prelude.Show)
mkFunctionSchemaProperty ::
  [FunctionProperty] -> FunctionSchemaProperty
mkFunctionSchemaProperty :: [FunctionProperty] -> FunctionSchemaProperty
mkFunctionSchemaProperty [FunctionProperty]
functions
  = FunctionSchemaProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), functions :: [FunctionProperty]
functions = [FunctionProperty]
functions}
instance ToResourceProperties FunctionSchemaProperty where
  toResourceProperties :: FunctionSchemaProperty -> ResourceProperties
toResourceProperties FunctionSchemaProperty {[FunctionProperty]
()
haddock_workaround_ :: FunctionSchemaProperty -> ()
functions :: FunctionSchemaProperty -> [FunctionProperty]
haddock_workaround_ :: ()
functions :: [FunctionProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Agent.FunctionSchema",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Functions" Key -> [FunctionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [FunctionProperty]
functions]}
instance JSON.ToJSON FunctionSchemaProperty where
  toJSON :: FunctionSchemaProperty -> Value
toJSON FunctionSchemaProperty {[FunctionProperty]
()
haddock_workaround_ :: FunctionSchemaProperty -> ()
functions :: FunctionSchemaProperty -> [FunctionProperty]
haddock_workaround_ :: ()
functions :: [FunctionProperty]
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Functions" Key -> [FunctionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [FunctionProperty]
functions]
instance Property "Functions" FunctionSchemaProperty where
  type PropertyType "Functions" FunctionSchemaProperty = [FunctionProperty]
  set :: PropertyType "Functions" FunctionSchemaProperty
-> FunctionSchemaProperty -> FunctionSchemaProperty
set PropertyType "Functions" FunctionSchemaProperty
newValue FunctionSchemaProperty {[FunctionProperty]
()
haddock_workaround_ :: FunctionSchemaProperty -> ()
functions :: FunctionSchemaProperty -> [FunctionProperty]
haddock_workaround_ :: ()
functions :: [FunctionProperty]
..}
    = FunctionSchemaProperty {functions :: [FunctionProperty]
functions = [FunctionProperty]
PropertyType "Functions" FunctionSchemaProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}