module Stratosphere.CE.AnomalyMonitor (
module Exports, AnomalyMonitor(..), mkAnomalyMonitor
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CE.AnomalyMonitor.ResourceTagProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AnomalyMonitor
=
AnomalyMonitor {AnomalyMonitor -> ()
haddock_workaround_ :: (),
AnomalyMonitor -> Maybe (Value Text)
monitorDimension :: (Prelude.Maybe (Value Prelude.Text)),
AnomalyMonitor -> Value Text
monitorName :: (Value Prelude.Text),
AnomalyMonitor -> Maybe (Value Text)
monitorSpecification :: (Prelude.Maybe (Value Prelude.Text)),
AnomalyMonitor -> Value Text
monitorType :: (Value Prelude.Text),
AnomalyMonitor -> Maybe [ResourceTagProperty]
resourceTags :: (Prelude.Maybe [ResourceTagProperty])}
deriving stock (AnomalyMonitor -> AnomalyMonitor -> Bool
(AnomalyMonitor -> AnomalyMonitor -> Bool)
-> (AnomalyMonitor -> AnomalyMonitor -> Bool) -> Eq AnomalyMonitor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AnomalyMonitor -> AnomalyMonitor -> Bool
== :: AnomalyMonitor -> AnomalyMonitor -> Bool
$c/= :: AnomalyMonitor -> AnomalyMonitor -> Bool
/= :: AnomalyMonitor -> AnomalyMonitor -> Bool
Prelude.Eq, Int -> AnomalyMonitor -> ShowS
[AnomalyMonitor] -> ShowS
AnomalyMonitor -> String
(Int -> AnomalyMonitor -> ShowS)
-> (AnomalyMonitor -> String)
-> ([AnomalyMonitor] -> ShowS)
-> Show AnomalyMonitor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AnomalyMonitor -> ShowS
showsPrec :: Int -> AnomalyMonitor -> ShowS
$cshow :: AnomalyMonitor -> String
show :: AnomalyMonitor -> String
$cshowList :: [AnomalyMonitor] -> ShowS
showList :: [AnomalyMonitor] -> ShowS
Prelude.Show)
mkAnomalyMonitor ::
Value Prelude.Text -> Value Prelude.Text -> AnomalyMonitor
mkAnomalyMonitor :: Value Text -> Value Text -> AnomalyMonitor
mkAnomalyMonitor Value Text
monitorName Value Text
monitorType
= AnomalyMonitor
{haddock_workaround_ :: ()
haddock_workaround_ = (), monitorName :: Value Text
monitorName = Value Text
monitorName,
monitorType :: Value Text
monitorType = Value Text
monitorType, monitorDimension :: Maybe (Value Text)
monitorDimension = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
monitorSpecification :: Maybe (Value Text)
monitorSpecification = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
resourceTags :: Maybe [ResourceTagProperty]
resourceTags = Maybe [ResourceTagProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AnomalyMonitor where
toResourceProperties :: AnomalyMonitor -> ResourceProperties
toResourceProperties AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CE::AnomalyMonitor", 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
"MonitorName" 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
monitorName,
Key
"MonitorType" 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
monitorType]
([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
"MonitorDimension" (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)
monitorDimension,
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
"MonitorSpecification" (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)
monitorSpecification,
Key -> [ResourceTagProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResourceTags" ([ResourceTagProperty] -> (Key, Value))
-> Maybe [ResourceTagProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ResourceTagProperty]
resourceTags]))}
instance JSON.ToJSON AnomalyMonitor where
toJSON :: AnomalyMonitor -> Value
toJSON AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= [(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
"MonitorName" 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
monitorName,
Key
"MonitorType" 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
monitorType]
([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
"MonitorDimension" (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)
monitorDimension,
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
"MonitorSpecification" (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)
monitorSpecification,
Key -> [ResourceTagProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResourceTags" ([ResourceTagProperty] -> (Key, Value))
-> Maybe [ResourceTagProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ResourceTagProperty]
resourceTags])))
instance Property "MonitorDimension" AnomalyMonitor where
type PropertyType "MonitorDimension" AnomalyMonitor = Value Prelude.Text
set :: PropertyType "MonitorDimension" AnomalyMonitor
-> AnomalyMonitor -> AnomalyMonitor
set PropertyType "MonitorDimension" AnomalyMonitor
newValue AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= AnomalyMonitor {monitorDimension :: Maybe (Value Text)
monitorDimension = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MonitorDimension" AnomalyMonitor
Value Text
newValue, Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
instance Property "MonitorName" AnomalyMonitor where
type PropertyType "MonitorName" AnomalyMonitor = Value Prelude.Text
set :: PropertyType "MonitorName" AnomalyMonitor
-> AnomalyMonitor -> AnomalyMonitor
set PropertyType "MonitorName" AnomalyMonitor
newValue AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= AnomalyMonitor {monitorName :: Value Text
monitorName = PropertyType "MonitorName" AnomalyMonitor
Value Text
newValue, Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
instance Property "MonitorSpecification" AnomalyMonitor where
type PropertyType "MonitorSpecification" AnomalyMonitor = Value Prelude.Text
set :: PropertyType "MonitorSpecification" AnomalyMonitor
-> AnomalyMonitor -> AnomalyMonitor
set PropertyType "MonitorSpecification" AnomalyMonitor
newValue AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= AnomalyMonitor {monitorSpecification :: Maybe (Value Text)
monitorSpecification = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MonitorSpecification" AnomalyMonitor
Value Text
newValue, Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
instance Property "MonitorType" AnomalyMonitor where
type PropertyType "MonitorType" AnomalyMonitor = Value Prelude.Text
set :: PropertyType "MonitorType" AnomalyMonitor
-> AnomalyMonitor -> AnomalyMonitor
set PropertyType "MonitorType" AnomalyMonitor
newValue AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= AnomalyMonitor {monitorType :: Value Text
monitorType = PropertyType "MonitorType" AnomalyMonitor
Value Text
newValue, Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
resourceTags :: Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
resourceTags :: Maybe [ResourceTagProperty]
..}
instance Property "ResourceTags" AnomalyMonitor where
type PropertyType "ResourceTags" AnomalyMonitor = [ResourceTagProperty]
set :: PropertyType "ResourceTags" AnomalyMonitor
-> AnomalyMonitor -> AnomalyMonitor
set PropertyType "ResourceTags" AnomalyMonitor
newValue AnomalyMonitor {Maybe [ResourceTagProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AnomalyMonitor -> ()
monitorDimension :: AnomalyMonitor -> Maybe (Value Text)
monitorName :: AnomalyMonitor -> Value Text
monitorSpecification :: AnomalyMonitor -> Maybe (Value Text)
monitorType :: AnomalyMonitor -> Value Text
resourceTags :: AnomalyMonitor -> Maybe [ResourceTagProperty]
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
resourceTags :: Maybe [ResourceTagProperty]
..}
= AnomalyMonitor {resourceTags :: Maybe [ResourceTagProperty]
resourceTags = [ResourceTagProperty] -> Maybe [ResourceTagProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ResourceTagProperty]
PropertyType "ResourceTags" AnomalyMonitor
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
haddock_workaround_ :: ()
monitorDimension :: Maybe (Value Text)
monitorName :: Value Text
monitorSpecification :: Maybe (Value Text)
monitorType :: Value Text
..}