module Stratosphere.Lex.Bot.KendraConfigurationProperty (
KendraConfigurationProperty(..), mkKendraConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KendraConfigurationProperty
=
KendraConfigurationProperty {KendraConfigurationProperty -> ()
haddock_workaround_ :: (),
KendraConfigurationProperty -> Value Text
kendraIndex :: (Value Prelude.Text),
KendraConfigurationProperty -> Maybe (Value Text)
queryFilterString :: (Prelude.Maybe (Value Prelude.Text)),
KendraConfigurationProperty -> Maybe (Value Bool)
queryFilterStringEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (KendraConfigurationProperty -> KendraConfigurationProperty -> Bool
(KendraConfigurationProperty
-> KendraConfigurationProperty -> Bool)
-> (KendraConfigurationProperty
-> KendraConfigurationProperty -> Bool)
-> Eq KendraConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KendraConfigurationProperty -> KendraConfigurationProperty -> Bool
== :: KendraConfigurationProperty -> KendraConfigurationProperty -> Bool
$c/= :: KendraConfigurationProperty -> KendraConfigurationProperty -> Bool
/= :: KendraConfigurationProperty -> KendraConfigurationProperty -> Bool
Prelude.Eq, Int -> KendraConfigurationProperty -> ShowS
[KendraConfigurationProperty] -> ShowS
KendraConfigurationProperty -> String
(Int -> KendraConfigurationProperty -> ShowS)
-> (KendraConfigurationProperty -> String)
-> ([KendraConfigurationProperty] -> ShowS)
-> Show KendraConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KendraConfigurationProperty -> ShowS
showsPrec :: Int -> KendraConfigurationProperty -> ShowS
$cshow :: KendraConfigurationProperty -> String
show :: KendraConfigurationProperty -> String
$cshowList :: [KendraConfigurationProperty] -> ShowS
showList :: [KendraConfigurationProperty] -> ShowS
Prelude.Show)
mkKendraConfigurationProperty ::
Value Prelude.Text -> KendraConfigurationProperty
mkKendraConfigurationProperty :: Value Text -> KendraConfigurationProperty
mkKendraConfigurationProperty Value Text
kendraIndex
= KendraConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), kendraIndex :: Value Text
kendraIndex = Value Text
kendraIndex,
queryFilterString :: Maybe (Value Text)
queryFilterString = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
queryFilterStringEnabled :: Maybe (Value Bool)
queryFilterStringEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties KendraConfigurationProperty where
toResourceProperties :: KendraConfigurationProperty -> ResourceProperties
toResourceProperties KendraConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KendraConfigurationProperty -> ()
kendraIndex :: KendraConfigurationProperty -> Value Text
queryFilterString :: KendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: KendraConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.KendraConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"KendraIndex" 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
kendraIndex]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"QueryFilterString" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
queryFilterString,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryFilterStringEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
queryFilterStringEnabled]))}
instance JSON.ToJSON KendraConfigurationProperty where
toJSON :: KendraConfigurationProperty -> Value
toJSON KendraConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KendraConfigurationProperty -> ()
kendraIndex :: KendraConfigurationProperty -> Value Text
queryFilterString :: KendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: KendraConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"KendraIndex" 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
kendraIndex]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"QueryFilterString" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
queryFilterString,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryFilterStringEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
queryFilterStringEnabled])))
instance Property "KendraIndex" KendraConfigurationProperty where
type PropertyType "KendraIndex" KendraConfigurationProperty = Value Prelude.Text
set :: PropertyType "KendraIndex" KendraConfigurationProperty
-> KendraConfigurationProperty -> KendraConfigurationProperty
set PropertyType "KendraIndex" KendraConfigurationProperty
newValue KendraConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KendraConfigurationProperty -> ()
kendraIndex :: KendraConfigurationProperty -> Value Text
queryFilterString :: KendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: KendraConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
..}
= KendraConfigurationProperty {kendraIndex :: Value Text
kendraIndex = PropertyType "KendraIndex" KendraConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
..}
instance Property "QueryFilterString" KendraConfigurationProperty where
type PropertyType "QueryFilterString" KendraConfigurationProperty = Value Prelude.Text
set :: PropertyType "QueryFilterString" KendraConfigurationProperty
-> KendraConfigurationProperty -> KendraConfigurationProperty
set PropertyType "QueryFilterString" KendraConfigurationProperty
newValue KendraConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KendraConfigurationProperty -> ()
kendraIndex :: KendraConfigurationProperty -> Value Text
queryFilterString :: KendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: KendraConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
..}
= KendraConfigurationProperty
{queryFilterString :: Maybe (Value Text)
queryFilterString = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryFilterString" KendraConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterStringEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterStringEnabled :: Maybe (Value Bool)
..}
instance Property "QueryFilterStringEnabled" KendraConfigurationProperty where
type PropertyType "QueryFilterStringEnabled" KendraConfigurationProperty = Value Prelude.Bool
set :: PropertyType "QueryFilterStringEnabled" KendraConfigurationProperty
-> KendraConfigurationProperty -> KendraConfigurationProperty
set PropertyType "QueryFilterStringEnabled" KendraConfigurationProperty
newValue KendraConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KendraConfigurationProperty -> ()
kendraIndex :: KendraConfigurationProperty -> Value Text
queryFilterString :: KendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: KendraConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Maybe (Value Bool)
..}
= KendraConfigurationProperty
{queryFilterStringEnabled :: Maybe (Value Bool)
queryFilterStringEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryFilterStringEnabled" KendraConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
..}