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