module Stratosphere.Wisdom.AssistantAssociation.AssociationDataProperty (
AssociationDataProperty(..), mkAssociationDataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AssociationDataProperty
=
AssociationDataProperty {AssociationDataProperty -> ()
haddock_workaround_ :: (),
AssociationDataProperty -> Value Text
knowledgeBaseId :: (Value Prelude.Text)}
deriving stock (AssociationDataProperty -> AssociationDataProperty -> Bool
(AssociationDataProperty -> AssociationDataProperty -> Bool)
-> (AssociationDataProperty -> AssociationDataProperty -> Bool)
-> Eq AssociationDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AssociationDataProperty -> AssociationDataProperty -> Bool
== :: AssociationDataProperty -> AssociationDataProperty -> Bool
$c/= :: AssociationDataProperty -> AssociationDataProperty -> Bool
/= :: AssociationDataProperty -> AssociationDataProperty -> Bool
Prelude.Eq, Int -> AssociationDataProperty -> ShowS
[AssociationDataProperty] -> ShowS
AssociationDataProperty -> String
(Int -> AssociationDataProperty -> ShowS)
-> (AssociationDataProperty -> String)
-> ([AssociationDataProperty] -> ShowS)
-> Show AssociationDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AssociationDataProperty -> ShowS
showsPrec :: Int -> AssociationDataProperty -> ShowS
$cshow :: AssociationDataProperty -> String
show :: AssociationDataProperty -> String
$cshowList :: [AssociationDataProperty] -> ShowS
showList :: [AssociationDataProperty] -> ShowS
Prelude.Show)
mkAssociationDataProperty ::
Value Prelude.Text -> AssociationDataProperty
mkAssociationDataProperty :: Value Text -> AssociationDataProperty
mkAssociationDataProperty Value Text
knowledgeBaseId
= AssociationDataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), knowledgeBaseId :: Value Text
knowledgeBaseId = Value Text
knowledgeBaseId}
instance ToResourceProperties AssociationDataProperty where
toResourceProperties :: AssociationDataProperty -> ResourceProperties
toResourceProperties AssociationDataProperty {()
Value Text
haddock_workaround_ :: AssociationDataProperty -> ()
knowledgeBaseId :: AssociationDataProperty -> Value Text
haddock_workaround_ :: ()
knowledgeBaseId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::AssistantAssociation.AssociationData",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"KnowledgeBaseId" 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
knowledgeBaseId]}
instance JSON.ToJSON AssociationDataProperty where
toJSON :: AssociationDataProperty -> Value
toJSON AssociationDataProperty {()
Value Text
haddock_workaround_ :: AssociationDataProperty -> ()
knowledgeBaseId :: AssociationDataProperty -> Value Text
haddock_workaround_ :: ()
knowledgeBaseId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"KnowledgeBaseId" 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
knowledgeBaseId]
instance Property "KnowledgeBaseId" AssociationDataProperty where
type PropertyType "KnowledgeBaseId" AssociationDataProperty = Value Prelude.Text
set :: PropertyType "KnowledgeBaseId" AssociationDataProperty
-> AssociationDataProperty -> AssociationDataProperty
set PropertyType "KnowledgeBaseId" AssociationDataProperty
newValue AssociationDataProperty {()
Value Text
haddock_workaround_ :: AssociationDataProperty -> ()
knowledgeBaseId :: AssociationDataProperty -> Value Text
haddock_workaround_ :: ()
knowledgeBaseId :: Value Text
..}
= AssociationDataProperty {knowledgeBaseId :: Value Text
knowledgeBaseId = PropertyType "KnowledgeBaseId" AssociationDataProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}