module Stratosphere.CodeDeploy.DeploymentConfig.MinimumHealthyHostsProperty (
        MinimumHealthyHostsProperty(..), mkMinimumHealthyHostsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MinimumHealthyHostsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html>
    MinimumHealthyHostsProperty {MinimumHealthyHostsProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-type>
                                 MinimumHealthyHostsProperty -> Value Text
type' :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-value>
                                 MinimumHealthyHostsProperty -> Value Integer
value :: (Value Prelude.Integer)}
  deriving stock (MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty -> Bool
(MinimumHealthyHostsProperty
 -> MinimumHealthyHostsProperty -> Bool)
-> (MinimumHealthyHostsProperty
    -> MinimumHealthyHostsProperty -> Bool)
-> Eq MinimumHealthyHostsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty -> Bool
== :: MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty -> Bool
$c/= :: MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty -> Bool
/= :: MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty -> Bool
Prelude.Eq, Int -> MinimumHealthyHostsProperty -> ShowS
[MinimumHealthyHostsProperty] -> ShowS
MinimumHealthyHostsProperty -> String
(Int -> MinimumHealthyHostsProperty -> ShowS)
-> (MinimumHealthyHostsProperty -> String)
-> ([MinimumHealthyHostsProperty] -> ShowS)
-> Show MinimumHealthyHostsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MinimumHealthyHostsProperty -> ShowS
showsPrec :: Int -> MinimumHealthyHostsProperty -> ShowS
$cshow :: MinimumHealthyHostsProperty -> String
show :: MinimumHealthyHostsProperty -> String
$cshowList :: [MinimumHealthyHostsProperty] -> ShowS
showList :: [MinimumHealthyHostsProperty] -> ShowS
Prelude.Show)
mkMinimumHealthyHostsProperty ::
  Value Prelude.Text
  -> Value Prelude.Integer -> MinimumHealthyHostsProperty
mkMinimumHealthyHostsProperty :: Value Text -> Value Integer -> MinimumHealthyHostsProperty
mkMinimumHealthyHostsProperty Value Text
type' Value Integer
value
  = MinimumHealthyHostsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties MinimumHealthyHostsProperty where
  toResourceProperties :: MinimumHealthyHostsProperty -> ResourceProperties
toResourceProperties MinimumHealthyHostsProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsProperty -> ()
type' :: MinimumHealthyHostsProperty -> Value Text
value :: MinimumHealthyHostsProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHosts",
         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 MinimumHealthyHostsProperty where
  toJSON :: MinimumHealthyHostsProperty -> Value
toJSON MinimumHealthyHostsProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsProperty -> ()
type' :: MinimumHealthyHostsProperty -> Value Text
value :: MinimumHealthyHostsProperty -> 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" MinimumHealthyHostsProperty where
  type PropertyType "Type" MinimumHealthyHostsProperty = Value Prelude.Text
  set :: PropertyType "Type" MinimumHealthyHostsProperty
-> MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty
set PropertyType "Type" MinimumHealthyHostsProperty
newValue MinimumHealthyHostsProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsProperty -> ()
type' :: MinimumHealthyHostsProperty -> Value Text
value :: MinimumHealthyHostsProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = MinimumHealthyHostsProperty {type' :: Value Text
type' = PropertyType "Type" MinimumHealthyHostsProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" MinimumHealthyHostsProperty where
  type PropertyType "Value" MinimumHealthyHostsProperty = Value Prelude.Integer
  set :: PropertyType "Value" MinimumHealthyHostsProperty
-> MinimumHealthyHostsProperty -> MinimumHealthyHostsProperty
set PropertyType "Value" MinimumHealthyHostsProperty
newValue MinimumHealthyHostsProperty {()
Value Integer
Value Text
haddock_workaround_ :: MinimumHealthyHostsProperty -> ()
type' :: MinimumHealthyHostsProperty -> Value Text
value :: MinimumHealthyHostsProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = MinimumHealthyHostsProperty {value :: Value Integer
value = PropertyType "Value" MinimumHealthyHostsProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}