module Stratosphere.Wisdom.AIAgent.KnowledgeBaseAssociationConfigurationDataProperty (
        module Exports,
        KnowledgeBaseAssociationConfigurationDataProperty(..),
        mkKnowledgeBaseAssociationConfigurationDataProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.AIAgent.TagFilterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KnowledgeBaseAssociationConfigurationDataProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html>
    KnowledgeBaseAssociationConfigurationDataProperty {KnowledgeBaseAssociationConfigurationDataProperty -> ()
haddock_workaround_ :: (),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html#cfn-wisdom-aiagent-knowledgebaseassociationconfigurationdata-contenttagfilter>
                                                       KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe TagFilterProperty
contentTagFilter :: (Prelude.Maybe TagFilterProperty),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html#cfn-wisdom-aiagent-knowledgebaseassociationconfigurationdata-maxresults>
                                                       KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Double)
maxResults :: (Prelude.Maybe (Value Prelude.Double)),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html#cfn-wisdom-aiagent-knowledgebaseassociationconfigurationdata-overrideknowledgebasesearchtype>
                                                       KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Text)
overrideKnowledgeBaseSearchType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty -> Bool
(KnowledgeBaseAssociationConfigurationDataProperty
 -> KnowledgeBaseAssociationConfigurationDataProperty -> Bool)
-> (KnowledgeBaseAssociationConfigurationDataProperty
    -> KnowledgeBaseAssociationConfigurationDataProperty -> Bool)
-> Eq KnowledgeBaseAssociationConfigurationDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty -> Bool
== :: KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty -> Bool
$c/= :: KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty -> Bool
/= :: KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty -> Bool
Prelude.Eq, Int -> KnowledgeBaseAssociationConfigurationDataProperty -> ShowS
[KnowledgeBaseAssociationConfigurationDataProperty] -> ShowS
KnowledgeBaseAssociationConfigurationDataProperty -> String
(Int -> KnowledgeBaseAssociationConfigurationDataProperty -> ShowS)
-> (KnowledgeBaseAssociationConfigurationDataProperty -> String)
-> ([KnowledgeBaseAssociationConfigurationDataProperty] -> ShowS)
-> Show KnowledgeBaseAssociationConfigurationDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KnowledgeBaseAssociationConfigurationDataProperty -> ShowS
showsPrec :: Int -> KnowledgeBaseAssociationConfigurationDataProperty -> ShowS
$cshow :: KnowledgeBaseAssociationConfigurationDataProperty -> String
show :: KnowledgeBaseAssociationConfigurationDataProperty -> String
$cshowList :: [KnowledgeBaseAssociationConfigurationDataProperty] -> ShowS
showList :: [KnowledgeBaseAssociationConfigurationDataProperty] -> ShowS
Prelude.Show)
mkKnowledgeBaseAssociationConfigurationDataProperty ::
  KnowledgeBaseAssociationConfigurationDataProperty
mkKnowledgeBaseAssociationConfigurationDataProperty :: KnowledgeBaseAssociationConfigurationDataProperty
mkKnowledgeBaseAssociationConfigurationDataProperty
  = KnowledgeBaseAssociationConfigurationDataProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), contentTagFilter :: Maybe TagFilterProperty
contentTagFilter = Maybe TagFilterProperty
forall a. Maybe a
Prelude.Nothing,
       maxResults :: Maybe (Value Double)
maxResults = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       overrideKnowledgeBaseSearchType :: Maybe (Value Text)
overrideKnowledgeBaseSearchType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties KnowledgeBaseAssociationConfigurationDataProperty where
  toResourceProperties :: KnowledgeBaseAssociationConfigurationDataProperty
-> ResourceProperties
toResourceProperties
    KnowledgeBaseAssociationConfigurationDataProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe TagFilterProperty
()
haddock_workaround_ :: KnowledgeBaseAssociationConfigurationDataProperty -> ()
contentTagFilter :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe TagFilterProperty
maxResults :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Double)
overrideKnowledgeBaseSearchType :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::AIAgent.KnowledgeBaseAssociationConfigurationData",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> TagFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContentTagFilter" (TagFilterProperty -> (Key, Value))
-> Maybe TagFilterProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TagFilterProperty
contentTagFilter,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxResults" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxResults,
                            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
"OverrideKnowledgeBaseSearchType"
                              (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)
overrideKnowledgeBaseSearchType])}
instance JSON.ToJSON KnowledgeBaseAssociationConfigurationDataProperty where
  toJSON :: KnowledgeBaseAssociationConfigurationDataProperty -> Value
toJSON KnowledgeBaseAssociationConfigurationDataProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe TagFilterProperty
()
haddock_workaround_ :: KnowledgeBaseAssociationConfigurationDataProperty -> ()
contentTagFilter :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe TagFilterProperty
maxResults :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Double)
overrideKnowledgeBaseSearchType :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> TagFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContentTagFilter" (TagFilterProperty -> (Key, Value))
-> Maybe TagFilterProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TagFilterProperty
contentTagFilter,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxResults" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxResults,
               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
"OverrideKnowledgeBaseSearchType"
                 (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)
overrideKnowledgeBaseSearchType]))
instance Property "ContentTagFilter" KnowledgeBaseAssociationConfigurationDataProperty where
  type PropertyType "ContentTagFilter" KnowledgeBaseAssociationConfigurationDataProperty = TagFilterProperty
  set :: PropertyType
  "ContentTagFilter"
  KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty
set PropertyType
  "ContentTagFilter"
  KnowledgeBaseAssociationConfigurationDataProperty
newValue KnowledgeBaseAssociationConfigurationDataProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe TagFilterProperty
()
haddock_workaround_ :: KnowledgeBaseAssociationConfigurationDataProperty -> ()
contentTagFilter :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe TagFilterProperty
maxResults :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Double)
overrideKnowledgeBaseSearchType :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
    = KnowledgeBaseAssociationConfigurationDataProperty
        {contentTagFilter :: Maybe TagFilterProperty
contentTagFilter = TagFilterProperty -> Maybe TagFilterProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ContentTagFilter"
  KnowledgeBaseAssociationConfigurationDataProperty
TagFilterProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
haddock_workaround_ :: ()
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
instance Property "MaxResults" KnowledgeBaseAssociationConfigurationDataProperty where
  type PropertyType "MaxResults" KnowledgeBaseAssociationConfigurationDataProperty = Value Prelude.Double
  set :: PropertyType
  "MaxResults" KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty
set PropertyType
  "MaxResults" KnowledgeBaseAssociationConfigurationDataProperty
newValue KnowledgeBaseAssociationConfigurationDataProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe TagFilterProperty
()
haddock_workaround_ :: KnowledgeBaseAssociationConfigurationDataProperty -> ()
contentTagFilter :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe TagFilterProperty
maxResults :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Double)
overrideKnowledgeBaseSearchType :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
    = KnowledgeBaseAssociationConfigurationDataProperty
        {maxResults :: Maybe (Value Double)
maxResults = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MaxResults" KnowledgeBaseAssociationConfigurationDataProperty
Value Double
newValue, Maybe (Value Text)
Maybe TagFilterProperty
()
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
instance Property "OverrideKnowledgeBaseSearchType" KnowledgeBaseAssociationConfigurationDataProperty where
  type PropertyType "OverrideKnowledgeBaseSearchType" KnowledgeBaseAssociationConfigurationDataProperty = Value Prelude.Text
  set :: PropertyType
  "OverrideKnowledgeBaseSearchType"
  KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty
-> KnowledgeBaseAssociationConfigurationDataProperty
set PropertyType
  "OverrideKnowledgeBaseSearchType"
  KnowledgeBaseAssociationConfigurationDataProperty
newValue KnowledgeBaseAssociationConfigurationDataProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe TagFilterProperty
()
haddock_workaround_ :: KnowledgeBaseAssociationConfigurationDataProperty -> ()
contentTagFilter :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe TagFilterProperty
maxResults :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Double)
overrideKnowledgeBaseSearchType :: KnowledgeBaseAssociationConfigurationDataProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
overrideKnowledgeBaseSearchType :: Maybe (Value Text)
..}
    = KnowledgeBaseAssociationConfigurationDataProperty
        {overrideKnowledgeBaseSearchType :: Maybe (Value Text)
overrideKnowledgeBaseSearchType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OverrideKnowledgeBaseSearchType"
  KnowledgeBaseAssociationConfigurationDataProperty
Value Text
newValue, Maybe (Value Double)
Maybe TagFilterProperty
()
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
haddock_workaround_ :: ()
contentTagFilter :: Maybe TagFilterProperty
maxResults :: Maybe (Value Double)
..}