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