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