{-# 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.ManagedDataIdentifierSelector
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MacieV2.Types.ManagedDataIdentifierSelector
  ( ManagedDataIdentifierSelector
      ( ..,
        ManagedDataIdentifierSelector_ALL,
        ManagedDataIdentifierSelector_EXCLUDE,
        ManagedDataIdentifierSelector_INCLUDE,
        ManagedDataIdentifierSelector_NONE
      ),
  )
where

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

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

pattern ManagedDataIdentifierSelector_ALL :: ManagedDataIdentifierSelector
pattern $bManagedDataIdentifierSelector_ALL :: ManagedDataIdentifierSelector
$mManagedDataIdentifierSelector_ALL :: forall r.
ManagedDataIdentifierSelector -> (Void# -> r) -> (Void# -> r) -> r
ManagedDataIdentifierSelector_ALL = ManagedDataIdentifierSelector' "ALL"

pattern ManagedDataIdentifierSelector_EXCLUDE :: ManagedDataIdentifierSelector
pattern $bManagedDataIdentifierSelector_EXCLUDE :: ManagedDataIdentifierSelector
$mManagedDataIdentifierSelector_EXCLUDE :: forall r.
ManagedDataIdentifierSelector -> (Void# -> r) -> (Void# -> r) -> r
ManagedDataIdentifierSelector_EXCLUDE = ManagedDataIdentifierSelector' "EXCLUDE"

pattern ManagedDataIdentifierSelector_INCLUDE :: ManagedDataIdentifierSelector
pattern $bManagedDataIdentifierSelector_INCLUDE :: ManagedDataIdentifierSelector
$mManagedDataIdentifierSelector_INCLUDE :: forall r.
ManagedDataIdentifierSelector -> (Void# -> r) -> (Void# -> r) -> r
ManagedDataIdentifierSelector_INCLUDE = ManagedDataIdentifierSelector' "INCLUDE"

pattern ManagedDataIdentifierSelector_NONE :: ManagedDataIdentifierSelector
pattern $bManagedDataIdentifierSelector_NONE :: ManagedDataIdentifierSelector
$mManagedDataIdentifierSelector_NONE :: forall r.
ManagedDataIdentifierSelector -> (Void# -> r) -> (Void# -> r) -> r
ManagedDataIdentifierSelector_NONE = ManagedDataIdentifierSelector' "NONE"

{-# COMPLETE
  ManagedDataIdentifierSelector_ALL,
  ManagedDataIdentifierSelector_EXCLUDE,
  ManagedDataIdentifierSelector_INCLUDE,
  ManagedDataIdentifierSelector_NONE,
  ManagedDataIdentifierSelector'
  #-}