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