module Stratosphere.CodeDeploy.DeploymentConfig.MinimumHealthyHostsPerZoneProperty (
MinimumHealthyHostsPerZoneProperty(..),
mkMinimumHealthyHostsPerZoneProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MinimumHealthyHostsPerZoneProperty
=
MinimumHealthyHostsPerZoneProperty {MinimumHealthyHostsPerZoneProperty -> ()
haddock_workaround_ :: (),
MinimumHealthyHostsPerZoneProperty -> Value Text
type' :: (Value Prelude.Text),
MinimumHealthyHostsPerZoneProperty -> Value Integer
value :: (Value Prelude.Integer)}
deriving stock (MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool
(MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool)
-> (MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool)
-> Eq MinimumHealthyHostsPerZoneProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool
== :: MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool
$c/= :: MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool
/= :: MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty -> Bool
Prelude.Eq, Int -> MinimumHealthyHostsPerZoneProperty -> ShowS
[MinimumHealthyHostsPerZoneProperty] -> ShowS
MinimumHealthyHostsPerZoneProperty -> String
(Int -> MinimumHealthyHostsPerZoneProperty -> ShowS)
-> (MinimumHealthyHostsPerZoneProperty -> String)
-> ([MinimumHealthyHostsPerZoneProperty] -> ShowS)
-> Show MinimumHealthyHostsPerZoneProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MinimumHealthyHostsPerZoneProperty -> ShowS
showsPrec :: Int -> MinimumHealthyHostsPerZoneProperty -> ShowS
$cshow :: MinimumHealthyHostsPerZoneProperty -> String
show :: MinimumHealthyHostsPerZoneProperty -> String
$cshowList :: [MinimumHealthyHostsPerZoneProperty] -> ShowS
showList :: [MinimumHealthyHostsPerZoneProperty] -> ShowS
Prelude.Show)
mkMinimumHealthyHostsPerZoneProperty ::
Value Prelude.Text
-> Value Prelude.Integer -> MinimumHealthyHostsPerZoneProperty
mkMinimumHealthyHostsPerZoneProperty :: Value Text -> Value Integer -> MinimumHealthyHostsPerZoneProperty
mkMinimumHealthyHostsPerZoneProperty Value Text
type' Value Integer
value
= MinimumHealthyHostsPerZoneProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties MinimumHealthyHostsPerZoneProperty where
toResourceProperties :: MinimumHealthyHostsPerZoneProperty -> ResourceProperties
toResourceProperties MinimumHealthyHostsPerZoneProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsPerZoneProperty -> ()
type' :: MinimumHealthyHostsPerZoneProperty -> Value Text
value :: MinimumHealthyHostsPerZoneProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHostsPerZone",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type', Key
"Value" 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
value]}
instance JSON.ToJSON MinimumHealthyHostsPerZoneProperty where
toJSON :: MinimumHealthyHostsPerZoneProperty -> Value
toJSON MinimumHealthyHostsPerZoneProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsPerZoneProperty -> ()
type' :: MinimumHealthyHostsPerZoneProperty -> Value Text
value :: MinimumHealthyHostsPerZoneProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type', Key
"Value" 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
value]
instance Property "Type" MinimumHealthyHostsPerZoneProperty where
type PropertyType "Type" MinimumHealthyHostsPerZoneProperty = Value Prelude.Text
set :: PropertyType "Type" MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty
set PropertyType "Type" MinimumHealthyHostsPerZoneProperty
newValue MinimumHealthyHostsPerZoneProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsPerZoneProperty -> ()
type' :: MinimumHealthyHostsPerZoneProperty -> Value Text
value :: MinimumHealthyHostsPerZoneProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= MinimumHealthyHostsPerZoneProperty {type' :: Value Text
type' = PropertyType "Type" MinimumHealthyHostsPerZoneProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" MinimumHealthyHostsPerZoneProperty where
type PropertyType "Value" MinimumHealthyHostsPerZoneProperty = Value Prelude.Integer
set :: PropertyType "Value" MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty
-> MinimumHealthyHostsPerZoneProperty
set PropertyType "Value" MinimumHealthyHostsPerZoneProperty
newValue MinimumHealthyHostsPerZoneProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsPerZoneProperty -> ()
type' :: MinimumHealthyHostsPerZoneProperty -> Value Text
value :: MinimumHealthyHostsPerZoneProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= MinimumHealthyHostsPerZoneProperty {value :: Value Integer
value = PropertyType "Value" MinimumHealthyHostsPerZoneProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}