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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> FindingActionType -> ShowS
[FindingActionType] -> ShowS
FindingActionType -> String
(Int -> FindingActionType -> ShowS)
-> (FindingActionType -> String)
-> ([FindingActionType] -> ShowS)
-> Show FindingActionType
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]
(Int -> ReadS FindingActionType)
-> ReadS [FindingActionType]
-> ReadPrec FindingActionType
-> ReadPrec [FindingActionType]
-> Read 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
(FindingActionType -> FindingActionType -> Bool)
-> (FindingActionType -> FindingActionType -> Bool)
-> Eq FindingActionType
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
Eq FindingActionType
-> (FindingActionType -> FindingActionType -> Ordering)
-> (FindingActionType -> FindingActionType -> Bool)
-> (FindingActionType -> FindingActionType -> Bool)
-> (FindingActionType -> FindingActionType -> Bool)
-> (FindingActionType -> FindingActionType -> Bool)
-> (FindingActionType -> FindingActionType -> FindingActionType)
-> (FindingActionType -> FindingActionType -> FindingActionType)
-> Ord 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
$cp1Ord :: Eq FindingActionType
Prelude.Ord,
      (forall x. FindingActionType -> Rep FindingActionType x)
-> (forall x. Rep FindingActionType x -> FindingActionType)
-> Generic FindingActionType
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
    ( Int -> FindingActionType -> Int
FindingActionType -> Int
(Int -> FindingActionType -> Int)
-> (FindingActionType -> Int) -> Hashable FindingActionType
forall 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 -> ()
(FindingActionType -> ()) -> NFData FindingActionType
forall a. (a -> ()) -> NFData a
rnf :: FindingActionType -> ()
$crnf :: FindingActionType -> ()
Prelude.NFData,
      Text -> Either String FindingActionType
(Text -> Either String FindingActionType)
-> FromText FindingActionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FindingActionType
$cfromText :: Text -> Either String FindingActionType
Core.FromText,
      FindingActionType -> Text
(FindingActionType -> Text) -> ToText FindingActionType
forall a. (a -> Text) -> ToText a
toText :: FindingActionType -> Text
$ctoText :: FindingActionType -> Text
Core.ToText,
      FindingActionType -> ByteString
(FindingActionType -> ByteString) -> ToByteString FindingActionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: FindingActionType -> ByteString
$ctoBS :: FindingActionType -> ByteString
Core.ToByteString,
      FindingActionType -> ByteStringBuilder
(FindingActionType -> ByteStringBuilder) -> ToLog FindingActionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FindingActionType -> ByteStringBuilder
$cbuild :: FindingActionType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> FindingActionType -> [Header]
(HeaderName -> FindingActionType -> [Header])
-> ToHeader FindingActionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FindingActionType -> [Header]
$ctoHeader :: HeaderName -> FindingActionType -> [Header]
Core.ToHeader,
      FindingActionType -> QueryString
(FindingActionType -> QueryString) -> ToQuery FindingActionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FindingActionType -> QueryString
$ctoQuery :: FindingActionType -> QueryString
Core.ToQuery,
      Value -> Parser [FindingActionType]
Value -> Parser FindingActionType
(Value -> Parser FindingActionType)
-> (Value -> Parser [FindingActionType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [FindingActionType]
FromJSONKeyFunction FindingActionType
FromJSONKeyFunction FindingActionType
-> FromJSONKeyFunction [FindingActionType]
-> FromJSONKey FindingActionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FindingActionType]
$cfromJSONKeyList :: FromJSONKeyFunction [FindingActionType]
fromJSONKey :: FromJSONKeyFunction FindingActionType
$cfromJSONKey :: FromJSONKeyFunction FindingActionType
Core.FromJSONKey,
      [FindingActionType] -> Encoding
[FindingActionType] -> Value
FindingActionType -> Encoding
FindingActionType -> Value
(FindingActionType -> Value)
-> (FindingActionType -> Encoding)
-> ([FindingActionType] -> Value)
-> ([FindingActionType] -> Encoding)
-> ToJSON FindingActionType
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
Core.ToJSON,
      ToJSONKeyFunction [FindingActionType]
ToJSONKeyFunction FindingActionType
ToJSONKeyFunction FindingActionType
-> ToJSONKeyFunction [FindingActionType]
-> ToJSONKey FindingActionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FindingActionType]
$ctoJSONKeyList :: ToJSONKeyFunction [FindingActionType]
toJSONKey :: ToJSONKeyFunction FindingActionType
$ctoJSONKey :: ToJSONKeyFunction FindingActionType
Core.ToJSONKey,
      [Node] -> Either String FindingActionType
([Node] -> Either String FindingActionType)
-> FromXML FindingActionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FindingActionType
$cparseXML :: [Node] -> Either String FindingActionType
Core.FromXML,
      FindingActionType -> XML
(FindingActionType -> XML) -> ToXML FindingActionType
forall a. (a -> XML) -> ToXML a
toXML :: FindingActionType -> XML
$ctoXML :: FindingActionType -> XML
Core.ToXML
    )

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

{-# COMPLETE
  FindingActionType_AWS_API_CALL,
  FindingActionType'
  #-}