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