module Stratosphere.Bedrock.AgentAlias (
        module Exports, AgentAlias(..), mkAgentAlias
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.AgentAlias.AgentAliasRoutingConfigurationListItemProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AgentAlias
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html>
    AgentAlias {AgentAlias -> ()
haddock_workaround_ :: (),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html#cfn-bedrock-agentalias-agentaliasname>
                AgentAlias -> Value Text
agentAliasName :: (Value Prelude.Text),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html#cfn-bedrock-agentalias-agentid>
                AgentAlias -> Value Text
agentId :: (Value Prelude.Text),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html#cfn-bedrock-agentalias-description>
                AgentAlias -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html#cfn-bedrock-agentalias-routingconfiguration>
                AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration :: (Prelude.Maybe [AgentAliasRoutingConfigurationListItemProperty]),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html#cfn-bedrock-agentalias-tags>
                AgentAlias -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (AgentAlias -> AgentAlias -> Bool
(AgentAlias -> AgentAlias -> Bool)
-> (AgentAlias -> AgentAlias -> Bool) -> Eq AgentAlias
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AgentAlias -> AgentAlias -> Bool
== :: AgentAlias -> AgentAlias -> Bool
$c/= :: AgentAlias -> AgentAlias -> Bool
/= :: AgentAlias -> AgentAlias -> Bool
Prelude.Eq, Int -> AgentAlias -> ShowS
[AgentAlias] -> ShowS
AgentAlias -> String
(Int -> AgentAlias -> ShowS)
-> (AgentAlias -> String)
-> ([AgentAlias] -> ShowS)
-> Show AgentAlias
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AgentAlias -> ShowS
showsPrec :: Int -> AgentAlias -> ShowS
$cshow :: AgentAlias -> String
show :: AgentAlias -> String
$cshowList :: [AgentAlias] -> ShowS
showList :: [AgentAlias] -> ShowS
Prelude.Show)
mkAgentAlias ::
  Value Prelude.Text -> Value Prelude.Text -> AgentAlias
mkAgentAlias :: Value Text -> Value Text -> AgentAlias
mkAgentAlias Value Text
agentAliasName Value Text
agentId
  = AgentAlias
      {haddock_workaround_ :: ()
haddock_workaround_ = (), agentAliasName :: Value Text
agentAliasName = Value Text
agentAliasName,
       agentId :: Value Text
agentId = Value Text
agentId, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration = Maybe [AgentAliasRoutingConfigurationListItemProperty]
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AgentAlias where
  toResourceProperties :: AgentAlias -> ResourceProperties
toResourceProperties AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::AgentAlias", 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
"AgentAliasName" 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
agentAliasName,
                            Key
"AgentId" 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
agentId]
                           ([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
"Description" (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)
description,
                               Key
-> [AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RoutingConfiguration" ([AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value))
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration,
                               Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON AgentAlias where
  toJSON :: AgentAlias -> Value
toJSON AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (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
"AgentAliasName" 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
agentAliasName,
               Key
"AgentId" 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
agentId]
              ([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
"Description" (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)
description,
                  Key
-> [AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RoutingConfiguration" ([AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value))
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration,
                  Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "AgentAliasName" AgentAlias where
  type PropertyType "AgentAliasName" AgentAlias = Value Prelude.Text
  set :: PropertyType "AgentAliasName" AgentAlias
-> AgentAlias -> AgentAlias
set PropertyType "AgentAliasName" AgentAlias
newValue AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
    = AgentAlias {agentAliasName :: Value Text
agentAliasName = PropertyType "AgentAliasName" AgentAlias
Value Text
newValue, Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
instance Property "AgentId" AgentAlias where
  type PropertyType "AgentId" AgentAlias = Value Prelude.Text
  set :: PropertyType "AgentId" AgentAlias -> AgentAlias -> AgentAlias
set PropertyType "AgentId" AgentAlias
newValue AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..} = AgentAlias {agentId :: Value Text
agentId = PropertyType "AgentId" AgentAlias
Value Text
newValue, Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentAliasName :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Description" AgentAlias where
  type PropertyType "Description" AgentAlias = Value Prelude.Text
  set :: PropertyType "Description" AgentAlias -> AgentAlias -> AgentAlias
set PropertyType "Description" AgentAlias
newValue AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
    = AgentAlias {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" AgentAlias
Value Text
newValue, Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RoutingConfiguration" AgentAlias where
  type PropertyType "RoutingConfiguration" AgentAlias = [AgentAliasRoutingConfigurationListItemProperty]
  set :: PropertyType "RoutingConfiguration" AgentAlias
-> AgentAlias -> AgentAlias
set PropertyType "RoutingConfiguration" AgentAlias
newValue AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
    = AgentAlias {routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration = [AgentAliasRoutingConfigurationListItemProperty]
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AgentAliasRoutingConfigurationListItemProperty]
PropertyType "RoutingConfiguration" AgentAlias
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" AgentAlias where
  type PropertyType "Tags" AgentAlias = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" AgentAlias -> AgentAlias -> AgentAlias
set PropertyType "Tags" AgentAlias
newValue AgentAlias {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AgentAlias -> ()
agentAliasName :: AgentAlias -> Value Text
agentId :: AgentAlias -> Value Text
description :: AgentAlias -> Maybe (Value Text)
routingConfiguration :: AgentAlias
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: AgentAlias -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
tags :: Maybe (Map Text (Value Text))
..}
    = AgentAlias {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" AgentAlias
newValue, Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
haddock_workaround_ :: ()
agentAliasName :: Value Text
agentId :: Value Text
description :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
..}