module Stratosphere.GreengrassV2.Deployment.IoTJobTimeoutConfigProperty (
        IoTJobTimeoutConfigProperty(..), mkIoTJobTimeoutConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IoTJobTimeoutConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-iotjobtimeoutconfig.html>
    IoTJobTimeoutConfigProperty {IoTJobTimeoutConfigProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-iotjobtimeoutconfig.html#cfn-greengrassv2-deployment-iotjobtimeoutconfig-inprogresstimeoutinminutes>
                                 IoTJobTimeoutConfigProperty -> Maybe (Value Integer)
inProgressTimeoutInMinutes :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (IoTJobTimeoutConfigProperty -> IoTJobTimeoutConfigProperty -> Bool
(IoTJobTimeoutConfigProperty
 -> IoTJobTimeoutConfigProperty -> Bool)
-> (IoTJobTimeoutConfigProperty
    -> IoTJobTimeoutConfigProperty -> Bool)
-> Eq IoTJobTimeoutConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IoTJobTimeoutConfigProperty -> IoTJobTimeoutConfigProperty -> Bool
== :: IoTJobTimeoutConfigProperty -> IoTJobTimeoutConfigProperty -> Bool
$c/= :: IoTJobTimeoutConfigProperty -> IoTJobTimeoutConfigProperty -> Bool
/= :: IoTJobTimeoutConfigProperty -> IoTJobTimeoutConfigProperty -> Bool
Prelude.Eq, Int -> IoTJobTimeoutConfigProperty -> ShowS
[IoTJobTimeoutConfigProperty] -> ShowS
IoTJobTimeoutConfigProperty -> String
(Int -> IoTJobTimeoutConfigProperty -> ShowS)
-> (IoTJobTimeoutConfigProperty -> String)
-> ([IoTJobTimeoutConfigProperty] -> ShowS)
-> Show IoTJobTimeoutConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IoTJobTimeoutConfigProperty -> ShowS
showsPrec :: Int -> IoTJobTimeoutConfigProperty -> ShowS
$cshow :: IoTJobTimeoutConfigProperty -> String
show :: IoTJobTimeoutConfigProperty -> String
$cshowList :: [IoTJobTimeoutConfigProperty] -> ShowS
showList :: [IoTJobTimeoutConfigProperty] -> ShowS
Prelude.Show)
mkIoTJobTimeoutConfigProperty :: IoTJobTimeoutConfigProperty
mkIoTJobTimeoutConfigProperty :: IoTJobTimeoutConfigProperty
mkIoTJobTimeoutConfigProperty
  = IoTJobTimeoutConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       inProgressTimeoutInMinutes :: Maybe (Value Integer)
inProgressTimeoutInMinutes = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IoTJobTimeoutConfigProperty where
  toResourceProperties :: IoTJobTimeoutConfigProperty -> ResourceProperties
toResourceProperties IoTJobTimeoutConfigProperty {Maybe (Value Integer)
()
haddock_workaround_ :: IoTJobTimeoutConfigProperty -> ()
inProgressTimeoutInMinutes :: IoTJobTimeoutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
inProgressTimeoutInMinutes :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GreengrassV2::Deployment.IoTJobTimeoutConfig",
         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 -> 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
"InProgressTimeoutInMinutes"
                              (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)
inProgressTimeoutInMinutes])}
instance JSON.ToJSON IoTJobTimeoutConfigProperty where
  toJSON :: IoTJobTimeoutConfigProperty -> Value
toJSON IoTJobTimeoutConfigProperty {Maybe (Value Integer)
()
haddock_workaround_ :: IoTJobTimeoutConfigProperty -> ()
inProgressTimeoutInMinutes :: IoTJobTimeoutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
inProgressTimeoutInMinutes :: 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 -> 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
"InProgressTimeoutInMinutes"
                 (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)
inProgressTimeoutInMinutes]))
instance Property "InProgressTimeoutInMinutes" IoTJobTimeoutConfigProperty where
  type PropertyType "InProgressTimeoutInMinutes" IoTJobTimeoutConfigProperty = Value Prelude.Integer
  set :: PropertyType
  "InProgressTimeoutInMinutes" IoTJobTimeoutConfigProperty
-> IoTJobTimeoutConfigProperty -> IoTJobTimeoutConfigProperty
set PropertyType
  "InProgressTimeoutInMinutes" IoTJobTimeoutConfigProperty
newValue IoTJobTimeoutConfigProperty {Maybe (Value Integer)
()
haddock_workaround_ :: IoTJobTimeoutConfigProperty -> ()
inProgressTimeoutInMinutes :: IoTJobTimeoutConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
inProgressTimeoutInMinutes :: Maybe (Value Integer)
..}
    = IoTJobTimeoutConfigProperty
        {inProgressTimeoutInMinutes :: Maybe (Value Integer)
inProgressTimeoutInMinutes = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "InProgressTimeoutInMinutes" IoTJobTimeoutConfigProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}