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

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

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

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

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

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

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