module Stratosphere.FIS.ExperimentTemplate.ExperimentTemplateStopConditionProperty (
ExperimentTemplateStopConditionProperty(..),
mkExperimentTemplateStopConditionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExperimentTemplateStopConditionProperty
=
ExperimentTemplateStopConditionProperty {ExperimentTemplateStopConditionProperty -> ()
haddock_workaround_ :: (),
ExperimentTemplateStopConditionProperty -> Value Text
source :: (Value Prelude.Text),
ExperimentTemplateStopConditionProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool
(ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool)
-> (ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool)
-> Eq ExperimentTemplateStopConditionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool
== :: ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool
$c/= :: ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool
/= :: ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty -> Bool
Prelude.Eq, Int -> ExperimentTemplateStopConditionProperty -> ShowS
[ExperimentTemplateStopConditionProperty] -> ShowS
ExperimentTemplateStopConditionProperty -> String
(Int -> ExperimentTemplateStopConditionProperty -> ShowS)
-> (ExperimentTemplateStopConditionProperty -> String)
-> ([ExperimentTemplateStopConditionProperty] -> ShowS)
-> Show ExperimentTemplateStopConditionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExperimentTemplateStopConditionProperty -> ShowS
showsPrec :: Int -> ExperimentTemplateStopConditionProperty -> ShowS
$cshow :: ExperimentTemplateStopConditionProperty -> String
show :: ExperimentTemplateStopConditionProperty -> String
$cshowList :: [ExperimentTemplateStopConditionProperty] -> ShowS
showList :: [ExperimentTemplateStopConditionProperty] -> ShowS
Prelude.Show)
mkExperimentTemplateStopConditionProperty ::
Value Prelude.Text -> ExperimentTemplateStopConditionProperty
mkExperimentTemplateStopConditionProperty :: Value Text -> ExperimentTemplateStopConditionProperty
mkExperimentTemplateStopConditionProperty Value Text
source
= ExperimentTemplateStopConditionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), source :: Value Text
source = Value Text
source,
value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExperimentTemplateStopConditionProperty where
toResourceProperties :: ExperimentTemplateStopConditionProperty -> ResourceProperties
toResourceProperties ExperimentTemplateStopConditionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateStopConditionProperty -> ()
source :: ExperimentTemplateStopConditionProperty -> Value Text
value :: ExperimentTemplateStopConditionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
source :: Value Text
value :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FIS::ExperimentTemplate.ExperimentTemplateStopCondition",
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
"Source" 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
source]
([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
"Value" (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)
value]))}
instance JSON.ToJSON ExperimentTemplateStopConditionProperty where
toJSON :: ExperimentTemplateStopConditionProperty -> Value
toJSON ExperimentTemplateStopConditionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateStopConditionProperty -> ()
source :: ExperimentTemplateStopConditionProperty -> Value Text
value :: ExperimentTemplateStopConditionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
source :: Value Text
value :: Maybe (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
"Source" 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
source]
([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
"Value" (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)
value])))
instance Property "Source" ExperimentTemplateStopConditionProperty where
type PropertyType "Source" ExperimentTemplateStopConditionProperty = Value Prelude.Text
set :: PropertyType "Source" ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty
set PropertyType "Source" ExperimentTemplateStopConditionProperty
newValue ExperimentTemplateStopConditionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateStopConditionProperty -> ()
source :: ExperimentTemplateStopConditionProperty -> Value Text
value :: ExperimentTemplateStopConditionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
source :: Value Text
value :: Maybe (Value Text)
..}
= ExperimentTemplateStopConditionProperty {source :: Value Text
source = PropertyType "Source" ExperimentTemplateStopConditionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" ExperimentTemplateStopConditionProperty where
type PropertyType "Value" ExperimentTemplateStopConditionProperty = Value Prelude.Text
set :: PropertyType "Value" ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty
-> ExperimentTemplateStopConditionProperty
set PropertyType "Value" ExperimentTemplateStopConditionProperty
newValue ExperimentTemplateStopConditionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateStopConditionProperty -> ()
source :: ExperimentTemplateStopConditionProperty -> Value Text
value :: ExperimentTemplateStopConditionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
source :: Value Text
value :: Maybe (Value Text)
..}
= ExperimentTemplateStopConditionProperty
{value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" ExperimentTemplateStopConditionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
source :: Value Text
haddock_workaround_ :: ()
source :: Value Text
..}