module Stratosphere.Bedrock.Prompt.PromptAgentResourceProperty (
        PromptAgentResourceProperty(..), mkPromptAgentResourceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PromptAgentResourceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptagentresource.html>
    PromptAgentResourceProperty {PromptAgentResourceProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptagentresource.html#cfn-bedrock-prompt-promptagentresource-agentidentifier>
                                 PromptAgentResourceProperty -> Value Text
agentIdentifier :: (Value Prelude.Text)}
  deriving stock (PromptAgentResourceProperty -> PromptAgentResourceProperty -> Bool
(PromptAgentResourceProperty
 -> PromptAgentResourceProperty -> Bool)
-> (PromptAgentResourceProperty
    -> PromptAgentResourceProperty -> Bool)
-> Eq PromptAgentResourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PromptAgentResourceProperty -> PromptAgentResourceProperty -> Bool
== :: PromptAgentResourceProperty -> PromptAgentResourceProperty -> Bool
$c/= :: PromptAgentResourceProperty -> PromptAgentResourceProperty -> Bool
/= :: PromptAgentResourceProperty -> PromptAgentResourceProperty -> Bool
Prelude.Eq, Int -> PromptAgentResourceProperty -> ShowS
[PromptAgentResourceProperty] -> ShowS
PromptAgentResourceProperty -> String
(Int -> PromptAgentResourceProperty -> ShowS)
-> (PromptAgentResourceProperty -> String)
-> ([PromptAgentResourceProperty] -> ShowS)
-> Show PromptAgentResourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PromptAgentResourceProperty -> ShowS
showsPrec :: Int -> PromptAgentResourceProperty -> ShowS
$cshow :: PromptAgentResourceProperty -> String
show :: PromptAgentResourceProperty -> String
$cshowList :: [PromptAgentResourceProperty] -> ShowS
showList :: [PromptAgentResourceProperty] -> ShowS
Prelude.Show)
mkPromptAgentResourceProperty ::
  Value Prelude.Text -> PromptAgentResourceProperty
mkPromptAgentResourceProperty :: Value Text -> PromptAgentResourceProperty
mkPromptAgentResourceProperty Value Text
agentIdentifier
  = PromptAgentResourceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), agentIdentifier :: Value Text
agentIdentifier = Value Text
agentIdentifier}
instance ToResourceProperties PromptAgentResourceProperty where
  toResourceProperties :: PromptAgentResourceProperty -> ResourceProperties
toResourceProperties PromptAgentResourceProperty {()
Value Text
haddock_workaround_ :: PromptAgentResourceProperty -> ()
agentIdentifier :: PromptAgentResourceProperty -> Value Text
haddock_workaround_ :: ()
agentIdentifier :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Prompt.PromptAgentResource",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AgentIdentifier" 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
agentIdentifier]}
instance JSON.ToJSON PromptAgentResourceProperty where
  toJSON :: PromptAgentResourceProperty -> Value
toJSON PromptAgentResourceProperty {()
Value Text
haddock_workaround_ :: PromptAgentResourceProperty -> ()
agentIdentifier :: PromptAgentResourceProperty -> Value Text
haddock_workaround_ :: ()
agentIdentifier :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"AgentIdentifier" 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
agentIdentifier]
instance Property "AgentIdentifier" PromptAgentResourceProperty where
  type PropertyType "AgentIdentifier" PromptAgentResourceProperty = Value Prelude.Text
  set :: PropertyType "AgentIdentifier" PromptAgentResourceProperty
-> PromptAgentResourceProperty -> PromptAgentResourceProperty
set PropertyType "AgentIdentifier" PromptAgentResourceProperty
newValue PromptAgentResourceProperty {()
Value Text
haddock_workaround_ :: PromptAgentResourceProperty -> ()
agentIdentifier :: PromptAgentResourceProperty -> Value Text
haddock_workaround_ :: ()
agentIdentifier :: Value Text
..}
    = PromptAgentResourceProperty {agentIdentifier :: Value Text
agentIdentifier = PropertyType "AgentIdentifier" PromptAgentResourceProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}