{-# 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.MacieV2.Types.DataIdentifierType
-- 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.MacieV2.Types.DataIdentifierType
  ( DataIdentifierType
      ( ..,
        DataIdentifierType_CUSTOM,
        DataIdentifierType_MANAGED
      ),
  )
where

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

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

pattern DataIdentifierType_CUSTOM :: DataIdentifierType
pattern $bDataIdentifierType_CUSTOM :: DataIdentifierType
$mDataIdentifierType_CUSTOM :: forall {r}. DataIdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
DataIdentifierType_CUSTOM = DataIdentifierType' "CUSTOM"

pattern DataIdentifierType_MANAGED :: DataIdentifierType
pattern $bDataIdentifierType_MANAGED :: DataIdentifierType
$mDataIdentifierType_MANAGED :: forall {r}. DataIdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
DataIdentifierType_MANAGED = DataIdentifierType' "MANAGED"

{-# COMPLETE
  DataIdentifierType_CUSTOM,
  DataIdentifierType_MANAGED,
  DataIdentifierType'
  #-}