module Stratosphere.QBusiness.Retriever.KendraIndexConfigurationProperty (
        KendraIndexConfigurationProperty(..),
        mkKendraIndexConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KendraIndexConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-retriever-kendraindexconfiguration.html>
    KendraIndexConfigurationProperty {KendraIndexConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-retriever-kendraindexconfiguration.html#cfn-qbusiness-retriever-kendraindexconfiguration-indexid>
                                      KendraIndexConfigurationProperty -> Value Text
indexId :: (Value Prelude.Text)}
  deriving stock (KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty -> Bool
(KendraIndexConfigurationProperty
 -> KendraIndexConfigurationProperty -> Bool)
-> (KendraIndexConfigurationProperty
    -> KendraIndexConfigurationProperty -> Bool)
-> Eq KendraIndexConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty -> Bool
== :: KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty -> Bool
$c/= :: KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty -> Bool
/= :: KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty -> Bool
Prelude.Eq, Int -> KendraIndexConfigurationProperty -> ShowS
[KendraIndexConfigurationProperty] -> ShowS
KendraIndexConfigurationProperty -> String
(Int -> KendraIndexConfigurationProperty -> ShowS)
-> (KendraIndexConfigurationProperty -> String)
-> ([KendraIndexConfigurationProperty] -> ShowS)
-> Show KendraIndexConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KendraIndexConfigurationProperty -> ShowS
showsPrec :: Int -> KendraIndexConfigurationProperty -> ShowS
$cshow :: KendraIndexConfigurationProperty -> String
show :: KendraIndexConfigurationProperty -> String
$cshowList :: [KendraIndexConfigurationProperty] -> ShowS
showList :: [KendraIndexConfigurationProperty] -> ShowS
Prelude.Show)
mkKendraIndexConfigurationProperty ::
  Value Prelude.Text -> KendraIndexConfigurationProperty
mkKendraIndexConfigurationProperty :: Value Text -> KendraIndexConfigurationProperty
mkKendraIndexConfigurationProperty Value Text
indexId
  = KendraIndexConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), indexId :: Value Text
indexId = Value Text
indexId}
instance ToResourceProperties KendraIndexConfigurationProperty where
  toResourceProperties :: KendraIndexConfigurationProperty -> ResourceProperties
toResourceProperties KendraIndexConfigurationProperty {()
Value Text
haddock_workaround_ :: KendraIndexConfigurationProperty -> ()
indexId :: KendraIndexConfigurationProperty -> Value Text
haddock_workaround_ :: ()
indexId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QBusiness::Retriever.KendraIndexConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"IndexId" 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
indexId]}
instance JSON.ToJSON KendraIndexConfigurationProperty where
  toJSON :: KendraIndexConfigurationProperty -> Value
toJSON KendraIndexConfigurationProperty {()
Value Text
haddock_workaround_ :: KendraIndexConfigurationProperty -> ()
indexId :: KendraIndexConfigurationProperty -> Value Text
haddock_workaround_ :: ()
indexId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"IndexId" 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
indexId]
instance Property "IndexId" KendraIndexConfigurationProperty where
  type PropertyType "IndexId" KendraIndexConfigurationProperty = Value Prelude.Text
  set :: PropertyType "IndexId" KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty
-> KendraIndexConfigurationProperty
set PropertyType "IndexId" KendraIndexConfigurationProperty
newValue KendraIndexConfigurationProperty {()
Value Text
haddock_workaround_ :: KendraIndexConfigurationProperty -> ()
indexId :: KendraIndexConfigurationProperty -> Value Text
haddock_workaround_ :: ()
indexId :: Value Text
..}
    = KendraIndexConfigurationProperty {indexId :: Value Text
indexId = PropertyType "IndexId" KendraIndexConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}