{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CloudWatch.PutCompositeAlarm
(
PutCompositeAlarm (..),
newPutCompositeAlarm,
putCompositeAlarm_alarmDescription,
putCompositeAlarm_oKActions,
putCompositeAlarm_actionsEnabled,
putCompositeAlarm_insufficientDataActions,
putCompositeAlarm_alarmActions,
putCompositeAlarm_tags,
putCompositeAlarm_alarmName,
putCompositeAlarm_alarmRule,
PutCompositeAlarmResponse (..),
newPutCompositeAlarmResponse,
)
where
import Amazonka.CloudWatch.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data PutCompositeAlarm = PutCompositeAlarm'
{
PutCompositeAlarm -> Maybe Text
alarmDescription :: Prelude.Maybe Prelude.Text,
PutCompositeAlarm -> Maybe [Text]
oKActions :: Prelude.Maybe [Prelude.Text],
PutCompositeAlarm -> Maybe Bool
actionsEnabled :: Prelude.Maybe Prelude.Bool,
PutCompositeAlarm -> Maybe [Text]
insufficientDataActions :: Prelude.Maybe [Prelude.Text],
PutCompositeAlarm -> Maybe [Text]
alarmActions :: Prelude.Maybe [Prelude.Text],
PutCompositeAlarm -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
PutCompositeAlarm -> Text
alarmName :: Prelude.Text,
PutCompositeAlarm -> Text
alarmRule :: Prelude.Text
}
deriving (PutCompositeAlarm -> PutCompositeAlarm -> Bool
(PutCompositeAlarm -> PutCompositeAlarm -> Bool)
-> (PutCompositeAlarm -> PutCompositeAlarm -> Bool)
-> Eq PutCompositeAlarm
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutCompositeAlarm -> PutCompositeAlarm -> Bool
$c/= :: PutCompositeAlarm -> PutCompositeAlarm -> Bool
== :: PutCompositeAlarm -> PutCompositeAlarm -> Bool
$c== :: PutCompositeAlarm -> PutCompositeAlarm -> Bool
Prelude.Eq, ReadPrec [PutCompositeAlarm]
ReadPrec PutCompositeAlarm
Int -> ReadS PutCompositeAlarm
ReadS [PutCompositeAlarm]
(Int -> ReadS PutCompositeAlarm)
-> ReadS [PutCompositeAlarm]
-> ReadPrec PutCompositeAlarm
-> ReadPrec [PutCompositeAlarm]
-> Read PutCompositeAlarm
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutCompositeAlarm]
$creadListPrec :: ReadPrec [PutCompositeAlarm]
readPrec :: ReadPrec PutCompositeAlarm
$creadPrec :: ReadPrec PutCompositeAlarm
readList :: ReadS [PutCompositeAlarm]
$creadList :: ReadS [PutCompositeAlarm]
readsPrec :: Int -> ReadS PutCompositeAlarm
$creadsPrec :: Int -> ReadS PutCompositeAlarm
Prelude.Read, Int -> PutCompositeAlarm -> ShowS
[PutCompositeAlarm] -> ShowS
PutCompositeAlarm -> String
(Int -> PutCompositeAlarm -> ShowS)
-> (PutCompositeAlarm -> String)
-> ([PutCompositeAlarm] -> ShowS)
-> Show PutCompositeAlarm
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutCompositeAlarm] -> ShowS
$cshowList :: [PutCompositeAlarm] -> ShowS
show :: PutCompositeAlarm -> String
$cshow :: PutCompositeAlarm -> String
showsPrec :: Int -> PutCompositeAlarm -> ShowS
$cshowsPrec :: Int -> PutCompositeAlarm -> ShowS
Prelude.Show, (forall x. PutCompositeAlarm -> Rep PutCompositeAlarm x)
-> (forall x. Rep PutCompositeAlarm x -> PutCompositeAlarm)
-> Generic PutCompositeAlarm
forall x. Rep PutCompositeAlarm x -> PutCompositeAlarm
forall x. PutCompositeAlarm -> Rep PutCompositeAlarm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutCompositeAlarm x -> PutCompositeAlarm
$cfrom :: forall x. PutCompositeAlarm -> Rep PutCompositeAlarm x
Prelude.Generic)
newPutCompositeAlarm ::
Prelude.Text ->
Prelude.Text ->
PutCompositeAlarm
newPutCompositeAlarm :: Text -> Text -> PutCompositeAlarm
newPutCompositeAlarm Text
pAlarmName_ Text
pAlarmRule_ =
PutCompositeAlarm' :: Maybe Text
-> Maybe [Text]
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Text]
-> Maybe [Tag]
-> Text
-> Text
-> PutCompositeAlarm
PutCompositeAlarm'
{ $sel:alarmDescription:PutCompositeAlarm' :: Maybe Text
alarmDescription =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:oKActions:PutCompositeAlarm' :: Maybe [Text]
oKActions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:actionsEnabled:PutCompositeAlarm' :: Maybe Bool
actionsEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:insufficientDataActions:PutCompositeAlarm' :: Maybe [Text]
insufficientDataActions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:alarmActions:PutCompositeAlarm' :: Maybe [Text]
alarmActions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:PutCompositeAlarm' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:alarmName:PutCompositeAlarm' :: Text
alarmName = Text
pAlarmName_,
$sel:alarmRule:PutCompositeAlarm' :: Text
alarmRule = Text
pAlarmRule_
}
putCompositeAlarm_alarmDescription :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Text)
putCompositeAlarm_alarmDescription :: (Maybe Text -> f (Maybe Text))
-> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_alarmDescription = (PutCompositeAlarm -> Maybe Text)
-> (PutCompositeAlarm -> Maybe Text -> PutCompositeAlarm)
-> Lens
PutCompositeAlarm PutCompositeAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Maybe Text
alarmDescription :: Maybe Text
$sel:alarmDescription:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe Text
alarmDescription} -> Maybe Text
alarmDescription) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Maybe Text
a -> PutCompositeAlarm
s {$sel:alarmDescription:PutCompositeAlarm' :: Maybe Text
alarmDescription = Maybe Text
a} :: PutCompositeAlarm)
putCompositeAlarm_oKActions :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Prelude.Text])
putCompositeAlarm_oKActions :: (Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_oKActions = (PutCompositeAlarm -> Maybe [Text])
-> (PutCompositeAlarm -> Maybe [Text] -> PutCompositeAlarm)
-> Lens
PutCompositeAlarm PutCompositeAlarm (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Maybe [Text]
oKActions :: Maybe [Text]
$sel:oKActions:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Text]
oKActions} -> Maybe [Text]
oKActions) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Maybe [Text]
a -> PutCompositeAlarm
s {$sel:oKActions:PutCompositeAlarm' :: Maybe [Text]
oKActions = Maybe [Text]
a} :: PutCompositeAlarm) ((Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm -> f PutCompositeAlarm)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm
-> f PutCompositeAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putCompositeAlarm_actionsEnabled :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Bool)
putCompositeAlarm_actionsEnabled :: (Maybe Bool -> f (Maybe Bool))
-> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_actionsEnabled = (PutCompositeAlarm -> Maybe Bool)
-> (PutCompositeAlarm -> Maybe Bool -> PutCompositeAlarm)
-> Lens
PutCompositeAlarm PutCompositeAlarm (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Maybe Bool
actionsEnabled :: Maybe Bool
$sel:actionsEnabled:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe Bool
actionsEnabled} -> Maybe Bool
actionsEnabled) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Maybe Bool
a -> PutCompositeAlarm
s {$sel:actionsEnabled:PutCompositeAlarm' :: Maybe Bool
actionsEnabled = Maybe Bool
a} :: PutCompositeAlarm)
putCompositeAlarm_insufficientDataActions :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Prelude.Text])
putCompositeAlarm_insufficientDataActions :: (Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_insufficientDataActions = (PutCompositeAlarm -> Maybe [Text])
-> (PutCompositeAlarm -> Maybe [Text] -> PutCompositeAlarm)
-> Lens
PutCompositeAlarm PutCompositeAlarm (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Maybe [Text]
insufficientDataActions :: Maybe [Text]
$sel:insufficientDataActions:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Text]
insufficientDataActions} -> Maybe [Text]
insufficientDataActions) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Maybe [Text]
a -> PutCompositeAlarm
s {$sel:insufficientDataActions:PutCompositeAlarm' :: Maybe [Text]
insufficientDataActions = Maybe [Text]
a} :: PutCompositeAlarm) ((Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm -> f PutCompositeAlarm)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm
-> f PutCompositeAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putCompositeAlarm_alarmActions :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Prelude.Text])
putCompositeAlarm_alarmActions :: (Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_alarmActions = (PutCompositeAlarm -> Maybe [Text])
-> (PutCompositeAlarm -> Maybe [Text] -> PutCompositeAlarm)
-> Lens
PutCompositeAlarm PutCompositeAlarm (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Maybe [Text]
alarmActions :: Maybe [Text]
$sel:alarmActions:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Text]
alarmActions} -> Maybe [Text]
alarmActions) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Maybe [Text]
a -> PutCompositeAlarm
s {$sel:alarmActions:PutCompositeAlarm' :: Maybe [Text]
alarmActions = Maybe [Text]
a} :: PutCompositeAlarm) ((Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm -> f PutCompositeAlarm)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> PutCompositeAlarm
-> f PutCompositeAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putCompositeAlarm_tags :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Tag])
putCompositeAlarm_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_tags = (PutCompositeAlarm -> Maybe [Tag])
-> (PutCompositeAlarm -> Maybe [Tag] -> PutCompositeAlarm)
-> Lens
PutCompositeAlarm PutCompositeAlarm (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Maybe [Tag]
a -> PutCompositeAlarm
s {$sel:tags:PutCompositeAlarm' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: PutCompositeAlarm) ((Maybe [Tag] -> f (Maybe [Tag]))
-> PutCompositeAlarm -> f PutCompositeAlarm)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> PutCompositeAlarm
-> f PutCompositeAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putCompositeAlarm_alarmName :: Lens.Lens' PutCompositeAlarm Prelude.Text
putCompositeAlarm_alarmName :: (Text -> f Text) -> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_alarmName = (PutCompositeAlarm -> Text)
-> (PutCompositeAlarm -> Text -> PutCompositeAlarm)
-> Lens PutCompositeAlarm PutCompositeAlarm Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Text
alarmName :: Text
$sel:alarmName:PutCompositeAlarm' :: PutCompositeAlarm -> Text
alarmName} -> Text
alarmName) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Text
a -> PutCompositeAlarm
s {$sel:alarmName:PutCompositeAlarm' :: Text
alarmName = Text
a} :: PutCompositeAlarm)
putCompositeAlarm_alarmRule :: Lens.Lens' PutCompositeAlarm Prelude.Text
putCompositeAlarm_alarmRule :: (Text -> f Text) -> PutCompositeAlarm -> f PutCompositeAlarm
putCompositeAlarm_alarmRule = (PutCompositeAlarm -> Text)
-> (PutCompositeAlarm -> Text -> PutCompositeAlarm)
-> Lens PutCompositeAlarm PutCompositeAlarm Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCompositeAlarm' {Text
alarmRule :: Text
$sel:alarmRule:PutCompositeAlarm' :: PutCompositeAlarm -> Text
alarmRule} -> Text
alarmRule) (\s :: PutCompositeAlarm
s@PutCompositeAlarm' {} Text
a -> PutCompositeAlarm
s {$sel:alarmRule:PutCompositeAlarm' :: Text
alarmRule = Text
a} :: PutCompositeAlarm)
instance Core.AWSRequest PutCompositeAlarm where
type
AWSResponse PutCompositeAlarm =
PutCompositeAlarmResponse
request :: PutCompositeAlarm -> Request PutCompositeAlarm
request = Service -> PutCompositeAlarm -> Request PutCompositeAlarm
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy PutCompositeAlarm
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutCompositeAlarm)))
response =
AWSResponse PutCompositeAlarm
-> Logger
-> Service
-> Proxy PutCompositeAlarm
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutCompositeAlarm)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse PutCompositeAlarm
PutCompositeAlarmResponse
PutCompositeAlarmResponse'
instance Prelude.Hashable PutCompositeAlarm
instance Prelude.NFData PutCompositeAlarm
instance Core.ToHeaders PutCompositeAlarm where
toHeaders :: PutCompositeAlarm -> [Header]
toHeaders = [Header] -> PutCompositeAlarm -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath PutCompositeAlarm where
toPath :: PutCompositeAlarm -> ByteString
toPath = ByteString -> PutCompositeAlarm -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutCompositeAlarm where
toQuery :: PutCompositeAlarm -> QueryString
toQuery PutCompositeAlarm' {Maybe Bool
Maybe [Text]
Maybe [Tag]
Maybe Text
Text
alarmRule :: Text
alarmName :: Text
tags :: Maybe [Tag]
alarmActions :: Maybe [Text]
insufficientDataActions :: Maybe [Text]
actionsEnabled :: Maybe Bool
oKActions :: Maybe [Text]
alarmDescription :: Maybe Text
$sel:alarmRule:PutCompositeAlarm' :: PutCompositeAlarm -> Text
$sel:alarmName:PutCompositeAlarm' :: PutCompositeAlarm -> Text
$sel:tags:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Tag]
$sel:alarmActions:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Text]
$sel:insufficientDataActions:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Text]
$sel:actionsEnabled:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe Bool
$sel:oKActions:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe [Text]
$sel:alarmDescription:PutCompositeAlarm' :: PutCompositeAlarm -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"PutCompositeAlarm" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-08-01" :: Prelude.ByteString),
ByteString
"AlarmDescription" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
alarmDescription,
ByteString
"OKActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
oKActions),
ByteString
"ActionsEnabled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
actionsEnabled,
ByteString
"InsufficientDataActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
insufficientDataActions
),
ByteString
"AlarmActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
alarmActions),
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"AlarmName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
alarmName,
ByteString
"AlarmRule" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
alarmRule
]
data PutCompositeAlarmResponse = PutCompositeAlarmResponse'
{
}
deriving (PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool
(PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool)
-> (PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool)
-> Eq PutCompositeAlarmResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool
$c/= :: PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool
== :: PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool
$c== :: PutCompositeAlarmResponse -> PutCompositeAlarmResponse -> Bool
Prelude.Eq, ReadPrec [PutCompositeAlarmResponse]
ReadPrec PutCompositeAlarmResponse
Int -> ReadS PutCompositeAlarmResponse
ReadS [PutCompositeAlarmResponse]
(Int -> ReadS PutCompositeAlarmResponse)
-> ReadS [PutCompositeAlarmResponse]
-> ReadPrec PutCompositeAlarmResponse
-> ReadPrec [PutCompositeAlarmResponse]
-> Read PutCompositeAlarmResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutCompositeAlarmResponse]
$creadListPrec :: ReadPrec [PutCompositeAlarmResponse]
readPrec :: ReadPrec PutCompositeAlarmResponse
$creadPrec :: ReadPrec PutCompositeAlarmResponse
readList :: ReadS [PutCompositeAlarmResponse]
$creadList :: ReadS [PutCompositeAlarmResponse]
readsPrec :: Int -> ReadS PutCompositeAlarmResponse
$creadsPrec :: Int -> ReadS PutCompositeAlarmResponse
Prelude.Read, Int -> PutCompositeAlarmResponse -> ShowS
[PutCompositeAlarmResponse] -> ShowS
PutCompositeAlarmResponse -> String
(Int -> PutCompositeAlarmResponse -> ShowS)
-> (PutCompositeAlarmResponse -> String)
-> ([PutCompositeAlarmResponse] -> ShowS)
-> Show PutCompositeAlarmResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutCompositeAlarmResponse] -> ShowS
$cshowList :: [PutCompositeAlarmResponse] -> ShowS
show :: PutCompositeAlarmResponse -> String
$cshow :: PutCompositeAlarmResponse -> String
showsPrec :: Int -> PutCompositeAlarmResponse -> ShowS
$cshowsPrec :: Int -> PutCompositeAlarmResponse -> ShowS
Prelude.Show, (forall x.
PutCompositeAlarmResponse -> Rep PutCompositeAlarmResponse x)
-> (forall x.
Rep PutCompositeAlarmResponse x -> PutCompositeAlarmResponse)
-> Generic PutCompositeAlarmResponse
forall x.
Rep PutCompositeAlarmResponse x -> PutCompositeAlarmResponse
forall x.
PutCompositeAlarmResponse -> Rep PutCompositeAlarmResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutCompositeAlarmResponse x -> PutCompositeAlarmResponse
$cfrom :: forall x.
PutCompositeAlarmResponse -> Rep PutCompositeAlarmResponse x
Prelude.Generic)
newPutCompositeAlarmResponse ::
PutCompositeAlarmResponse
newPutCompositeAlarmResponse :: PutCompositeAlarmResponse
newPutCompositeAlarmResponse =
PutCompositeAlarmResponse
PutCompositeAlarmResponse'
instance Prelude.NFData PutCompositeAlarmResponse