{-# 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.PatchComplianceLevel
-- 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.PatchComplianceLevel
  ( PatchComplianceLevel
      ( ..,
        PatchComplianceLevel_CRITICAL,
        PatchComplianceLevel_HIGH,
        PatchComplianceLevel_INFORMATIONAL,
        PatchComplianceLevel_LOW,
        PatchComplianceLevel_MEDIUM,
        PatchComplianceLevel_UNSPECIFIED
      ),
  )
where

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

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

pattern PatchComplianceLevel_CRITICAL :: PatchComplianceLevel
pattern $bPatchComplianceLevel_CRITICAL :: PatchComplianceLevel
$mPatchComplianceLevel_CRITICAL :: forall r. PatchComplianceLevel -> (Void# -> r) -> (Void# -> r) -> r
PatchComplianceLevel_CRITICAL = PatchComplianceLevel' "CRITICAL"

pattern PatchComplianceLevel_HIGH :: PatchComplianceLevel
pattern $bPatchComplianceLevel_HIGH :: PatchComplianceLevel
$mPatchComplianceLevel_HIGH :: forall r. PatchComplianceLevel -> (Void# -> r) -> (Void# -> r) -> r
PatchComplianceLevel_HIGH = PatchComplianceLevel' "HIGH"

pattern PatchComplianceLevel_INFORMATIONAL :: PatchComplianceLevel
pattern $bPatchComplianceLevel_INFORMATIONAL :: PatchComplianceLevel
$mPatchComplianceLevel_INFORMATIONAL :: forall r. PatchComplianceLevel -> (Void# -> r) -> (Void# -> r) -> r
PatchComplianceLevel_INFORMATIONAL = PatchComplianceLevel' "INFORMATIONAL"

pattern PatchComplianceLevel_LOW :: PatchComplianceLevel
pattern $bPatchComplianceLevel_LOW :: PatchComplianceLevel
$mPatchComplianceLevel_LOW :: forall r. PatchComplianceLevel -> (Void# -> r) -> (Void# -> r) -> r
PatchComplianceLevel_LOW = PatchComplianceLevel' "LOW"

pattern PatchComplianceLevel_MEDIUM :: PatchComplianceLevel
pattern $bPatchComplianceLevel_MEDIUM :: PatchComplianceLevel
$mPatchComplianceLevel_MEDIUM :: forall r. PatchComplianceLevel -> (Void# -> r) -> (Void# -> r) -> r
PatchComplianceLevel_MEDIUM = PatchComplianceLevel' "MEDIUM"

pattern PatchComplianceLevel_UNSPECIFIED :: PatchComplianceLevel
pattern $bPatchComplianceLevel_UNSPECIFIED :: PatchComplianceLevel
$mPatchComplianceLevel_UNSPECIFIED :: forall r. PatchComplianceLevel -> (Void# -> r) -> (Void# -> r) -> r
PatchComplianceLevel_UNSPECIFIED = PatchComplianceLevel' "UNSPECIFIED"

{-# COMPLETE
  PatchComplianceLevel_CRITICAL,
  PatchComplianceLevel_HIGH,
  PatchComplianceLevel_INFORMATIONAL,
  PatchComplianceLevel_LOW,
  PatchComplianceLevel_MEDIUM,
  PatchComplianceLevel_UNSPECIFIED,
  PatchComplianceLevel'
  #-}