module Stratosphere.IoT.JobTemplate.JobExecutionsRetryConfigProperty (
module Exports, JobExecutionsRetryConfigProperty(..),
mkJobExecutionsRetryConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.JobTemplate.RetryCriteriaProperty as Exports
import Stratosphere.ResourceProperties
data JobExecutionsRetryConfigProperty
=
JobExecutionsRetryConfigProperty {JobExecutionsRetryConfigProperty -> ()
haddock_workaround_ :: (),
JobExecutionsRetryConfigProperty -> Maybe [RetryCriteriaProperty]
retryCriteriaList :: (Prelude.Maybe [RetryCriteriaProperty])}
deriving stock (JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool
(JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool)
-> (JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool)
-> Eq JobExecutionsRetryConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool
== :: JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool
$c/= :: JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool
/= :: JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty -> Bool
Prelude.Eq, Int -> JobExecutionsRetryConfigProperty -> ShowS
[JobExecutionsRetryConfigProperty] -> ShowS
JobExecutionsRetryConfigProperty -> String
(Int -> JobExecutionsRetryConfigProperty -> ShowS)
-> (JobExecutionsRetryConfigProperty -> String)
-> ([JobExecutionsRetryConfigProperty] -> ShowS)
-> Show JobExecutionsRetryConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> JobExecutionsRetryConfigProperty -> ShowS
showsPrec :: Int -> JobExecutionsRetryConfigProperty -> ShowS
$cshow :: JobExecutionsRetryConfigProperty -> String
show :: JobExecutionsRetryConfigProperty -> String
$cshowList :: [JobExecutionsRetryConfigProperty] -> ShowS
showList :: [JobExecutionsRetryConfigProperty] -> ShowS
Prelude.Show)
mkJobExecutionsRetryConfigProperty ::
JobExecutionsRetryConfigProperty
mkJobExecutionsRetryConfigProperty :: JobExecutionsRetryConfigProperty
mkJobExecutionsRetryConfigProperty
= JobExecutionsRetryConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), retryCriteriaList :: Maybe [RetryCriteriaProperty]
retryCriteriaList = Maybe [RetryCriteriaProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties JobExecutionsRetryConfigProperty where
toResourceProperties :: JobExecutionsRetryConfigProperty -> ResourceProperties
toResourceProperties JobExecutionsRetryConfigProperty {Maybe [RetryCriteriaProperty]
()
haddock_workaround_ :: JobExecutionsRetryConfigProperty -> ()
retryCriteriaList :: JobExecutionsRetryConfigProperty -> Maybe [RetryCriteriaProperty]
haddock_workaround_ :: ()
retryCriteriaList :: Maybe [RetryCriteriaProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::JobTemplate.JobExecutionsRetryConfig",
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 -> [RetryCriteriaProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RetryCriteriaList" ([RetryCriteriaProperty] -> (Key, Value))
-> Maybe [RetryCriteriaProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RetryCriteriaProperty]
retryCriteriaList])}
instance JSON.ToJSON JobExecutionsRetryConfigProperty where
toJSON :: JobExecutionsRetryConfigProperty -> Value
toJSON JobExecutionsRetryConfigProperty {Maybe [RetryCriteriaProperty]
()
haddock_workaround_ :: JobExecutionsRetryConfigProperty -> ()
retryCriteriaList :: JobExecutionsRetryConfigProperty -> Maybe [RetryCriteriaProperty]
haddock_workaround_ :: ()
retryCriteriaList :: Maybe [RetryCriteriaProperty]
..}
= [(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 -> [RetryCriteriaProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RetryCriteriaList" ([RetryCriteriaProperty] -> (Key, Value))
-> Maybe [RetryCriteriaProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RetryCriteriaProperty]
retryCriteriaList]))
instance Property "RetryCriteriaList" JobExecutionsRetryConfigProperty where
type PropertyType "RetryCriteriaList" JobExecutionsRetryConfigProperty = [RetryCriteriaProperty]
set :: PropertyType "RetryCriteriaList" JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty
-> JobExecutionsRetryConfigProperty
set PropertyType "RetryCriteriaList" JobExecutionsRetryConfigProperty
newValue JobExecutionsRetryConfigProperty {Maybe [RetryCriteriaProperty]
()
haddock_workaround_ :: JobExecutionsRetryConfigProperty -> ()
retryCriteriaList :: JobExecutionsRetryConfigProperty -> Maybe [RetryCriteriaProperty]
haddock_workaround_ :: ()
retryCriteriaList :: Maybe [RetryCriteriaProperty]
..}
= JobExecutionsRetryConfigProperty
{retryCriteriaList :: Maybe [RetryCriteriaProperty]
retryCriteriaList = [RetryCriteriaProperty] -> Maybe [RetryCriteriaProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RetryCriteriaProperty]
PropertyType "RetryCriteriaList" JobExecutionsRetryConfigProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}