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