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