{-# 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.AuditManager.Types.ActionEnum
-- 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.AuditManager.Types.ActionEnum
  ( ActionEnum
      ( ..,
        ActionEnum_ACTIVE,
        ActionEnum_CREATE,
        ActionEnum_DELETE,
        ActionEnum_IMPORT_EVIDENCE,
        ActionEnum_INACTIVE,
        ActionEnum_REVIEWED,
        ActionEnum_UNDER_REVIEW,
        ActionEnum_UPDATE_METADATA
      ),
  )
where

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

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

pattern ActionEnum_ACTIVE :: ActionEnum
pattern $bActionEnum_ACTIVE :: ActionEnum
$mActionEnum_ACTIVE :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_ACTIVE = ActionEnum' "ACTIVE"

pattern ActionEnum_CREATE :: ActionEnum
pattern $bActionEnum_CREATE :: ActionEnum
$mActionEnum_CREATE :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_CREATE = ActionEnum' "CREATE"

pattern ActionEnum_DELETE :: ActionEnum
pattern $bActionEnum_DELETE :: ActionEnum
$mActionEnum_DELETE :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_DELETE = ActionEnum' "DELETE"

pattern ActionEnum_IMPORT_EVIDENCE :: ActionEnum
pattern $bActionEnum_IMPORT_EVIDENCE :: ActionEnum
$mActionEnum_IMPORT_EVIDENCE :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_IMPORT_EVIDENCE = ActionEnum' "IMPORT_EVIDENCE"

pattern ActionEnum_INACTIVE :: ActionEnum
pattern $bActionEnum_INACTIVE :: ActionEnum
$mActionEnum_INACTIVE :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_INACTIVE = ActionEnum' "INACTIVE"

pattern ActionEnum_REVIEWED :: ActionEnum
pattern $bActionEnum_REVIEWED :: ActionEnum
$mActionEnum_REVIEWED :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_REVIEWED = ActionEnum' "REVIEWED"

pattern ActionEnum_UNDER_REVIEW :: ActionEnum
pattern $bActionEnum_UNDER_REVIEW :: ActionEnum
$mActionEnum_UNDER_REVIEW :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_UNDER_REVIEW = ActionEnum' "UNDER_REVIEW"

pattern ActionEnum_UPDATE_METADATA :: ActionEnum
pattern $bActionEnum_UPDATE_METADATA :: ActionEnum
$mActionEnum_UPDATE_METADATA :: forall r. ActionEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionEnum_UPDATE_METADATA = ActionEnum' "UPDATE_METADATA"

{-# COMPLETE
  ActionEnum_ACTIVE,
  ActionEnum_CREATE,
  ActionEnum_DELETE,
  ActionEnum_IMPORT_EVIDENCE,
  ActionEnum_INACTIVE,
  ActionEnum_REVIEWED,
  ActionEnum_UNDER_REVIEW,
  ActionEnum_UPDATE_METADATA,
  ActionEnum'
  #-}