{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudWatch.Types.ActionsSuppressedBy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CloudWatch.Types.ActionsSuppressedBy
  ( ActionsSuppressedBy
      ( ..,
        ActionsSuppressedBy_Alarm,
        ActionsSuppressedBy_ExtensionPeriod,
        ActionsSuppressedBy_WaitPeriod
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ActionsSuppressedBy = ActionsSuppressedBy'
  { ActionsSuppressedBy -> Text
fromActionsSuppressedBy ::
      Data.Text
  }
  deriving stock
    ( Int -> ActionsSuppressedBy -> ShowS
[ActionsSuppressedBy] -> ShowS
ActionsSuppressedBy -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionsSuppressedBy] -> ShowS
$cshowList :: [ActionsSuppressedBy] -> ShowS
show :: ActionsSuppressedBy -> String
$cshow :: ActionsSuppressedBy -> String
showsPrec :: Int -> ActionsSuppressedBy -> ShowS
$cshowsPrec :: Int -> ActionsSuppressedBy -> ShowS
Prelude.Show,
      ReadPrec [ActionsSuppressedBy]
ReadPrec ActionsSuppressedBy
Int -> ReadS ActionsSuppressedBy
ReadS [ActionsSuppressedBy]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionsSuppressedBy]
$creadListPrec :: ReadPrec [ActionsSuppressedBy]
readPrec :: ReadPrec ActionsSuppressedBy
$creadPrec :: ReadPrec ActionsSuppressedBy
readList :: ReadS [ActionsSuppressedBy]
$creadList :: ReadS [ActionsSuppressedBy]
readsPrec :: Int -> ReadS ActionsSuppressedBy
$creadsPrec :: Int -> ReadS ActionsSuppressedBy
Prelude.Read,
      ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
$c/= :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
== :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
$c== :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
Prelude.Eq,
      Eq ActionsSuppressedBy
ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
ActionsSuppressedBy -> ActionsSuppressedBy -> Ordering
ActionsSuppressedBy -> ActionsSuppressedBy -> ActionsSuppressedBy
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ActionsSuppressedBy -> ActionsSuppressedBy -> ActionsSuppressedBy
$cmin :: ActionsSuppressedBy -> ActionsSuppressedBy -> ActionsSuppressedBy
max :: ActionsSuppressedBy -> ActionsSuppressedBy -> ActionsSuppressedBy
$cmax :: ActionsSuppressedBy -> ActionsSuppressedBy -> ActionsSuppressedBy
>= :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
$c>= :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
> :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
$c> :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
<= :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
$c<= :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
< :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
$c< :: ActionsSuppressedBy -> ActionsSuppressedBy -> Bool
compare :: ActionsSuppressedBy -> ActionsSuppressedBy -> Ordering
$ccompare :: ActionsSuppressedBy -> ActionsSuppressedBy -> Ordering
Prelude.Ord,
      forall x. Rep ActionsSuppressedBy x -> ActionsSuppressedBy
forall x. ActionsSuppressedBy -> Rep ActionsSuppressedBy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActionsSuppressedBy x -> ActionsSuppressedBy
$cfrom :: forall x. ActionsSuppressedBy -> Rep ActionsSuppressedBy x
Prelude.Generic
    )
  deriving newtype
    ( Eq ActionsSuppressedBy
Int -> ActionsSuppressedBy -> Int
ActionsSuppressedBy -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ActionsSuppressedBy -> Int
$chash :: ActionsSuppressedBy -> Int
hashWithSalt :: Int -> ActionsSuppressedBy -> Int
$chashWithSalt :: Int -> ActionsSuppressedBy -> Int
Prelude.Hashable,
      ActionsSuppressedBy -> ()
forall a. (a -> ()) -> NFData a
rnf :: ActionsSuppressedBy -> ()
$crnf :: ActionsSuppressedBy -> ()
Prelude.NFData,
      Text -> Either String ActionsSuppressedBy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionsSuppressedBy
$cfromText :: Text -> Either String ActionsSuppressedBy
Data.FromText,
      ActionsSuppressedBy -> Text
forall a. (a -> Text) -> ToText a
toText :: ActionsSuppressedBy -> Text
$ctoText :: ActionsSuppressedBy -> Text
Data.ToText,
      ActionsSuppressedBy -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionsSuppressedBy -> ByteString
$ctoBS :: ActionsSuppressedBy -> ByteString
Data.ToByteString,
      ActionsSuppressedBy -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionsSuppressedBy -> ByteStringBuilder
$cbuild :: ActionsSuppressedBy -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ActionsSuppressedBy -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionsSuppressedBy -> [Header]
$ctoHeader :: HeaderName -> ActionsSuppressedBy -> [Header]
Data.ToHeader,
      ActionsSuppressedBy -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionsSuppressedBy -> QueryString
$ctoQuery :: ActionsSuppressedBy -> QueryString
Data.ToQuery,
      Value -> Parser [ActionsSuppressedBy]
Value -> Parser ActionsSuppressedBy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ActionsSuppressedBy]
$cparseJSONList :: Value -> Parser [ActionsSuppressedBy]
parseJSON :: Value -> Parser ActionsSuppressedBy
$cparseJSON :: Value -> Parser ActionsSuppressedBy
Data.FromJSON,
      FromJSONKeyFunction [ActionsSuppressedBy]
FromJSONKeyFunction ActionsSuppressedBy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionsSuppressedBy]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionsSuppressedBy]
fromJSONKey :: FromJSONKeyFunction ActionsSuppressedBy
$cfromJSONKey :: FromJSONKeyFunction ActionsSuppressedBy
Data.FromJSONKey,
      [ActionsSuppressedBy] -> Encoding
[ActionsSuppressedBy] -> Value
ActionsSuppressedBy -> Encoding
ActionsSuppressedBy -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ActionsSuppressedBy] -> Encoding
$ctoEncodingList :: [ActionsSuppressedBy] -> Encoding
toJSONList :: [ActionsSuppressedBy] -> Value
$ctoJSONList :: [ActionsSuppressedBy] -> Value
toEncoding :: ActionsSuppressedBy -> Encoding
$ctoEncoding :: ActionsSuppressedBy -> Encoding
toJSON :: ActionsSuppressedBy -> Value
$ctoJSON :: ActionsSuppressedBy -> Value
Data.ToJSON,
      ToJSONKeyFunction [ActionsSuppressedBy]
ToJSONKeyFunction ActionsSuppressedBy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionsSuppressedBy]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionsSuppressedBy]
toJSONKey :: ToJSONKeyFunction ActionsSuppressedBy
$ctoJSONKey :: ToJSONKeyFunction ActionsSuppressedBy
Data.ToJSONKey,
      [Node] -> Either String ActionsSuppressedBy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionsSuppressedBy
$cparseXML :: [Node] -> Either String ActionsSuppressedBy
Data.FromXML,
      ActionsSuppressedBy -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ActionsSuppressedBy -> XML
$ctoXML :: ActionsSuppressedBy -> XML
Data.ToXML
    )

pattern ActionsSuppressedBy_Alarm :: ActionsSuppressedBy
pattern $bActionsSuppressedBy_Alarm :: ActionsSuppressedBy
$mActionsSuppressedBy_Alarm :: forall {r}.
ActionsSuppressedBy -> ((# #) -> r) -> ((# #) -> r) -> r
ActionsSuppressedBy_Alarm = ActionsSuppressedBy' "Alarm"

pattern ActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy
pattern $bActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy
$mActionsSuppressedBy_ExtensionPeriod :: forall {r}.
ActionsSuppressedBy -> ((# #) -> r) -> ((# #) -> r) -> r
ActionsSuppressedBy_ExtensionPeriod = ActionsSuppressedBy' "ExtensionPeriod"

pattern ActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy
pattern $bActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy
$mActionsSuppressedBy_WaitPeriod :: forall {r}.
ActionsSuppressedBy -> ((# #) -> r) -> ((# #) -> r) -> r
ActionsSuppressedBy_WaitPeriod = ActionsSuppressedBy' "WaitPeriod"

{-# COMPLETE
  ActionsSuppressedBy_Alarm,
  ActionsSuppressedBy_ExtensionPeriod,
  ActionsSuppressedBy_WaitPeriod,
  ActionsSuppressedBy'
  #-}