module Stratosphere.Lex.Bot.QnAKendraConfigurationProperty (
        QnAKendraConfigurationProperty(..),
        mkQnAKendraConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QnAKendraConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html>
    QnAKendraConfigurationProperty {QnAKendraConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html#cfn-lex-bot-qnakendraconfiguration-exactresponse>
                                    QnAKendraConfigurationProperty -> Value Bool
exactResponse :: (Value Prelude.Bool),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html#cfn-lex-bot-qnakendraconfiguration-kendraindex>
                                    QnAKendraConfigurationProperty -> Value Text
kendraIndex :: (Value Prelude.Text),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html#cfn-lex-bot-qnakendraconfiguration-queryfilterstring>
                                    QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterString :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-qnakendraconfiguration.html#cfn-lex-bot-qnakendraconfiguration-queryfilterstringenabled>
                                    QnAKendraConfigurationProperty -> Value Bool
queryFilterStringEnabled :: (Value Prelude.Bool)}
  deriving stock (QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> Bool
(QnAKendraConfigurationProperty
 -> QnAKendraConfigurationProperty -> Bool)
-> (QnAKendraConfigurationProperty
    -> QnAKendraConfigurationProperty -> Bool)
-> Eq QnAKendraConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> Bool
== :: QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> Bool
$c/= :: QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> Bool
/= :: QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> Bool
Prelude.Eq, Int -> QnAKendraConfigurationProperty -> ShowS
[QnAKendraConfigurationProperty] -> ShowS
QnAKendraConfigurationProperty -> String
(Int -> QnAKendraConfigurationProperty -> ShowS)
-> (QnAKendraConfigurationProperty -> String)
-> ([QnAKendraConfigurationProperty] -> ShowS)
-> Show QnAKendraConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QnAKendraConfigurationProperty -> ShowS
showsPrec :: Int -> QnAKendraConfigurationProperty -> ShowS
$cshow :: QnAKendraConfigurationProperty -> String
show :: QnAKendraConfigurationProperty -> String
$cshowList :: [QnAKendraConfigurationProperty] -> ShowS
showList :: [QnAKendraConfigurationProperty] -> ShowS
Prelude.Show)
mkQnAKendraConfigurationProperty ::
  Value Prelude.Bool
  -> Value Prelude.Text
     -> Value Prelude.Bool -> QnAKendraConfigurationProperty
mkQnAKendraConfigurationProperty :: Value Bool
-> Value Text -> Value Bool -> QnAKendraConfigurationProperty
mkQnAKendraConfigurationProperty
  Value Bool
exactResponse
  Value Text
kendraIndex
  Value Bool
queryFilterStringEnabled
  = QnAKendraConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), exactResponse :: Value Bool
exactResponse = Value Bool
exactResponse,
       kendraIndex :: Value Text
kendraIndex = Value Text
kendraIndex,
       queryFilterStringEnabled :: Value Bool
queryFilterStringEnabled = Value Bool
queryFilterStringEnabled,
       queryFilterString :: Maybe (Value Text)
queryFilterString = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties QnAKendraConfigurationProperty where
  toResourceProperties :: QnAKendraConfigurationProperty -> ResourceProperties
toResourceProperties QnAKendraConfigurationProperty {Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: QnAKendraConfigurationProperty -> ()
exactResponse :: QnAKendraConfigurationProperty -> Value Bool
kendraIndex :: QnAKendraConfigurationProperty -> Value Text
queryFilterString :: QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: QnAKendraConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.QnAKendraConfiguration",
         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
"ExactResponse" 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..= Value Bool
exactResponse,
                            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,
                            Key
"QueryFilterStringEnabled" 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..= Value Bool
queryFilterStringEnabled]
                           ([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]))}
instance JSON.ToJSON QnAKendraConfigurationProperty where
  toJSON :: QnAKendraConfigurationProperty -> Value
toJSON QnAKendraConfigurationProperty {Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: QnAKendraConfigurationProperty -> ()
exactResponse :: QnAKendraConfigurationProperty -> Value Bool
kendraIndex :: QnAKendraConfigurationProperty -> Value Text
queryFilterString :: QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: QnAKendraConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: 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
"ExactResponse" 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..= Value Bool
exactResponse,
               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,
               Key
"QueryFilterStringEnabled" 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..= Value Bool
queryFilterStringEnabled]
              ([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])))
instance Property "ExactResponse" QnAKendraConfigurationProperty where
  type PropertyType "ExactResponse" QnAKendraConfigurationProperty = Value Prelude.Bool
  set :: PropertyType "ExactResponse" QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> QnAKendraConfigurationProperty
set PropertyType "ExactResponse" QnAKendraConfigurationProperty
newValue QnAKendraConfigurationProperty {Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: QnAKendraConfigurationProperty -> ()
exactResponse :: QnAKendraConfigurationProperty -> Value Bool
kendraIndex :: QnAKendraConfigurationProperty -> Value Text
queryFilterString :: QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: QnAKendraConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
    = QnAKendraConfigurationProperty {exactResponse :: Value Bool
exactResponse = PropertyType "ExactResponse" QnAKendraConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
haddock_workaround_ :: ()
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
instance Property "KendraIndex" QnAKendraConfigurationProperty where
  type PropertyType "KendraIndex" QnAKendraConfigurationProperty = Value Prelude.Text
  set :: PropertyType "KendraIndex" QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> QnAKendraConfigurationProperty
set PropertyType "KendraIndex" QnAKendraConfigurationProperty
newValue QnAKendraConfigurationProperty {Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: QnAKendraConfigurationProperty -> ()
exactResponse :: QnAKendraConfigurationProperty -> Value Bool
kendraIndex :: QnAKendraConfigurationProperty -> Value Text
queryFilterString :: QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: QnAKendraConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
    = QnAKendraConfigurationProperty {kendraIndex :: Value Text
kendraIndex = PropertyType "KendraIndex" QnAKendraConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
instance Property "QueryFilterString" QnAKendraConfigurationProperty where
  type PropertyType "QueryFilterString" QnAKendraConfigurationProperty = Value Prelude.Text
  set :: PropertyType "QueryFilterString" QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> QnAKendraConfigurationProperty
set PropertyType "QueryFilterString" QnAKendraConfigurationProperty
newValue QnAKendraConfigurationProperty {Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: QnAKendraConfigurationProperty -> ()
exactResponse :: QnAKendraConfigurationProperty -> Value Bool
kendraIndex :: QnAKendraConfigurationProperty -> Value Text
queryFilterString :: QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: QnAKendraConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
    = QnAKendraConfigurationProperty
        {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" QnAKendraConfigurationProperty
Value Text
newValue, ()
Value Bool
Value Text
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterStringEnabled :: Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterStringEnabled :: Value Bool
..}
instance Property "QueryFilterStringEnabled" QnAKendraConfigurationProperty where
  type PropertyType "QueryFilterStringEnabled" QnAKendraConfigurationProperty = Value Prelude.Bool
  set :: PropertyType
  "QueryFilterStringEnabled" QnAKendraConfigurationProperty
-> QnAKendraConfigurationProperty -> QnAKendraConfigurationProperty
set PropertyType
  "QueryFilterStringEnabled" QnAKendraConfigurationProperty
newValue QnAKendraConfigurationProperty {Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: QnAKendraConfigurationProperty -> ()
exactResponse :: QnAKendraConfigurationProperty -> Value Bool
kendraIndex :: QnAKendraConfigurationProperty -> Value Text
queryFilterString :: QnAKendraConfigurationProperty -> Maybe (Value Text)
queryFilterStringEnabled :: QnAKendraConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
queryFilterStringEnabled :: Value Bool
..}
    = QnAKendraConfigurationProperty
        {queryFilterStringEnabled :: Value Bool
queryFilterStringEnabled = PropertyType
  "QueryFilterStringEnabled" QnAKendraConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Bool
Value Text
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
haddock_workaround_ :: ()
exactResponse :: Value Bool
kendraIndex :: Value Text
queryFilterString :: Maybe (Value Text)
..}