module Stratosphere.KinesisAnalyticsV2.Application.MonitoringConfigurationProperty (
MonitoringConfigurationProperty(..),
mkMonitoringConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MonitoringConfigurationProperty
=
MonitoringConfigurationProperty {MonitoringConfigurationProperty -> ()
haddock_workaround_ :: (),
MonitoringConfigurationProperty -> Value Text
configurationType :: (Value Prelude.Text),
MonitoringConfigurationProperty -> Maybe (Value Text)
logLevel :: (Prelude.Maybe (Value Prelude.Text)),
MonitoringConfigurationProperty -> Maybe (Value Text)
metricsLevel :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool
(MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool)
-> (MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool)
-> Eq MonitoringConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool
== :: MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool
$c/= :: MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool
/= :: MonitoringConfigurationProperty
-> MonitoringConfigurationProperty -> Bool
Prelude.Eq, Int -> MonitoringConfigurationProperty -> ShowS
[MonitoringConfigurationProperty] -> ShowS
MonitoringConfigurationProperty -> String
(Int -> MonitoringConfigurationProperty -> ShowS)
-> (MonitoringConfigurationProperty -> String)
-> ([MonitoringConfigurationProperty] -> ShowS)
-> Show MonitoringConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MonitoringConfigurationProperty -> ShowS
showsPrec :: Int -> MonitoringConfigurationProperty -> ShowS
$cshow :: MonitoringConfigurationProperty -> String
show :: MonitoringConfigurationProperty -> String
$cshowList :: [MonitoringConfigurationProperty] -> ShowS
showList :: [MonitoringConfigurationProperty] -> ShowS
Prelude.Show)
mkMonitoringConfigurationProperty ::
Value Prelude.Text -> MonitoringConfigurationProperty
mkMonitoringConfigurationProperty :: Value Text -> MonitoringConfigurationProperty
mkMonitoringConfigurationProperty Value Text
configurationType
= MonitoringConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), configurationType :: Value Text
configurationType = Value Text
configurationType,
logLevel :: Maybe (Value Text)
logLevel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, metricsLevel :: Maybe (Value Text)
metricsLevel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MonitoringConfigurationProperty where
toResourceProperties :: MonitoringConfigurationProperty -> ResourceProperties
toResourceProperties MonitoringConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MonitoringConfigurationProperty -> ()
configurationType :: MonitoringConfigurationProperty -> Value Text
logLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
metricsLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.MonitoringConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ConfigurationType" 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
configurationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"LogLevel" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
logLevel,
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..=) Key
"MetricsLevel" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
metricsLevel]))}
instance JSON.ToJSON MonitoringConfigurationProperty where
toJSON :: MonitoringConfigurationProperty -> Value
toJSON MonitoringConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MonitoringConfigurationProperty -> ()
configurationType :: MonitoringConfigurationProperty -> Value Text
logLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
metricsLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ConfigurationType" 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
configurationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"LogLevel" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
logLevel,
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..=) Key
"MetricsLevel" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
metricsLevel])))
instance Property "ConfigurationType" MonitoringConfigurationProperty where
type PropertyType "ConfigurationType" MonitoringConfigurationProperty = Value Prelude.Text
set :: PropertyType "ConfigurationType" MonitoringConfigurationProperty
-> MonitoringConfigurationProperty
-> MonitoringConfigurationProperty
set PropertyType "ConfigurationType" MonitoringConfigurationProperty
newValue MonitoringConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MonitoringConfigurationProperty -> ()
configurationType :: MonitoringConfigurationProperty -> Value Text
logLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
metricsLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
..}
= MonitoringConfigurationProperty
{configurationType :: Value Text
configurationType = PropertyType "ConfigurationType" MonitoringConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
..}
instance Property "LogLevel" MonitoringConfigurationProperty where
type PropertyType "LogLevel" MonitoringConfigurationProperty = Value Prelude.Text
set :: PropertyType "LogLevel" MonitoringConfigurationProperty
-> MonitoringConfigurationProperty
-> MonitoringConfigurationProperty
set PropertyType "LogLevel" MonitoringConfigurationProperty
newValue MonitoringConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MonitoringConfigurationProperty -> ()
configurationType :: MonitoringConfigurationProperty -> Value Text
logLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
metricsLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
..}
= MonitoringConfigurationProperty
{logLevel :: Maybe (Value Text)
logLevel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LogLevel" MonitoringConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
configurationType :: Value Text
metricsLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
metricsLevel :: Maybe (Value Text)
..}
instance Property "MetricsLevel" MonitoringConfigurationProperty where
type PropertyType "MetricsLevel" MonitoringConfigurationProperty = Value Prelude.Text
set :: PropertyType "MetricsLevel" MonitoringConfigurationProperty
-> MonitoringConfigurationProperty
-> MonitoringConfigurationProperty
set PropertyType "MetricsLevel" MonitoringConfigurationProperty
newValue MonitoringConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MonitoringConfigurationProperty -> ()
configurationType :: MonitoringConfigurationProperty -> Value Text
logLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
metricsLevel :: MonitoringConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
metricsLevel :: Maybe (Value Text)
..}
= MonitoringConfigurationProperty
{metricsLevel :: Maybe (Value Text)
metricsLevel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MetricsLevel" MonitoringConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
configurationType :: Value Text
logLevel :: Maybe (Value Text)
..}