{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MacieV2.Types.FindingType
( FindingType
( ..,
FindingType_Policy_IAMUser_S3BlockPublicAccessDisabled,
FindingType_Policy_IAMUser_S3BucketEncryptionDisabled,
FindingType_Policy_IAMUser_S3BucketPublic,
FindingType_Policy_IAMUser_S3BucketReplicatedExternally,
FindingType_Policy_IAMUser_S3BucketSharedExternally,
FindingType_SensitiveData_S3Object_Credentials,
FindingType_SensitiveData_S3Object_CustomIdentifier,
FindingType_SensitiveData_S3Object_Financial,
FindingType_SensitiveData_S3Object_Multiple,
FindingType_SensitiveData_S3Object_Personal
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FindingType = FindingType'
{ FindingType -> Text
fromFindingType ::
Core.Text
}
deriving stock
( Int -> FindingType -> ShowS
[FindingType] -> ShowS
FindingType -> String
(Int -> FindingType -> ShowS)
-> (FindingType -> String)
-> ([FindingType] -> ShowS)
-> Show FindingType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FindingType] -> ShowS
$cshowList :: [FindingType] -> ShowS
show :: FindingType -> String
$cshow :: FindingType -> String
showsPrec :: Int -> FindingType -> ShowS
$cshowsPrec :: Int -> FindingType -> ShowS
Prelude.Show,
ReadPrec [FindingType]
ReadPrec FindingType
Int -> ReadS FindingType
ReadS [FindingType]
(Int -> ReadS FindingType)
-> ReadS [FindingType]
-> ReadPrec FindingType
-> ReadPrec [FindingType]
-> Read FindingType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FindingType]
$creadListPrec :: ReadPrec [FindingType]
readPrec :: ReadPrec FindingType
$creadPrec :: ReadPrec FindingType
readList :: ReadS [FindingType]
$creadList :: ReadS [FindingType]
readsPrec :: Int -> ReadS FindingType
$creadsPrec :: Int -> ReadS FindingType
Prelude.Read,
FindingType -> FindingType -> Bool
(FindingType -> FindingType -> Bool)
-> (FindingType -> FindingType -> Bool) -> Eq FindingType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FindingType -> FindingType -> Bool
$c/= :: FindingType -> FindingType -> Bool
== :: FindingType -> FindingType -> Bool
$c== :: FindingType -> FindingType -> Bool
Prelude.Eq,
Eq FindingType
Eq FindingType
-> (FindingType -> FindingType -> Ordering)
-> (FindingType -> FindingType -> Bool)
-> (FindingType -> FindingType -> Bool)
-> (FindingType -> FindingType -> Bool)
-> (FindingType -> FindingType -> Bool)
-> (FindingType -> FindingType -> FindingType)
-> (FindingType -> FindingType -> FindingType)
-> Ord FindingType
FindingType -> FindingType -> Bool
FindingType -> FindingType -> Ordering
FindingType -> FindingType -> FindingType
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 :: FindingType -> FindingType -> FindingType
$cmin :: FindingType -> FindingType -> FindingType
max :: FindingType -> FindingType -> FindingType
$cmax :: FindingType -> FindingType -> FindingType
>= :: FindingType -> FindingType -> Bool
$c>= :: FindingType -> FindingType -> Bool
> :: FindingType -> FindingType -> Bool
$c> :: FindingType -> FindingType -> Bool
<= :: FindingType -> FindingType -> Bool
$c<= :: FindingType -> FindingType -> Bool
< :: FindingType -> FindingType -> Bool
$c< :: FindingType -> FindingType -> Bool
compare :: FindingType -> FindingType -> Ordering
$ccompare :: FindingType -> FindingType -> Ordering
$cp1Ord :: Eq FindingType
Prelude.Ord,
(forall x. FindingType -> Rep FindingType x)
-> (forall x. Rep FindingType x -> FindingType)
-> Generic FindingType
forall x. Rep FindingType x -> FindingType
forall x. FindingType -> Rep FindingType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FindingType x -> FindingType
$cfrom :: forall x. FindingType -> Rep FindingType x
Prelude.Generic
)
deriving newtype
( Int -> FindingType -> Int
FindingType -> Int
(Int -> FindingType -> Int)
-> (FindingType -> Int) -> Hashable FindingType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FindingType -> Int
$chash :: FindingType -> Int
hashWithSalt :: Int -> FindingType -> Int
$chashWithSalt :: Int -> FindingType -> Int
Prelude.Hashable,
FindingType -> ()
(FindingType -> ()) -> NFData FindingType
forall a. (a -> ()) -> NFData a
rnf :: FindingType -> ()
$crnf :: FindingType -> ()
Prelude.NFData,
Text -> Either String FindingType
(Text -> Either String FindingType) -> FromText FindingType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FindingType
$cfromText :: Text -> Either String FindingType
Core.FromText,
FindingType -> Text
(FindingType -> Text) -> ToText FindingType
forall a. (a -> Text) -> ToText a
toText :: FindingType -> Text
$ctoText :: FindingType -> Text
Core.ToText,
FindingType -> ByteString
(FindingType -> ByteString) -> ToByteString FindingType
forall a. (a -> ByteString) -> ToByteString a
toBS :: FindingType -> ByteString
$ctoBS :: FindingType -> ByteString
Core.ToByteString,
FindingType -> ByteStringBuilder
(FindingType -> ByteStringBuilder) -> ToLog FindingType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FindingType -> ByteStringBuilder
$cbuild :: FindingType -> ByteStringBuilder
Core.ToLog,
HeaderName -> FindingType -> [Header]
(HeaderName -> FindingType -> [Header]) -> ToHeader FindingType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FindingType -> [Header]
$ctoHeader :: HeaderName -> FindingType -> [Header]
Core.ToHeader,
FindingType -> QueryString
(FindingType -> QueryString) -> ToQuery FindingType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FindingType -> QueryString
$ctoQuery :: FindingType -> QueryString
Core.ToQuery,
Value -> Parser [FindingType]
Value -> Parser FindingType
(Value -> Parser FindingType)
-> (Value -> Parser [FindingType]) -> FromJSON FindingType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FindingType]
$cparseJSONList :: Value -> Parser [FindingType]
parseJSON :: Value -> Parser FindingType
$cparseJSON :: Value -> Parser FindingType
Core.FromJSON,
FromJSONKeyFunction [FindingType]
FromJSONKeyFunction FindingType
FromJSONKeyFunction FindingType
-> FromJSONKeyFunction [FindingType] -> FromJSONKey FindingType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FindingType]
$cfromJSONKeyList :: FromJSONKeyFunction [FindingType]
fromJSONKey :: FromJSONKeyFunction FindingType
$cfromJSONKey :: FromJSONKeyFunction FindingType
Core.FromJSONKey,
[FindingType] -> Encoding
[FindingType] -> Value
FindingType -> Encoding
FindingType -> Value
(FindingType -> Value)
-> (FindingType -> Encoding)
-> ([FindingType] -> Value)
-> ([FindingType] -> Encoding)
-> ToJSON FindingType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FindingType] -> Encoding
$ctoEncodingList :: [FindingType] -> Encoding
toJSONList :: [FindingType] -> Value
$ctoJSONList :: [FindingType] -> Value
toEncoding :: FindingType -> Encoding
$ctoEncoding :: FindingType -> Encoding
toJSON :: FindingType -> Value
$ctoJSON :: FindingType -> Value
Core.ToJSON,
ToJSONKeyFunction [FindingType]
ToJSONKeyFunction FindingType
ToJSONKeyFunction FindingType
-> ToJSONKeyFunction [FindingType] -> ToJSONKey FindingType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FindingType]
$ctoJSONKeyList :: ToJSONKeyFunction [FindingType]
toJSONKey :: ToJSONKeyFunction FindingType
$ctoJSONKey :: ToJSONKeyFunction FindingType
Core.ToJSONKey,
[Node] -> Either String FindingType
([Node] -> Either String FindingType) -> FromXML FindingType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FindingType
$cparseXML :: [Node] -> Either String FindingType
Core.FromXML,
FindingType -> XML
(FindingType -> XML) -> ToXML FindingType
forall a. (a -> XML) -> ToXML a
toXML :: FindingType -> XML
$ctoXML :: FindingType -> XML
Core.ToXML
)
pattern FindingType_Policy_IAMUser_S3BlockPublicAccessDisabled :: FindingType
pattern $bFindingType_Policy_IAMUser_S3BlockPublicAccessDisabled :: FindingType
$mFindingType_Policy_IAMUser_S3BlockPublicAccessDisabled :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_Policy_IAMUser_S3BlockPublicAccessDisabled = FindingType' "Policy:IAMUser/S3BlockPublicAccessDisabled"
pattern FindingType_Policy_IAMUser_S3BucketEncryptionDisabled :: FindingType
pattern $bFindingType_Policy_IAMUser_S3BucketEncryptionDisabled :: FindingType
$mFindingType_Policy_IAMUser_S3BucketEncryptionDisabled :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_Policy_IAMUser_S3BucketEncryptionDisabled = FindingType' "Policy:IAMUser/S3BucketEncryptionDisabled"
pattern FindingType_Policy_IAMUser_S3BucketPublic :: FindingType
pattern $bFindingType_Policy_IAMUser_S3BucketPublic :: FindingType
$mFindingType_Policy_IAMUser_S3BucketPublic :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_Policy_IAMUser_S3BucketPublic = FindingType' "Policy:IAMUser/S3BucketPublic"
pattern FindingType_Policy_IAMUser_S3BucketReplicatedExternally :: FindingType
pattern $bFindingType_Policy_IAMUser_S3BucketReplicatedExternally :: FindingType
$mFindingType_Policy_IAMUser_S3BucketReplicatedExternally :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_Policy_IAMUser_S3BucketReplicatedExternally = FindingType' "Policy:IAMUser/S3BucketReplicatedExternally"
pattern FindingType_Policy_IAMUser_S3BucketSharedExternally :: FindingType
pattern $bFindingType_Policy_IAMUser_S3BucketSharedExternally :: FindingType
$mFindingType_Policy_IAMUser_S3BucketSharedExternally :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_Policy_IAMUser_S3BucketSharedExternally = FindingType' "Policy:IAMUser/S3BucketSharedExternally"
pattern FindingType_SensitiveData_S3Object_Credentials :: FindingType
pattern $bFindingType_SensitiveData_S3Object_Credentials :: FindingType
$mFindingType_SensitiveData_S3Object_Credentials :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_SensitiveData_S3Object_Credentials = FindingType' "SensitiveData:S3Object/Credentials"
pattern FindingType_SensitiveData_S3Object_CustomIdentifier :: FindingType
pattern $bFindingType_SensitiveData_S3Object_CustomIdentifier :: FindingType
$mFindingType_SensitiveData_S3Object_CustomIdentifier :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_SensitiveData_S3Object_CustomIdentifier = FindingType' "SensitiveData:S3Object/CustomIdentifier"
pattern FindingType_SensitiveData_S3Object_Financial :: FindingType
pattern $bFindingType_SensitiveData_S3Object_Financial :: FindingType
$mFindingType_SensitiveData_S3Object_Financial :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_SensitiveData_S3Object_Financial = FindingType' "SensitiveData:S3Object/Financial"
pattern FindingType_SensitiveData_S3Object_Multiple :: FindingType
pattern $bFindingType_SensitiveData_S3Object_Multiple :: FindingType
$mFindingType_SensitiveData_S3Object_Multiple :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_SensitiveData_S3Object_Multiple = FindingType' "SensitiveData:S3Object/Multiple"
pattern FindingType_SensitiveData_S3Object_Personal :: FindingType
pattern $bFindingType_SensitiveData_S3Object_Personal :: FindingType
$mFindingType_SensitiveData_S3Object_Personal :: forall r. FindingType -> (Void# -> r) -> (Void# -> r) -> r
FindingType_SensitiveData_S3Object_Personal = FindingType' "SensitiveData:S3Object/Personal"
{-# COMPLETE
FindingType_Policy_IAMUser_S3BlockPublicAccessDisabled,
FindingType_Policy_IAMUser_S3BucketEncryptionDisabled,
FindingType_Policy_IAMUser_S3BucketPublic,
FindingType_Policy_IAMUser_S3BucketReplicatedExternally,
FindingType_Policy_IAMUser_S3BucketSharedExternally,
FindingType_SensitiveData_S3Object_Credentials,
FindingType_SensitiveData_S3Object_CustomIdentifier,
FindingType_SensitiveData_S3Object_Financial,
FindingType_SensitiveData_S3Object_Multiple,
FindingType_SensitiveData_S3Object_Personal,
FindingType'
#-}