{-# 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.AssociationComplianceSeverity
-- 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.AssociationComplianceSeverity
  ( AssociationComplianceSeverity
      ( ..,
        AssociationComplianceSeverity_CRITICAL,
        AssociationComplianceSeverity_HIGH,
        AssociationComplianceSeverity_LOW,
        AssociationComplianceSeverity_MEDIUM,
        AssociationComplianceSeverity_UNSPECIFIED
      ),
  )
where

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

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

pattern AssociationComplianceSeverity_CRITICAL :: AssociationComplianceSeverity
pattern $bAssociationComplianceSeverity_CRITICAL :: AssociationComplianceSeverity
$mAssociationComplianceSeverity_CRITICAL :: forall {r}.
AssociationComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
AssociationComplianceSeverity_CRITICAL = AssociationComplianceSeverity' "CRITICAL"

pattern AssociationComplianceSeverity_HIGH :: AssociationComplianceSeverity
pattern $bAssociationComplianceSeverity_HIGH :: AssociationComplianceSeverity
$mAssociationComplianceSeverity_HIGH :: forall {r}.
AssociationComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
AssociationComplianceSeverity_HIGH = AssociationComplianceSeverity' "HIGH"

pattern AssociationComplianceSeverity_LOW :: AssociationComplianceSeverity
pattern $bAssociationComplianceSeverity_LOW :: AssociationComplianceSeverity
$mAssociationComplianceSeverity_LOW :: forall {r}.
AssociationComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
AssociationComplianceSeverity_LOW = AssociationComplianceSeverity' "LOW"

pattern AssociationComplianceSeverity_MEDIUM :: AssociationComplianceSeverity
pattern $bAssociationComplianceSeverity_MEDIUM :: AssociationComplianceSeverity
$mAssociationComplianceSeverity_MEDIUM :: forall {r}.
AssociationComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
AssociationComplianceSeverity_MEDIUM = AssociationComplianceSeverity' "MEDIUM"

pattern AssociationComplianceSeverity_UNSPECIFIED :: AssociationComplianceSeverity
pattern $bAssociationComplianceSeverity_UNSPECIFIED :: AssociationComplianceSeverity
$mAssociationComplianceSeverity_UNSPECIFIED :: forall {r}.
AssociationComplianceSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
AssociationComplianceSeverity_UNSPECIFIED = AssociationComplianceSeverity' "UNSPECIFIED"

{-# COMPLETE
  AssociationComplianceSeverity_CRITICAL,
  AssociationComplianceSeverity_HIGH,
  AssociationComplianceSeverity_LOW,
  AssociationComplianceSeverity_MEDIUM,
  AssociationComplianceSeverity_UNSPECIFIED,
  AssociationComplianceSeverity'
  #-}