module Stratosphere.Bedrock.Agent.OrchestrationExecutorProperty (
        OrchestrationExecutorProperty(..), mkOrchestrationExecutorProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OrchestrationExecutorProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-orchestrationexecutor.html>
    OrchestrationExecutorProperty {OrchestrationExecutorProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-orchestrationexecutor.html#cfn-bedrock-agent-orchestrationexecutor-lambda>
                                   OrchestrationExecutorProperty -> Value Text
lambda :: (Value Prelude.Text)}
  deriving stock (OrchestrationExecutorProperty
-> OrchestrationExecutorProperty -> Bool
(OrchestrationExecutorProperty
 -> OrchestrationExecutorProperty -> Bool)
-> (OrchestrationExecutorProperty
    -> OrchestrationExecutorProperty -> Bool)
-> Eq OrchestrationExecutorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OrchestrationExecutorProperty
-> OrchestrationExecutorProperty -> Bool
== :: OrchestrationExecutorProperty
-> OrchestrationExecutorProperty -> Bool
$c/= :: OrchestrationExecutorProperty
-> OrchestrationExecutorProperty -> Bool
/= :: OrchestrationExecutorProperty
-> OrchestrationExecutorProperty -> Bool
Prelude.Eq, Int -> OrchestrationExecutorProperty -> ShowS
[OrchestrationExecutorProperty] -> ShowS
OrchestrationExecutorProperty -> String
(Int -> OrchestrationExecutorProperty -> ShowS)
-> (OrchestrationExecutorProperty -> String)
-> ([OrchestrationExecutorProperty] -> ShowS)
-> Show OrchestrationExecutorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OrchestrationExecutorProperty -> ShowS
showsPrec :: Int -> OrchestrationExecutorProperty -> ShowS
$cshow :: OrchestrationExecutorProperty -> String
show :: OrchestrationExecutorProperty -> String
$cshowList :: [OrchestrationExecutorProperty] -> ShowS
showList :: [OrchestrationExecutorProperty] -> ShowS
Prelude.Show)
mkOrchestrationExecutorProperty ::
  Value Prelude.Text -> OrchestrationExecutorProperty
mkOrchestrationExecutorProperty :: Value Text -> OrchestrationExecutorProperty
mkOrchestrationExecutorProperty Value Text
lambda
  = OrchestrationExecutorProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), lambda :: Value Text
lambda = Value Text
lambda}
instance ToResourceProperties OrchestrationExecutorProperty where
  toResourceProperties :: OrchestrationExecutorProperty -> ResourceProperties
toResourceProperties OrchestrationExecutorProperty {()
Value Text
haddock_workaround_ :: OrchestrationExecutorProperty -> ()
lambda :: OrchestrationExecutorProperty -> Value Text
haddock_workaround_ :: ()
lambda :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Agent.OrchestrationExecutor",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Lambda" 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
lambda]}
instance JSON.ToJSON OrchestrationExecutorProperty where
  toJSON :: OrchestrationExecutorProperty -> Value
toJSON OrchestrationExecutorProperty {()
Value Text
haddock_workaround_ :: OrchestrationExecutorProperty -> ()
lambda :: OrchestrationExecutorProperty -> Value Text
haddock_workaround_ :: ()
lambda :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Lambda" 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
lambda]
instance Property "Lambda" OrchestrationExecutorProperty where
  type PropertyType "Lambda" OrchestrationExecutorProperty = Value Prelude.Text
  set :: PropertyType "Lambda" OrchestrationExecutorProperty
-> OrchestrationExecutorProperty -> OrchestrationExecutorProperty
set PropertyType "Lambda" OrchestrationExecutorProperty
newValue OrchestrationExecutorProperty {()
Value Text
haddock_workaround_ :: OrchestrationExecutorProperty -> ()
lambda :: OrchestrationExecutorProperty -> Value Text
haddock_workaround_ :: ()
lambda :: Value Text
..}
    = OrchestrationExecutorProperty {lambda :: Value Text
lambda = PropertyType "Lambda" OrchestrationExecutorProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}