{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AMP.Types.AlertManagerDefinitionStatusCode
( AlertManagerDefinitionStatusCode
( ..,
AlertManagerDefinitionStatusCode_ACTIVE,
AlertManagerDefinitionStatusCode_CREATING,
AlertManagerDefinitionStatusCode_CREATION_FAILED,
AlertManagerDefinitionStatusCode_DELETING,
AlertManagerDefinitionStatusCode_UPDATE_FAILED,
AlertManagerDefinitionStatusCode_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AlertManagerDefinitionStatusCode = AlertManagerDefinitionStatusCode'
{ AlertManagerDefinitionStatusCode -> Text
fromAlertManagerDefinitionStatusCode ::
Core.Text
}
deriving stock
( Int -> AlertManagerDefinitionStatusCode -> ShowS
[AlertManagerDefinitionStatusCode] -> ShowS
AlertManagerDefinitionStatusCode -> String
(Int -> AlertManagerDefinitionStatusCode -> ShowS)
-> (AlertManagerDefinitionStatusCode -> String)
-> ([AlertManagerDefinitionStatusCode] -> ShowS)
-> Show AlertManagerDefinitionStatusCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AlertManagerDefinitionStatusCode] -> ShowS
$cshowList :: [AlertManagerDefinitionStatusCode] -> ShowS
show :: AlertManagerDefinitionStatusCode -> String
$cshow :: AlertManagerDefinitionStatusCode -> String
showsPrec :: Int -> AlertManagerDefinitionStatusCode -> ShowS
$cshowsPrec :: Int -> AlertManagerDefinitionStatusCode -> ShowS
Prelude.Show,
ReadPrec [AlertManagerDefinitionStatusCode]
ReadPrec AlertManagerDefinitionStatusCode
Int -> ReadS AlertManagerDefinitionStatusCode
ReadS [AlertManagerDefinitionStatusCode]
(Int -> ReadS AlertManagerDefinitionStatusCode)
-> ReadS [AlertManagerDefinitionStatusCode]
-> ReadPrec AlertManagerDefinitionStatusCode
-> ReadPrec [AlertManagerDefinitionStatusCode]
-> Read AlertManagerDefinitionStatusCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AlertManagerDefinitionStatusCode]
$creadListPrec :: ReadPrec [AlertManagerDefinitionStatusCode]
readPrec :: ReadPrec AlertManagerDefinitionStatusCode
$creadPrec :: ReadPrec AlertManagerDefinitionStatusCode
readList :: ReadS [AlertManagerDefinitionStatusCode]
$creadList :: ReadS [AlertManagerDefinitionStatusCode]
readsPrec :: Int -> ReadS AlertManagerDefinitionStatusCode
$creadsPrec :: Int -> ReadS AlertManagerDefinitionStatusCode
Prelude.Read,
AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
(AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool)
-> Eq AlertManagerDefinitionStatusCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
$c/= :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
== :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
$c== :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
Prelude.Eq,
Eq AlertManagerDefinitionStatusCode
Eq AlertManagerDefinitionStatusCode
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Ordering)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode)
-> (AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode)
-> Ord AlertManagerDefinitionStatusCode
AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Ordering
AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
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 :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
$cmin :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
max :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
$cmax :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode
>= :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
$c>= :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
> :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
$c> :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
<= :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
$c<= :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
< :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
$c< :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Bool
compare :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Ordering
$ccompare :: AlertManagerDefinitionStatusCode
-> AlertManagerDefinitionStatusCode -> Ordering
$cp1Ord :: Eq AlertManagerDefinitionStatusCode
Prelude.Ord,
(forall x.
AlertManagerDefinitionStatusCode
-> Rep AlertManagerDefinitionStatusCode x)
-> (forall x.
Rep AlertManagerDefinitionStatusCode x
-> AlertManagerDefinitionStatusCode)
-> Generic AlertManagerDefinitionStatusCode
forall x.
Rep AlertManagerDefinitionStatusCode x
-> AlertManagerDefinitionStatusCode
forall x.
AlertManagerDefinitionStatusCode
-> Rep AlertManagerDefinitionStatusCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AlertManagerDefinitionStatusCode x
-> AlertManagerDefinitionStatusCode
$cfrom :: forall x.
AlertManagerDefinitionStatusCode
-> Rep AlertManagerDefinitionStatusCode x
Prelude.Generic
)
deriving newtype
( Int -> AlertManagerDefinitionStatusCode -> Int
AlertManagerDefinitionStatusCode -> Int
(Int -> AlertManagerDefinitionStatusCode -> Int)
-> (AlertManagerDefinitionStatusCode -> Int)
-> Hashable AlertManagerDefinitionStatusCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AlertManagerDefinitionStatusCode -> Int
$chash :: AlertManagerDefinitionStatusCode -> Int
hashWithSalt :: Int -> AlertManagerDefinitionStatusCode -> Int
$chashWithSalt :: Int -> AlertManagerDefinitionStatusCode -> Int
Prelude.Hashable,
AlertManagerDefinitionStatusCode -> ()
(AlertManagerDefinitionStatusCode -> ())
-> NFData AlertManagerDefinitionStatusCode
forall a. (a -> ()) -> NFData a
rnf :: AlertManagerDefinitionStatusCode -> ()
$crnf :: AlertManagerDefinitionStatusCode -> ()
Prelude.NFData,
Text -> Either String AlertManagerDefinitionStatusCode
(Text -> Either String AlertManagerDefinitionStatusCode)
-> FromText AlertManagerDefinitionStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AlertManagerDefinitionStatusCode
$cfromText :: Text -> Either String AlertManagerDefinitionStatusCode
Core.FromText,
AlertManagerDefinitionStatusCode -> Text
(AlertManagerDefinitionStatusCode -> Text)
-> ToText AlertManagerDefinitionStatusCode
forall a. (a -> Text) -> ToText a
toText :: AlertManagerDefinitionStatusCode -> Text
$ctoText :: AlertManagerDefinitionStatusCode -> Text
Core.ToText,
AlertManagerDefinitionStatusCode -> ByteString
(AlertManagerDefinitionStatusCode -> ByteString)
-> ToByteString AlertManagerDefinitionStatusCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: AlertManagerDefinitionStatusCode -> ByteString
$ctoBS :: AlertManagerDefinitionStatusCode -> ByteString
Core.ToByteString,
AlertManagerDefinitionStatusCode -> ByteStringBuilder
(AlertManagerDefinitionStatusCode -> ByteStringBuilder)
-> ToLog AlertManagerDefinitionStatusCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AlertManagerDefinitionStatusCode -> ByteStringBuilder
$cbuild :: AlertManagerDefinitionStatusCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> AlertManagerDefinitionStatusCode -> [Header]
(HeaderName -> AlertManagerDefinitionStatusCode -> [Header])
-> ToHeader AlertManagerDefinitionStatusCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AlertManagerDefinitionStatusCode -> [Header]
$ctoHeader :: HeaderName -> AlertManagerDefinitionStatusCode -> [Header]
Core.ToHeader,
AlertManagerDefinitionStatusCode -> QueryString
(AlertManagerDefinitionStatusCode -> QueryString)
-> ToQuery AlertManagerDefinitionStatusCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AlertManagerDefinitionStatusCode -> QueryString
$ctoQuery :: AlertManagerDefinitionStatusCode -> QueryString
Core.ToQuery,
Value -> Parser [AlertManagerDefinitionStatusCode]
Value -> Parser AlertManagerDefinitionStatusCode
(Value -> Parser AlertManagerDefinitionStatusCode)
-> (Value -> Parser [AlertManagerDefinitionStatusCode])
-> FromJSON AlertManagerDefinitionStatusCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AlertManagerDefinitionStatusCode]
$cparseJSONList :: Value -> Parser [AlertManagerDefinitionStatusCode]
parseJSON :: Value -> Parser AlertManagerDefinitionStatusCode
$cparseJSON :: Value -> Parser AlertManagerDefinitionStatusCode
Core.FromJSON,
FromJSONKeyFunction [AlertManagerDefinitionStatusCode]
FromJSONKeyFunction AlertManagerDefinitionStatusCode
FromJSONKeyFunction AlertManagerDefinitionStatusCode
-> FromJSONKeyFunction [AlertManagerDefinitionStatusCode]
-> FromJSONKey AlertManagerDefinitionStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AlertManagerDefinitionStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [AlertManagerDefinitionStatusCode]
fromJSONKey :: FromJSONKeyFunction AlertManagerDefinitionStatusCode
$cfromJSONKey :: FromJSONKeyFunction AlertManagerDefinitionStatusCode
Core.FromJSONKey,
[AlertManagerDefinitionStatusCode] -> Encoding
[AlertManagerDefinitionStatusCode] -> Value
AlertManagerDefinitionStatusCode -> Encoding
AlertManagerDefinitionStatusCode -> Value
(AlertManagerDefinitionStatusCode -> Value)
-> (AlertManagerDefinitionStatusCode -> Encoding)
-> ([AlertManagerDefinitionStatusCode] -> Value)
-> ([AlertManagerDefinitionStatusCode] -> Encoding)
-> ToJSON AlertManagerDefinitionStatusCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AlertManagerDefinitionStatusCode] -> Encoding
$ctoEncodingList :: [AlertManagerDefinitionStatusCode] -> Encoding
toJSONList :: [AlertManagerDefinitionStatusCode] -> Value
$ctoJSONList :: [AlertManagerDefinitionStatusCode] -> Value
toEncoding :: AlertManagerDefinitionStatusCode -> Encoding
$ctoEncoding :: AlertManagerDefinitionStatusCode -> Encoding
toJSON :: AlertManagerDefinitionStatusCode -> Value
$ctoJSON :: AlertManagerDefinitionStatusCode -> Value
Core.ToJSON,
ToJSONKeyFunction [AlertManagerDefinitionStatusCode]
ToJSONKeyFunction AlertManagerDefinitionStatusCode
ToJSONKeyFunction AlertManagerDefinitionStatusCode
-> ToJSONKeyFunction [AlertManagerDefinitionStatusCode]
-> ToJSONKey AlertManagerDefinitionStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AlertManagerDefinitionStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [AlertManagerDefinitionStatusCode]
toJSONKey :: ToJSONKeyFunction AlertManagerDefinitionStatusCode
$ctoJSONKey :: ToJSONKeyFunction AlertManagerDefinitionStatusCode
Core.ToJSONKey,
[Node] -> Either String AlertManagerDefinitionStatusCode
([Node] -> Either String AlertManagerDefinitionStatusCode)
-> FromXML AlertManagerDefinitionStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AlertManagerDefinitionStatusCode
$cparseXML :: [Node] -> Either String AlertManagerDefinitionStatusCode
Core.FromXML,
AlertManagerDefinitionStatusCode -> XML
(AlertManagerDefinitionStatusCode -> XML)
-> ToXML AlertManagerDefinitionStatusCode
forall a. (a -> XML) -> ToXML a
toXML :: AlertManagerDefinitionStatusCode -> XML
$ctoXML :: AlertManagerDefinitionStatusCode -> XML
Core.ToXML
)
pattern AlertManagerDefinitionStatusCode_ACTIVE :: AlertManagerDefinitionStatusCode
pattern $bAlertManagerDefinitionStatusCode_ACTIVE :: AlertManagerDefinitionStatusCode
$mAlertManagerDefinitionStatusCode_ACTIVE :: forall r.
AlertManagerDefinitionStatusCode
-> (Void# -> r) -> (Void# -> r) -> r
AlertManagerDefinitionStatusCode_ACTIVE = AlertManagerDefinitionStatusCode' "ACTIVE"
pattern AlertManagerDefinitionStatusCode_CREATING :: AlertManagerDefinitionStatusCode
pattern $bAlertManagerDefinitionStatusCode_CREATING :: AlertManagerDefinitionStatusCode
$mAlertManagerDefinitionStatusCode_CREATING :: forall r.
AlertManagerDefinitionStatusCode
-> (Void# -> r) -> (Void# -> r) -> r
AlertManagerDefinitionStatusCode_CREATING = AlertManagerDefinitionStatusCode' "CREATING"
pattern AlertManagerDefinitionStatusCode_CREATION_FAILED :: AlertManagerDefinitionStatusCode
pattern $bAlertManagerDefinitionStatusCode_CREATION_FAILED :: AlertManagerDefinitionStatusCode
$mAlertManagerDefinitionStatusCode_CREATION_FAILED :: forall r.
AlertManagerDefinitionStatusCode
-> (Void# -> r) -> (Void# -> r) -> r
AlertManagerDefinitionStatusCode_CREATION_FAILED = AlertManagerDefinitionStatusCode' "CREATION_FAILED"
pattern AlertManagerDefinitionStatusCode_DELETING :: AlertManagerDefinitionStatusCode
pattern $bAlertManagerDefinitionStatusCode_DELETING :: AlertManagerDefinitionStatusCode
$mAlertManagerDefinitionStatusCode_DELETING :: forall r.
AlertManagerDefinitionStatusCode
-> (Void# -> r) -> (Void# -> r) -> r
AlertManagerDefinitionStatusCode_DELETING = AlertManagerDefinitionStatusCode' "DELETING"
pattern AlertManagerDefinitionStatusCode_UPDATE_FAILED :: AlertManagerDefinitionStatusCode
pattern $bAlertManagerDefinitionStatusCode_UPDATE_FAILED :: AlertManagerDefinitionStatusCode
$mAlertManagerDefinitionStatusCode_UPDATE_FAILED :: forall r.
AlertManagerDefinitionStatusCode
-> (Void# -> r) -> (Void# -> r) -> r
AlertManagerDefinitionStatusCode_UPDATE_FAILED = AlertManagerDefinitionStatusCode' "UPDATE_FAILED"
pattern AlertManagerDefinitionStatusCode_UPDATING :: AlertManagerDefinitionStatusCode
pattern $bAlertManagerDefinitionStatusCode_UPDATING :: AlertManagerDefinitionStatusCode
$mAlertManagerDefinitionStatusCode_UPDATING :: forall r.
AlertManagerDefinitionStatusCode
-> (Void# -> r) -> (Void# -> r) -> r
AlertManagerDefinitionStatusCode_UPDATING = AlertManagerDefinitionStatusCode' "UPDATING"
{-# COMPLETE
AlertManagerDefinitionStatusCode_ACTIVE,
AlertManagerDefinitionStatusCode_CREATING,
AlertManagerDefinitionStatusCode_CREATION_FAILED,
AlertManagerDefinitionStatusCode_DELETING,
AlertManagerDefinitionStatusCode_UPDATE_FAILED,
AlertManagerDefinitionStatusCode_UPDATING,
AlertManagerDefinitionStatusCode'
#-}