{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AuditManager.Types.ControlSetStatus
( ControlSetStatus
( ..,
ControlSetStatus_ACTIVE,
ControlSetStatus_REVIEWED,
ControlSetStatus_UNDER_REVIEW
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ControlSetStatus = ControlSetStatus'
{ ControlSetStatus -> Text
fromControlSetStatus ::
Core.Text
}
deriving stock
( Int -> ControlSetStatus -> ShowS
[ControlSetStatus] -> ShowS
ControlSetStatus -> String
(Int -> ControlSetStatus -> ShowS)
-> (ControlSetStatus -> String)
-> ([ControlSetStatus] -> ShowS)
-> Show ControlSetStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ControlSetStatus] -> ShowS
$cshowList :: [ControlSetStatus] -> ShowS
show :: ControlSetStatus -> String
$cshow :: ControlSetStatus -> String
showsPrec :: Int -> ControlSetStatus -> ShowS
$cshowsPrec :: Int -> ControlSetStatus -> ShowS
Prelude.Show,
ReadPrec [ControlSetStatus]
ReadPrec ControlSetStatus
Int -> ReadS ControlSetStatus
ReadS [ControlSetStatus]
(Int -> ReadS ControlSetStatus)
-> ReadS [ControlSetStatus]
-> ReadPrec ControlSetStatus
-> ReadPrec [ControlSetStatus]
-> Read ControlSetStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ControlSetStatus]
$creadListPrec :: ReadPrec [ControlSetStatus]
readPrec :: ReadPrec ControlSetStatus
$creadPrec :: ReadPrec ControlSetStatus
readList :: ReadS [ControlSetStatus]
$creadList :: ReadS [ControlSetStatus]
readsPrec :: Int -> ReadS ControlSetStatus
$creadsPrec :: Int -> ReadS ControlSetStatus
Prelude.Read,
ControlSetStatus -> ControlSetStatus -> Bool
(ControlSetStatus -> ControlSetStatus -> Bool)
-> (ControlSetStatus -> ControlSetStatus -> Bool)
-> Eq ControlSetStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ControlSetStatus -> ControlSetStatus -> Bool
$c/= :: ControlSetStatus -> ControlSetStatus -> Bool
== :: ControlSetStatus -> ControlSetStatus -> Bool
$c== :: ControlSetStatus -> ControlSetStatus -> Bool
Prelude.Eq,
Eq ControlSetStatus
Eq ControlSetStatus
-> (ControlSetStatus -> ControlSetStatus -> Ordering)
-> (ControlSetStatus -> ControlSetStatus -> Bool)
-> (ControlSetStatus -> ControlSetStatus -> Bool)
-> (ControlSetStatus -> ControlSetStatus -> Bool)
-> (ControlSetStatus -> ControlSetStatus -> Bool)
-> (ControlSetStatus -> ControlSetStatus -> ControlSetStatus)
-> (ControlSetStatus -> ControlSetStatus -> ControlSetStatus)
-> Ord ControlSetStatus
ControlSetStatus -> ControlSetStatus -> Bool
ControlSetStatus -> ControlSetStatus -> Ordering
ControlSetStatus -> ControlSetStatus -> ControlSetStatus
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 :: ControlSetStatus -> ControlSetStatus -> ControlSetStatus
$cmin :: ControlSetStatus -> ControlSetStatus -> ControlSetStatus
max :: ControlSetStatus -> ControlSetStatus -> ControlSetStatus
$cmax :: ControlSetStatus -> ControlSetStatus -> ControlSetStatus
>= :: ControlSetStatus -> ControlSetStatus -> Bool
$c>= :: ControlSetStatus -> ControlSetStatus -> Bool
> :: ControlSetStatus -> ControlSetStatus -> Bool
$c> :: ControlSetStatus -> ControlSetStatus -> Bool
<= :: ControlSetStatus -> ControlSetStatus -> Bool
$c<= :: ControlSetStatus -> ControlSetStatus -> Bool
< :: ControlSetStatus -> ControlSetStatus -> Bool
$c< :: ControlSetStatus -> ControlSetStatus -> Bool
compare :: ControlSetStatus -> ControlSetStatus -> Ordering
$ccompare :: ControlSetStatus -> ControlSetStatus -> Ordering
$cp1Ord :: Eq ControlSetStatus
Prelude.Ord,
(forall x. ControlSetStatus -> Rep ControlSetStatus x)
-> (forall x. Rep ControlSetStatus x -> ControlSetStatus)
-> Generic ControlSetStatus
forall x. Rep ControlSetStatus x -> ControlSetStatus
forall x. ControlSetStatus -> Rep ControlSetStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ControlSetStatus x -> ControlSetStatus
$cfrom :: forall x. ControlSetStatus -> Rep ControlSetStatus x
Prelude.Generic
)
deriving newtype
( Int -> ControlSetStatus -> Int
ControlSetStatus -> Int
(Int -> ControlSetStatus -> Int)
-> (ControlSetStatus -> Int) -> Hashable ControlSetStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ControlSetStatus -> Int
$chash :: ControlSetStatus -> Int
hashWithSalt :: Int -> ControlSetStatus -> Int
$chashWithSalt :: Int -> ControlSetStatus -> Int
Prelude.Hashable,
ControlSetStatus -> ()
(ControlSetStatus -> ()) -> NFData ControlSetStatus
forall a. (a -> ()) -> NFData a
rnf :: ControlSetStatus -> ()
$crnf :: ControlSetStatus -> ()
Prelude.NFData,
Text -> Either String ControlSetStatus
(Text -> Either String ControlSetStatus)
-> FromText ControlSetStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ControlSetStatus
$cfromText :: Text -> Either String ControlSetStatus
Core.FromText,
ControlSetStatus -> Text
(ControlSetStatus -> Text) -> ToText ControlSetStatus
forall a. (a -> Text) -> ToText a
toText :: ControlSetStatus -> Text
$ctoText :: ControlSetStatus -> Text
Core.ToText,
ControlSetStatus -> ByteString
(ControlSetStatus -> ByteString) -> ToByteString ControlSetStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ControlSetStatus -> ByteString
$ctoBS :: ControlSetStatus -> ByteString
Core.ToByteString,
ControlSetStatus -> ByteStringBuilder
(ControlSetStatus -> ByteStringBuilder) -> ToLog ControlSetStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ControlSetStatus -> ByteStringBuilder
$cbuild :: ControlSetStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ControlSetStatus -> [Header]
(HeaderName -> ControlSetStatus -> [Header])
-> ToHeader ControlSetStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ControlSetStatus -> [Header]
$ctoHeader :: HeaderName -> ControlSetStatus -> [Header]
Core.ToHeader,
ControlSetStatus -> QueryString
(ControlSetStatus -> QueryString) -> ToQuery ControlSetStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ControlSetStatus -> QueryString
$ctoQuery :: ControlSetStatus -> QueryString
Core.ToQuery,
Value -> Parser [ControlSetStatus]
Value -> Parser ControlSetStatus
(Value -> Parser ControlSetStatus)
-> (Value -> Parser [ControlSetStatus])
-> FromJSON ControlSetStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ControlSetStatus]
$cparseJSONList :: Value -> Parser [ControlSetStatus]
parseJSON :: Value -> Parser ControlSetStatus
$cparseJSON :: Value -> Parser ControlSetStatus
Core.FromJSON,
FromJSONKeyFunction [ControlSetStatus]
FromJSONKeyFunction ControlSetStatus
FromJSONKeyFunction ControlSetStatus
-> FromJSONKeyFunction [ControlSetStatus]
-> FromJSONKey ControlSetStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ControlSetStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ControlSetStatus]
fromJSONKey :: FromJSONKeyFunction ControlSetStatus
$cfromJSONKey :: FromJSONKeyFunction ControlSetStatus
Core.FromJSONKey,
[ControlSetStatus] -> Encoding
[ControlSetStatus] -> Value
ControlSetStatus -> Encoding
ControlSetStatus -> Value
(ControlSetStatus -> Value)
-> (ControlSetStatus -> Encoding)
-> ([ControlSetStatus] -> Value)
-> ([ControlSetStatus] -> Encoding)
-> ToJSON ControlSetStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ControlSetStatus] -> Encoding
$ctoEncodingList :: [ControlSetStatus] -> Encoding
toJSONList :: [ControlSetStatus] -> Value
$ctoJSONList :: [ControlSetStatus] -> Value
toEncoding :: ControlSetStatus -> Encoding
$ctoEncoding :: ControlSetStatus -> Encoding
toJSON :: ControlSetStatus -> Value
$ctoJSON :: ControlSetStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ControlSetStatus]
ToJSONKeyFunction ControlSetStatus
ToJSONKeyFunction ControlSetStatus
-> ToJSONKeyFunction [ControlSetStatus]
-> ToJSONKey ControlSetStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ControlSetStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ControlSetStatus]
toJSONKey :: ToJSONKeyFunction ControlSetStatus
$ctoJSONKey :: ToJSONKeyFunction ControlSetStatus
Core.ToJSONKey,
[Node] -> Either String ControlSetStatus
([Node] -> Either String ControlSetStatus)
-> FromXML ControlSetStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ControlSetStatus
$cparseXML :: [Node] -> Either String ControlSetStatus
Core.FromXML,
ControlSetStatus -> XML
(ControlSetStatus -> XML) -> ToXML ControlSetStatus
forall a. (a -> XML) -> ToXML a
toXML :: ControlSetStatus -> XML
$ctoXML :: ControlSetStatus -> XML
Core.ToXML
)
pattern ControlSetStatus_ACTIVE :: ControlSetStatus
pattern $bControlSetStatus_ACTIVE :: ControlSetStatus
$mControlSetStatus_ACTIVE :: forall r. ControlSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ControlSetStatus_ACTIVE = ControlSetStatus' "ACTIVE"
pattern ControlSetStatus_REVIEWED :: ControlSetStatus
pattern $bControlSetStatus_REVIEWED :: ControlSetStatus
$mControlSetStatus_REVIEWED :: forall r. ControlSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ControlSetStatus_REVIEWED = ControlSetStatus' "REVIEWED"
pattern ControlSetStatus_UNDER_REVIEW :: ControlSetStatus
pattern $bControlSetStatus_UNDER_REVIEW :: ControlSetStatus
$mControlSetStatus_UNDER_REVIEW :: forall r. ControlSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ControlSetStatus_UNDER_REVIEW = ControlSetStatus' "UNDER_REVIEW"
{-# COMPLETE
ControlSetStatus_ACTIVE,
ControlSetStatus_REVIEWED,
ControlSetStatus_UNDER_REVIEW,
ControlSetStatus'
#-}