module Stratosphere.Bedrock.Flow.PromptInputVariableProperty ( PromptInputVariableProperty(..), mkPromptInputVariableProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data PromptInputVariableProperty = -- | See: PromptInputVariableProperty {haddock_workaround_ :: (), -- | See: name :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkPromptInputVariableProperty :: PromptInputVariableProperty mkPromptInputVariableProperty = PromptInputVariableProperty {haddock_workaround_ = (), name = Prelude.Nothing} instance ToResourceProperties PromptInputVariableProperty where toResourceProperties PromptInputVariableProperty {..} = ResourceProperties {awsType = "AWS::Bedrock::Flow.PromptInputVariable", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name])} instance JSON.ToJSON PromptInputVariableProperty where toJSON PromptInputVariableProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name])) instance Property "Name" PromptInputVariableProperty where type PropertyType "Name" PromptInputVariableProperty = Value Prelude.Text set newValue PromptInputVariableProperty {..} = PromptInputVariableProperty {name = Prelude.pure newValue, ..}