packages feed

stratosphere-codedeploy-1.0.0: gen/Stratosphere/CodeDeploy/DeploymentConfig/MinimumHealthyHostsPerZoneProperty.hs

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
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html>
    MinimumHealthyHostsPerZoneProperty {haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html#cfn-codedeploy-deploymentconfig-minimumhealthyhostsperzone-type>
                                        type' :: (Value Prelude.Text),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhostsperzone.html#cfn-codedeploy-deploymentconfig-minimumhealthyhostsperzone-value>
                                        value :: (Value Prelude.Integer)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkMinimumHealthyHostsPerZoneProperty ::
  Value Prelude.Text
  -> Value Prelude.Integer -> MinimumHealthyHostsPerZoneProperty
mkMinimumHealthyHostsPerZoneProperty type' value
  = MinimumHealthyHostsPerZoneProperty
      {haddock_workaround_ = (), type' = type', value = value}
instance ToResourceProperties MinimumHealthyHostsPerZoneProperty where
  toResourceProperties MinimumHealthyHostsPerZoneProperty {..}
    = ResourceProperties
        {awsType = "AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHostsPerZone",
         supportsTags = Prelude.False,
         properties = ["Type" JSON..= type', "Value" JSON..= value]}
instance JSON.ToJSON MinimumHealthyHostsPerZoneProperty where
  toJSON MinimumHealthyHostsPerZoneProperty {..}
    = JSON.object ["Type" JSON..= type', "Value" JSON..= value]
instance Property "Type" MinimumHealthyHostsPerZoneProperty where
  type PropertyType "Type" MinimumHealthyHostsPerZoneProperty = Value Prelude.Text
  set newValue MinimumHealthyHostsPerZoneProperty {..}
    = MinimumHealthyHostsPerZoneProperty {type' = newValue, ..}
instance Property "Value" MinimumHealthyHostsPerZoneProperty where
  type PropertyType "Value" MinimumHealthyHostsPerZoneProperty = Value Prelude.Integer
  set newValue MinimumHealthyHostsPerZoneProperty {..}
    = MinimumHealthyHostsPerZoneProperty {value = newValue, ..}