module Stratosphere.Wisdom.AssistantAssociation (
        module Exports, AssistantAssociation(..), mkAssistantAssociation
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.AssistantAssociation.AssociationDataProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data AssistantAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistantassociation.html>
    AssistantAssociation {AssistantAssociation -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistantassociation.html#cfn-wisdom-assistantassociation-assistantid>
                          AssistantAssociation -> Value Text
assistantId :: (Value Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistantassociation.html#cfn-wisdom-assistantassociation-association>
                          AssistantAssociation -> AssociationDataProperty
association :: AssociationDataProperty,
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistantassociation.html#cfn-wisdom-assistantassociation-associationtype>
                          AssistantAssociation -> Value Text
associationType :: (Value Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistantassociation.html#cfn-wisdom-assistantassociation-tags>
                          AssistantAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (AssistantAssociation -> AssistantAssociation -> Bool
(AssistantAssociation -> AssistantAssociation -> Bool)
-> (AssistantAssociation -> AssistantAssociation -> Bool)
-> Eq AssistantAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AssistantAssociation -> AssistantAssociation -> Bool
== :: AssistantAssociation -> AssistantAssociation -> Bool
$c/= :: AssistantAssociation -> AssistantAssociation -> Bool
/= :: AssistantAssociation -> AssistantAssociation -> Bool
Prelude.Eq, Int -> AssistantAssociation -> ShowS
[AssistantAssociation] -> ShowS
AssistantAssociation -> String
(Int -> AssistantAssociation -> ShowS)
-> (AssistantAssociation -> String)
-> ([AssistantAssociation] -> ShowS)
-> Show AssistantAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AssistantAssociation -> ShowS
showsPrec :: Int -> AssistantAssociation -> ShowS
$cshow :: AssistantAssociation -> String
show :: AssistantAssociation -> String
$cshowList :: [AssistantAssociation] -> ShowS
showList :: [AssistantAssociation] -> ShowS
Prelude.Show)
mkAssistantAssociation ::
  Value Prelude.Text
  -> AssociationDataProperty
     -> Value Prelude.Text -> AssistantAssociation
mkAssistantAssociation :: Value Text
-> AssociationDataProperty -> Value Text -> AssistantAssociation
mkAssistantAssociation Value Text
assistantId AssociationDataProperty
association Value Text
associationType
  = AssistantAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (), assistantId :: Value Text
assistantId = Value Text
assistantId,
       association :: AssociationDataProperty
association = AssociationDataProperty
association, associationType :: Value Text
associationType = Value Text
associationType,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AssistantAssociation where
  toResourceProperties :: AssistantAssociation -> ResourceProperties
toResourceProperties AssistantAssociation {Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: AssistantAssociation -> ()
assistantId :: AssistantAssociation -> Value Text
association :: AssistantAssociation -> AssociationDataProperty
associationType :: AssistantAssociation -> Value Text
tags :: AssistantAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::AssistantAssociation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"AssistantId" 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
assistantId,
                            Key
"Association" Key -> AssociationDataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AssociationDataProperty
association,
                            Key
"AssociationType" 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
associationType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON AssistantAssociation where
  toJSON :: AssistantAssociation -> Value
toJSON AssistantAssociation {Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: AssistantAssociation -> ()
assistantId :: AssistantAssociation -> Value Text
association :: AssistantAssociation -> AssociationDataProperty
associationType :: AssistantAssociation -> Value Text
tags :: AssistantAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
    = [(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
"AssistantId" 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
assistantId,
               Key
"Association" Key -> AssociationDataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AssociationDataProperty
association,
               Key
"AssociationType" 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
associationType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AssistantId" AssistantAssociation where
  type PropertyType "AssistantId" AssistantAssociation = Value Prelude.Text
  set :: PropertyType "AssistantId" AssistantAssociation
-> AssistantAssociation -> AssistantAssociation
set PropertyType "AssistantId" AssistantAssociation
newValue AssistantAssociation {Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: AssistantAssociation -> ()
assistantId :: AssistantAssociation -> Value Text
association :: AssistantAssociation -> AssociationDataProperty
associationType :: AssistantAssociation -> Value Text
tags :: AssistantAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
    = AssistantAssociation {assistantId :: Value Text
assistantId = PropertyType "AssistantId" AssistantAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: ()
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Association" AssistantAssociation where
  type PropertyType "Association" AssistantAssociation = AssociationDataProperty
  set :: PropertyType "Association" AssistantAssociation
-> AssistantAssociation -> AssistantAssociation
set PropertyType "Association" AssistantAssociation
newValue AssistantAssociation {Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: AssistantAssociation -> ()
assistantId :: AssistantAssociation -> Value Text
association :: AssistantAssociation -> AssociationDataProperty
associationType :: AssistantAssociation -> Value Text
tags :: AssistantAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
    = AssistantAssociation {association :: AssociationDataProperty
association = PropertyType "Association" AssistantAssociation
AssociationDataProperty
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
assistantId :: Value Text
associationType :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
associationType :: Value Text
tags :: Maybe [Tag]
..}
instance Property "AssociationType" AssistantAssociation where
  type PropertyType "AssociationType" AssistantAssociation = Value Prelude.Text
  set :: PropertyType "AssociationType" AssistantAssociation
-> AssistantAssociation -> AssistantAssociation
set PropertyType "AssociationType" AssistantAssociation
newValue AssistantAssociation {Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: AssistantAssociation -> ()
assistantId :: AssistantAssociation -> Value Text
association :: AssistantAssociation -> AssociationDataProperty
associationType :: AssistantAssociation -> Value Text
tags :: AssistantAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
    = AssistantAssociation {associationType :: Value Text
associationType = PropertyType "AssociationType" AssistantAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" AssistantAssociation where
  type PropertyType "Tags" AssistantAssociation = [Tag]
  set :: PropertyType "Tags" AssistantAssociation
-> AssistantAssociation -> AssistantAssociation
set PropertyType "Tags" AssistantAssociation
newValue AssistantAssociation {Maybe [Tag]
()
Value Text
AssociationDataProperty
haddock_workaround_ :: AssistantAssociation -> ()
assistantId :: AssistantAssociation -> Value Text
association :: AssistantAssociation -> AssociationDataProperty
associationType :: AssistantAssociation -> Value Text
tags :: AssistantAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
tags :: Maybe [Tag]
..}
    = AssistantAssociation {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" AssistantAssociation
newValue, ()
Value Text
AssociationDataProperty
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
haddock_workaround_ :: ()
assistantId :: Value Text
association :: AssociationDataProperty
associationType :: Value Text
..}