module Stratosphere.MSK.Cluster.OpenMonitoringProperty (
module Exports, OpenMonitoringProperty(..),
mkOpenMonitoringProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MSK.Cluster.PrometheusProperty as Exports
import Stratosphere.ResourceProperties
data OpenMonitoringProperty
=
OpenMonitoringProperty {OpenMonitoringProperty -> ()
haddock_workaround_ :: (),
OpenMonitoringProperty -> PrometheusProperty
prometheus :: PrometheusProperty}
deriving stock (OpenMonitoringProperty -> OpenMonitoringProperty -> Bool
(OpenMonitoringProperty -> OpenMonitoringProperty -> Bool)
-> (OpenMonitoringProperty -> OpenMonitoringProperty -> Bool)
-> Eq OpenMonitoringProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OpenMonitoringProperty -> OpenMonitoringProperty -> Bool
== :: OpenMonitoringProperty -> OpenMonitoringProperty -> Bool
$c/= :: OpenMonitoringProperty -> OpenMonitoringProperty -> Bool
/= :: OpenMonitoringProperty -> OpenMonitoringProperty -> Bool
Prelude.Eq, Int -> OpenMonitoringProperty -> ShowS
[OpenMonitoringProperty] -> ShowS
OpenMonitoringProperty -> String
(Int -> OpenMonitoringProperty -> ShowS)
-> (OpenMonitoringProperty -> String)
-> ([OpenMonitoringProperty] -> ShowS)
-> Show OpenMonitoringProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OpenMonitoringProperty -> ShowS
showsPrec :: Int -> OpenMonitoringProperty -> ShowS
$cshow :: OpenMonitoringProperty -> String
show :: OpenMonitoringProperty -> String
$cshowList :: [OpenMonitoringProperty] -> ShowS
showList :: [OpenMonitoringProperty] -> ShowS
Prelude.Show)
mkOpenMonitoringProperty ::
PrometheusProperty -> OpenMonitoringProperty
mkOpenMonitoringProperty :: PrometheusProperty -> OpenMonitoringProperty
mkOpenMonitoringProperty PrometheusProperty
prometheus
= OpenMonitoringProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), prometheus :: PrometheusProperty
prometheus = PrometheusProperty
prometheus}
instance ToResourceProperties OpenMonitoringProperty where
toResourceProperties :: OpenMonitoringProperty -> ResourceProperties
toResourceProperties OpenMonitoringProperty {()
PrometheusProperty
haddock_workaround_ :: OpenMonitoringProperty -> ()
prometheus :: OpenMonitoringProperty -> PrometheusProperty
haddock_workaround_ :: ()
prometheus :: PrometheusProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Cluster.OpenMonitoring",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Prometheus" Key -> PrometheusProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PrometheusProperty
prometheus]}
instance JSON.ToJSON OpenMonitoringProperty where
toJSON :: OpenMonitoringProperty -> Value
toJSON OpenMonitoringProperty {()
PrometheusProperty
haddock_workaround_ :: OpenMonitoringProperty -> ()
prometheus :: OpenMonitoringProperty -> PrometheusProperty
haddock_workaround_ :: ()
prometheus :: PrometheusProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Prometheus" Key -> PrometheusProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PrometheusProperty
prometheus]
instance Property "Prometheus" OpenMonitoringProperty where
type PropertyType "Prometheus" OpenMonitoringProperty = PrometheusProperty
set :: PropertyType "Prometheus" OpenMonitoringProperty
-> OpenMonitoringProperty -> OpenMonitoringProperty
set PropertyType "Prometheus" OpenMonitoringProperty
newValue OpenMonitoringProperty {()
PrometheusProperty
haddock_workaround_ :: OpenMonitoringProperty -> ()
prometheus :: OpenMonitoringProperty -> PrometheusProperty
haddock_workaround_ :: ()
prometheus :: PrometheusProperty
..}
= OpenMonitoringProperty {prometheus :: PrometheusProperty
prometheus = PropertyType "Prometheus" OpenMonitoringProperty
PrometheusProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}