module Stratosphere.CloudWatch.AnomalyDetector.RangeProperty (
        RangeProperty(..), mkRangeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RangeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html>
    RangeProperty {RangeProperty -> ()
haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-endtime>
                   RangeProperty -> Value Text
endTime :: (Value Prelude.Text),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime>
                   RangeProperty -> Value Text
startTime :: (Value Prelude.Text)}
  deriving stock (RangeProperty -> RangeProperty -> Bool
(RangeProperty -> RangeProperty -> Bool)
-> (RangeProperty -> RangeProperty -> Bool) -> Eq RangeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RangeProperty -> RangeProperty -> Bool
== :: RangeProperty -> RangeProperty -> Bool
$c/= :: RangeProperty -> RangeProperty -> Bool
/= :: RangeProperty -> RangeProperty -> Bool
Prelude.Eq, Int -> RangeProperty -> ShowS
[RangeProperty] -> ShowS
RangeProperty -> String
(Int -> RangeProperty -> ShowS)
-> (RangeProperty -> String)
-> ([RangeProperty] -> ShowS)
-> Show RangeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RangeProperty -> ShowS
showsPrec :: Int -> RangeProperty -> ShowS
$cshow :: RangeProperty -> String
show :: RangeProperty -> String
$cshowList :: [RangeProperty] -> ShowS
showList :: [RangeProperty] -> ShowS
Prelude.Show)
mkRangeProperty ::
  Value Prelude.Text -> Value Prelude.Text -> RangeProperty
mkRangeProperty :: Value Text -> Value Text -> RangeProperty
mkRangeProperty Value Text
endTime Value Text
startTime
  = RangeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), endTime :: Value Text
endTime = Value Text
endTime,
       startTime :: Value Text
startTime = Value Text
startTime}
instance ToResourceProperties RangeProperty where
  toResourceProperties :: RangeProperty -> ResourceProperties
toResourceProperties RangeProperty {()
Value Text
haddock_workaround_ :: RangeProperty -> ()
endTime :: RangeProperty -> Value Text
startTime :: RangeProperty -> Value Text
haddock_workaround_ :: ()
endTime :: Value Text
startTime :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudWatch::AnomalyDetector.Range",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"EndTime" 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
endTime,
                       Key
"StartTime" 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
startTime]}
instance JSON.ToJSON RangeProperty where
  toJSON :: RangeProperty -> Value
toJSON RangeProperty {()
Value Text
haddock_workaround_ :: RangeProperty -> ()
endTime :: RangeProperty -> Value Text
startTime :: RangeProperty -> Value Text
haddock_workaround_ :: ()
endTime :: Value Text
startTime :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"EndTime" 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
endTime, Key
"StartTime" 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
startTime]
instance Property "EndTime" RangeProperty where
  type PropertyType "EndTime" RangeProperty = Value Prelude.Text
  set :: PropertyType "EndTime" RangeProperty
-> RangeProperty -> RangeProperty
set PropertyType "EndTime" RangeProperty
newValue RangeProperty {()
Value Text
haddock_workaround_ :: RangeProperty -> ()
endTime :: RangeProperty -> Value Text
startTime :: RangeProperty -> Value Text
haddock_workaround_ :: ()
endTime :: Value Text
startTime :: Value Text
..}
    = RangeProperty {endTime :: Value Text
endTime = PropertyType "EndTime" RangeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
startTime :: Value Text
haddock_workaround_ :: ()
startTime :: Value Text
..}
instance Property "StartTime" RangeProperty where
  type PropertyType "StartTime" RangeProperty = Value Prelude.Text
  set :: PropertyType "StartTime" RangeProperty
-> RangeProperty -> RangeProperty
set PropertyType "StartTime" RangeProperty
newValue RangeProperty {()
Value Text
haddock_workaround_ :: RangeProperty -> ()
endTime :: RangeProperty -> Value Text
startTime :: RangeProperty -> Value Text
haddock_workaround_ :: ()
endTime :: Value Text
startTime :: Value Text
..}
    = RangeProperty {startTime :: Value Text
startTime = PropertyType "StartTime" RangeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
endTime :: Value Text
haddock_workaround_ :: ()
endTime :: Value Text
..}