{-# 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.ScanCriterionKey
-- 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.ScanCriterionKey
  ( ScanCriterionKey
      ( ..,
        ScanCriterionKey_EC2_INSTANCE_TAG
      ),
  )
where

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

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

pattern ScanCriterionKey_EC2_INSTANCE_TAG :: ScanCriterionKey
pattern $bScanCriterionKey_EC2_INSTANCE_TAG :: ScanCriterionKey
$mScanCriterionKey_EC2_INSTANCE_TAG :: forall {r}. ScanCriterionKey -> ((# #) -> r) -> ((# #) -> r) -> r
ScanCriterionKey_EC2_INSTANCE_TAG = ScanCriterionKey' "EC2_INSTANCE_TAG"

{-# COMPLETE
  ScanCriterionKey_EC2_INSTANCE_TAG,
  ScanCriterionKey'
  #-}