{-# 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-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.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.Prelude as Prelude

newtype ComplianceSeverity = ComplianceSeverity'
  { ComplianceSeverity -> Text
fromComplianceSeverity ::
      Core.Text
  }
  deriving stock
    ( Int -> ComplianceSeverity -> ShowS
[ComplianceSeverity] -> ShowS
ComplianceSeverity -> String
(Int -> ComplianceSeverity -> ShowS)
-> (ComplianceSeverity -> String)
-> ([ComplianceSeverity] -> ShowS)
-> Show ComplianceSeverity
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]
(Int -> ReadS ComplianceSeverity)
-> ReadS [ComplianceSeverity]
-> ReadPrec ComplianceSeverity
-> ReadPrec [ComplianceSeverity]
-> Read 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
(ComplianceSeverity -> ComplianceSeverity -> Bool)
-> (ComplianceSeverity -> ComplianceSeverity -> Bool)
-> Eq ComplianceSeverity
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
Eq ComplianceSeverity
-> (ComplianceSeverity -> ComplianceSeverity -> Ordering)
-> (ComplianceSeverity -> ComplianceSeverity -> Bool)
-> (ComplianceSeverity -> ComplianceSeverity -> Bool)
-> (ComplianceSeverity -> ComplianceSeverity -> Bool)
-> (ComplianceSeverity -> ComplianceSeverity -> Bool)
-> (ComplianceSeverity -> ComplianceSeverity -> ComplianceSeverity)
-> (ComplianceSeverity -> ComplianceSeverity -> ComplianceSeverity)
-> Ord 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
$cp1Ord :: Eq ComplianceSeverity
Prelude.Ord,
      (forall x. ComplianceSeverity -> Rep ComplianceSeverity x)
-> (forall x. Rep ComplianceSeverity x -> ComplianceSeverity)
-> Generic ComplianceSeverity
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
    ( Int -> ComplianceSeverity -> Int
ComplianceSeverity -> Int
(Int -> ComplianceSeverity -> Int)
-> (ComplianceSeverity -> Int) -> Hashable ComplianceSeverity
forall 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 -> ()
(ComplianceSeverity -> ()) -> NFData ComplianceSeverity
forall a. (a -> ()) -> NFData a
rnf :: ComplianceSeverity -> ()
$crnf :: ComplianceSeverity -> ()
Prelude.NFData,
      Text -> Either String ComplianceSeverity
(Text -> Either String ComplianceSeverity)
-> FromText ComplianceSeverity
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ComplianceSeverity
$cfromText :: Text -> Either String ComplianceSeverity
Core.FromText,
      ComplianceSeverity -> Text
(ComplianceSeverity -> Text) -> ToText ComplianceSeverity
forall a. (a -> Text) -> ToText a
toText :: ComplianceSeverity -> Text
$ctoText :: ComplianceSeverity -> Text
Core.ToText,
      ComplianceSeverity -> ByteString
(ComplianceSeverity -> ByteString)
-> ToByteString ComplianceSeverity
forall a. (a -> ByteString) -> ToByteString a
toBS :: ComplianceSeverity -> ByteString
$ctoBS :: ComplianceSeverity -> ByteString
Core.ToByteString,
      ComplianceSeverity -> ByteStringBuilder
(ComplianceSeverity -> ByteStringBuilder)
-> ToLog ComplianceSeverity
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ComplianceSeverity -> ByteStringBuilder
$cbuild :: ComplianceSeverity -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ComplianceSeverity -> [Header]
(HeaderName -> ComplianceSeverity -> [Header])
-> ToHeader ComplianceSeverity
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ComplianceSeverity -> [Header]
$ctoHeader :: HeaderName -> ComplianceSeverity -> [Header]
Core.ToHeader,
      ComplianceSeverity -> QueryString
(ComplianceSeverity -> QueryString) -> ToQuery ComplianceSeverity
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ComplianceSeverity -> QueryString
$ctoQuery :: ComplianceSeverity -> QueryString
Core.ToQuery,
      Value -> Parser [ComplianceSeverity]
Value -> Parser ComplianceSeverity
(Value -> Parser ComplianceSeverity)
-> (Value -> Parser [ComplianceSeverity])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ComplianceSeverity]
FromJSONKeyFunction ComplianceSeverity
FromJSONKeyFunction ComplianceSeverity
-> FromJSONKeyFunction [ComplianceSeverity]
-> FromJSONKey ComplianceSeverity
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ComplianceSeverity]
$cfromJSONKeyList :: FromJSONKeyFunction [ComplianceSeverity]
fromJSONKey :: FromJSONKeyFunction ComplianceSeverity
$cfromJSONKey :: FromJSONKeyFunction ComplianceSeverity
Core.FromJSONKey,
      [ComplianceSeverity] -> Encoding
[ComplianceSeverity] -> Value
ComplianceSeverity -> Encoding
ComplianceSeverity -> Value
(ComplianceSeverity -> Value)
-> (ComplianceSeverity -> Encoding)
-> ([ComplianceSeverity] -> Value)
-> ([ComplianceSeverity] -> Encoding)
-> ToJSON ComplianceSeverity
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
Core.ToJSON,
      ToJSONKeyFunction [ComplianceSeverity]
ToJSONKeyFunction ComplianceSeverity
ToJSONKeyFunction ComplianceSeverity
-> ToJSONKeyFunction [ComplianceSeverity]
-> ToJSONKey ComplianceSeverity
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ComplianceSeverity]
$ctoJSONKeyList :: ToJSONKeyFunction [ComplianceSeverity]
toJSONKey :: ToJSONKeyFunction ComplianceSeverity
$ctoJSONKey :: ToJSONKeyFunction ComplianceSeverity
Core.ToJSONKey,
      [Node] -> Either String ComplianceSeverity
([Node] -> Either String ComplianceSeverity)
-> FromXML ComplianceSeverity
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ComplianceSeverity
$cparseXML :: [Node] -> Either String ComplianceSeverity
Core.FromXML,
      ComplianceSeverity -> XML
(ComplianceSeverity -> XML) -> ToXML ComplianceSeverity
forall a. (a -> XML) -> ToXML a
toXML :: ComplianceSeverity -> XML
$ctoXML :: ComplianceSeverity -> XML
Core.ToXML
    )

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

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

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

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

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

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

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