module Stratosphere.QBusiness.Retriever.NativeIndexConfigurationProperty (
NativeIndexConfigurationProperty(..),
mkNativeIndexConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NativeIndexConfigurationProperty
=
NativeIndexConfigurationProperty {NativeIndexConfigurationProperty -> ()
haddock_workaround_ :: (),
NativeIndexConfigurationProperty -> Value Text
indexId :: (Value Prelude.Text)}
deriving stock (NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool
(NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool)
-> (NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool)
-> Eq NativeIndexConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool
== :: NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool
$c/= :: NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool
/= :: NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty -> Bool
Prelude.Eq, Int -> NativeIndexConfigurationProperty -> ShowS
[NativeIndexConfigurationProperty] -> ShowS
NativeIndexConfigurationProperty -> String
(Int -> NativeIndexConfigurationProperty -> ShowS)
-> (NativeIndexConfigurationProperty -> String)
-> ([NativeIndexConfigurationProperty] -> ShowS)
-> Show NativeIndexConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NativeIndexConfigurationProperty -> ShowS
showsPrec :: Int -> NativeIndexConfigurationProperty -> ShowS
$cshow :: NativeIndexConfigurationProperty -> String
show :: NativeIndexConfigurationProperty -> String
$cshowList :: [NativeIndexConfigurationProperty] -> ShowS
showList :: [NativeIndexConfigurationProperty] -> ShowS
Prelude.Show)
mkNativeIndexConfigurationProperty ::
Value Prelude.Text -> NativeIndexConfigurationProperty
mkNativeIndexConfigurationProperty :: Value Text -> NativeIndexConfigurationProperty
mkNativeIndexConfigurationProperty Value Text
indexId
= NativeIndexConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), indexId :: Value Text
indexId = Value Text
indexId}
instance ToResourceProperties NativeIndexConfigurationProperty where
toResourceProperties :: NativeIndexConfigurationProperty -> ResourceProperties
toResourceProperties NativeIndexConfigurationProperty {()
Value Text
haddock_workaround_ :: NativeIndexConfigurationProperty -> ()
indexId :: NativeIndexConfigurationProperty -> Value Text
haddock_workaround_ :: ()
indexId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QBusiness::Retriever.NativeIndexConfiguration",
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 NativeIndexConfigurationProperty where
toJSON :: NativeIndexConfigurationProperty -> Value
toJSON NativeIndexConfigurationProperty {()
Value Text
haddock_workaround_ :: NativeIndexConfigurationProperty -> ()
indexId :: NativeIndexConfigurationProperty -> 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" NativeIndexConfigurationProperty where
type PropertyType "IndexId" NativeIndexConfigurationProperty = Value Prelude.Text
set :: PropertyType "IndexId" NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty
-> NativeIndexConfigurationProperty
set PropertyType "IndexId" NativeIndexConfigurationProperty
newValue NativeIndexConfigurationProperty {()
Value Text
haddock_workaround_ :: NativeIndexConfigurationProperty -> ()
indexId :: NativeIndexConfigurationProperty -> Value Text
haddock_workaround_ :: ()
indexId :: Value Text
..}
= NativeIndexConfigurationProperty {indexId :: Value Text
indexId = PropertyType "IndexId" NativeIndexConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}