module Stratosphere.ApplicationInsights.Application.AlarmMetricProperty (
        AlarmMetricProperty(..), mkAlarmMetricProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AlarmMetricProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-alarmmetric.html>
    AlarmMetricProperty {AlarmMetricProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-alarmmetric.html#cfn-applicationinsights-application-alarmmetric-alarmmetricname>
                         AlarmMetricProperty -> Value Text
alarmMetricName :: (Value Prelude.Text)}
  deriving stock (AlarmMetricProperty -> AlarmMetricProperty -> Bool
(AlarmMetricProperty -> AlarmMetricProperty -> Bool)
-> (AlarmMetricProperty -> AlarmMetricProperty -> Bool)
-> Eq AlarmMetricProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AlarmMetricProperty -> AlarmMetricProperty -> Bool
== :: AlarmMetricProperty -> AlarmMetricProperty -> Bool
$c/= :: AlarmMetricProperty -> AlarmMetricProperty -> Bool
/= :: AlarmMetricProperty -> AlarmMetricProperty -> Bool
Prelude.Eq, Int -> AlarmMetricProperty -> ShowS
[AlarmMetricProperty] -> ShowS
AlarmMetricProperty -> String
(Int -> AlarmMetricProperty -> ShowS)
-> (AlarmMetricProperty -> String)
-> ([AlarmMetricProperty] -> ShowS)
-> Show AlarmMetricProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AlarmMetricProperty -> ShowS
showsPrec :: Int -> AlarmMetricProperty -> ShowS
$cshow :: AlarmMetricProperty -> String
show :: AlarmMetricProperty -> String
$cshowList :: [AlarmMetricProperty] -> ShowS
showList :: [AlarmMetricProperty] -> ShowS
Prelude.Show)
mkAlarmMetricProperty :: Value Prelude.Text -> AlarmMetricProperty
mkAlarmMetricProperty :: Value Text -> AlarmMetricProperty
mkAlarmMetricProperty Value Text
alarmMetricName
  = AlarmMetricProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), alarmMetricName :: Value Text
alarmMetricName = Value Text
alarmMetricName}
instance ToResourceProperties AlarmMetricProperty where
  toResourceProperties :: AlarmMetricProperty -> ResourceProperties
toResourceProperties AlarmMetricProperty {()
Value Text
haddock_workaround_ :: AlarmMetricProperty -> ()
alarmMetricName :: AlarmMetricProperty -> Value Text
haddock_workaround_ :: ()
alarmMetricName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApplicationInsights::Application.AlarmMetric",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AlarmMetricName" 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
alarmMetricName]}
instance JSON.ToJSON AlarmMetricProperty where
  toJSON :: AlarmMetricProperty -> Value
toJSON AlarmMetricProperty {()
Value Text
haddock_workaround_ :: AlarmMetricProperty -> ()
alarmMetricName :: AlarmMetricProperty -> Value Text
haddock_workaround_ :: ()
alarmMetricName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"AlarmMetricName" 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
alarmMetricName]
instance Property "AlarmMetricName" AlarmMetricProperty where
  type PropertyType "AlarmMetricName" AlarmMetricProperty = Value Prelude.Text
  set :: PropertyType "AlarmMetricName" AlarmMetricProperty
-> AlarmMetricProperty -> AlarmMetricProperty
set PropertyType "AlarmMetricName" AlarmMetricProperty
newValue AlarmMetricProperty {()
Value Text
haddock_workaround_ :: AlarmMetricProperty -> ()
alarmMetricName :: AlarmMetricProperty -> Value Text
haddock_workaround_ :: ()
alarmMetricName :: Value Text
..}
    = AlarmMetricProperty {alarmMetricName :: Value Text
alarmMetricName = PropertyType "AlarmMetricName" AlarmMetricProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}