{-# 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.GuardDuty.Types.CriterionKey
-- 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.GuardDuty.Types.CriterionKey
  ( CriterionKey
      ( ..,
        CriterionKey_ACCOUNT_ID,
        CriterionKey_EC2_INSTANCE_ARN,
        CriterionKey_GUARDDUTY_FINDING_ID,
        CriterionKey_SCAN_ID,
        CriterionKey_SCAN_START_TIME,
        CriterionKey_SCAN_STATUS
      ),
  )
where

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

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

pattern CriterionKey_ACCOUNT_ID :: CriterionKey
pattern $bCriterionKey_ACCOUNT_ID :: CriterionKey
$mCriterionKey_ACCOUNT_ID :: forall {r}. CriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
CriterionKey_ACCOUNT_ID = CriterionKey' "ACCOUNT_ID"

pattern CriterionKey_EC2_INSTANCE_ARN :: CriterionKey
pattern $bCriterionKey_EC2_INSTANCE_ARN :: CriterionKey
$mCriterionKey_EC2_INSTANCE_ARN :: forall {r}. CriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
CriterionKey_EC2_INSTANCE_ARN = CriterionKey' "EC2_INSTANCE_ARN"

pattern CriterionKey_GUARDDUTY_FINDING_ID :: CriterionKey
pattern $bCriterionKey_GUARDDUTY_FINDING_ID :: CriterionKey
$mCriterionKey_GUARDDUTY_FINDING_ID :: forall {r}. CriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
CriterionKey_GUARDDUTY_FINDING_ID = CriterionKey' "GUARDDUTY_FINDING_ID"

pattern CriterionKey_SCAN_ID :: CriterionKey
pattern $bCriterionKey_SCAN_ID :: CriterionKey
$mCriterionKey_SCAN_ID :: forall {r}. CriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
CriterionKey_SCAN_ID = CriterionKey' "SCAN_ID"

pattern CriterionKey_SCAN_START_TIME :: CriterionKey
pattern $bCriterionKey_SCAN_START_TIME :: CriterionKey
$mCriterionKey_SCAN_START_TIME :: forall {r}. CriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
CriterionKey_SCAN_START_TIME = CriterionKey' "SCAN_START_TIME"

pattern CriterionKey_SCAN_STATUS :: CriterionKey
pattern $bCriterionKey_SCAN_STATUS :: CriterionKey
$mCriterionKey_SCAN_STATUS :: forall {r}. CriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
CriterionKey_SCAN_STATUS = CriterionKey' "SCAN_STATUS"

{-# COMPLETE
  CriterionKey_ACCOUNT_ID,
  CriterionKey_EC2_INSTANCE_ARN,
  CriterionKey_GUARDDUTY_FINDING_ID,
  CriterionKey_SCAN_ID,
  CriterionKey_SCAN_START_TIME,
  CriterionKey_SCAN_STATUS,
  CriterionKey'
  #-}