module Stratosphere.Bedrock.FlowVersion.LoopControllerFlowNodeConfigurationProperty (
module Exports, LoopControllerFlowNodeConfigurationProperty(..),
mkLoopControllerFlowNodeConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.FlowConditionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LoopControllerFlowNodeConfigurationProperty
=
LoopControllerFlowNodeConfigurationProperty {LoopControllerFlowNodeConfigurationProperty -> ()
haddock_workaround_ :: (),
LoopControllerFlowNodeConfigurationProperty
-> FlowConditionProperty
continueCondition :: FlowConditionProperty,
LoopControllerFlowNodeConfigurationProperty -> Maybe (Value Double)
maxIterations :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool
(LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool)
-> (LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool)
-> Eq LoopControllerFlowNodeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool
== :: LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool
$c/= :: LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool
/= :: LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty -> Bool
Prelude.Eq, Int -> LoopControllerFlowNodeConfigurationProperty -> ShowS
[LoopControllerFlowNodeConfigurationProperty] -> ShowS
LoopControllerFlowNodeConfigurationProperty -> String
(Int -> LoopControllerFlowNodeConfigurationProperty -> ShowS)
-> (LoopControllerFlowNodeConfigurationProperty -> String)
-> ([LoopControllerFlowNodeConfigurationProperty] -> ShowS)
-> Show LoopControllerFlowNodeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LoopControllerFlowNodeConfigurationProperty -> ShowS
showsPrec :: Int -> LoopControllerFlowNodeConfigurationProperty -> ShowS
$cshow :: LoopControllerFlowNodeConfigurationProperty -> String
show :: LoopControllerFlowNodeConfigurationProperty -> String
$cshowList :: [LoopControllerFlowNodeConfigurationProperty] -> ShowS
showList :: [LoopControllerFlowNodeConfigurationProperty] -> ShowS
Prelude.Show)
mkLoopControllerFlowNodeConfigurationProperty ::
FlowConditionProperty
-> LoopControllerFlowNodeConfigurationProperty
mkLoopControllerFlowNodeConfigurationProperty :: FlowConditionProperty
-> LoopControllerFlowNodeConfigurationProperty
mkLoopControllerFlowNodeConfigurationProperty FlowConditionProperty
continueCondition
= LoopControllerFlowNodeConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), continueCondition :: FlowConditionProperty
continueCondition = FlowConditionProperty
continueCondition,
maxIterations :: Maybe (Value Double)
maxIterations = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LoopControllerFlowNodeConfigurationProperty where
toResourceProperties :: LoopControllerFlowNodeConfigurationProperty -> ResourceProperties
toResourceProperties
LoopControllerFlowNodeConfigurationProperty {Maybe (Value Double)
()
FlowConditionProperty
haddock_workaround_ :: LoopControllerFlowNodeConfigurationProperty -> ()
continueCondition :: LoopControllerFlowNodeConfigurationProperty
-> FlowConditionProperty
maxIterations :: LoopControllerFlowNodeConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
continueCondition :: FlowConditionProperty
maxIterations :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::FlowVersion.LoopControllerFlowNodeConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"ContinueCondition" Key -> FlowConditionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FlowConditionProperty
continueCondition]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxIterations" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxIterations]))}
instance JSON.ToJSON LoopControllerFlowNodeConfigurationProperty where
toJSON :: LoopControllerFlowNodeConfigurationProperty -> Value
toJSON LoopControllerFlowNodeConfigurationProperty {Maybe (Value Double)
()
FlowConditionProperty
haddock_workaround_ :: LoopControllerFlowNodeConfigurationProperty -> ()
continueCondition :: LoopControllerFlowNodeConfigurationProperty
-> FlowConditionProperty
maxIterations :: LoopControllerFlowNodeConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
continueCondition :: FlowConditionProperty
maxIterations :: Maybe (Value Double)
..}
= [(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
"ContinueCondition" Key -> FlowConditionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FlowConditionProperty
continueCondition]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxIterations" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxIterations])))
instance Property "ContinueCondition" LoopControllerFlowNodeConfigurationProperty where
type PropertyType "ContinueCondition" LoopControllerFlowNodeConfigurationProperty = FlowConditionProperty
set :: PropertyType
"ContinueCondition" LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty
set PropertyType
"ContinueCondition" LoopControllerFlowNodeConfigurationProperty
newValue LoopControllerFlowNodeConfigurationProperty {Maybe (Value Double)
()
FlowConditionProperty
haddock_workaround_ :: LoopControllerFlowNodeConfigurationProperty -> ()
continueCondition :: LoopControllerFlowNodeConfigurationProperty
-> FlowConditionProperty
maxIterations :: LoopControllerFlowNodeConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
continueCondition :: FlowConditionProperty
maxIterations :: Maybe (Value Double)
..}
= LoopControllerFlowNodeConfigurationProperty
{continueCondition :: FlowConditionProperty
continueCondition = PropertyType
"ContinueCondition" LoopControllerFlowNodeConfigurationProperty
FlowConditionProperty
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
maxIterations :: Maybe (Value Double)
haddock_workaround_ :: ()
maxIterations :: Maybe (Value Double)
..}
instance Property "MaxIterations" LoopControllerFlowNodeConfigurationProperty where
type PropertyType "MaxIterations" LoopControllerFlowNodeConfigurationProperty = Value Prelude.Double
set :: PropertyType
"MaxIterations" LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty
-> LoopControllerFlowNodeConfigurationProperty
set PropertyType
"MaxIterations" LoopControllerFlowNodeConfigurationProperty
newValue LoopControllerFlowNodeConfigurationProperty {Maybe (Value Double)
()
FlowConditionProperty
haddock_workaround_ :: LoopControllerFlowNodeConfigurationProperty -> ()
continueCondition :: LoopControllerFlowNodeConfigurationProperty
-> FlowConditionProperty
maxIterations :: LoopControllerFlowNodeConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
continueCondition :: FlowConditionProperty
maxIterations :: Maybe (Value Double)
..}
= LoopControllerFlowNodeConfigurationProperty
{maxIterations :: Maybe (Value Double)
maxIterations = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"MaxIterations" LoopControllerFlowNodeConfigurationProperty
Value Double
newValue, ()
FlowConditionProperty
haddock_workaround_ :: ()
continueCondition :: FlowConditionProperty
haddock_workaround_ :: ()
continueCondition :: FlowConditionProperty
..}