module Stratosphere.M2.Environment.HighAvailabilityConfigProperty (
        HighAvailabilityConfigProperty(..),
        mkHighAvailabilityConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HighAvailabilityConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-m2-environment-highavailabilityconfig.html>
    HighAvailabilityConfigProperty {HighAvailabilityConfigProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-m2-environment-highavailabilityconfig.html#cfn-m2-environment-highavailabilityconfig-desiredcapacity>
                                    HighAvailabilityConfigProperty -> Value Integer
desiredCapacity :: (Value Prelude.Integer)}
  deriving stock (HighAvailabilityConfigProperty
-> HighAvailabilityConfigProperty -> Bool
(HighAvailabilityConfigProperty
 -> HighAvailabilityConfigProperty -> Bool)
-> (HighAvailabilityConfigProperty
    -> HighAvailabilityConfigProperty -> Bool)
-> Eq HighAvailabilityConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HighAvailabilityConfigProperty
-> HighAvailabilityConfigProperty -> Bool
== :: HighAvailabilityConfigProperty
-> HighAvailabilityConfigProperty -> Bool
$c/= :: HighAvailabilityConfigProperty
-> HighAvailabilityConfigProperty -> Bool
/= :: HighAvailabilityConfigProperty
-> HighAvailabilityConfigProperty -> Bool
Prelude.Eq, Int -> HighAvailabilityConfigProperty -> ShowS
[HighAvailabilityConfigProperty] -> ShowS
HighAvailabilityConfigProperty -> String
(Int -> HighAvailabilityConfigProperty -> ShowS)
-> (HighAvailabilityConfigProperty -> String)
-> ([HighAvailabilityConfigProperty] -> ShowS)
-> Show HighAvailabilityConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HighAvailabilityConfigProperty -> ShowS
showsPrec :: Int -> HighAvailabilityConfigProperty -> ShowS
$cshow :: HighAvailabilityConfigProperty -> String
show :: HighAvailabilityConfigProperty -> String
$cshowList :: [HighAvailabilityConfigProperty] -> ShowS
showList :: [HighAvailabilityConfigProperty] -> ShowS
Prelude.Show)
mkHighAvailabilityConfigProperty ::
  Value Prelude.Integer -> HighAvailabilityConfigProperty
mkHighAvailabilityConfigProperty :: Value Integer -> HighAvailabilityConfigProperty
mkHighAvailabilityConfigProperty Value Integer
desiredCapacity
  = HighAvailabilityConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), desiredCapacity :: Value Integer
desiredCapacity = Value Integer
desiredCapacity}
instance ToResourceProperties HighAvailabilityConfigProperty where
  toResourceProperties :: HighAvailabilityConfigProperty -> ResourceProperties
toResourceProperties HighAvailabilityConfigProperty {()
Value Integer
haddock_workaround_ :: HighAvailabilityConfigProperty -> ()
desiredCapacity :: HighAvailabilityConfigProperty -> Value Integer
haddock_workaround_ :: ()
desiredCapacity :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::M2::Environment.HighAvailabilityConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DesiredCapacity" 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
desiredCapacity]}
instance JSON.ToJSON HighAvailabilityConfigProperty where
  toJSON :: HighAvailabilityConfigProperty -> Value
toJSON HighAvailabilityConfigProperty {()
Value Integer
haddock_workaround_ :: HighAvailabilityConfigProperty -> ()
desiredCapacity :: HighAvailabilityConfigProperty -> Value Integer
haddock_workaround_ :: ()
desiredCapacity :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"DesiredCapacity" 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
desiredCapacity]
instance Property "DesiredCapacity" HighAvailabilityConfigProperty where
  type PropertyType "DesiredCapacity" HighAvailabilityConfigProperty = Value Prelude.Integer
  set :: PropertyType "DesiredCapacity" HighAvailabilityConfigProperty
-> HighAvailabilityConfigProperty -> HighAvailabilityConfigProperty
set PropertyType "DesiredCapacity" HighAvailabilityConfigProperty
newValue HighAvailabilityConfigProperty {()
Value Integer
haddock_workaround_ :: HighAvailabilityConfigProperty -> ()
desiredCapacity :: HighAvailabilityConfigProperty -> Value Integer
haddock_workaround_ :: ()
desiredCapacity :: Value Integer
..}
    = HighAvailabilityConfigProperty {desiredCapacity :: Value Integer
desiredCapacity = PropertyType "DesiredCapacity" HighAvailabilityConfigProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}