stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/Prompt/PromptAgentResourceProperty.hs
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 {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptagentresource.html#cfn-bedrock-prompt-promptagentresource-agentidentifier>
agentIdentifier :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkPromptAgentResourceProperty ::
Value Prelude.Text -> PromptAgentResourceProperty
mkPromptAgentResourceProperty agentIdentifier
= PromptAgentResourceProperty
{haddock_workaround_ = (), agentIdentifier = agentIdentifier}
instance ToResourceProperties PromptAgentResourceProperty where
toResourceProperties PromptAgentResourceProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::Prompt.PromptAgentResource",
supportsTags = Prelude.False,
properties = ["AgentIdentifier" JSON..= agentIdentifier]}
instance JSON.ToJSON PromptAgentResourceProperty where
toJSON PromptAgentResourceProperty {..}
= JSON.object ["AgentIdentifier" JSON..= agentIdentifier]
instance Property "AgentIdentifier" PromptAgentResourceProperty where
type PropertyType "AgentIdentifier" PromptAgentResourceProperty = Value Prelude.Text
set newValue PromptAgentResourceProperty {..}
= PromptAgentResourceProperty {agentIdentifier = newValue, ..}