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