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