module Stratosphere.Bedrock.Agent.AgentCollaboratorProperty (
module Exports, AgentCollaboratorProperty(..),
mkAgentCollaboratorProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Agent.AgentDescriptorProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AgentCollaboratorProperty
=
AgentCollaboratorProperty {AgentCollaboratorProperty -> ()
haddock_workaround_ :: (),
AgentCollaboratorProperty -> AgentDescriptorProperty
agentDescriptor :: AgentDescriptorProperty,
AgentCollaboratorProperty -> Value Text
collaborationInstruction :: (Value Prelude.Text),
AgentCollaboratorProperty -> Value Text
collaboratorName :: (Value Prelude.Text),
AgentCollaboratorProperty -> Maybe (Value Text)
relayConversationHistory :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool
(AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool)
-> (AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool)
-> Eq AgentCollaboratorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool
== :: AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool
$c/= :: AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool
/= :: AgentCollaboratorProperty -> AgentCollaboratorProperty -> Bool
Prelude.Eq, Int -> AgentCollaboratorProperty -> ShowS
[AgentCollaboratorProperty] -> ShowS
AgentCollaboratorProperty -> String
(Int -> AgentCollaboratorProperty -> ShowS)
-> (AgentCollaboratorProperty -> String)
-> ([AgentCollaboratorProperty] -> ShowS)
-> Show AgentCollaboratorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AgentCollaboratorProperty -> ShowS
showsPrec :: Int -> AgentCollaboratorProperty -> ShowS
$cshow :: AgentCollaboratorProperty -> String
show :: AgentCollaboratorProperty -> String
$cshowList :: [AgentCollaboratorProperty] -> ShowS
showList :: [AgentCollaboratorProperty] -> ShowS
Prelude.Show)
mkAgentCollaboratorProperty ::
AgentDescriptorProperty
-> Value Prelude.Text
-> Value Prelude.Text -> AgentCollaboratorProperty
mkAgentCollaboratorProperty :: AgentDescriptorProperty
-> Value Text -> Value Text -> AgentCollaboratorProperty
mkAgentCollaboratorProperty
AgentDescriptorProperty
agentDescriptor
Value Text
collaborationInstruction
Value Text
collaboratorName
= AgentCollaboratorProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), agentDescriptor :: AgentDescriptorProperty
agentDescriptor = AgentDescriptorProperty
agentDescriptor,
collaborationInstruction :: Value Text
collaborationInstruction = Value Text
collaborationInstruction,
collaboratorName :: Value Text
collaboratorName = Value Text
collaboratorName,
relayConversationHistory :: Maybe (Value Text)
relayConversationHistory = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AgentCollaboratorProperty where
toResourceProperties :: AgentCollaboratorProperty -> ResourceProperties
toResourceProperties AgentCollaboratorProperty {Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: AgentCollaboratorProperty -> ()
agentDescriptor :: AgentCollaboratorProperty -> AgentDescriptorProperty
collaborationInstruction :: AgentCollaboratorProperty -> Value Text
collaboratorName :: AgentCollaboratorProperty -> Value Text
relayConversationHistory :: AgentCollaboratorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::Agent.AgentCollaborator",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"AgentDescriptor" Key -> AgentDescriptorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AgentDescriptorProperty
agentDescriptor,
Key
"CollaborationInstruction" 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
collaborationInstruction,
Key
"CollaboratorName" 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
collaboratorName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"RelayConversationHistory"
(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)
relayConversationHistory]))}
instance JSON.ToJSON AgentCollaboratorProperty where
toJSON :: AgentCollaboratorProperty -> Value
toJSON AgentCollaboratorProperty {Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: AgentCollaboratorProperty -> ()
agentDescriptor :: AgentCollaboratorProperty -> AgentDescriptorProperty
collaborationInstruction :: AgentCollaboratorProperty -> Value Text
collaboratorName :: AgentCollaboratorProperty -> Value Text
relayConversationHistory :: AgentCollaboratorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
= [(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
"AgentDescriptor" Key -> AgentDescriptorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AgentDescriptorProperty
agentDescriptor,
Key
"CollaborationInstruction" 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
collaborationInstruction,
Key
"CollaboratorName" 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
collaboratorName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"RelayConversationHistory"
(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)
relayConversationHistory])))
instance Property "AgentDescriptor" AgentCollaboratorProperty where
type PropertyType "AgentDescriptor" AgentCollaboratorProperty = AgentDescriptorProperty
set :: PropertyType "AgentDescriptor" AgentCollaboratorProperty
-> AgentCollaboratorProperty -> AgentCollaboratorProperty
set PropertyType "AgentDescriptor" AgentCollaboratorProperty
newValue AgentCollaboratorProperty {Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: AgentCollaboratorProperty -> ()
agentDescriptor :: AgentCollaboratorProperty -> AgentDescriptorProperty
collaborationInstruction :: AgentCollaboratorProperty -> Value Text
collaboratorName :: AgentCollaboratorProperty -> Value Text
relayConversationHistory :: AgentCollaboratorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
= AgentCollaboratorProperty {agentDescriptor :: AgentDescriptorProperty
agentDescriptor = PropertyType "AgentDescriptor" AgentCollaboratorProperty
AgentDescriptorProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
haddock_workaround_ :: ()
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
instance Property "CollaborationInstruction" AgentCollaboratorProperty where
type PropertyType "CollaborationInstruction" AgentCollaboratorProperty = Value Prelude.Text
set :: PropertyType "CollaborationInstruction" AgentCollaboratorProperty
-> AgentCollaboratorProperty -> AgentCollaboratorProperty
set PropertyType "CollaborationInstruction" AgentCollaboratorProperty
newValue AgentCollaboratorProperty {Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: AgentCollaboratorProperty -> ()
agentDescriptor :: AgentCollaboratorProperty -> AgentDescriptorProperty
collaborationInstruction :: AgentCollaboratorProperty -> Value Text
collaboratorName :: AgentCollaboratorProperty -> Value Text
relayConversationHistory :: AgentCollaboratorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
= AgentCollaboratorProperty
{collaborationInstruction :: Value Text
collaborationInstruction = PropertyType "CollaborationInstruction" AgentCollaboratorProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
instance Property "CollaboratorName" AgentCollaboratorProperty where
type PropertyType "CollaboratorName" AgentCollaboratorProperty = Value Prelude.Text
set :: PropertyType "CollaboratorName" AgentCollaboratorProperty
-> AgentCollaboratorProperty -> AgentCollaboratorProperty
set PropertyType "CollaboratorName" AgentCollaboratorProperty
newValue AgentCollaboratorProperty {Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: AgentCollaboratorProperty -> ()
agentDescriptor :: AgentCollaboratorProperty -> AgentDescriptorProperty
collaborationInstruction :: AgentCollaboratorProperty -> Value Text
collaboratorName :: AgentCollaboratorProperty -> Value Text
relayConversationHistory :: AgentCollaboratorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
= AgentCollaboratorProperty {collaboratorName :: Value Text
collaboratorName = PropertyType "CollaboratorName" AgentCollaboratorProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
relayConversationHistory :: Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
instance Property "RelayConversationHistory" AgentCollaboratorProperty where
type PropertyType "RelayConversationHistory" AgentCollaboratorProperty = Value Prelude.Text
set :: PropertyType "RelayConversationHistory" AgentCollaboratorProperty
-> AgentCollaboratorProperty -> AgentCollaboratorProperty
set PropertyType "RelayConversationHistory" AgentCollaboratorProperty
newValue AgentCollaboratorProperty {Maybe (Value Text)
()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: AgentCollaboratorProperty -> ()
agentDescriptor :: AgentCollaboratorProperty -> AgentDescriptorProperty
collaborationInstruction :: AgentCollaboratorProperty -> Value Text
collaboratorName :: AgentCollaboratorProperty -> Value Text
relayConversationHistory :: AgentCollaboratorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
relayConversationHistory :: Maybe (Value Text)
..}
= AgentCollaboratorProperty
{relayConversationHistory :: Maybe (Value Text)
relayConversationHistory = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RelayConversationHistory" AgentCollaboratorProperty
Value Text
newValue, ()
Value Text
AgentDescriptorProperty
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
haddock_workaround_ :: ()
agentDescriptor :: AgentDescriptorProperty
collaborationInstruction :: Value Text
collaboratorName :: Value Text
..}