module Stratosphere.ImageBuilder.ImagePipeline.AutoDisablePolicyProperty (
AutoDisablePolicyProperty(..), mkAutoDisablePolicyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutoDisablePolicyProperty
=
AutoDisablePolicyProperty {AutoDisablePolicyProperty -> ()
haddock_workaround_ :: (),
AutoDisablePolicyProperty -> Value Integer
failureCount :: (Value Prelude.Integer)}
deriving stock (AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool
(AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool)
-> (AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool)
-> Eq AutoDisablePolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool
== :: AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool
$c/= :: AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool
/= :: AutoDisablePolicyProperty -> AutoDisablePolicyProperty -> Bool
Prelude.Eq, Int -> AutoDisablePolicyProperty -> ShowS
[AutoDisablePolicyProperty] -> ShowS
AutoDisablePolicyProperty -> String
(Int -> AutoDisablePolicyProperty -> ShowS)
-> (AutoDisablePolicyProperty -> String)
-> ([AutoDisablePolicyProperty] -> ShowS)
-> Show AutoDisablePolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutoDisablePolicyProperty -> ShowS
showsPrec :: Int -> AutoDisablePolicyProperty -> ShowS
$cshow :: AutoDisablePolicyProperty -> String
show :: AutoDisablePolicyProperty -> String
$cshowList :: [AutoDisablePolicyProperty] -> ShowS
showList :: [AutoDisablePolicyProperty] -> ShowS
Prelude.Show)
mkAutoDisablePolicyProperty ::
Value Prelude.Integer -> AutoDisablePolicyProperty
mkAutoDisablePolicyProperty :: Value Integer -> AutoDisablePolicyProperty
mkAutoDisablePolicyProperty Value Integer
failureCount
= AutoDisablePolicyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), failureCount :: Value Integer
failureCount = Value Integer
failureCount}
instance ToResourceProperties AutoDisablePolicyProperty where
toResourceProperties :: AutoDisablePolicyProperty -> ResourceProperties
toResourceProperties AutoDisablePolicyProperty {()
Value Integer
haddock_workaround_ :: AutoDisablePolicyProperty -> ()
failureCount :: AutoDisablePolicyProperty -> Value Integer
haddock_workaround_ :: ()
failureCount :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::ImagePipeline.AutoDisablePolicy",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"FailureCount" 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..= Value Integer
failureCount]}
instance JSON.ToJSON AutoDisablePolicyProperty where
toJSON :: AutoDisablePolicyProperty -> Value
toJSON AutoDisablePolicyProperty {()
Value Integer
haddock_workaround_ :: AutoDisablePolicyProperty -> ()
failureCount :: AutoDisablePolicyProperty -> Value Integer
haddock_workaround_ :: ()
failureCount :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object [Key
"FailureCount" 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..= Value Integer
failureCount]
instance Property "FailureCount" AutoDisablePolicyProperty where
type PropertyType "FailureCount" AutoDisablePolicyProperty = Value Prelude.Integer
set :: PropertyType "FailureCount" AutoDisablePolicyProperty
-> AutoDisablePolicyProperty -> AutoDisablePolicyProperty
set PropertyType "FailureCount" AutoDisablePolicyProperty
newValue AutoDisablePolicyProperty {()
Value Integer
haddock_workaround_ :: AutoDisablePolicyProperty -> ()
failureCount :: AutoDisablePolicyProperty -> Value Integer
haddock_workaround_ :: ()
failureCount :: Value Integer
..}
= AutoDisablePolicyProperty {failureCount :: Value Integer
failureCount = PropertyType "FailureCount" AutoDisablePolicyProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}