module Stratosphere.BedrockAgentCore.RuntimeEndpoint (
        RuntimeEndpoint(..), mkRuntimeEndpoint
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuntimeEndpoint
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtimeendpoint.html>
    RuntimeEndpoint {RuntimeEndpoint -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtimeendpoint.html#cfn-bedrockagentcore-runtimeendpoint-agentruntimeid>
                     RuntimeEndpoint -> Value Text
agentRuntimeId :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtimeendpoint.html#cfn-bedrockagentcore-runtimeendpoint-agentruntimeversion>
                     RuntimeEndpoint -> Maybe (Value Text)
agentRuntimeVersion :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtimeendpoint.html#cfn-bedrockagentcore-runtimeendpoint-description>
                     RuntimeEndpoint -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtimeendpoint.html#cfn-bedrockagentcore-runtimeendpoint-name>
                     RuntimeEndpoint -> Value Text
name :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtimeendpoint.html#cfn-bedrockagentcore-runtimeendpoint-tags>
                     RuntimeEndpoint -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (RuntimeEndpoint -> RuntimeEndpoint -> Bool
(RuntimeEndpoint -> RuntimeEndpoint -> Bool)
-> (RuntimeEndpoint -> RuntimeEndpoint -> Bool)
-> Eq RuntimeEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuntimeEndpoint -> RuntimeEndpoint -> Bool
== :: RuntimeEndpoint -> RuntimeEndpoint -> Bool
$c/= :: RuntimeEndpoint -> RuntimeEndpoint -> Bool
/= :: RuntimeEndpoint -> RuntimeEndpoint -> Bool
Prelude.Eq, Int -> RuntimeEndpoint -> ShowS
[RuntimeEndpoint] -> ShowS
RuntimeEndpoint -> String
(Int -> RuntimeEndpoint -> ShowS)
-> (RuntimeEndpoint -> String)
-> ([RuntimeEndpoint] -> ShowS)
-> Show RuntimeEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuntimeEndpoint -> ShowS
showsPrec :: Int -> RuntimeEndpoint -> ShowS
$cshow :: RuntimeEndpoint -> String
show :: RuntimeEndpoint -> String
$cshowList :: [RuntimeEndpoint] -> ShowS
showList :: [RuntimeEndpoint] -> ShowS
Prelude.Show)
mkRuntimeEndpoint ::
  Value Prelude.Text -> Value Prelude.Text -> RuntimeEndpoint
mkRuntimeEndpoint :: Value Text -> Value Text -> RuntimeEndpoint
mkRuntimeEndpoint Value Text
agentRuntimeId Value Text
name
  = RuntimeEndpoint
      {haddock_workaround_ :: ()
haddock_workaround_ = (), agentRuntimeId :: Value Text
agentRuntimeId = Value Text
agentRuntimeId,
       name :: Value Text
name = Value Text
name, agentRuntimeVersion :: Maybe (Value Text)
agentRuntimeVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
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 RuntimeEndpoint where
  toResourceProperties :: RuntimeEndpoint -> ResourceProperties
toResourceProperties RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::RuntimeEndpoint",
         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
"AgentRuntimeId" 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
agentRuntimeId, Key
"Name" 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
name]
                           ([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
"AgentRuntimeVersion" (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)
agentRuntimeVersion,
                               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 -> 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 RuntimeEndpoint where
  toJSON :: RuntimeEndpoint -> Value
toJSON RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
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
"AgentRuntimeId" 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
agentRuntimeId, Key
"Name" 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
name]
              ([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
"AgentRuntimeVersion" (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)
agentRuntimeVersion,
                  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 -> 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 "AgentRuntimeId" RuntimeEndpoint where
  type PropertyType "AgentRuntimeId" RuntimeEndpoint = Value Prelude.Text
  set :: PropertyType "AgentRuntimeId" RuntimeEndpoint
-> RuntimeEndpoint -> RuntimeEndpoint
set PropertyType "AgentRuntimeId" RuntimeEndpoint
newValue RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = RuntimeEndpoint {agentRuntimeId :: Value Text
agentRuntimeId = PropertyType "AgentRuntimeId" RuntimeEndpoint
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "AgentRuntimeVersion" RuntimeEndpoint where
  type PropertyType "AgentRuntimeVersion" RuntimeEndpoint = Value Prelude.Text
  set :: PropertyType "AgentRuntimeVersion" RuntimeEndpoint
-> RuntimeEndpoint -> RuntimeEndpoint
set PropertyType "AgentRuntimeVersion" RuntimeEndpoint
newValue RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = RuntimeEndpoint {agentRuntimeVersion :: Maybe (Value Text)
agentRuntimeVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AgentRuntimeVersion" RuntimeEndpoint
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Description" RuntimeEndpoint where
  type PropertyType "Description" RuntimeEndpoint = Value Prelude.Text
  set :: PropertyType "Description" RuntimeEndpoint
-> RuntimeEndpoint -> RuntimeEndpoint
set PropertyType "Description" RuntimeEndpoint
newValue RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = RuntimeEndpoint {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" RuntimeEndpoint
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" RuntimeEndpoint where
  type PropertyType "Name" RuntimeEndpoint = Value Prelude.Text
  set :: PropertyType "Name" RuntimeEndpoint
-> RuntimeEndpoint -> RuntimeEndpoint
set PropertyType "Name" RuntimeEndpoint
newValue RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = RuntimeEndpoint {name :: Value Text
name = PropertyType "Name" RuntimeEndpoint
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" RuntimeEndpoint where
  type PropertyType "Tags" RuntimeEndpoint = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" RuntimeEndpoint
-> RuntimeEndpoint -> RuntimeEndpoint
set PropertyType "Tags" RuntimeEndpoint
newValue RuntimeEndpoint {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeEndpoint -> ()
agentRuntimeId :: RuntimeEndpoint -> Value Text
agentRuntimeVersion :: RuntimeEndpoint -> Maybe (Value Text)
description :: RuntimeEndpoint -> Maybe (Value Text)
name :: RuntimeEndpoint -> Value Text
tags :: RuntimeEndpoint -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = RuntimeEndpoint {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" RuntimeEndpoint
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
agentRuntimeId :: Value Text
agentRuntimeVersion :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
..}