stratosphere-applicationinsights-1.0.0: gen/Stratosphere/ApplicationInsights/Application/NetWeaverPrometheusExporterProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html>
NetWeaverPrometheusExporterProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-instancenumbers>
instanceNumbers :: (ValueList Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-prometheusport>
prometheusPort :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-sapsid>
sAPSID :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkNetWeaverPrometheusExporterProperty ::
ValueList Prelude.Text
-> Value Prelude.Text -> NetWeaverPrometheusExporterProperty
mkNetWeaverPrometheusExporterProperty instanceNumbers sAPSID
= NetWeaverPrometheusExporterProperty
{haddock_workaround_ = (), instanceNumbers = instanceNumbers,
sAPSID = sAPSID, prometheusPort = Prelude.Nothing}
instance ToResourceProperties NetWeaverPrometheusExporterProperty where
toResourceProperties NetWeaverPrometheusExporterProperty {..}
= ResourceProperties
{awsType = "AWS::ApplicationInsights::Application.NetWeaverPrometheusExporter",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["InstanceNumbers" JSON..= instanceNumbers,
"SAPSID" JSON..= sAPSID]
(Prelude.catMaybes
[(JSON..=) "PrometheusPort" Prelude.<$> prometheusPort]))}
instance JSON.ToJSON NetWeaverPrometheusExporterProperty where
toJSON NetWeaverPrometheusExporterProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["InstanceNumbers" JSON..= instanceNumbers,
"SAPSID" JSON..= sAPSID]
(Prelude.catMaybes
[(JSON..=) "PrometheusPort" Prelude.<$> prometheusPort])))
instance Property "InstanceNumbers" NetWeaverPrometheusExporterProperty where
type PropertyType "InstanceNumbers" NetWeaverPrometheusExporterProperty = ValueList Prelude.Text
set newValue NetWeaverPrometheusExporterProperty {..}
= NetWeaverPrometheusExporterProperty
{instanceNumbers = newValue, ..}
instance Property "PrometheusPort" NetWeaverPrometheusExporterProperty where
type PropertyType "PrometheusPort" NetWeaverPrometheusExporterProperty = Value Prelude.Text
set newValue NetWeaverPrometheusExporterProperty {..}
= NetWeaverPrometheusExporterProperty
{prometheusPort = Prelude.pure newValue, ..}
instance Property "SAPSID" NetWeaverPrometheusExporterProperty where
type PropertyType "SAPSID" NetWeaverPrometheusExporterProperty = Value Prelude.Text
set newValue NetWeaverPrometheusExporterProperty {..}
= NetWeaverPrometheusExporterProperty {sAPSID = newValue, ..}