content: module Stratosphere.CloudWatch.AnomalyDetector.MetricCharacteristicsProperty (
          MetricCharacteristicsProperty(..), mkMetricCharacteristicsProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data MetricCharacteristicsProperty
    = MetricCharacteristicsProperty {periodicSpikes :: (Prelude.Maybe (Value Prelude.Bool))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkMetricCharacteristicsProperty :: MetricCharacteristicsProperty
  mkMetricCharacteristicsProperty
    = MetricCharacteristicsProperty {periodicSpikes = Prelude.Nothing}
  instance ToResourceProperties MetricCharacteristicsProperty where
    toResourceProperties MetricCharacteristicsProperty {..}
      = ResourceProperties
          {awsType = "AWS::CloudWatch::AnomalyDetector.MetricCharacteristics",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "PeriodicSpikes" Prelude.<$> periodicSpikes])}
  instance JSON.ToJSON MetricCharacteristicsProperty where
    toJSON MetricCharacteristicsProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "PeriodicSpikes" Prelude.<$> periodicSpikes]))
  instance Property "PeriodicSpikes" MetricCharacteristicsProperty where
    type PropertyType "PeriodicSpikes" MetricCharacteristicsProperty = Value Prelude.Bool
    set newValue MetricCharacteristicsProperty {}
      = MetricCharacteristicsProperty
          {periodicSpikes = Prelude.pure newValue, ..}