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