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