module Stratosphere.Wisdom.AIAgent.AIAgentConfigurationProperty (
module Exports, AIAgentConfigurationProperty(..),
mkAIAgentConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.AIAgent.AnswerRecommendationAIAgentConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Wisdom.AIAgent.ManualSearchAIAgentConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Wisdom.AIAgent.SelfServiceAIAgentConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data AIAgentConfigurationProperty
=
AIAgentConfigurationProperty {AIAgentConfigurationProperty -> ()
haddock_workaround_ :: (),
AIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
answerRecommendationAIAgentConfiguration :: (Prelude.Maybe AnswerRecommendationAIAgentConfigurationProperty),
AIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: (Prelude.Maybe ManualSearchAIAgentConfigurationProperty),
AIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: (Prelude.Maybe SelfServiceAIAgentConfigurationProperty)}
deriving stock (AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool
(AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool)
-> (AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool)
-> Eq AIAgentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool
== :: AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool
$c/= :: AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool
/= :: AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> Bool
Prelude.Eq, Int -> AIAgentConfigurationProperty -> ShowS
[AIAgentConfigurationProperty] -> ShowS
AIAgentConfigurationProperty -> String
(Int -> AIAgentConfigurationProperty -> ShowS)
-> (AIAgentConfigurationProperty -> String)
-> ([AIAgentConfigurationProperty] -> ShowS)
-> Show AIAgentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AIAgentConfigurationProperty -> ShowS
showsPrec :: Int -> AIAgentConfigurationProperty -> ShowS
$cshow :: AIAgentConfigurationProperty -> String
show :: AIAgentConfigurationProperty -> String
$cshowList :: [AIAgentConfigurationProperty] -> ShowS
showList :: [AIAgentConfigurationProperty] -> ShowS
Prelude.Show)
mkAIAgentConfigurationProperty :: AIAgentConfigurationProperty
mkAIAgentConfigurationProperty :: AIAgentConfigurationProperty
mkAIAgentConfigurationProperty
= AIAgentConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
answerRecommendationAIAgentConfiguration = Maybe AnswerRecommendationAIAgentConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
manualSearchAIAgentConfiguration = Maybe ManualSearchAIAgentConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
selfServiceAIAgentConfiguration = Maybe SelfServiceAIAgentConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AIAgentConfigurationProperty where
toResourceProperties :: AIAgentConfigurationProperty -> ResourceProperties
toResourceProperties AIAgentConfigurationProperty {Maybe SelfServiceAIAgentConfigurationProperty
Maybe ManualSearchAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: AIAgentConfigurationProperty -> ()
answerRecommendationAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::AIAgent.AIAgentConfiguration",
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
-> AnswerRecommendationAIAgentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AnswerRecommendationAIAgentConfiguration"
(AnswerRecommendationAIAgentConfigurationProperty -> (Key, Value))
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnswerRecommendationAIAgentConfigurationProperty
answerRecommendationAIAgentConfiguration,
Key -> ManualSearchAIAgentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManualSearchAIAgentConfiguration"
(ManualSearchAIAgentConfigurationProperty -> (Key, Value))
-> Maybe ManualSearchAIAgentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ManualSearchAIAgentConfigurationProperty
manualSearchAIAgentConfiguration,
Key -> SelfServiceAIAgentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelfServiceAIAgentConfiguration"
(SelfServiceAIAgentConfigurationProperty -> (Key, Value))
-> Maybe SelfServiceAIAgentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SelfServiceAIAgentConfigurationProperty
selfServiceAIAgentConfiguration])}
instance JSON.ToJSON AIAgentConfigurationProperty where
toJSON :: AIAgentConfigurationProperty -> Value
toJSON AIAgentConfigurationProperty {Maybe SelfServiceAIAgentConfigurationProperty
Maybe ManualSearchAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: AIAgentConfigurationProperty -> ()
answerRecommendationAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
= [(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
-> AnswerRecommendationAIAgentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AnswerRecommendationAIAgentConfiguration"
(AnswerRecommendationAIAgentConfigurationProperty -> (Key, Value))
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnswerRecommendationAIAgentConfigurationProperty
answerRecommendationAIAgentConfiguration,
Key -> ManualSearchAIAgentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManualSearchAIAgentConfiguration"
(ManualSearchAIAgentConfigurationProperty -> (Key, Value))
-> Maybe ManualSearchAIAgentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ManualSearchAIAgentConfigurationProperty
manualSearchAIAgentConfiguration,
Key -> SelfServiceAIAgentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelfServiceAIAgentConfiguration"
(SelfServiceAIAgentConfigurationProperty -> (Key, Value))
-> Maybe SelfServiceAIAgentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SelfServiceAIAgentConfigurationProperty
selfServiceAIAgentConfiguration]))
instance Property "AnswerRecommendationAIAgentConfiguration" AIAgentConfigurationProperty where
type PropertyType "AnswerRecommendationAIAgentConfiguration" AIAgentConfigurationProperty = AnswerRecommendationAIAgentConfigurationProperty
set :: PropertyType
"AnswerRecommendationAIAgentConfiguration"
AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> AIAgentConfigurationProperty
set PropertyType
"AnswerRecommendationAIAgentConfiguration"
AIAgentConfigurationProperty
newValue AIAgentConfigurationProperty {Maybe SelfServiceAIAgentConfigurationProperty
Maybe ManualSearchAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: AIAgentConfigurationProperty -> ()
answerRecommendationAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
= AIAgentConfigurationProperty
{answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
answerRecommendationAIAgentConfiguration = AnswerRecommendationAIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AnswerRecommendationAIAgentConfiguration"
AIAgentConfigurationProperty
AnswerRecommendationAIAgentConfigurationProperty
newValue,
Maybe SelfServiceAIAgentConfigurationProperty
Maybe ManualSearchAIAgentConfigurationProperty
()
haddock_workaround_ :: ()
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
instance Property "ManualSearchAIAgentConfiguration" AIAgentConfigurationProperty where
type PropertyType "ManualSearchAIAgentConfiguration" AIAgentConfigurationProperty = ManualSearchAIAgentConfigurationProperty
set :: PropertyType
"ManualSearchAIAgentConfiguration" AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> AIAgentConfigurationProperty
set PropertyType
"ManualSearchAIAgentConfiguration" AIAgentConfigurationProperty
newValue AIAgentConfigurationProperty {Maybe SelfServiceAIAgentConfigurationProperty
Maybe ManualSearchAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: AIAgentConfigurationProperty -> ()
answerRecommendationAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
= AIAgentConfigurationProperty
{manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
manualSearchAIAgentConfiguration = ManualSearchAIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ManualSearchAIAgentConfiguration" AIAgentConfigurationProperty
ManualSearchAIAgentConfigurationProperty
newValue, Maybe SelfServiceAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
instance Property "SelfServiceAIAgentConfiguration" AIAgentConfigurationProperty where
type PropertyType "SelfServiceAIAgentConfiguration" AIAgentConfigurationProperty = SelfServiceAIAgentConfigurationProperty
set :: PropertyType
"SelfServiceAIAgentConfiguration" AIAgentConfigurationProperty
-> AIAgentConfigurationProperty -> AIAgentConfigurationProperty
set PropertyType
"SelfServiceAIAgentConfiguration" AIAgentConfigurationProperty
newValue AIAgentConfigurationProperty {Maybe SelfServiceAIAgentConfigurationProperty
Maybe ManualSearchAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: AIAgentConfigurationProperty -> ()
answerRecommendationAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: AIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
..}
= AIAgentConfigurationProperty
{selfServiceAIAgentConfiguration :: Maybe SelfServiceAIAgentConfigurationProperty
selfServiceAIAgentConfiguration = SelfServiceAIAgentConfigurationProperty
-> Maybe SelfServiceAIAgentConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SelfServiceAIAgentConfiguration" AIAgentConfigurationProperty
SelfServiceAIAgentConfigurationProperty
newValue, Maybe ManualSearchAIAgentConfigurationProperty
Maybe AnswerRecommendationAIAgentConfigurationProperty
()
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
haddock_workaround_ :: ()
answerRecommendationAIAgentConfiguration :: Maybe AnswerRecommendationAIAgentConfigurationProperty
manualSearchAIAgentConfiguration :: Maybe ManualSearchAIAgentConfigurationProperty
..}