{-# 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.SSM.Types.ComplianceSeverity
-- 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.SSM.Types.ComplianceSeverity
  ( ComplianceSeverity
      ( ..,
        ComplianceSeverity_CRITICAL,
        ComplianceSeverity_HIGH,
        ComplianceSeverity_INFORMATIONAL,
        ComplianceSeverity_LOW,
        ComplianceSeverity_MEDIUM,
        ComplianceSeverity_UNSPECIFIED
      ),
  )
where

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

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

pattern ComplianceSeverity_CRITICAL :: ComplianceSeverity
pattern $bComplianceSeverity_CRITICAL :: ComplianceSeverity
$mComplianceSeverity_CRITICAL :: forall {r}. ComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceSeverity_CRITICAL = ComplianceSeverity' "CRITICAL"

pattern ComplianceSeverity_HIGH :: ComplianceSeverity
pattern $bComplianceSeverity_HIGH :: ComplianceSeverity
$mComplianceSeverity_HIGH :: forall {r}. ComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceSeverity_HIGH = ComplianceSeverity' "HIGH"

pattern ComplianceSeverity_INFORMATIONAL :: ComplianceSeverity
pattern $bComplianceSeverity_INFORMATIONAL :: ComplianceSeverity
$mComplianceSeverity_INFORMATIONAL :: forall {r}. ComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceSeverity_INFORMATIONAL = ComplianceSeverity' "INFORMATIONAL"

pattern ComplianceSeverity_LOW :: ComplianceSeverity
pattern $bComplianceSeverity_LOW :: ComplianceSeverity
$mComplianceSeverity_LOW :: forall {r}. ComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceSeverity_LOW = ComplianceSeverity' "LOW"

pattern ComplianceSeverity_MEDIUM :: ComplianceSeverity
pattern $bComplianceSeverity_MEDIUM :: ComplianceSeverity
$mComplianceSeverity_MEDIUM :: forall {r}. ComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceSeverity_MEDIUM = ComplianceSeverity' "MEDIUM"

pattern ComplianceSeverity_UNSPECIFIED :: ComplianceSeverity
pattern $bComplianceSeverity_UNSPECIFIED :: ComplianceSeverity
$mComplianceSeverity_UNSPECIFIED :: forall {r}. ComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceSeverity_UNSPECIFIED = ComplianceSeverity' "UNSPECIFIED"

{-# COMPLETE
  ComplianceSeverity_CRITICAL,
  ComplianceSeverity_HIGH,
  ComplianceSeverity_INFORMATIONAL,
  ComplianceSeverity_LOW,
  ComplianceSeverity_MEDIUM,
  ComplianceSeverity_UNSPECIFIED,
  ComplianceSeverity'
  #-}