module Stratosphere.GreengrassV2.Deployment.DeploymentIoTJobConfigurationProperty (
module Exports, DeploymentIoTJobConfigurationProperty(..),
mkDeploymentIoTJobConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GreengrassV2.Deployment.IoTJobAbortConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.GreengrassV2.Deployment.IoTJobExecutionsRolloutConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.GreengrassV2.Deployment.IoTJobTimeoutConfigProperty as Exports
import Stratosphere.ResourceProperties
data DeploymentIoTJobConfigurationProperty
=
DeploymentIoTJobConfigurationProperty {DeploymentIoTJobConfigurationProperty -> ()
haddock_workaround_ :: (),
DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobAbortConfigProperty
abortConfig :: (Prelude.Maybe IoTJobAbortConfigProperty),
DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
jobExecutionsRolloutConfig :: (Prelude.Maybe IoTJobExecutionsRolloutConfigProperty),
DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobTimeoutConfigProperty
timeoutConfig :: (Prelude.Maybe IoTJobTimeoutConfigProperty)}
deriving stock (DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool
(DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool)
-> (DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool)
-> Eq DeploymentIoTJobConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool
== :: DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool
$c/= :: DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool
/= :: DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty -> Bool
Prelude.Eq, Int -> DeploymentIoTJobConfigurationProperty -> ShowS
[DeploymentIoTJobConfigurationProperty] -> ShowS
DeploymentIoTJobConfigurationProperty -> String
(Int -> DeploymentIoTJobConfigurationProperty -> ShowS)
-> (DeploymentIoTJobConfigurationProperty -> String)
-> ([DeploymentIoTJobConfigurationProperty] -> ShowS)
-> Show DeploymentIoTJobConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeploymentIoTJobConfigurationProperty -> ShowS
showsPrec :: Int -> DeploymentIoTJobConfigurationProperty -> ShowS
$cshow :: DeploymentIoTJobConfigurationProperty -> String
show :: DeploymentIoTJobConfigurationProperty -> String
$cshowList :: [DeploymentIoTJobConfigurationProperty] -> ShowS
showList :: [DeploymentIoTJobConfigurationProperty] -> ShowS
Prelude.Show)
mkDeploymentIoTJobConfigurationProperty ::
DeploymentIoTJobConfigurationProperty
mkDeploymentIoTJobConfigurationProperty :: DeploymentIoTJobConfigurationProperty
mkDeploymentIoTJobConfigurationProperty
= DeploymentIoTJobConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), abortConfig :: Maybe IoTJobAbortConfigProperty
abortConfig = Maybe IoTJobAbortConfigProperty
forall a. Maybe a
Prelude.Nothing,
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
jobExecutionsRolloutConfig = Maybe IoTJobExecutionsRolloutConfigProperty
forall a. Maybe a
Prelude.Nothing,
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
timeoutConfig = Maybe IoTJobTimeoutConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeploymentIoTJobConfigurationProperty where
toResourceProperties :: DeploymentIoTJobConfigurationProperty -> ResourceProperties
toResourceProperties DeploymentIoTJobConfigurationProperty {Maybe IoTJobAbortConfigProperty
Maybe IoTJobExecutionsRolloutConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: DeploymentIoTJobConfigurationProperty -> ()
abortConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GreengrassV2::Deployment.DeploymentIoTJobConfiguration",
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 -> IoTJobAbortConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AbortConfig" (IoTJobAbortConfigProperty -> (Key, Value))
-> Maybe IoTJobAbortConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobAbortConfigProperty
abortConfig,
Key -> IoTJobExecutionsRolloutConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"JobExecutionsRolloutConfig"
(IoTJobExecutionsRolloutConfigProperty -> (Key, Value))
-> Maybe IoTJobExecutionsRolloutConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobExecutionsRolloutConfigProperty
jobExecutionsRolloutConfig,
Key -> IoTJobTimeoutConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeoutConfig" (IoTJobTimeoutConfigProperty -> (Key, Value))
-> Maybe IoTJobTimeoutConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobTimeoutConfigProperty
timeoutConfig])}
instance JSON.ToJSON DeploymentIoTJobConfigurationProperty where
toJSON :: DeploymentIoTJobConfigurationProperty -> Value
toJSON DeploymentIoTJobConfigurationProperty {Maybe IoTJobAbortConfigProperty
Maybe IoTJobExecutionsRolloutConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: DeploymentIoTJobConfigurationProperty -> ()
abortConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
= [(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 -> IoTJobAbortConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AbortConfig" (IoTJobAbortConfigProperty -> (Key, Value))
-> Maybe IoTJobAbortConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobAbortConfigProperty
abortConfig,
Key -> IoTJobExecutionsRolloutConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"JobExecutionsRolloutConfig"
(IoTJobExecutionsRolloutConfigProperty -> (Key, Value))
-> Maybe IoTJobExecutionsRolloutConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobExecutionsRolloutConfigProperty
jobExecutionsRolloutConfig,
Key -> IoTJobTimeoutConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeoutConfig" (IoTJobTimeoutConfigProperty -> (Key, Value))
-> Maybe IoTJobTimeoutConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IoTJobTimeoutConfigProperty
timeoutConfig]))
instance Property "AbortConfig" DeploymentIoTJobConfigurationProperty where
type PropertyType "AbortConfig" DeploymentIoTJobConfigurationProperty = IoTJobAbortConfigProperty
set :: PropertyType "AbortConfig" DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty
set PropertyType "AbortConfig" DeploymentIoTJobConfigurationProperty
newValue DeploymentIoTJobConfigurationProperty {Maybe IoTJobAbortConfigProperty
Maybe IoTJobExecutionsRolloutConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: DeploymentIoTJobConfigurationProperty -> ()
abortConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
= DeploymentIoTJobConfigurationProperty
{abortConfig :: Maybe IoTJobAbortConfigProperty
abortConfig = IoTJobAbortConfigProperty -> Maybe IoTJobAbortConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AbortConfig" DeploymentIoTJobConfigurationProperty
IoTJobAbortConfigProperty
newValue, Maybe IoTJobExecutionsRolloutConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: ()
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
instance Property "JobExecutionsRolloutConfig" DeploymentIoTJobConfigurationProperty where
type PropertyType "JobExecutionsRolloutConfig" DeploymentIoTJobConfigurationProperty = IoTJobExecutionsRolloutConfigProperty
set :: PropertyType
"JobExecutionsRolloutConfig" DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty
set PropertyType
"JobExecutionsRolloutConfig" DeploymentIoTJobConfigurationProperty
newValue DeploymentIoTJobConfigurationProperty {Maybe IoTJobAbortConfigProperty
Maybe IoTJobExecutionsRolloutConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: DeploymentIoTJobConfigurationProperty -> ()
abortConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
= DeploymentIoTJobConfigurationProperty
{jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
jobExecutionsRolloutConfig = IoTJobExecutionsRolloutConfigProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"JobExecutionsRolloutConfig" DeploymentIoTJobConfigurationProperty
IoTJobExecutionsRolloutConfigProperty
newValue, Maybe IoTJobAbortConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
instance Property "TimeoutConfig" DeploymentIoTJobConfigurationProperty where
type PropertyType "TimeoutConfig" DeploymentIoTJobConfigurationProperty = IoTJobTimeoutConfigProperty
set :: PropertyType "TimeoutConfig" DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty
-> DeploymentIoTJobConfigurationProperty
set PropertyType "TimeoutConfig" DeploymentIoTJobConfigurationProperty
newValue DeploymentIoTJobConfigurationProperty {Maybe IoTJobAbortConfigProperty
Maybe IoTJobExecutionsRolloutConfigProperty
Maybe IoTJobTimeoutConfigProperty
()
haddock_workaround_ :: DeploymentIoTJobConfigurationProperty -> ()
abortConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: DeploymentIoTJobConfigurationProperty
-> Maybe IoTJobTimeoutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
..}
= DeploymentIoTJobConfigurationProperty
{timeoutConfig :: Maybe IoTJobTimeoutConfigProperty
timeoutConfig = IoTJobTimeoutConfigProperty -> Maybe IoTJobTimeoutConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimeoutConfig" DeploymentIoTJobConfigurationProperty
IoTJobTimeoutConfigProperty
newValue, Maybe IoTJobAbortConfigProperty
Maybe IoTJobExecutionsRolloutConfigProperty
()
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
haddock_workaround_ :: ()
abortConfig :: Maybe IoTJobAbortConfigProperty
jobExecutionsRolloutConfig :: Maybe IoTJobExecutionsRolloutConfigProperty
..}