{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype PatchComplianceLevel = PatchComplianceLevel'
{ PatchComplianceLevel -> Text
fromPatchComplianceLevel ::
Data.Text
}
deriving stock
( Int -> PatchComplianceLevel -> ShowS
[PatchComplianceLevel] -> ShowS
PatchComplianceLevel -> String
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]
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
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
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
Prelude.Ord,
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
( Eq PatchComplianceLevel
Int -> PatchComplianceLevel -> Int
PatchComplianceLevel -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: PatchComplianceLevel -> ()
$crnf :: PatchComplianceLevel -> ()
Prelude.NFData,
Text -> Either String PatchComplianceLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PatchComplianceLevel
$cfromText :: Text -> Either String PatchComplianceLevel
Data.FromText,
PatchComplianceLevel -> Text
forall a. (a -> Text) -> ToText a
toText :: PatchComplianceLevel -> Text
$ctoText :: PatchComplianceLevel -> Text
Data.ToText,
PatchComplianceLevel -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PatchComplianceLevel -> ByteString
$ctoBS :: PatchComplianceLevel -> ByteString
Data.ToByteString,
PatchComplianceLevel -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PatchComplianceLevel -> ByteStringBuilder
$cbuild :: PatchComplianceLevel -> ByteStringBuilder
Data.ToLog,
HeaderName -> PatchComplianceLevel -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PatchComplianceLevel -> [Header]
$ctoHeader :: HeaderName -> PatchComplianceLevel -> [Header]
Data.ToHeader,
PatchComplianceLevel -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PatchComplianceLevel -> QueryString
$ctoQuery :: PatchComplianceLevel -> QueryString
Data.ToQuery,
Value -> Parser [PatchComplianceLevel]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [PatchComplianceLevel]
FromJSONKeyFunction PatchComplianceLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PatchComplianceLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [PatchComplianceLevel]
fromJSONKey :: FromJSONKeyFunction PatchComplianceLevel
$cfromJSONKey :: FromJSONKeyFunction PatchComplianceLevel
Data.FromJSONKey,
[PatchComplianceLevel] -> Encoding
[PatchComplianceLevel] -> Value
PatchComplianceLevel -> Encoding
PatchComplianceLevel -> Value
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
Data.ToJSON,
ToJSONKeyFunction [PatchComplianceLevel]
ToJSONKeyFunction PatchComplianceLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PatchComplianceLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [PatchComplianceLevel]
toJSONKey :: ToJSONKeyFunction PatchComplianceLevel
$ctoJSONKey :: ToJSONKeyFunction PatchComplianceLevel
Data.ToJSONKey,
[Node] -> Either String PatchComplianceLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PatchComplianceLevel
$cparseXML :: [Node] -> Either String PatchComplianceLevel
Data.FromXML,
PatchComplianceLevel -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PatchComplianceLevel -> XML
$ctoXML :: PatchComplianceLevel -> XML
Data.ToXML
)
pattern PatchComplianceLevel_CRITICAL :: PatchComplianceLevel
pattern $bPatchComplianceLevel_CRITICAL :: PatchComplianceLevel
$mPatchComplianceLevel_CRITICAL :: forall {r}.
PatchComplianceLevel -> ((# #) -> r) -> ((# #) -> r) -> r
PatchComplianceLevel_CRITICAL = PatchComplianceLevel' "CRITICAL"
pattern PatchComplianceLevel_HIGH :: PatchComplianceLevel
pattern $bPatchComplianceLevel_HIGH :: PatchComplianceLevel
$mPatchComplianceLevel_HIGH :: forall {r}.
PatchComplianceLevel -> ((# #) -> r) -> ((# #) -> r) -> r
PatchComplianceLevel_HIGH = PatchComplianceLevel' "HIGH"
pattern PatchComplianceLevel_INFORMATIONAL :: PatchComplianceLevel
pattern $bPatchComplianceLevel_INFORMATIONAL :: PatchComplianceLevel
$mPatchComplianceLevel_INFORMATIONAL :: forall {r}.
PatchComplianceLevel -> ((# #) -> r) -> ((# #) -> r) -> r
PatchComplianceLevel_INFORMATIONAL = PatchComplianceLevel' "INFORMATIONAL"
pattern PatchComplianceLevel_LOW :: PatchComplianceLevel
pattern $bPatchComplianceLevel_LOW :: PatchComplianceLevel
$mPatchComplianceLevel_LOW :: forall {r}.
PatchComplianceLevel -> ((# #) -> r) -> ((# #) -> r) -> r
PatchComplianceLevel_LOW = PatchComplianceLevel' "LOW"
pattern PatchComplianceLevel_MEDIUM :: PatchComplianceLevel
pattern $bPatchComplianceLevel_MEDIUM :: PatchComplianceLevel
$mPatchComplianceLevel_MEDIUM :: forall {r}.
PatchComplianceLevel -> ((# #) -> r) -> ((# #) -> r) -> r
PatchComplianceLevel_MEDIUM = PatchComplianceLevel' "MEDIUM"
pattern PatchComplianceLevel_UNSPECIFIED :: PatchComplianceLevel
pattern $bPatchComplianceLevel_UNSPECIFIED :: PatchComplianceLevel
$mPatchComplianceLevel_UNSPECIFIED :: forall {r}.
PatchComplianceLevel -> ((# #) -> r) -> ((# #) -> r) -> r
PatchComplianceLevel_UNSPECIFIED = PatchComplianceLevel' "UNSPECIFIED"
{-# COMPLETE
PatchComplianceLevel_CRITICAL,
PatchComplianceLevel_HIGH,
PatchComplianceLevel_INFORMATIONAL,
PatchComplianceLevel_LOW,
PatchComplianceLevel_MEDIUM,
PatchComplianceLevel_UNSPECIFIED,
PatchComplianceLevel'
#-}