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