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