{-# 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.ECR.Types.FindingSeverity
-- 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.ECR.Types.FindingSeverity
  ( FindingSeverity
      ( ..,
        FindingSeverity_CRITICAL,
        FindingSeverity_HIGH,
        FindingSeverity_INFORMATIONAL,
        FindingSeverity_LOW,
        FindingSeverity_MEDIUM,
        FindingSeverity_UNDEFINED
      ),
  )
where

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

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

pattern FindingSeverity_CRITICAL :: FindingSeverity
pattern $bFindingSeverity_CRITICAL :: FindingSeverity
$mFindingSeverity_CRITICAL :: forall {r}. FindingSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSeverity_CRITICAL = FindingSeverity' "CRITICAL"

pattern FindingSeverity_HIGH :: FindingSeverity
pattern $bFindingSeverity_HIGH :: FindingSeverity
$mFindingSeverity_HIGH :: forall {r}. FindingSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSeverity_HIGH = FindingSeverity' "HIGH"

pattern FindingSeverity_INFORMATIONAL :: FindingSeverity
pattern $bFindingSeverity_INFORMATIONAL :: FindingSeverity
$mFindingSeverity_INFORMATIONAL :: forall {r}. FindingSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSeverity_INFORMATIONAL = FindingSeverity' "INFORMATIONAL"

pattern FindingSeverity_LOW :: FindingSeverity
pattern $bFindingSeverity_LOW :: FindingSeverity
$mFindingSeverity_LOW :: forall {r}. FindingSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSeverity_LOW = FindingSeverity' "LOW"

pattern FindingSeverity_MEDIUM :: FindingSeverity
pattern $bFindingSeverity_MEDIUM :: FindingSeverity
$mFindingSeverity_MEDIUM :: forall {r}. FindingSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSeverity_MEDIUM = FindingSeverity' "MEDIUM"

pattern FindingSeverity_UNDEFINED :: FindingSeverity
pattern $bFindingSeverity_UNDEFINED :: FindingSeverity
$mFindingSeverity_UNDEFINED :: forall {r}. FindingSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSeverity_UNDEFINED = FindingSeverity' "UNDEFINED"

{-# COMPLETE
  FindingSeverity_CRITICAL,
  FindingSeverity_HIGH,
  FindingSeverity_INFORMATIONAL,
  FindingSeverity_LOW,
  FindingSeverity_MEDIUM,
  FindingSeverity_UNDEFINED,
  FindingSeverity'
  #-}