{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.FMS.Types.PolicyComplianceStatusType
( PolicyComplianceStatusType
( ..,
PolicyComplianceStatusType_COMPLIANT,
PolicyComplianceStatusType_NON_COMPLIANT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PolicyComplianceStatusType = PolicyComplianceStatusType'
{ PolicyComplianceStatusType -> Text
fromPolicyComplianceStatusType ::
Core.Text
}
deriving stock
( Int -> PolicyComplianceStatusType -> ShowS
[PolicyComplianceStatusType] -> ShowS
PolicyComplianceStatusType -> String
(Int -> PolicyComplianceStatusType -> ShowS)
-> (PolicyComplianceStatusType -> String)
-> ([PolicyComplianceStatusType] -> ShowS)
-> Show PolicyComplianceStatusType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PolicyComplianceStatusType] -> ShowS
$cshowList :: [PolicyComplianceStatusType] -> ShowS
show :: PolicyComplianceStatusType -> String
$cshow :: PolicyComplianceStatusType -> String
showsPrec :: Int -> PolicyComplianceStatusType -> ShowS
$cshowsPrec :: Int -> PolicyComplianceStatusType -> ShowS
Prelude.Show,
ReadPrec [PolicyComplianceStatusType]
ReadPrec PolicyComplianceStatusType
Int -> ReadS PolicyComplianceStatusType
ReadS [PolicyComplianceStatusType]
(Int -> ReadS PolicyComplianceStatusType)
-> ReadS [PolicyComplianceStatusType]
-> ReadPrec PolicyComplianceStatusType
-> ReadPrec [PolicyComplianceStatusType]
-> Read PolicyComplianceStatusType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PolicyComplianceStatusType]
$creadListPrec :: ReadPrec [PolicyComplianceStatusType]
readPrec :: ReadPrec PolicyComplianceStatusType
$creadPrec :: ReadPrec PolicyComplianceStatusType
readList :: ReadS [PolicyComplianceStatusType]
$creadList :: ReadS [PolicyComplianceStatusType]
readsPrec :: Int -> ReadS PolicyComplianceStatusType
$creadsPrec :: Int -> ReadS PolicyComplianceStatusType
Prelude.Read,
PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
(PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Bool)
-> Eq PolicyComplianceStatusType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
$c/= :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
== :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
$c== :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
Prelude.Eq,
Eq PolicyComplianceStatusType
Eq PolicyComplianceStatusType
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Ordering)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Bool)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Bool)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Bool)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Bool)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType)
-> (PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType)
-> Ord PolicyComplianceStatusType
PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Ordering
PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType
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 :: PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType
$cmin :: PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType
max :: PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType
$cmax :: PolicyComplianceStatusType
-> PolicyComplianceStatusType -> PolicyComplianceStatusType
>= :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
$c>= :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
> :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
$c> :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
<= :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
$c<= :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
< :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
$c< :: PolicyComplianceStatusType -> PolicyComplianceStatusType -> Bool
compare :: PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Ordering
$ccompare :: PolicyComplianceStatusType
-> PolicyComplianceStatusType -> Ordering
$cp1Ord :: Eq PolicyComplianceStatusType
Prelude.Ord,
(forall x.
PolicyComplianceStatusType -> Rep PolicyComplianceStatusType x)
-> (forall x.
Rep PolicyComplianceStatusType x -> PolicyComplianceStatusType)
-> Generic PolicyComplianceStatusType
forall x.
Rep PolicyComplianceStatusType x -> PolicyComplianceStatusType
forall x.
PolicyComplianceStatusType -> Rep PolicyComplianceStatusType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PolicyComplianceStatusType x -> PolicyComplianceStatusType
$cfrom :: forall x.
PolicyComplianceStatusType -> Rep PolicyComplianceStatusType x
Prelude.Generic
)
deriving newtype
( Int -> PolicyComplianceStatusType -> Int
PolicyComplianceStatusType -> Int
(Int -> PolicyComplianceStatusType -> Int)
-> (PolicyComplianceStatusType -> Int)
-> Hashable PolicyComplianceStatusType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PolicyComplianceStatusType -> Int
$chash :: PolicyComplianceStatusType -> Int
hashWithSalt :: Int -> PolicyComplianceStatusType -> Int
$chashWithSalt :: Int -> PolicyComplianceStatusType -> Int
Prelude.Hashable,
PolicyComplianceStatusType -> ()
(PolicyComplianceStatusType -> ())
-> NFData PolicyComplianceStatusType
forall a. (a -> ()) -> NFData a
rnf :: PolicyComplianceStatusType -> ()
$crnf :: PolicyComplianceStatusType -> ()
Prelude.NFData,
Text -> Either String PolicyComplianceStatusType
(Text -> Either String PolicyComplianceStatusType)
-> FromText PolicyComplianceStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PolicyComplianceStatusType
$cfromText :: Text -> Either String PolicyComplianceStatusType
Core.FromText,
PolicyComplianceStatusType -> Text
(PolicyComplianceStatusType -> Text)
-> ToText PolicyComplianceStatusType
forall a. (a -> Text) -> ToText a
toText :: PolicyComplianceStatusType -> Text
$ctoText :: PolicyComplianceStatusType -> Text
Core.ToText,
PolicyComplianceStatusType -> ByteString
(PolicyComplianceStatusType -> ByteString)
-> ToByteString PolicyComplianceStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: PolicyComplianceStatusType -> ByteString
$ctoBS :: PolicyComplianceStatusType -> ByteString
Core.ToByteString,
PolicyComplianceStatusType -> ByteStringBuilder
(PolicyComplianceStatusType -> ByteStringBuilder)
-> ToLog PolicyComplianceStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PolicyComplianceStatusType -> ByteStringBuilder
$cbuild :: PolicyComplianceStatusType -> ByteStringBuilder
Core.ToLog,
HeaderName -> PolicyComplianceStatusType -> [Header]
(HeaderName -> PolicyComplianceStatusType -> [Header])
-> ToHeader PolicyComplianceStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PolicyComplianceStatusType -> [Header]
$ctoHeader :: HeaderName -> PolicyComplianceStatusType -> [Header]
Core.ToHeader,
PolicyComplianceStatusType -> QueryString
(PolicyComplianceStatusType -> QueryString)
-> ToQuery PolicyComplianceStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PolicyComplianceStatusType -> QueryString
$ctoQuery :: PolicyComplianceStatusType -> QueryString
Core.ToQuery,
Value -> Parser [PolicyComplianceStatusType]
Value -> Parser PolicyComplianceStatusType
(Value -> Parser PolicyComplianceStatusType)
-> (Value -> Parser [PolicyComplianceStatusType])
-> FromJSON PolicyComplianceStatusType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PolicyComplianceStatusType]
$cparseJSONList :: Value -> Parser [PolicyComplianceStatusType]
parseJSON :: Value -> Parser PolicyComplianceStatusType
$cparseJSON :: Value -> Parser PolicyComplianceStatusType
Core.FromJSON,
FromJSONKeyFunction [PolicyComplianceStatusType]
FromJSONKeyFunction PolicyComplianceStatusType
FromJSONKeyFunction PolicyComplianceStatusType
-> FromJSONKeyFunction [PolicyComplianceStatusType]
-> FromJSONKey PolicyComplianceStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PolicyComplianceStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [PolicyComplianceStatusType]
fromJSONKey :: FromJSONKeyFunction PolicyComplianceStatusType
$cfromJSONKey :: FromJSONKeyFunction PolicyComplianceStatusType
Core.FromJSONKey,
[PolicyComplianceStatusType] -> Encoding
[PolicyComplianceStatusType] -> Value
PolicyComplianceStatusType -> Encoding
PolicyComplianceStatusType -> Value
(PolicyComplianceStatusType -> Value)
-> (PolicyComplianceStatusType -> Encoding)
-> ([PolicyComplianceStatusType] -> Value)
-> ([PolicyComplianceStatusType] -> Encoding)
-> ToJSON PolicyComplianceStatusType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PolicyComplianceStatusType] -> Encoding
$ctoEncodingList :: [PolicyComplianceStatusType] -> Encoding
toJSONList :: [PolicyComplianceStatusType] -> Value
$ctoJSONList :: [PolicyComplianceStatusType] -> Value
toEncoding :: PolicyComplianceStatusType -> Encoding
$ctoEncoding :: PolicyComplianceStatusType -> Encoding
toJSON :: PolicyComplianceStatusType -> Value
$ctoJSON :: PolicyComplianceStatusType -> Value
Core.ToJSON,
ToJSONKeyFunction [PolicyComplianceStatusType]
ToJSONKeyFunction PolicyComplianceStatusType
ToJSONKeyFunction PolicyComplianceStatusType
-> ToJSONKeyFunction [PolicyComplianceStatusType]
-> ToJSONKey PolicyComplianceStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PolicyComplianceStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [PolicyComplianceStatusType]
toJSONKey :: ToJSONKeyFunction PolicyComplianceStatusType
$ctoJSONKey :: ToJSONKeyFunction PolicyComplianceStatusType
Core.ToJSONKey,
[Node] -> Either String PolicyComplianceStatusType
([Node] -> Either String PolicyComplianceStatusType)
-> FromXML PolicyComplianceStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PolicyComplianceStatusType
$cparseXML :: [Node] -> Either String PolicyComplianceStatusType
Core.FromXML,
PolicyComplianceStatusType -> XML
(PolicyComplianceStatusType -> XML)
-> ToXML PolicyComplianceStatusType
forall a. (a -> XML) -> ToXML a
toXML :: PolicyComplianceStatusType -> XML
$ctoXML :: PolicyComplianceStatusType -> XML
Core.ToXML
)
pattern PolicyComplianceStatusType_COMPLIANT :: PolicyComplianceStatusType
pattern $bPolicyComplianceStatusType_COMPLIANT :: PolicyComplianceStatusType
$mPolicyComplianceStatusType_COMPLIANT :: forall r.
PolicyComplianceStatusType -> (Void# -> r) -> (Void# -> r) -> r
PolicyComplianceStatusType_COMPLIANT = PolicyComplianceStatusType' "COMPLIANT"
pattern PolicyComplianceStatusType_NON_COMPLIANT :: PolicyComplianceStatusType
pattern $bPolicyComplianceStatusType_NON_COMPLIANT :: PolicyComplianceStatusType
$mPolicyComplianceStatusType_NON_COMPLIANT :: forall r.
PolicyComplianceStatusType -> (Void# -> r) -> (Void# -> r) -> r
PolicyComplianceStatusType_NON_COMPLIANT = PolicyComplianceStatusType' "NON_COMPLIANT"
{-# COMPLETE
PolicyComplianceStatusType_COMPLIANT,
PolicyComplianceStatusType_NON_COMPLIANT,
PolicyComplianceStatusType'
#-}