module Stratosphere.GreengrassV2.Deployment.IoTJobExecutionsRolloutConfigProperty (
        module Exports, IoTJobExecutionsRolloutConfigProperty(..),
        mkIoTJobExecutionsRolloutConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GreengrassV2.Deployment.IoTJobExponentialRolloutRateProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IoTJobExecutionsRolloutConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-iotjobexecutionsrolloutconfig.html>
    IoTJobExecutionsRolloutConfigProperty {IoTJobExecutionsRolloutConfigProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-iotjobexecutionsrolloutconfig.html#cfn-greengrassv2-deployment-iotjobexecutionsrolloutconfig-exponentialrate>
                                           IoTJobExecutionsRolloutConfigProperty
-> Maybe IoTJobExponentialRolloutRateProperty
exponentialRate :: (Prelude.Maybe IoTJobExponentialRolloutRateProperty),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-iotjobexecutionsrolloutconfig.html#cfn-greengrassv2-deployment-iotjobexecutionsrolloutconfig-maximumperminute>
                                           IoTJobExecutionsRolloutConfigProperty -> Maybe (Value Integer)
maximumPerMinute :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty -> Bool
(IoTJobExecutionsRolloutConfigProperty
 -> IoTJobExecutionsRolloutConfigProperty -> Bool)
-> (IoTJobExecutionsRolloutConfigProperty
    -> IoTJobExecutionsRolloutConfigProperty -> Bool)
-> Eq IoTJobExecutionsRolloutConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty -> Bool
== :: IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty -> Bool
$c/= :: IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty -> Bool
/= :: IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty -> Bool
Prelude.Eq, Int -> IoTJobExecutionsRolloutConfigProperty -> ShowS
[IoTJobExecutionsRolloutConfigProperty] -> ShowS
IoTJobExecutionsRolloutConfigProperty -> String
(Int -> IoTJobExecutionsRolloutConfigProperty -> ShowS)
-> (IoTJobExecutionsRolloutConfigProperty -> String)
-> ([IoTJobExecutionsRolloutConfigProperty] -> ShowS)
-> Show IoTJobExecutionsRolloutConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IoTJobExecutionsRolloutConfigProperty -> ShowS
showsPrec :: Int -> IoTJobExecutionsRolloutConfigProperty -> ShowS
$cshow :: IoTJobExecutionsRolloutConfigProperty -> String
show :: IoTJobExecutionsRolloutConfigProperty -> String
$cshowList :: [IoTJobExecutionsRolloutConfigProperty] -> ShowS
showList :: [IoTJobExecutionsRolloutConfigProperty] -> ShowS
Prelude.Show)
mkIoTJobExecutionsRolloutConfigProperty ::
  IoTJobExecutionsRolloutConfigProperty
mkIoTJobExecutionsRolloutConfigProperty :: IoTJobExecutionsRolloutConfigProperty
mkIoTJobExecutionsRolloutConfigProperty
  = IoTJobExecutionsRolloutConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
exponentialRate = Maybe IoTJobExponentialRolloutRateProperty
forall a. Maybe a
Prelude.Nothing,
       maximumPerMinute :: Maybe (Value Integer)
maximumPerMinute = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IoTJobExecutionsRolloutConfigProperty where
  toResourceProperties :: IoTJobExecutionsRolloutConfigProperty -> ResourceProperties
toResourceProperties IoTJobExecutionsRolloutConfigProperty {Maybe (Value Integer)
Maybe IoTJobExponentialRolloutRateProperty
()
haddock_workaround_ :: IoTJobExecutionsRolloutConfigProperty -> ()
exponentialRate :: IoTJobExecutionsRolloutConfigProperty
-> Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: IoTJobExecutionsRolloutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GreengrassV2::Deployment.IoTJobExecutionsRolloutConfig",
         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 -> IoTJobExponentialRolloutRateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExponentialRate" (IoTJobExponentialRolloutRateProperty -> (Key, Value))
-> Maybe IoTJobExponentialRolloutRateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobExponentialRolloutRateProperty
exponentialRate,
                            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 IoTJobExecutionsRolloutConfigProperty where
  toJSON :: IoTJobExecutionsRolloutConfigProperty -> Value
toJSON IoTJobExecutionsRolloutConfigProperty {Maybe (Value Integer)
Maybe IoTJobExponentialRolloutRateProperty
()
haddock_workaround_ :: IoTJobExecutionsRolloutConfigProperty -> ()
exponentialRate :: IoTJobExecutionsRolloutConfigProperty
-> Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: IoTJobExecutionsRolloutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
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 -> IoTJobExponentialRolloutRateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExponentialRate" (IoTJobExponentialRolloutRateProperty -> (Key, Value))
-> Maybe IoTJobExponentialRolloutRateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobExponentialRolloutRateProperty
exponentialRate,
               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 "ExponentialRate" IoTJobExecutionsRolloutConfigProperty where
  type PropertyType "ExponentialRate" IoTJobExecutionsRolloutConfigProperty = IoTJobExponentialRolloutRateProperty
  set :: PropertyType
  "ExponentialRate" IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty
set PropertyType
  "ExponentialRate" IoTJobExecutionsRolloutConfigProperty
newValue IoTJobExecutionsRolloutConfigProperty {Maybe (Value Integer)
Maybe IoTJobExponentialRolloutRateProperty
()
haddock_workaround_ :: IoTJobExecutionsRolloutConfigProperty -> ()
exponentialRate :: IoTJobExecutionsRolloutConfigProperty
-> Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: IoTJobExecutionsRolloutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: Maybe (Value Integer)
..}
    = IoTJobExecutionsRolloutConfigProperty
        {exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
exponentialRate = IoTJobExponentialRolloutRateProperty
-> Maybe IoTJobExponentialRolloutRateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ExponentialRate" IoTJobExecutionsRolloutConfigProperty
IoTJobExponentialRolloutRateProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
maximumPerMinute :: Maybe (Value Integer)
haddock_workaround_ :: ()
maximumPerMinute :: Maybe (Value Integer)
..}
instance Property "MaximumPerMinute" IoTJobExecutionsRolloutConfigProperty where
  type PropertyType "MaximumPerMinute" IoTJobExecutionsRolloutConfigProperty = Value Prelude.Integer
  set :: PropertyType
  "MaximumPerMinute" IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty
-> IoTJobExecutionsRolloutConfigProperty
set PropertyType
  "MaximumPerMinute" IoTJobExecutionsRolloutConfigProperty
newValue IoTJobExecutionsRolloutConfigProperty {Maybe (Value Integer)
Maybe IoTJobExponentialRolloutRateProperty
()
haddock_workaround_ :: IoTJobExecutionsRolloutConfigProperty -> ()
exponentialRate :: IoTJobExecutionsRolloutConfigProperty
-> Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: IoTJobExecutionsRolloutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
maximumPerMinute :: Maybe (Value Integer)
..}
    = IoTJobExecutionsRolloutConfigProperty
        {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" IoTJobExecutionsRolloutConfigProperty
Value Integer
newValue, Maybe IoTJobExponentialRolloutRateProperty
()
haddock_workaround_ :: ()
exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
haddock_workaround_ :: ()
exponentialRate :: Maybe IoTJobExponentialRolloutRateProperty
..}