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