{-# 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.ContainerCondition
( ContainerCondition
( ..,
ContainerCondition_COMPLETE,
ContainerCondition_HEALTHY,
ContainerCondition_START,
ContainerCondition_SUCCESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ContainerCondition = ContainerCondition'
{ ContainerCondition -> Text
fromContainerCondition ::
Core.Text
}
deriving stock
( Int -> ContainerCondition -> ShowS
[ContainerCondition] -> ShowS
ContainerCondition -> String
(Int -> ContainerCondition -> ShowS)
-> (ContainerCondition -> String)
-> ([ContainerCondition] -> ShowS)
-> Show ContainerCondition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ContainerCondition] -> ShowS
$cshowList :: [ContainerCondition] -> ShowS
show :: ContainerCondition -> String
$cshow :: ContainerCondition -> String
showsPrec :: Int -> ContainerCondition -> ShowS
$cshowsPrec :: Int -> ContainerCondition -> ShowS
Prelude.Show,
ReadPrec [ContainerCondition]
ReadPrec ContainerCondition
Int -> ReadS ContainerCondition
ReadS [ContainerCondition]
(Int -> ReadS ContainerCondition)
-> ReadS [ContainerCondition]
-> ReadPrec ContainerCondition
-> ReadPrec [ContainerCondition]
-> Read ContainerCondition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ContainerCondition]
$creadListPrec :: ReadPrec [ContainerCondition]
readPrec :: ReadPrec ContainerCondition
$creadPrec :: ReadPrec ContainerCondition
readList :: ReadS [ContainerCondition]
$creadList :: ReadS [ContainerCondition]
readsPrec :: Int -> ReadS ContainerCondition
$creadsPrec :: Int -> ReadS ContainerCondition
Prelude.Read,
ContainerCondition -> ContainerCondition -> Bool
(ContainerCondition -> ContainerCondition -> Bool)
-> (ContainerCondition -> ContainerCondition -> Bool)
-> Eq ContainerCondition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ContainerCondition -> ContainerCondition -> Bool
$c/= :: ContainerCondition -> ContainerCondition -> Bool
== :: ContainerCondition -> ContainerCondition -> Bool
$c== :: ContainerCondition -> ContainerCondition -> Bool
Prelude.Eq,
Eq ContainerCondition
Eq ContainerCondition
-> (ContainerCondition -> ContainerCondition -> Ordering)
-> (ContainerCondition -> ContainerCondition -> Bool)
-> (ContainerCondition -> ContainerCondition -> Bool)
-> (ContainerCondition -> ContainerCondition -> Bool)
-> (ContainerCondition -> ContainerCondition -> Bool)
-> (ContainerCondition -> ContainerCondition -> ContainerCondition)
-> (ContainerCondition -> ContainerCondition -> ContainerCondition)
-> Ord ContainerCondition
ContainerCondition -> ContainerCondition -> Bool
ContainerCondition -> ContainerCondition -> Ordering
ContainerCondition -> ContainerCondition -> ContainerCondition
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 :: ContainerCondition -> ContainerCondition -> ContainerCondition
$cmin :: ContainerCondition -> ContainerCondition -> ContainerCondition
max :: ContainerCondition -> ContainerCondition -> ContainerCondition
$cmax :: ContainerCondition -> ContainerCondition -> ContainerCondition
>= :: ContainerCondition -> ContainerCondition -> Bool
$c>= :: ContainerCondition -> ContainerCondition -> Bool
> :: ContainerCondition -> ContainerCondition -> Bool
$c> :: ContainerCondition -> ContainerCondition -> Bool
<= :: ContainerCondition -> ContainerCondition -> Bool
$c<= :: ContainerCondition -> ContainerCondition -> Bool
< :: ContainerCondition -> ContainerCondition -> Bool
$c< :: ContainerCondition -> ContainerCondition -> Bool
compare :: ContainerCondition -> ContainerCondition -> Ordering
$ccompare :: ContainerCondition -> ContainerCondition -> Ordering
$cp1Ord :: Eq ContainerCondition
Prelude.Ord,
(forall x. ContainerCondition -> Rep ContainerCondition x)
-> (forall x. Rep ContainerCondition x -> ContainerCondition)
-> Generic ContainerCondition
forall x. Rep ContainerCondition x -> ContainerCondition
forall x. ContainerCondition -> Rep ContainerCondition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ContainerCondition x -> ContainerCondition
$cfrom :: forall x. ContainerCondition -> Rep ContainerCondition x
Prelude.Generic
)
deriving newtype
( Int -> ContainerCondition -> Int
ContainerCondition -> Int
(Int -> ContainerCondition -> Int)
-> (ContainerCondition -> Int) -> Hashable ContainerCondition
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ContainerCondition -> Int
$chash :: ContainerCondition -> Int
hashWithSalt :: Int -> ContainerCondition -> Int
$chashWithSalt :: Int -> ContainerCondition -> Int
Prelude.Hashable,
ContainerCondition -> ()
(ContainerCondition -> ()) -> NFData ContainerCondition
forall a. (a -> ()) -> NFData a
rnf :: ContainerCondition -> ()
$crnf :: ContainerCondition -> ()
Prelude.NFData,
Text -> Either String ContainerCondition
(Text -> Either String ContainerCondition)
-> FromText ContainerCondition
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ContainerCondition
$cfromText :: Text -> Either String ContainerCondition
Core.FromText,
ContainerCondition -> Text
(ContainerCondition -> Text) -> ToText ContainerCondition
forall a. (a -> Text) -> ToText a
toText :: ContainerCondition -> Text
$ctoText :: ContainerCondition -> Text
Core.ToText,
ContainerCondition -> ByteString
(ContainerCondition -> ByteString)
-> ToByteString ContainerCondition
forall a. (a -> ByteString) -> ToByteString a
toBS :: ContainerCondition -> ByteString
$ctoBS :: ContainerCondition -> ByteString
Core.ToByteString,
ContainerCondition -> ByteStringBuilder
(ContainerCondition -> ByteStringBuilder)
-> ToLog ContainerCondition
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ContainerCondition -> ByteStringBuilder
$cbuild :: ContainerCondition -> ByteStringBuilder
Core.ToLog,
HeaderName -> ContainerCondition -> [Header]
(HeaderName -> ContainerCondition -> [Header])
-> ToHeader ContainerCondition
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ContainerCondition -> [Header]
$ctoHeader :: HeaderName -> ContainerCondition -> [Header]
Core.ToHeader,
ContainerCondition -> QueryString
(ContainerCondition -> QueryString) -> ToQuery ContainerCondition
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ContainerCondition -> QueryString
$ctoQuery :: ContainerCondition -> QueryString
Core.ToQuery,
Value -> Parser [ContainerCondition]
Value -> Parser ContainerCondition
(Value -> Parser ContainerCondition)
-> (Value -> Parser [ContainerCondition])
-> FromJSON ContainerCondition
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ContainerCondition]
$cparseJSONList :: Value -> Parser [ContainerCondition]
parseJSON :: Value -> Parser ContainerCondition
$cparseJSON :: Value -> Parser ContainerCondition
Core.FromJSON,
FromJSONKeyFunction [ContainerCondition]
FromJSONKeyFunction ContainerCondition
FromJSONKeyFunction ContainerCondition
-> FromJSONKeyFunction [ContainerCondition]
-> FromJSONKey ContainerCondition
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ContainerCondition]
$cfromJSONKeyList :: FromJSONKeyFunction [ContainerCondition]
fromJSONKey :: FromJSONKeyFunction ContainerCondition
$cfromJSONKey :: FromJSONKeyFunction ContainerCondition
Core.FromJSONKey,
[ContainerCondition] -> Encoding
[ContainerCondition] -> Value
ContainerCondition -> Encoding
ContainerCondition -> Value
(ContainerCondition -> Value)
-> (ContainerCondition -> Encoding)
-> ([ContainerCondition] -> Value)
-> ([ContainerCondition] -> Encoding)
-> ToJSON ContainerCondition
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ContainerCondition] -> Encoding
$ctoEncodingList :: [ContainerCondition] -> Encoding
toJSONList :: [ContainerCondition] -> Value
$ctoJSONList :: [ContainerCondition] -> Value
toEncoding :: ContainerCondition -> Encoding
$ctoEncoding :: ContainerCondition -> Encoding
toJSON :: ContainerCondition -> Value
$ctoJSON :: ContainerCondition -> Value
Core.ToJSON,
ToJSONKeyFunction [ContainerCondition]
ToJSONKeyFunction ContainerCondition
ToJSONKeyFunction ContainerCondition
-> ToJSONKeyFunction [ContainerCondition]
-> ToJSONKey ContainerCondition
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ContainerCondition]
$ctoJSONKeyList :: ToJSONKeyFunction [ContainerCondition]
toJSONKey :: ToJSONKeyFunction ContainerCondition
$ctoJSONKey :: ToJSONKeyFunction ContainerCondition
Core.ToJSONKey,
[Node] -> Either String ContainerCondition
([Node] -> Either String ContainerCondition)
-> FromXML ContainerCondition
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ContainerCondition
$cparseXML :: [Node] -> Either String ContainerCondition
Core.FromXML,
ContainerCondition -> XML
(ContainerCondition -> XML) -> ToXML ContainerCondition
forall a. (a -> XML) -> ToXML a
toXML :: ContainerCondition -> XML
$ctoXML :: ContainerCondition -> XML
Core.ToXML
)
pattern ContainerCondition_COMPLETE :: ContainerCondition
pattern $bContainerCondition_COMPLETE :: ContainerCondition
$mContainerCondition_COMPLETE :: forall r. ContainerCondition -> (Void# -> r) -> (Void# -> r) -> r
ContainerCondition_COMPLETE = ContainerCondition' "COMPLETE"
pattern ContainerCondition_HEALTHY :: ContainerCondition
pattern $bContainerCondition_HEALTHY :: ContainerCondition
$mContainerCondition_HEALTHY :: forall r. ContainerCondition -> (Void# -> r) -> (Void# -> r) -> r
ContainerCondition_HEALTHY = ContainerCondition' "HEALTHY"
pattern ContainerCondition_START :: ContainerCondition
pattern $bContainerCondition_START :: ContainerCondition
$mContainerCondition_START :: forall r. ContainerCondition -> (Void# -> r) -> (Void# -> r) -> r
ContainerCondition_START = ContainerCondition' "START"
pattern ContainerCondition_SUCCESS :: ContainerCondition
pattern $bContainerCondition_SUCCESS :: ContainerCondition
$mContainerCondition_SUCCESS :: forall r. ContainerCondition -> (Void# -> r) -> (Void# -> r) -> r
ContainerCondition_SUCCESS = ContainerCondition' "SUCCESS"
{-# COMPLETE
ContainerCondition_COMPLETE,
ContainerCondition_HEALTHY,
ContainerCondition_START,
ContainerCondition_SUCCESS,
ContainerCondition'
#-}