module Stratosphere.ApplicationInsights.Application.NetWeaverPrometheusExporterProperty (
NetWeaverPrometheusExporterProperty(..),
mkNetWeaverPrometheusExporterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetWeaverPrometheusExporterProperty
=
NetWeaverPrometheusExporterProperty {NetWeaverPrometheusExporterProperty -> ()
haddock_workaround_ :: (),
NetWeaverPrometheusExporterProperty -> ValueList Text
instanceNumbers :: (ValueList Prelude.Text),
NetWeaverPrometheusExporterProperty -> Maybe (Value Text)
prometheusPort :: (Prelude.Maybe (Value Prelude.Text)),
NetWeaverPrometheusExporterProperty -> Value Text
sAPSID :: (Value Prelude.Text)}
deriving stock (NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool
(NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool)
-> (NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool)
-> Eq NetWeaverPrometheusExporterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool
== :: NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool
$c/= :: NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool
/= :: NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty -> Bool
Prelude.Eq, Int -> NetWeaverPrometheusExporterProperty -> ShowS
[NetWeaverPrometheusExporterProperty] -> ShowS
NetWeaverPrometheusExporterProperty -> String
(Int -> NetWeaverPrometheusExporterProperty -> ShowS)
-> (NetWeaverPrometheusExporterProperty -> String)
-> ([NetWeaverPrometheusExporterProperty] -> ShowS)
-> Show NetWeaverPrometheusExporterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetWeaverPrometheusExporterProperty -> ShowS
showsPrec :: Int -> NetWeaverPrometheusExporterProperty -> ShowS
$cshow :: NetWeaverPrometheusExporterProperty -> String
show :: NetWeaverPrometheusExporterProperty -> String
$cshowList :: [NetWeaverPrometheusExporterProperty] -> ShowS
showList :: [NetWeaverPrometheusExporterProperty] -> ShowS
Prelude.Show)
mkNetWeaverPrometheusExporterProperty ::
ValueList Prelude.Text
-> Value Prelude.Text -> NetWeaverPrometheusExporterProperty
mkNetWeaverPrometheusExporterProperty :: ValueList Text -> Value Text -> NetWeaverPrometheusExporterProperty
mkNetWeaverPrometheusExporterProperty ValueList Text
instanceNumbers Value Text
sAPSID
= NetWeaverPrometheusExporterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), instanceNumbers :: ValueList Text
instanceNumbers = ValueList Text
instanceNumbers,
sAPSID :: Value Text
sAPSID = Value Text
sAPSID, prometheusPort :: Maybe (Value Text)
prometheusPort = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NetWeaverPrometheusExporterProperty where
toResourceProperties :: NetWeaverPrometheusExporterProperty -> ResourceProperties
toResourceProperties NetWeaverPrometheusExporterProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NetWeaverPrometheusExporterProperty -> ()
instanceNumbers :: NetWeaverPrometheusExporterProperty -> ValueList Text
prometheusPort :: NetWeaverPrometheusExporterProperty -> Maybe (Value Text)
sAPSID :: NetWeaverPrometheusExporterProperty -> Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
sAPSID :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApplicationInsights::Application.NetWeaverPrometheusExporter",
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
"InstanceNumbers" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
instanceNumbers,
Key
"SAPSID" 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
sAPSID]
([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
"PrometheusPort" (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)
prometheusPort]))}
instance JSON.ToJSON NetWeaverPrometheusExporterProperty where
toJSON :: NetWeaverPrometheusExporterProperty -> Value
toJSON NetWeaverPrometheusExporterProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NetWeaverPrometheusExporterProperty -> ()
instanceNumbers :: NetWeaverPrometheusExporterProperty -> ValueList Text
prometheusPort :: NetWeaverPrometheusExporterProperty -> Maybe (Value Text)
sAPSID :: NetWeaverPrometheusExporterProperty -> Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
sAPSID :: 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
"InstanceNumbers" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
instanceNumbers,
Key
"SAPSID" 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
sAPSID]
([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
"PrometheusPort" (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)
prometheusPort])))
instance Property "InstanceNumbers" NetWeaverPrometheusExporterProperty where
type PropertyType "InstanceNumbers" NetWeaverPrometheusExporterProperty = ValueList Prelude.Text
set :: PropertyType "InstanceNumbers" NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty
set PropertyType "InstanceNumbers" NetWeaverPrometheusExporterProperty
newValue NetWeaverPrometheusExporterProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NetWeaverPrometheusExporterProperty -> ()
instanceNumbers :: NetWeaverPrometheusExporterProperty -> ValueList Text
prometheusPort :: NetWeaverPrometheusExporterProperty -> Maybe (Value Text)
sAPSID :: NetWeaverPrometheusExporterProperty -> Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
sAPSID :: Value Text
..}
= NetWeaverPrometheusExporterProperty
{instanceNumbers :: ValueList Text
instanceNumbers = PropertyType "InstanceNumbers" NetWeaverPrometheusExporterProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
prometheusPort :: Maybe (Value Text)
sAPSID :: Value Text
haddock_workaround_ :: ()
prometheusPort :: Maybe (Value Text)
sAPSID :: Value Text
..}
instance Property "PrometheusPort" NetWeaverPrometheusExporterProperty where
type PropertyType "PrometheusPort" NetWeaverPrometheusExporterProperty = Value Prelude.Text
set :: PropertyType "PrometheusPort" NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty
set PropertyType "PrometheusPort" NetWeaverPrometheusExporterProperty
newValue NetWeaverPrometheusExporterProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NetWeaverPrometheusExporterProperty -> ()
instanceNumbers :: NetWeaverPrometheusExporterProperty -> ValueList Text
prometheusPort :: NetWeaverPrometheusExporterProperty -> Maybe (Value Text)
sAPSID :: NetWeaverPrometheusExporterProperty -> Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
sAPSID :: Value Text
..}
= NetWeaverPrometheusExporterProperty
{prometheusPort :: Maybe (Value Text)
prometheusPort = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrometheusPort" NetWeaverPrometheusExporterProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
sAPSID :: Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
sAPSID :: Value Text
..}
instance Property "SAPSID" NetWeaverPrometheusExporterProperty where
type PropertyType "SAPSID" NetWeaverPrometheusExporterProperty = Value Prelude.Text
set :: PropertyType "SAPSID" NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty
-> NetWeaverPrometheusExporterProperty
set PropertyType "SAPSID" NetWeaverPrometheusExporterProperty
newValue NetWeaverPrometheusExporterProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NetWeaverPrometheusExporterProperty -> ()
instanceNumbers :: NetWeaverPrometheusExporterProperty -> ValueList Text
prometheusPort :: NetWeaverPrometheusExporterProperty -> Maybe (Value Text)
sAPSID :: NetWeaverPrometheusExporterProperty -> Value Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
sAPSID :: Value Text
..}
= NetWeaverPrometheusExporterProperty {sAPSID :: Value Text
sAPSID = PropertyType "SAPSID" NetWeaverPrometheusExporterProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
haddock_workaround_ :: ()
instanceNumbers :: ValueList Text
prometheusPort :: Maybe (Value Text)
..}