module Stratosphere.GreengrassV2.Deployment.DeploymentConfigurationValidationPolicyProperty (
DeploymentConfigurationValidationPolicyProperty(..),
mkDeploymentConfigurationValidationPolicyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeploymentConfigurationValidationPolicyProperty
=
DeploymentConfigurationValidationPolicyProperty {DeploymentConfigurationValidationPolicyProperty -> ()
haddock_workaround_ :: (),
DeploymentConfigurationValidationPolicyProperty
-> Maybe (Value Integer)
timeoutInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool
(DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool)
-> (DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool)
-> Eq DeploymentConfigurationValidationPolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool
== :: DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool
$c/= :: DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool
/= :: DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty -> Bool
Prelude.Eq, Int -> DeploymentConfigurationValidationPolicyProperty -> ShowS
[DeploymentConfigurationValidationPolicyProperty] -> ShowS
DeploymentConfigurationValidationPolicyProperty -> String
(Int -> DeploymentConfigurationValidationPolicyProperty -> ShowS)
-> (DeploymentConfigurationValidationPolicyProperty -> String)
-> ([DeploymentConfigurationValidationPolicyProperty] -> ShowS)
-> Show DeploymentConfigurationValidationPolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeploymentConfigurationValidationPolicyProperty -> ShowS
showsPrec :: Int -> DeploymentConfigurationValidationPolicyProperty -> ShowS
$cshow :: DeploymentConfigurationValidationPolicyProperty -> String
show :: DeploymentConfigurationValidationPolicyProperty -> String
$cshowList :: [DeploymentConfigurationValidationPolicyProperty] -> ShowS
showList :: [DeploymentConfigurationValidationPolicyProperty] -> ShowS
Prelude.Show)
mkDeploymentConfigurationValidationPolicyProperty ::
DeploymentConfigurationValidationPolicyProperty
mkDeploymentConfigurationValidationPolicyProperty :: DeploymentConfigurationValidationPolicyProperty
mkDeploymentConfigurationValidationPolicyProperty
= DeploymentConfigurationValidationPolicyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), timeoutInSeconds :: Maybe (Value Integer)
timeoutInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeploymentConfigurationValidationPolicyProperty where
toResourceProperties :: DeploymentConfigurationValidationPolicyProperty
-> ResourceProperties
toResourceProperties
DeploymentConfigurationValidationPolicyProperty {Maybe (Value Integer)
()
haddock_workaround_ :: DeploymentConfigurationValidationPolicyProperty -> ()
timeoutInSeconds :: DeploymentConfigurationValidationPolicyProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
timeoutInSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GreengrassV2::Deployment.DeploymentConfigurationValidationPolicy",
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
"TimeoutInSeconds" (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)
timeoutInSeconds])}
instance JSON.ToJSON DeploymentConfigurationValidationPolicyProperty where
toJSON :: DeploymentConfigurationValidationPolicyProperty -> Value
toJSON DeploymentConfigurationValidationPolicyProperty {Maybe (Value Integer)
()
haddock_workaround_ :: DeploymentConfigurationValidationPolicyProperty -> ()
timeoutInSeconds :: DeploymentConfigurationValidationPolicyProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
timeoutInSeconds :: 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
"TimeoutInSeconds" (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)
timeoutInSeconds]))
instance Property "TimeoutInSeconds" DeploymentConfigurationValidationPolicyProperty where
type PropertyType "TimeoutInSeconds" DeploymentConfigurationValidationPolicyProperty = Value Prelude.Integer
set :: PropertyType
"TimeoutInSeconds" DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty
-> DeploymentConfigurationValidationPolicyProperty
set PropertyType
"TimeoutInSeconds" DeploymentConfigurationValidationPolicyProperty
newValue DeploymentConfigurationValidationPolicyProperty {Maybe (Value Integer)
()
haddock_workaround_ :: DeploymentConfigurationValidationPolicyProperty -> ()
timeoutInSeconds :: DeploymentConfigurationValidationPolicyProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
timeoutInSeconds :: Maybe (Value Integer)
..}
= DeploymentConfigurationValidationPolicyProperty
{timeoutInSeconds :: Maybe (Value Integer)
timeoutInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"TimeoutInSeconds" DeploymentConfigurationValidationPolicyProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}