{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.Types.PiiType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Glue.Types.PiiType
  ( PiiType
      ( ..,
        PiiType_ColumnAudit,
        PiiType_ColumnMasking,
        PiiType_RowAudit,
        PiiType_RowMasking
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype PiiType = PiiType' {PiiType -> Text
fromPiiType :: Data.Text}
  deriving stock
    ( Int -> PiiType -> ShowS
[PiiType] -> ShowS
PiiType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PiiType] -> ShowS
$cshowList :: [PiiType] -> ShowS
show :: PiiType -> String
$cshow :: PiiType -> String
showsPrec :: Int -> PiiType -> ShowS
$cshowsPrec :: Int -> PiiType -> ShowS
Prelude.Show,
      ReadPrec [PiiType]
ReadPrec PiiType
Int -> ReadS PiiType
ReadS [PiiType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PiiType]
$creadListPrec :: ReadPrec [PiiType]
readPrec :: ReadPrec PiiType
$creadPrec :: ReadPrec PiiType
readList :: ReadS [PiiType]
$creadList :: ReadS [PiiType]
readsPrec :: Int -> ReadS PiiType
$creadsPrec :: Int -> ReadS PiiType
Prelude.Read,
      PiiType -> PiiType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PiiType -> PiiType -> Bool
$c/= :: PiiType -> PiiType -> Bool
== :: PiiType -> PiiType -> Bool
$c== :: PiiType -> PiiType -> Bool
Prelude.Eq,
      Eq PiiType
PiiType -> PiiType -> Bool
PiiType -> PiiType -> Ordering
PiiType -> PiiType -> PiiType
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 :: PiiType -> PiiType -> PiiType
$cmin :: PiiType -> PiiType -> PiiType
max :: PiiType -> PiiType -> PiiType
$cmax :: PiiType -> PiiType -> PiiType
>= :: PiiType -> PiiType -> Bool
$c>= :: PiiType -> PiiType -> Bool
> :: PiiType -> PiiType -> Bool
$c> :: PiiType -> PiiType -> Bool
<= :: PiiType -> PiiType -> Bool
$c<= :: PiiType -> PiiType -> Bool
< :: PiiType -> PiiType -> Bool
$c< :: PiiType -> PiiType -> Bool
compare :: PiiType -> PiiType -> Ordering
$ccompare :: PiiType -> PiiType -> Ordering
Prelude.Ord,
      forall x. Rep PiiType x -> PiiType
forall x. PiiType -> Rep PiiType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PiiType x -> PiiType
$cfrom :: forall x. PiiType -> Rep PiiType x
Prelude.Generic
    )
  deriving newtype
    ( Eq PiiType
Int -> PiiType -> Int
PiiType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PiiType -> Int
$chash :: PiiType -> Int
hashWithSalt :: Int -> PiiType -> Int
$chashWithSalt :: Int -> PiiType -> Int
Prelude.Hashable,
      PiiType -> ()
forall a. (a -> ()) -> NFData a
rnf :: PiiType -> ()
$crnf :: PiiType -> ()
Prelude.NFData,
      Text -> Either String PiiType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PiiType
$cfromText :: Text -> Either String PiiType
Data.FromText,
      PiiType -> Text
forall a. (a -> Text) -> ToText a
toText :: PiiType -> Text
$ctoText :: PiiType -> Text
Data.ToText,
      PiiType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PiiType -> ByteString
$ctoBS :: PiiType -> ByteString
Data.ToByteString,
      PiiType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PiiType -> ByteStringBuilder
$cbuild :: PiiType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PiiType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PiiType -> [Header]
$ctoHeader :: HeaderName -> PiiType -> [Header]
Data.ToHeader,
      PiiType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PiiType -> QueryString
$ctoQuery :: PiiType -> QueryString
Data.ToQuery,
      Value -> Parser [PiiType]
Value -> Parser PiiType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PiiType]
$cparseJSONList :: Value -> Parser [PiiType]
parseJSON :: Value -> Parser PiiType
$cparseJSON :: Value -> Parser PiiType
Data.FromJSON,
      FromJSONKeyFunction [PiiType]
FromJSONKeyFunction PiiType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PiiType]
$cfromJSONKeyList :: FromJSONKeyFunction [PiiType]
fromJSONKey :: FromJSONKeyFunction PiiType
$cfromJSONKey :: FromJSONKeyFunction PiiType
Data.FromJSONKey,
      [PiiType] -> Encoding
[PiiType] -> Value
PiiType -> Encoding
PiiType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PiiType] -> Encoding
$ctoEncodingList :: [PiiType] -> Encoding
toJSONList :: [PiiType] -> Value
$ctoJSONList :: [PiiType] -> Value
toEncoding :: PiiType -> Encoding
$ctoEncoding :: PiiType -> Encoding
toJSON :: PiiType -> Value
$ctoJSON :: PiiType -> Value
Data.ToJSON,
      ToJSONKeyFunction [PiiType]
ToJSONKeyFunction PiiType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PiiType]
$ctoJSONKeyList :: ToJSONKeyFunction [PiiType]
toJSONKey :: ToJSONKeyFunction PiiType
$ctoJSONKey :: ToJSONKeyFunction PiiType
Data.ToJSONKey,
      [Node] -> Either String PiiType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PiiType
$cparseXML :: [Node] -> Either String PiiType
Data.FromXML,
      PiiType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PiiType -> XML
$ctoXML :: PiiType -> XML
Data.ToXML
    )

pattern PiiType_ColumnAudit :: PiiType
pattern $bPiiType_ColumnAudit :: PiiType
$mPiiType_ColumnAudit :: forall {r}. PiiType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiType_ColumnAudit = PiiType' "ColumnAudit"

pattern PiiType_ColumnMasking :: PiiType
pattern $bPiiType_ColumnMasking :: PiiType
$mPiiType_ColumnMasking :: forall {r}. PiiType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiType_ColumnMasking = PiiType' "ColumnMasking"

pattern PiiType_RowAudit :: PiiType
pattern $bPiiType_RowAudit :: PiiType
$mPiiType_RowAudit :: forall {r}. PiiType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiType_RowAudit = PiiType' "RowAudit"

pattern PiiType_RowMasking :: PiiType
pattern $bPiiType_RowMasking :: PiiType
$mPiiType_RowMasking :: forall {r}. PiiType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiType_RowMasking = PiiType' "RowMasking"

{-# COMPLETE
  PiiType_ColumnAudit,
  PiiType_ColumnMasking,
  PiiType_RowAudit,
  PiiType_RowMasking,
  PiiType'
  #-}