{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ElasticBeanstalk.Types.FailureType
( FailureType
( ..,
FailureType_CancellationFailed,
FailureType_InternalFailure,
FailureType_InvalidEnvironmentState,
FailureType_PermissionsError,
FailureType_RollbackFailed,
FailureType_RollbackSuccessful,
FailureType_UpdateCancelled
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FailureType = FailureType'
{ FailureType -> Text
fromFailureType ::
Core.Text
}
deriving stock
( Int -> FailureType -> ShowS
[FailureType] -> ShowS
FailureType -> String
(Int -> FailureType -> ShowS)
-> (FailureType -> String)
-> ([FailureType] -> ShowS)
-> Show FailureType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FailureType] -> ShowS
$cshowList :: [FailureType] -> ShowS
show :: FailureType -> String
$cshow :: FailureType -> String
showsPrec :: Int -> FailureType -> ShowS
$cshowsPrec :: Int -> FailureType -> ShowS
Prelude.Show,
ReadPrec [FailureType]
ReadPrec FailureType
Int -> ReadS FailureType
ReadS [FailureType]
(Int -> ReadS FailureType)
-> ReadS [FailureType]
-> ReadPrec FailureType
-> ReadPrec [FailureType]
-> Read FailureType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FailureType]
$creadListPrec :: ReadPrec [FailureType]
readPrec :: ReadPrec FailureType
$creadPrec :: ReadPrec FailureType
readList :: ReadS [FailureType]
$creadList :: ReadS [FailureType]
readsPrec :: Int -> ReadS FailureType
$creadsPrec :: Int -> ReadS FailureType
Prelude.Read,
FailureType -> FailureType -> Bool
(FailureType -> FailureType -> Bool)
-> (FailureType -> FailureType -> Bool) -> Eq FailureType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FailureType -> FailureType -> Bool
$c/= :: FailureType -> FailureType -> Bool
== :: FailureType -> FailureType -> Bool
$c== :: FailureType -> FailureType -> Bool
Prelude.Eq,
Eq FailureType
Eq FailureType
-> (FailureType -> FailureType -> Ordering)
-> (FailureType -> FailureType -> Bool)
-> (FailureType -> FailureType -> Bool)
-> (FailureType -> FailureType -> Bool)
-> (FailureType -> FailureType -> Bool)
-> (FailureType -> FailureType -> FailureType)
-> (FailureType -> FailureType -> FailureType)
-> Ord FailureType
FailureType -> FailureType -> Bool
FailureType -> FailureType -> Ordering
FailureType -> FailureType -> FailureType
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 :: FailureType -> FailureType -> FailureType
$cmin :: FailureType -> FailureType -> FailureType
max :: FailureType -> FailureType -> FailureType
$cmax :: FailureType -> FailureType -> FailureType
>= :: FailureType -> FailureType -> Bool
$c>= :: FailureType -> FailureType -> Bool
> :: FailureType -> FailureType -> Bool
$c> :: FailureType -> FailureType -> Bool
<= :: FailureType -> FailureType -> Bool
$c<= :: FailureType -> FailureType -> Bool
< :: FailureType -> FailureType -> Bool
$c< :: FailureType -> FailureType -> Bool
compare :: FailureType -> FailureType -> Ordering
$ccompare :: FailureType -> FailureType -> Ordering
$cp1Ord :: Eq FailureType
Prelude.Ord,
(forall x. FailureType -> Rep FailureType x)
-> (forall x. Rep FailureType x -> FailureType)
-> Generic FailureType
forall x. Rep FailureType x -> FailureType
forall x. FailureType -> Rep FailureType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FailureType x -> FailureType
$cfrom :: forall x. FailureType -> Rep FailureType x
Prelude.Generic
)
deriving newtype
( Int -> FailureType -> Int
FailureType -> Int
(Int -> FailureType -> Int)
-> (FailureType -> Int) -> Hashable FailureType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FailureType -> Int
$chash :: FailureType -> Int
hashWithSalt :: Int -> FailureType -> Int
$chashWithSalt :: Int -> FailureType -> Int
Prelude.Hashable,
FailureType -> ()
(FailureType -> ()) -> NFData FailureType
forall a. (a -> ()) -> NFData a
rnf :: FailureType -> ()
$crnf :: FailureType -> ()
Prelude.NFData,
Text -> Either String FailureType
(Text -> Either String FailureType) -> FromText FailureType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FailureType
$cfromText :: Text -> Either String FailureType
Core.FromText,
FailureType -> Text
(FailureType -> Text) -> ToText FailureType
forall a. (a -> Text) -> ToText a
toText :: FailureType -> Text
$ctoText :: FailureType -> Text
Core.ToText,
FailureType -> ByteString
(FailureType -> ByteString) -> ToByteString FailureType
forall a. (a -> ByteString) -> ToByteString a
toBS :: FailureType -> ByteString
$ctoBS :: FailureType -> ByteString
Core.ToByteString,
FailureType -> ByteStringBuilder
(FailureType -> ByteStringBuilder) -> ToLog FailureType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FailureType -> ByteStringBuilder
$cbuild :: FailureType -> ByteStringBuilder
Core.ToLog,
HeaderName -> FailureType -> [Header]
(HeaderName -> FailureType -> [Header]) -> ToHeader FailureType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FailureType -> [Header]
$ctoHeader :: HeaderName -> FailureType -> [Header]
Core.ToHeader,
FailureType -> QueryString
(FailureType -> QueryString) -> ToQuery FailureType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FailureType -> QueryString
$ctoQuery :: FailureType -> QueryString
Core.ToQuery,
Value -> Parser [FailureType]
Value -> Parser FailureType
(Value -> Parser FailureType)
-> (Value -> Parser [FailureType]) -> FromJSON FailureType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FailureType]
$cparseJSONList :: Value -> Parser [FailureType]
parseJSON :: Value -> Parser FailureType
$cparseJSON :: Value -> Parser FailureType
Core.FromJSON,
FromJSONKeyFunction [FailureType]
FromJSONKeyFunction FailureType
FromJSONKeyFunction FailureType
-> FromJSONKeyFunction [FailureType] -> FromJSONKey FailureType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FailureType]
$cfromJSONKeyList :: FromJSONKeyFunction [FailureType]
fromJSONKey :: FromJSONKeyFunction FailureType
$cfromJSONKey :: FromJSONKeyFunction FailureType
Core.FromJSONKey,
[FailureType] -> Encoding
[FailureType] -> Value
FailureType -> Encoding
FailureType -> Value
(FailureType -> Value)
-> (FailureType -> Encoding)
-> ([FailureType] -> Value)
-> ([FailureType] -> Encoding)
-> ToJSON FailureType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FailureType] -> Encoding
$ctoEncodingList :: [FailureType] -> Encoding
toJSONList :: [FailureType] -> Value
$ctoJSONList :: [FailureType] -> Value
toEncoding :: FailureType -> Encoding
$ctoEncoding :: FailureType -> Encoding
toJSON :: FailureType -> Value
$ctoJSON :: FailureType -> Value
Core.ToJSON,
ToJSONKeyFunction [FailureType]
ToJSONKeyFunction FailureType
ToJSONKeyFunction FailureType
-> ToJSONKeyFunction [FailureType] -> ToJSONKey FailureType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FailureType]
$ctoJSONKeyList :: ToJSONKeyFunction [FailureType]
toJSONKey :: ToJSONKeyFunction FailureType
$ctoJSONKey :: ToJSONKeyFunction FailureType
Core.ToJSONKey,
[Node] -> Either String FailureType
([Node] -> Either String FailureType) -> FromXML FailureType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FailureType
$cparseXML :: [Node] -> Either String FailureType
Core.FromXML,
FailureType -> XML
(FailureType -> XML) -> ToXML FailureType
forall a. (a -> XML) -> ToXML a
toXML :: FailureType -> XML
$ctoXML :: FailureType -> XML
Core.ToXML
)
pattern FailureType_CancellationFailed :: FailureType
pattern $bFailureType_CancellationFailed :: FailureType
$mFailureType_CancellationFailed :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_CancellationFailed = FailureType' "CancellationFailed"
pattern FailureType_InternalFailure :: FailureType
pattern $bFailureType_InternalFailure :: FailureType
$mFailureType_InternalFailure :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_InternalFailure = FailureType' "InternalFailure"
pattern FailureType_InvalidEnvironmentState :: FailureType
pattern $bFailureType_InvalidEnvironmentState :: FailureType
$mFailureType_InvalidEnvironmentState :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_InvalidEnvironmentState = FailureType' "InvalidEnvironmentState"
pattern FailureType_PermissionsError :: FailureType
pattern $bFailureType_PermissionsError :: FailureType
$mFailureType_PermissionsError :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_PermissionsError = FailureType' "PermissionsError"
pattern FailureType_RollbackFailed :: FailureType
pattern $bFailureType_RollbackFailed :: FailureType
$mFailureType_RollbackFailed :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_RollbackFailed = FailureType' "RollbackFailed"
pattern FailureType_RollbackSuccessful :: FailureType
pattern $bFailureType_RollbackSuccessful :: FailureType
$mFailureType_RollbackSuccessful :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_RollbackSuccessful = FailureType' "RollbackSuccessful"
pattern FailureType_UpdateCancelled :: FailureType
pattern $bFailureType_UpdateCancelled :: FailureType
$mFailureType_UpdateCancelled :: forall r. FailureType -> (Void# -> r) -> (Void# -> r) -> r
FailureType_UpdateCancelled = FailureType' "UpdateCancelled"
{-# COMPLETE
FailureType_CancellationFailed,
FailureType_InternalFailure,
FailureType_InvalidEnvironmentState,
FailureType_PermissionsError,
FailureType_RollbackFailed,
FailureType_RollbackSuccessful,
FailureType_UpdateCancelled,
FailureType'
#-}