{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeDeploy.Types.LifecycleErrorCode
( LifecycleErrorCode
( ..,
LifecycleErrorCode_ScriptFailed,
LifecycleErrorCode_ScriptMissing,
LifecycleErrorCode_ScriptNotExecutable,
LifecycleErrorCode_ScriptTimedOut,
LifecycleErrorCode_Success,
LifecycleErrorCode_UnknownError
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LifecycleErrorCode = LifecycleErrorCode'
{ LifecycleErrorCode -> Text
fromLifecycleErrorCode ::
Core.Text
}
deriving stock
( Int -> LifecycleErrorCode -> ShowS
[LifecycleErrorCode] -> ShowS
LifecycleErrorCode -> String
(Int -> LifecycleErrorCode -> ShowS)
-> (LifecycleErrorCode -> String)
-> ([LifecycleErrorCode] -> ShowS)
-> Show LifecycleErrorCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LifecycleErrorCode] -> ShowS
$cshowList :: [LifecycleErrorCode] -> ShowS
show :: LifecycleErrorCode -> String
$cshow :: LifecycleErrorCode -> String
showsPrec :: Int -> LifecycleErrorCode -> ShowS
$cshowsPrec :: Int -> LifecycleErrorCode -> ShowS
Prelude.Show,
ReadPrec [LifecycleErrorCode]
ReadPrec LifecycleErrorCode
Int -> ReadS LifecycleErrorCode
ReadS [LifecycleErrorCode]
(Int -> ReadS LifecycleErrorCode)
-> ReadS [LifecycleErrorCode]
-> ReadPrec LifecycleErrorCode
-> ReadPrec [LifecycleErrorCode]
-> Read LifecycleErrorCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LifecycleErrorCode]
$creadListPrec :: ReadPrec [LifecycleErrorCode]
readPrec :: ReadPrec LifecycleErrorCode
$creadPrec :: ReadPrec LifecycleErrorCode
readList :: ReadS [LifecycleErrorCode]
$creadList :: ReadS [LifecycleErrorCode]
readsPrec :: Int -> ReadS LifecycleErrorCode
$creadsPrec :: Int -> ReadS LifecycleErrorCode
Prelude.Read,
LifecycleErrorCode -> LifecycleErrorCode -> Bool
(LifecycleErrorCode -> LifecycleErrorCode -> Bool)
-> (LifecycleErrorCode -> LifecycleErrorCode -> Bool)
-> Eq LifecycleErrorCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
$c/= :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
== :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
$c== :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
Prelude.Eq,
Eq LifecycleErrorCode
Eq LifecycleErrorCode
-> (LifecycleErrorCode -> LifecycleErrorCode -> Ordering)
-> (LifecycleErrorCode -> LifecycleErrorCode -> Bool)
-> (LifecycleErrorCode -> LifecycleErrorCode -> Bool)
-> (LifecycleErrorCode -> LifecycleErrorCode -> Bool)
-> (LifecycleErrorCode -> LifecycleErrorCode -> Bool)
-> (LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode)
-> (LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode)
-> Ord LifecycleErrorCode
LifecycleErrorCode -> LifecycleErrorCode -> Bool
LifecycleErrorCode -> LifecycleErrorCode -> Ordering
LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode
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 :: LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode
$cmin :: LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode
max :: LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode
$cmax :: LifecycleErrorCode -> LifecycleErrorCode -> LifecycleErrorCode
>= :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
$c>= :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
> :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
$c> :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
<= :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
$c<= :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
< :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
$c< :: LifecycleErrorCode -> LifecycleErrorCode -> Bool
compare :: LifecycleErrorCode -> LifecycleErrorCode -> Ordering
$ccompare :: LifecycleErrorCode -> LifecycleErrorCode -> Ordering
$cp1Ord :: Eq LifecycleErrorCode
Prelude.Ord,
(forall x. LifecycleErrorCode -> Rep LifecycleErrorCode x)
-> (forall x. Rep LifecycleErrorCode x -> LifecycleErrorCode)
-> Generic LifecycleErrorCode
forall x. Rep LifecycleErrorCode x -> LifecycleErrorCode
forall x. LifecycleErrorCode -> Rep LifecycleErrorCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LifecycleErrorCode x -> LifecycleErrorCode
$cfrom :: forall x. LifecycleErrorCode -> Rep LifecycleErrorCode x
Prelude.Generic
)
deriving newtype
( Int -> LifecycleErrorCode -> Int
LifecycleErrorCode -> Int
(Int -> LifecycleErrorCode -> Int)
-> (LifecycleErrorCode -> Int) -> Hashable LifecycleErrorCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LifecycleErrorCode -> Int
$chash :: LifecycleErrorCode -> Int
hashWithSalt :: Int -> LifecycleErrorCode -> Int
$chashWithSalt :: Int -> LifecycleErrorCode -> Int
Prelude.Hashable,
LifecycleErrorCode -> ()
(LifecycleErrorCode -> ()) -> NFData LifecycleErrorCode
forall a. (a -> ()) -> NFData a
rnf :: LifecycleErrorCode -> ()
$crnf :: LifecycleErrorCode -> ()
Prelude.NFData,
Text -> Either String LifecycleErrorCode
(Text -> Either String LifecycleErrorCode)
-> FromText LifecycleErrorCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LifecycleErrorCode
$cfromText :: Text -> Either String LifecycleErrorCode
Core.FromText,
LifecycleErrorCode -> Text
(LifecycleErrorCode -> Text) -> ToText LifecycleErrorCode
forall a. (a -> Text) -> ToText a
toText :: LifecycleErrorCode -> Text
$ctoText :: LifecycleErrorCode -> Text
Core.ToText,
LifecycleErrorCode -> ByteString
(LifecycleErrorCode -> ByteString)
-> ToByteString LifecycleErrorCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: LifecycleErrorCode -> ByteString
$ctoBS :: LifecycleErrorCode -> ByteString
Core.ToByteString,
LifecycleErrorCode -> ByteStringBuilder
(LifecycleErrorCode -> ByteStringBuilder)
-> ToLog LifecycleErrorCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LifecycleErrorCode -> ByteStringBuilder
$cbuild :: LifecycleErrorCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> LifecycleErrorCode -> [Header]
(HeaderName -> LifecycleErrorCode -> [Header])
-> ToHeader LifecycleErrorCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LifecycleErrorCode -> [Header]
$ctoHeader :: HeaderName -> LifecycleErrorCode -> [Header]
Core.ToHeader,
LifecycleErrorCode -> QueryString
(LifecycleErrorCode -> QueryString) -> ToQuery LifecycleErrorCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LifecycleErrorCode -> QueryString
$ctoQuery :: LifecycleErrorCode -> QueryString
Core.ToQuery,
Value -> Parser [LifecycleErrorCode]
Value -> Parser LifecycleErrorCode
(Value -> Parser LifecycleErrorCode)
-> (Value -> Parser [LifecycleErrorCode])
-> FromJSON LifecycleErrorCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LifecycleErrorCode]
$cparseJSONList :: Value -> Parser [LifecycleErrorCode]
parseJSON :: Value -> Parser LifecycleErrorCode
$cparseJSON :: Value -> Parser LifecycleErrorCode
Core.FromJSON,
FromJSONKeyFunction [LifecycleErrorCode]
FromJSONKeyFunction LifecycleErrorCode
FromJSONKeyFunction LifecycleErrorCode
-> FromJSONKeyFunction [LifecycleErrorCode]
-> FromJSONKey LifecycleErrorCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LifecycleErrorCode]
$cfromJSONKeyList :: FromJSONKeyFunction [LifecycleErrorCode]
fromJSONKey :: FromJSONKeyFunction LifecycleErrorCode
$cfromJSONKey :: FromJSONKeyFunction LifecycleErrorCode
Core.FromJSONKey,
[LifecycleErrorCode] -> Encoding
[LifecycleErrorCode] -> Value
LifecycleErrorCode -> Encoding
LifecycleErrorCode -> Value
(LifecycleErrorCode -> Value)
-> (LifecycleErrorCode -> Encoding)
-> ([LifecycleErrorCode] -> Value)
-> ([LifecycleErrorCode] -> Encoding)
-> ToJSON LifecycleErrorCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LifecycleErrorCode] -> Encoding
$ctoEncodingList :: [LifecycleErrorCode] -> Encoding
toJSONList :: [LifecycleErrorCode] -> Value
$ctoJSONList :: [LifecycleErrorCode] -> Value
toEncoding :: LifecycleErrorCode -> Encoding
$ctoEncoding :: LifecycleErrorCode -> Encoding
toJSON :: LifecycleErrorCode -> Value
$ctoJSON :: LifecycleErrorCode -> Value
Core.ToJSON,
ToJSONKeyFunction [LifecycleErrorCode]
ToJSONKeyFunction LifecycleErrorCode
ToJSONKeyFunction LifecycleErrorCode
-> ToJSONKeyFunction [LifecycleErrorCode]
-> ToJSONKey LifecycleErrorCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LifecycleErrorCode]
$ctoJSONKeyList :: ToJSONKeyFunction [LifecycleErrorCode]
toJSONKey :: ToJSONKeyFunction LifecycleErrorCode
$ctoJSONKey :: ToJSONKeyFunction LifecycleErrorCode
Core.ToJSONKey,
[Node] -> Either String LifecycleErrorCode
([Node] -> Either String LifecycleErrorCode)
-> FromXML LifecycleErrorCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LifecycleErrorCode
$cparseXML :: [Node] -> Either String LifecycleErrorCode
Core.FromXML,
LifecycleErrorCode -> XML
(LifecycleErrorCode -> XML) -> ToXML LifecycleErrorCode
forall a. (a -> XML) -> ToXML a
toXML :: LifecycleErrorCode -> XML
$ctoXML :: LifecycleErrorCode -> XML
Core.ToXML
)
pattern LifecycleErrorCode_ScriptFailed :: LifecycleErrorCode
pattern $bLifecycleErrorCode_ScriptFailed :: LifecycleErrorCode
$mLifecycleErrorCode_ScriptFailed :: forall r. LifecycleErrorCode -> (Void# -> r) -> (Void# -> r) -> r
LifecycleErrorCode_ScriptFailed = LifecycleErrorCode' "ScriptFailed"
pattern LifecycleErrorCode_ScriptMissing :: LifecycleErrorCode
pattern $bLifecycleErrorCode_ScriptMissing :: LifecycleErrorCode
$mLifecycleErrorCode_ScriptMissing :: forall r. LifecycleErrorCode -> (Void# -> r) -> (Void# -> r) -> r
LifecycleErrorCode_ScriptMissing = LifecycleErrorCode' "ScriptMissing"
pattern LifecycleErrorCode_ScriptNotExecutable :: LifecycleErrorCode
pattern $bLifecycleErrorCode_ScriptNotExecutable :: LifecycleErrorCode
$mLifecycleErrorCode_ScriptNotExecutable :: forall r. LifecycleErrorCode -> (Void# -> r) -> (Void# -> r) -> r
LifecycleErrorCode_ScriptNotExecutable = LifecycleErrorCode' "ScriptNotExecutable"
pattern LifecycleErrorCode_ScriptTimedOut :: LifecycleErrorCode
pattern $bLifecycleErrorCode_ScriptTimedOut :: LifecycleErrorCode
$mLifecycleErrorCode_ScriptTimedOut :: forall r. LifecycleErrorCode -> (Void# -> r) -> (Void# -> r) -> r
LifecycleErrorCode_ScriptTimedOut = LifecycleErrorCode' "ScriptTimedOut"
pattern LifecycleErrorCode_Success :: LifecycleErrorCode
pattern $bLifecycleErrorCode_Success :: LifecycleErrorCode
$mLifecycleErrorCode_Success :: forall r. LifecycleErrorCode -> (Void# -> r) -> (Void# -> r) -> r
LifecycleErrorCode_Success = LifecycleErrorCode' "Success"
pattern LifecycleErrorCode_UnknownError :: LifecycleErrorCode
pattern $bLifecycleErrorCode_UnknownError :: LifecycleErrorCode
$mLifecycleErrorCode_UnknownError :: forall r. LifecycleErrorCode -> (Void# -> r) -> (Void# -> r) -> r
LifecycleErrorCode_UnknownError = LifecycleErrorCode' "UnknownError"
{-# COMPLETE
LifecycleErrorCode_ScriptFailed,
LifecycleErrorCode_ScriptMissing,
LifecycleErrorCode_ScriptNotExecutable,
LifecycleErrorCode_ScriptTimedOut,
LifecycleErrorCode_Success,
LifecycleErrorCode_UnknownError,
LifecycleErrorCode'
#-}