{-# 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.ApplicationInsights.Types.ConfigurationEventStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ApplicationInsights.Types.ConfigurationEventStatus
  ( ConfigurationEventStatus
      ( ..,
        ConfigurationEventStatus_ERROR,
        ConfigurationEventStatus_INFO,
        ConfigurationEventStatus_WARN
      ),
  )
where

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

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

pattern ConfigurationEventStatus_ERROR :: ConfigurationEventStatus
pattern $bConfigurationEventStatus_ERROR :: ConfigurationEventStatus
$mConfigurationEventStatus_ERROR :: forall r.
ConfigurationEventStatus -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventStatus_ERROR = ConfigurationEventStatus' "ERROR"

pattern ConfigurationEventStatus_INFO :: ConfigurationEventStatus
pattern $bConfigurationEventStatus_INFO :: ConfigurationEventStatus
$mConfigurationEventStatus_INFO :: forall r.
ConfigurationEventStatus -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventStatus_INFO = ConfigurationEventStatus' "INFO"

pattern ConfigurationEventStatus_WARN :: ConfigurationEventStatus
pattern $bConfigurationEventStatus_WARN :: ConfigurationEventStatus
$mConfigurationEventStatus_WARN :: forall r.
ConfigurationEventStatus -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventStatus_WARN = ConfigurationEventStatus' "WARN"

{-# COMPLETE
  ConfigurationEventStatus_ERROR,
  ConfigurationEventStatus_INFO,
  ConfigurationEventStatus_WARN,
  ConfigurationEventStatus'
  #-}