{-# 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.FindingActionType
-- 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.FindingActionType
  ( FindingActionType
      ( ..,
        FindingActionType_AWS_API_CALL
      ),
  )
where

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

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

pattern FindingActionType_AWS_API_CALL :: FindingActionType
pattern $bFindingActionType_AWS_API_CALL :: FindingActionType
$mFindingActionType_AWS_API_CALL :: forall {r}. FindingActionType -> ((# #) -> r) -> ((# #) -> r) -> r
FindingActionType_AWS_API_CALL = FindingActionType' "AWS_API_CALL"

{-# COMPLETE
  FindingActionType_AWS_API_CALL,
  FindingActionType'
  #-}