{-# 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.ScopeFilterKey
-- 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.ScopeFilterKey
  ( ScopeFilterKey
      ( ..,
        ScopeFilterKey_OBJECT_EXTENSION,
        ScopeFilterKey_OBJECT_KEY,
        ScopeFilterKey_OBJECT_LAST_MODIFIED_DATE,
        ScopeFilterKey_OBJECT_SIZE
      ),
  )
where

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

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

pattern ScopeFilterKey_OBJECT_EXTENSION :: ScopeFilterKey
pattern $bScopeFilterKey_OBJECT_EXTENSION :: ScopeFilterKey
$mScopeFilterKey_OBJECT_EXTENSION :: forall r. ScopeFilterKey -> (Void# -> r) -> (Void# -> r) -> r
ScopeFilterKey_OBJECT_EXTENSION = ScopeFilterKey' "OBJECT_EXTENSION"

pattern ScopeFilterKey_OBJECT_KEY :: ScopeFilterKey
pattern $bScopeFilterKey_OBJECT_KEY :: ScopeFilterKey
$mScopeFilterKey_OBJECT_KEY :: forall r. ScopeFilterKey -> (Void# -> r) -> (Void# -> r) -> r
ScopeFilterKey_OBJECT_KEY = ScopeFilterKey' "OBJECT_KEY"

pattern ScopeFilterKey_OBJECT_LAST_MODIFIED_DATE :: ScopeFilterKey
pattern $bScopeFilterKey_OBJECT_LAST_MODIFIED_DATE :: ScopeFilterKey
$mScopeFilterKey_OBJECT_LAST_MODIFIED_DATE :: forall r. ScopeFilterKey -> (Void# -> r) -> (Void# -> r) -> r
ScopeFilterKey_OBJECT_LAST_MODIFIED_DATE = ScopeFilterKey' "OBJECT_LAST_MODIFIED_DATE"

pattern ScopeFilterKey_OBJECT_SIZE :: ScopeFilterKey
pattern $bScopeFilterKey_OBJECT_SIZE :: ScopeFilterKey
$mScopeFilterKey_OBJECT_SIZE :: forall r. ScopeFilterKey -> (Void# -> r) -> (Void# -> r) -> r
ScopeFilterKey_OBJECT_SIZE = ScopeFilterKey' "OBJECT_SIZE"

{-# COMPLETE
  ScopeFilterKey_OBJECT_EXTENSION,
  ScopeFilterKey_OBJECT_KEY,
  ScopeFilterKey_OBJECT_LAST_MODIFIED_DATE,
  ScopeFilterKey_OBJECT_SIZE,
  ScopeFilterKey'
  #-}