module Stratosphere.IoT.JobTemplate.AbortCriteriaProperty (
AbortCriteriaProperty(..), mkAbortCriteriaProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AbortCriteriaProperty
=
AbortCriteriaProperty {AbortCriteriaProperty -> ()
haddock_workaround_ :: (),
AbortCriteriaProperty -> Value Text
action :: (Value Prelude.Text),
AbortCriteriaProperty -> Value Text
failureType :: (Value Prelude.Text),
AbortCriteriaProperty -> Value Integer
minNumberOfExecutedThings :: (Value Prelude.Integer),
AbortCriteriaProperty -> Value Double
thresholdPercentage :: (Value Prelude.Double)}
deriving stock (AbortCriteriaProperty -> AbortCriteriaProperty -> Bool
(AbortCriteriaProperty -> AbortCriteriaProperty -> Bool)
-> (AbortCriteriaProperty -> AbortCriteriaProperty -> Bool)
-> Eq AbortCriteriaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AbortCriteriaProperty -> AbortCriteriaProperty -> Bool
== :: AbortCriteriaProperty -> AbortCriteriaProperty -> Bool
$c/= :: AbortCriteriaProperty -> AbortCriteriaProperty -> Bool
/= :: AbortCriteriaProperty -> AbortCriteriaProperty -> Bool
Prelude.Eq, Int -> AbortCriteriaProperty -> ShowS
[AbortCriteriaProperty] -> ShowS
AbortCriteriaProperty -> String
(Int -> AbortCriteriaProperty -> ShowS)
-> (AbortCriteriaProperty -> String)
-> ([AbortCriteriaProperty] -> ShowS)
-> Show AbortCriteriaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AbortCriteriaProperty -> ShowS
showsPrec :: Int -> AbortCriteriaProperty -> ShowS
$cshow :: AbortCriteriaProperty -> String
show :: AbortCriteriaProperty -> String
$cshowList :: [AbortCriteriaProperty] -> ShowS
showList :: [AbortCriteriaProperty] -> ShowS
Prelude.Show)
mkAbortCriteriaProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Integer
-> Value Prelude.Double -> AbortCriteriaProperty
mkAbortCriteriaProperty :: Value Text
-> Value Text
-> Value Integer
-> Value Double
-> AbortCriteriaProperty
mkAbortCriteriaProperty
Value Text
action
Value Text
failureType
Value Integer
minNumberOfExecutedThings
Value Double
thresholdPercentage
= AbortCriteriaProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), action :: Value Text
action = Value Text
action,
failureType :: Value Text
failureType = Value Text
failureType,
minNumberOfExecutedThings :: Value Integer
minNumberOfExecutedThings = Value Integer
minNumberOfExecutedThings,
thresholdPercentage :: Value Double
thresholdPercentage = Value Double
thresholdPercentage}
instance ToResourceProperties AbortCriteriaProperty where
toResourceProperties :: AbortCriteriaProperty -> ResourceProperties
toResourceProperties AbortCriteriaProperty {()
Value Double
Value Integer
Value Text
haddock_workaround_ :: AbortCriteriaProperty -> ()
action :: AbortCriteriaProperty -> Value Text
failureType :: AbortCriteriaProperty -> Value Text
minNumberOfExecutedThings :: AbortCriteriaProperty -> Value Integer
thresholdPercentage :: AbortCriteriaProperty -> Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::JobTemplate.AbortCriteria",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Action" 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
action,
Key
"FailureType" 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
failureType,
Key
"MinNumberOfExecutedThings" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
minNumberOfExecutedThings,
Key
"ThresholdPercentage" 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..= Value Double
thresholdPercentage]}
instance JSON.ToJSON AbortCriteriaProperty where
toJSON :: AbortCriteriaProperty -> Value
toJSON AbortCriteriaProperty {()
Value Double
Value Integer
Value Text
haddock_workaround_ :: AbortCriteriaProperty -> ()
action :: AbortCriteriaProperty -> Value Text
failureType :: AbortCriteriaProperty -> Value Text
minNumberOfExecutedThings :: AbortCriteriaProperty -> Value Integer
thresholdPercentage :: AbortCriteriaProperty -> Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Action" 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
action, Key
"FailureType" 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
failureType,
Key
"MinNumberOfExecutedThings" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
minNumberOfExecutedThings,
Key
"ThresholdPercentage" 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..= Value Double
thresholdPercentage]
instance Property "Action" AbortCriteriaProperty where
type PropertyType "Action" AbortCriteriaProperty = Value Prelude.Text
set :: PropertyType "Action" AbortCriteriaProperty
-> AbortCriteriaProperty -> AbortCriteriaProperty
set PropertyType "Action" AbortCriteriaProperty
newValue AbortCriteriaProperty {()
Value Double
Value Integer
Value Text
haddock_workaround_ :: AbortCriteriaProperty -> ()
action :: AbortCriteriaProperty -> Value Text
failureType :: AbortCriteriaProperty -> Value Text
minNumberOfExecutedThings :: AbortCriteriaProperty -> Value Integer
thresholdPercentage :: AbortCriteriaProperty -> Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
= AbortCriteriaProperty {action :: Value Text
action = PropertyType "Action" AbortCriteriaProperty
Value Text
newValue, ()
Value Double
Value Integer
Value Text
haddock_workaround_ :: ()
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
haddock_workaround_ :: ()
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
instance Property "FailureType" AbortCriteriaProperty where
type PropertyType "FailureType" AbortCriteriaProperty = Value Prelude.Text
set :: PropertyType "FailureType" AbortCriteriaProperty
-> AbortCriteriaProperty -> AbortCriteriaProperty
set PropertyType "FailureType" AbortCriteriaProperty
newValue AbortCriteriaProperty {()
Value Double
Value Integer
Value Text
haddock_workaround_ :: AbortCriteriaProperty -> ()
action :: AbortCriteriaProperty -> Value Text
failureType :: AbortCriteriaProperty -> Value Text
minNumberOfExecutedThings :: AbortCriteriaProperty -> Value Integer
thresholdPercentage :: AbortCriteriaProperty -> Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
= AbortCriteriaProperty {failureType :: Value Text
failureType = PropertyType "FailureType" AbortCriteriaProperty
Value Text
newValue, ()
Value Double
Value Integer
Value Text
haddock_workaround_ :: ()
action :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
haddock_workaround_ :: ()
action :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
instance Property "MinNumberOfExecutedThings" AbortCriteriaProperty where
type PropertyType "MinNumberOfExecutedThings" AbortCriteriaProperty = Value Prelude.Integer
set :: PropertyType "MinNumberOfExecutedThings" AbortCriteriaProperty
-> AbortCriteriaProperty -> AbortCriteriaProperty
set PropertyType "MinNumberOfExecutedThings" AbortCriteriaProperty
newValue AbortCriteriaProperty {()
Value Double
Value Integer
Value Text
haddock_workaround_ :: AbortCriteriaProperty -> ()
action :: AbortCriteriaProperty -> Value Text
failureType :: AbortCriteriaProperty -> Value Text
minNumberOfExecutedThings :: AbortCriteriaProperty -> Value Integer
thresholdPercentage :: AbortCriteriaProperty -> Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
= AbortCriteriaProperty {minNumberOfExecutedThings :: Value Integer
minNumberOfExecutedThings = PropertyType "MinNumberOfExecutedThings" AbortCriteriaProperty
Value Integer
newValue, ()
Value Double
Value Text
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
thresholdPercentage :: Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
thresholdPercentage :: Value Double
..}
instance Property "ThresholdPercentage" AbortCriteriaProperty where
type PropertyType "ThresholdPercentage" AbortCriteriaProperty = Value Prelude.Double
set :: PropertyType "ThresholdPercentage" AbortCriteriaProperty
-> AbortCriteriaProperty -> AbortCriteriaProperty
set PropertyType "ThresholdPercentage" AbortCriteriaProperty
newValue AbortCriteriaProperty {()
Value Double
Value Integer
Value Text
haddock_workaround_ :: AbortCriteriaProperty -> ()
action :: AbortCriteriaProperty -> Value Text
failureType :: AbortCriteriaProperty -> Value Text
minNumberOfExecutedThings :: AbortCriteriaProperty -> Value Integer
thresholdPercentage :: AbortCriteriaProperty -> Value Double
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
thresholdPercentage :: Value Double
..}
= AbortCriteriaProperty {thresholdPercentage :: Value Double
thresholdPercentage = PropertyType "ThresholdPercentage" AbortCriteriaProperty
Value Double
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
haddock_workaround_ :: ()
action :: Value Text
failureType :: Value Text
minNumberOfExecutedThings :: Value Integer
..}