{-# 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.ControlStatus
-- 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.AuditManager.Types.ControlStatus
  ( ControlStatus
      ( ..,
        ControlStatus_INACTIVE,
        ControlStatus_REVIEWED,
        ControlStatus_UNDER_REVIEW
      ),
  )
where

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

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

pattern ControlStatus_INACTIVE :: ControlStatus
pattern $bControlStatus_INACTIVE :: ControlStatus
$mControlStatus_INACTIVE :: forall {r}. ControlStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ControlStatus_INACTIVE = ControlStatus' "INACTIVE"

pattern ControlStatus_REVIEWED :: ControlStatus
pattern $bControlStatus_REVIEWED :: ControlStatus
$mControlStatus_REVIEWED :: forall {r}. ControlStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ControlStatus_REVIEWED = ControlStatus' "REVIEWED"

pattern ControlStatus_UNDER_REVIEW :: ControlStatus
pattern $bControlStatus_UNDER_REVIEW :: ControlStatus
$mControlStatus_UNDER_REVIEW :: forall {r}. ControlStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ControlStatus_UNDER_REVIEW = ControlStatus' "UNDER_REVIEW"

{-# COMPLETE
  ControlStatus_INACTIVE,
  ControlStatus_REVIEWED,
  ControlStatus_UNDER_REVIEW,
  ControlStatus'
  #-}