module Stratosphere.IoT.JobTemplate.AbortConfigProperty (
module Exports, AbortConfigProperty(..), mkAbortConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.JobTemplate.AbortCriteriaProperty as Exports
import Stratosphere.ResourceProperties
data AbortConfigProperty
=
AbortConfigProperty {AbortConfigProperty -> ()
haddock_workaround_ :: (),
AbortConfigProperty -> [AbortCriteriaProperty]
criteriaList :: [AbortCriteriaProperty]}
deriving stock (AbortConfigProperty -> AbortConfigProperty -> Bool
(AbortConfigProperty -> AbortConfigProperty -> Bool)
-> (AbortConfigProperty -> AbortConfigProperty -> Bool)
-> Eq AbortConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AbortConfigProperty -> AbortConfigProperty -> Bool
== :: AbortConfigProperty -> AbortConfigProperty -> Bool
$c/= :: AbortConfigProperty -> AbortConfigProperty -> Bool
/= :: AbortConfigProperty -> AbortConfigProperty -> Bool
Prelude.Eq, Int -> AbortConfigProperty -> ShowS
[AbortConfigProperty] -> ShowS
AbortConfigProperty -> String
(Int -> AbortConfigProperty -> ShowS)
-> (AbortConfigProperty -> String)
-> ([AbortConfigProperty] -> ShowS)
-> Show AbortConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AbortConfigProperty -> ShowS
showsPrec :: Int -> AbortConfigProperty -> ShowS
$cshow :: AbortConfigProperty -> String
show :: AbortConfigProperty -> String
$cshowList :: [AbortConfigProperty] -> ShowS
showList :: [AbortConfigProperty] -> ShowS
Prelude.Show)
mkAbortConfigProperty ::
[AbortCriteriaProperty] -> AbortConfigProperty
mkAbortConfigProperty :: [AbortCriteriaProperty] -> AbortConfigProperty
mkAbortConfigProperty [AbortCriteriaProperty]
criteriaList
= AbortConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), criteriaList :: [AbortCriteriaProperty]
criteriaList = [AbortCriteriaProperty]
criteriaList}
instance ToResourceProperties AbortConfigProperty where
toResourceProperties :: AbortConfigProperty -> ResourceProperties
toResourceProperties AbortConfigProperty {[AbortCriteriaProperty]
()
haddock_workaround_ :: AbortConfigProperty -> ()
criteriaList :: AbortConfigProperty -> [AbortCriteriaProperty]
haddock_workaround_ :: ()
criteriaList :: [AbortCriteriaProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::JobTemplate.AbortConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"CriteriaList" Key -> [AbortCriteriaProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AbortCriteriaProperty]
criteriaList]}
instance JSON.ToJSON AbortConfigProperty where
toJSON :: AbortConfigProperty -> Value
toJSON AbortConfigProperty {[AbortCriteriaProperty]
()
haddock_workaround_ :: AbortConfigProperty -> ()
criteriaList :: AbortConfigProperty -> [AbortCriteriaProperty]
haddock_workaround_ :: ()
criteriaList :: [AbortCriteriaProperty]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"CriteriaList" Key -> [AbortCriteriaProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AbortCriteriaProperty]
criteriaList]
instance Property "CriteriaList" AbortConfigProperty where
type PropertyType "CriteriaList" AbortConfigProperty = [AbortCriteriaProperty]
set :: PropertyType "CriteriaList" AbortConfigProperty
-> AbortConfigProperty -> AbortConfigProperty
set PropertyType "CriteriaList" AbortConfigProperty
newValue AbortConfigProperty {[AbortCriteriaProperty]
()
haddock_workaround_ :: AbortConfigProperty -> ()
criteriaList :: AbortConfigProperty -> [AbortCriteriaProperty]
haddock_workaround_ :: ()
criteriaList :: [AbortCriteriaProperty]
..}
= AbortConfigProperty {criteriaList :: [AbortCriteriaProperty]
criteriaList = [AbortCriteriaProperty]
PropertyType "CriteriaList" AbortConfigProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}