module Stratosphere.ApplicationInsights.Application.ProcessProperty (
module Exports, ProcessProperty(..), mkProcessProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApplicationInsights.Application.AlarmMetricProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProcessProperty
=
ProcessProperty {ProcessProperty -> ()
haddock_workaround_ :: (),
ProcessProperty -> [AlarmMetricProperty]
alarmMetrics :: [AlarmMetricProperty],
ProcessProperty -> Value Text
processName :: (Value Prelude.Text)}
deriving stock (ProcessProperty -> ProcessProperty -> Bool
(ProcessProperty -> ProcessProperty -> Bool)
-> (ProcessProperty -> ProcessProperty -> Bool)
-> Eq ProcessProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProcessProperty -> ProcessProperty -> Bool
== :: ProcessProperty -> ProcessProperty -> Bool
$c/= :: ProcessProperty -> ProcessProperty -> Bool
/= :: ProcessProperty -> ProcessProperty -> Bool
Prelude.Eq, Int -> ProcessProperty -> ShowS
[ProcessProperty] -> ShowS
ProcessProperty -> String
(Int -> ProcessProperty -> ShowS)
-> (ProcessProperty -> String)
-> ([ProcessProperty] -> ShowS)
-> Show ProcessProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProcessProperty -> ShowS
showsPrec :: Int -> ProcessProperty -> ShowS
$cshow :: ProcessProperty -> String
show :: ProcessProperty -> String
$cshowList :: [ProcessProperty] -> ShowS
showList :: [ProcessProperty] -> ShowS
Prelude.Show)
mkProcessProperty ::
[AlarmMetricProperty] -> Value Prelude.Text -> ProcessProperty
mkProcessProperty :: [AlarmMetricProperty] -> Value Text -> ProcessProperty
mkProcessProperty [AlarmMetricProperty]
alarmMetrics Value Text
processName
= ProcessProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), alarmMetrics :: [AlarmMetricProperty]
alarmMetrics = [AlarmMetricProperty]
alarmMetrics,
processName :: Value Text
processName = Value Text
processName}
instance ToResourceProperties ProcessProperty where
toResourceProperties :: ProcessProperty -> ResourceProperties
toResourceProperties ProcessProperty {[AlarmMetricProperty]
()
Value Text
haddock_workaround_ :: ProcessProperty -> ()
alarmMetrics :: ProcessProperty -> [AlarmMetricProperty]
processName :: ProcessProperty -> Value Text
haddock_workaround_ :: ()
alarmMetrics :: [AlarmMetricProperty]
processName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApplicationInsights::Application.Process",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"AlarmMetrics" Key -> [AlarmMetricProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AlarmMetricProperty]
alarmMetrics,
Key
"ProcessName" 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
processName]}
instance JSON.ToJSON ProcessProperty where
toJSON :: ProcessProperty -> Value
toJSON ProcessProperty {[AlarmMetricProperty]
()
Value Text
haddock_workaround_ :: ProcessProperty -> ()
alarmMetrics :: ProcessProperty -> [AlarmMetricProperty]
processName :: ProcessProperty -> Value Text
haddock_workaround_ :: ()
alarmMetrics :: [AlarmMetricProperty]
processName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"AlarmMetrics" Key -> [AlarmMetricProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AlarmMetricProperty]
alarmMetrics,
Key
"ProcessName" 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
processName]
instance Property "AlarmMetrics" ProcessProperty where
type PropertyType "AlarmMetrics" ProcessProperty = [AlarmMetricProperty]
set :: PropertyType "AlarmMetrics" ProcessProperty
-> ProcessProperty -> ProcessProperty
set PropertyType "AlarmMetrics" ProcessProperty
newValue ProcessProperty {[AlarmMetricProperty]
()
Value Text
haddock_workaround_ :: ProcessProperty -> ()
alarmMetrics :: ProcessProperty -> [AlarmMetricProperty]
processName :: ProcessProperty -> Value Text
haddock_workaround_ :: ()
alarmMetrics :: [AlarmMetricProperty]
processName :: Value Text
..}
= ProcessProperty {alarmMetrics :: [AlarmMetricProperty]
alarmMetrics = [AlarmMetricProperty]
PropertyType "AlarmMetrics" ProcessProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
processName :: Value Text
haddock_workaround_ :: ()
processName :: Value Text
..}
instance Property "ProcessName" ProcessProperty where
type PropertyType "ProcessName" ProcessProperty = Value Prelude.Text
set :: PropertyType "ProcessName" ProcessProperty
-> ProcessProperty -> ProcessProperty
set PropertyType "ProcessName" ProcessProperty
newValue ProcessProperty {[AlarmMetricProperty]
()
Value Text
haddock_workaround_ :: ProcessProperty -> ()
alarmMetrics :: ProcessProperty -> [AlarmMetricProperty]
processName :: ProcessProperty -> Value Text
haddock_workaround_ :: ()
alarmMetrics :: [AlarmMetricProperty]
processName :: Value Text
..}
= ProcessProperty {processName :: Value Text
processName = PropertyType "ProcessName" ProcessProperty
Value Text
newValue, [AlarmMetricProperty]
()
haddock_workaround_ :: ()
alarmMetrics :: [AlarmMetricProperty]
haddock_workaround_ :: ()
alarmMetrics :: [AlarmMetricProperty]
..}