module Stratosphere.Wisdom.AIAgent.SelfServiceAIAgentConfigurationProperty (
        module Exports, SelfServiceAIAgentConfigurationProperty(..),
        mkSelfServiceAIAgentConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.AIAgent.AssociationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SelfServiceAIAgentConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html>
    SelfServiceAIAgentConfigurationProperty {SelfServiceAIAgentConfigurationProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-associationconfigurations>
                                             SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
associationConfigurations :: (Prelude.Maybe [AssociationConfigurationProperty]),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfserviceaiguardrailid>
                                             SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAIGuardrailId :: (Prelude.Maybe (Value Prelude.Text)),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfserviceanswergenerationaipromptid>
                                             SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: (Prelude.Maybe (Value Prelude.Text)),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfservicepreprocessingaipromptid>
                                             SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty -> Bool
(SelfServiceAIAgentConfigurationProperty
 -> SelfServiceAIAgentConfigurationProperty -> Bool)
-> (SelfServiceAIAgentConfigurationProperty
    -> SelfServiceAIAgentConfigurationProperty -> Bool)
-> Eq SelfServiceAIAgentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty -> Bool
== :: SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty -> Bool
$c/= :: SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty -> Bool
/= :: SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty -> Bool
Prelude.Eq, Int -> SelfServiceAIAgentConfigurationProperty -> ShowS
[SelfServiceAIAgentConfigurationProperty] -> ShowS
SelfServiceAIAgentConfigurationProperty -> String
(Int -> SelfServiceAIAgentConfigurationProperty -> ShowS)
-> (SelfServiceAIAgentConfigurationProperty -> String)
-> ([SelfServiceAIAgentConfigurationProperty] -> ShowS)
-> Show SelfServiceAIAgentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SelfServiceAIAgentConfigurationProperty -> ShowS
showsPrec :: Int -> SelfServiceAIAgentConfigurationProperty -> ShowS
$cshow :: SelfServiceAIAgentConfigurationProperty -> String
show :: SelfServiceAIAgentConfigurationProperty -> String
$cshowList :: [SelfServiceAIAgentConfigurationProperty] -> ShowS
showList :: [SelfServiceAIAgentConfigurationProperty] -> ShowS
Prelude.Show)
mkSelfServiceAIAgentConfigurationProperty ::
  SelfServiceAIAgentConfigurationProperty
mkSelfServiceAIAgentConfigurationProperty :: SelfServiceAIAgentConfigurationProperty
mkSelfServiceAIAgentConfigurationProperty
  = SelfServiceAIAgentConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       associationConfigurations :: Maybe [AssociationConfigurationProperty]
associationConfigurations = Maybe [AssociationConfigurationProperty]
forall a. Maybe a
Prelude.Nothing,
       selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAIGuardrailId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       selfServicePreProcessingAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SelfServiceAIAgentConfigurationProperty where
  toResourceProperties :: SelfServiceAIAgentConfigurationProperty -> ResourceProperties
toResourceProperties SelfServiceAIAgentConfigurationProperty {Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SelfServiceAIAgentConfigurationProperty -> ()
associationConfigurations :: SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::AIAgent.SelfServiceAIAgentConfiguration",
         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 -> [AssociationConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssociationConfigurations"
                              ([AssociationConfigurationProperty] -> (Key, Value))
-> Maybe [AssociationConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AssociationConfigurationProperty]
associationConfigurations,
                            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
"SelfServiceAIGuardrailId"
                              (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)
selfServiceAIGuardrailId,
                            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
"SelfServiceAnswerGenerationAIPromptId"
                              (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)
selfServiceAnswerGenerationAIPromptId,
                            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
"SelfServicePreProcessingAIPromptId"
                              (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)
selfServicePreProcessingAIPromptId])}
instance JSON.ToJSON SelfServiceAIAgentConfigurationProperty where
  toJSON :: SelfServiceAIAgentConfigurationProperty -> Value
toJSON SelfServiceAIAgentConfigurationProperty {Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SelfServiceAIAgentConfigurationProperty -> ()
associationConfigurations :: SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: 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 -> [AssociationConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssociationConfigurations"
                 ([AssociationConfigurationProperty] -> (Key, Value))
-> Maybe [AssociationConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AssociationConfigurationProperty]
associationConfigurations,
               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
"SelfServiceAIGuardrailId"
                 (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)
selfServiceAIGuardrailId,
               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
"SelfServiceAnswerGenerationAIPromptId"
                 (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)
selfServiceAnswerGenerationAIPromptId,
               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
"SelfServicePreProcessingAIPromptId"
                 (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)
selfServicePreProcessingAIPromptId]))
instance Property "AssociationConfigurations" SelfServiceAIAgentConfigurationProperty where
  type PropertyType "AssociationConfigurations" SelfServiceAIAgentConfigurationProperty = [AssociationConfigurationProperty]
  set :: PropertyType
  "AssociationConfigurations" SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
set PropertyType
  "AssociationConfigurations" SelfServiceAIAgentConfigurationProperty
newValue SelfServiceAIAgentConfigurationProperty {Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SelfServiceAIAgentConfigurationProperty -> ()
associationConfigurations :: SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
    = SelfServiceAIAgentConfigurationProperty
        {associationConfigurations :: Maybe [AssociationConfigurationProperty]
associationConfigurations = [AssociationConfigurationProperty]
-> Maybe [AssociationConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AssociationConfigurationProperty]
PropertyType
  "AssociationConfigurations" SelfServiceAIAgentConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
haddock_workaround_ :: ()
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
instance Property "SelfServiceAIGuardrailId" SelfServiceAIAgentConfigurationProperty where
  type PropertyType "SelfServiceAIGuardrailId" SelfServiceAIAgentConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SelfServiceAIGuardrailId" SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
set PropertyType
  "SelfServiceAIGuardrailId" SelfServiceAIAgentConfigurationProperty
newValue SelfServiceAIAgentConfigurationProperty {Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SelfServiceAIAgentConfigurationProperty -> ()
associationConfigurations :: SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
    = SelfServiceAIAgentConfigurationProperty
        {selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAIGuardrailId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SelfServiceAIGuardrailId" SelfServiceAIAgentConfigurationProperty
Value Text
newValue, Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
instance Property "SelfServiceAnswerGenerationAIPromptId" SelfServiceAIAgentConfigurationProperty where
  type PropertyType "SelfServiceAnswerGenerationAIPromptId" SelfServiceAIAgentConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SelfServiceAnswerGenerationAIPromptId"
  SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
set PropertyType
  "SelfServiceAnswerGenerationAIPromptId"
  SelfServiceAIAgentConfigurationProperty
newValue SelfServiceAIAgentConfigurationProperty {Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SelfServiceAIAgentConfigurationProperty -> ()
associationConfigurations :: SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
    = SelfServiceAIAgentConfigurationProperty
        {selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SelfServiceAnswerGenerationAIPromptId"
  SelfServiceAIAgentConfigurationProperty
Value Text
newValue, Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
instance Property "SelfServicePreProcessingAIPromptId" SelfServiceAIAgentConfigurationProperty where
  type PropertyType "SelfServicePreProcessingAIPromptId" SelfServiceAIAgentConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SelfServicePreProcessingAIPromptId"
  SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
-> SelfServiceAIAgentConfigurationProperty
set PropertyType
  "SelfServicePreProcessingAIPromptId"
  SelfServiceAIAgentConfigurationProperty
newValue SelfServiceAIAgentConfigurationProperty {Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SelfServiceAIAgentConfigurationProperty -> ()
associationConfigurations :: SelfServiceAIAgentConfigurationProperty
-> Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
selfServicePreProcessingAIPromptId :: SelfServiceAIAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId :: Maybe (Value Text)
..}
    = SelfServiceAIAgentConfigurationProperty
        {selfServicePreProcessingAIPromptId :: Maybe (Value Text)
selfServicePreProcessingAIPromptId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SelfServicePreProcessingAIPromptId"
  SelfServiceAIAgentConfigurationProperty
Value Text
newValue, Maybe [AssociationConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
haddock_workaround_ :: ()
associationConfigurations :: Maybe [AssociationConfigurationProperty]
selfServiceAIGuardrailId :: Maybe (Value Text)
selfServiceAnswerGenerationAIPromptId :: Maybe (Value Text)
..}