{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EKS.Types.ClusterStatus
( ClusterStatus
( ..,
ClusterStatus_ACTIVE,
ClusterStatus_CREATING,
ClusterStatus_DELETING,
ClusterStatus_FAILED,
ClusterStatus_PENDING,
ClusterStatus_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ClusterStatus = ClusterStatus'
{ ClusterStatus -> Text
fromClusterStatus ::
Core.Text
}
deriving stock
( Int -> ClusterStatus -> ShowS
[ClusterStatus] -> ShowS
ClusterStatus -> String
(Int -> ClusterStatus -> ShowS)
-> (ClusterStatus -> String)
-> ([ClusterStatus] -> ShowS)
-> Show ClusterStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClusterStatus] -> ShowS
$cshowList :: [ClusterStatus] -> ShowS
show :: ClusterStatus -> String
$cshow :: ClusterStatus -> String
showsPrec :: Int -> ClusterStatus -> ShowS
$cshowsPrec :: Int -> ClusterStatus -> ShowS
Prelude.Show,
ReadPrec [ClusterStatus]
ReadPrec ClusterStatus
Int -> ReadS ClusterStatus
ReadS [ClusterStatus]
(Int -> ReadS ClusterStatus)
-> ReadS [ClusterStatus]
-> ReadPrec ClusterStatus
-> ReadPrec [ClusterStatus]
-> Read ClusterStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClusterStatus]
$creadListPrec :: ReadPrec [ClusterStatus]
readPrec :: ReadPrec ClusterStatus
$creadPrec :: ReadPrec ClusterStatus
readList :: ReadS [ClusterStatus]
$creadList :: ReadS [ClusterStatus]
readsPrec :: Int -> ReadS ClusterStatus
$creadsPrec :: Int -> ReadS ClusterStatus
Prelude.Read,
ClusterStatus -> ClusterStatus -> Bool
(ClusterStatus -> ClusterStatus -> Bool)
-> (ClusterStatus -> ClusterStatus -> Bool) -> Eq ClusterStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClusterStatus -> ClusterStatus -> Bool
$c/= :: ClusterStatus -> ClusterStatus -> Bool
== :: ClusterStatus -> ClusterStatus -> Bool
$c== :: ClusterStatus -> ClusterStatus -> Bool
Prelude.Eq,
Eq ClusterStatus
Eq ClusterStatus
-> (ClusterStatus -> ClusterStatus -> Ordering)
-> (ClusterStatus -> ClusterStatus -> Bool)
-> (ClusterStatus -> ClusterStatus -> Bool)
-> (ClusterStatus -> ClusterStatus -> Bool)
-> (ClusterStatus -> ClusterStatus -> Bool)
-> (ClusterStatus -> ClusterStatus -> ClusterStatus)
-> (ClusterStatus -> ClusterStatus -> ClusterStatus)
-> Ord ClusterStatus
ClusterStatus -> ClusterStatus -> Bool
ClusterStatus -> ClusterStatus -> Ordering
ClusterStatus -> ClusterStatus -> ClusterStatus
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 :: ClusterStatus -> ClusterStatus -> ClusterStatus
$cmin :: ClusterStatus -> ClusterStatus -> ClusterStatus
max :: ClusterStatus -> ClusterStatus -> ClusterStatus
$cmax :: ClusterStatus -> ClusterStatus -> ClusterStatus
>= :: ClusterStatus -> ClusterStatus -> Bool
$c>= :: ClusterStatus -> ClusterStatus -> Bool
> :: ClusterStatus -> ClusterStatus -> Bool
$c> :: ClusterStatus -> ClusterStatus -> Bool
<= :: ClusterStatus -> ClusterStatus -> Bool
$c<= :: ClusterStatus -> ClusterStatus -> Bool
< :: ClusterStatus -> ClusterStatus -> Bool
$c< :: ClusterStatus -> ClusterStatus -> Bool
compare :: ClusterStatus -> ClusterStatus -> Ordering
$ccompare :: ClusterStatus -> ClusterStatus -> Ordering
$cp1Ord :: Eq ClusterStatus
Prelude.Ord,
(forall x. ClusterStatus -> Rep ClusterStatus x)
-> (forall x. Rep ClusterStatus x -> ClusterStatus)
-> Generic ClusterStatus
forall x. Rep ClusterStatus x -> ClusterStatus
forall x. ClusterStatus -> Rep ClusterStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ClusterStatus x -> ClusterStatus
$cfrom :: forall x. ClusterStatus -> Rep ClusterStatus x
Prelude.Generic
)
deriving newtype
( Int -> ClusterStatus -> Int
ClusterStatus -> Int
(Int -> ClusterStatus -> Int)
-> (ClusterStatus -> Int) -> Hashable ClusterStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ClusterStatus -> Int
$chash :: ClusterStatus -> Int
hashWithSalt :: Int -> ClusterStatus -> Int
$chashWithSalt :: Int -> ClusterStatus -> Int
Prelude.Hashable,
ClusterStatus -> ()
(ClusterStatus -> ()) -> NFData ClusterStatus
forall a. (a -> ()) -> NFData a
rnf :: ClusterStatus -> ()
$crnf :: ClusterStatus -> ()
Prelude.NFData,
Text -> Either String ClusterStatus
(Text -> Either String ClusterStatus) -> FromText ClusterStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ClusterStatus
$cfromText :: Text -> Either String ClusterStatus
Core.FromText,
ClusterStatus -> Text
(ClusterStatus -> Text) -> ToText ClusterStatus
forall a. (a -> Text) -> ToText a
toText :: ClusterStatus -> Text
$ctoText :: ClusterStatus -> Text
Core.ToText,
ClusterStatus -> ByteString
(ClusterStatus -> ByteString) -> ToByteString ClusterStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ClusterStatus -> ByteString
$ctoBS :: ClusterStatus -> ByteString
Core.ToByteString,
ClusterStatus -> ByteStringBuilder
(ClusterStatus -> ByteStringBuilder) -> ToLog ClusterStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ClusterStatus -> ByteStringBuilder
$cbuild :: ClusterStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ClusterStatus -> [Header]
(HeaderName -> ClusterStatus -> [Header]) -> ToHeader ClusterStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ClusterStatus -> [Header]
$ctoHeader :: HeaderName -> ClusterStatus -> [Header]
Core.ToHeader,
ClusterStatus -> QueryString
(ClusterStatus -> QueryString) -> ToQuery ClusterStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ClusterStatus -> QueryString
$ctoQuery :: ClusterStatus -> QueryString
Core.ToQuery,
Value -> Parser [ClusterStatus]
Value -> Parser ClusterStatus
(Value -> Parser ClusterStatus)
-> (Value -> Parser [ClusterStatus]) -> FromJSON ClusterStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ClusterStatus]
$cparseJSONList :: Value -> Parser [ClusterStatus]
parseJSON :: Value -> Parser ClusterStatus
$cparseJSON :: Value -> Parser ClusterStatus
Core.FromJSON,
FromJSONKeyFunction [ClusterStatus]
FromJSONKeyFunction ClusterStatus
FromJSONKeyFunction ClusterStatus
-> FromJSONKeyFunction [ClusterStatus] -> FromJSONKey ClusterStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ClusterStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ClusterStatus]
fromJSONKey :: FromJSONKeyFunction ClusterStatus
$cfromJSONKey :: FromJSONKeyFunction ClusterStatus
Core.FromJSONKey,
[ClusterStatus] -> Encoding
[ClusterStatus] -> Value
ClusterStatus -> Encoding
ClusterStatus -> Value
(ClusterStatus -> Value)
-> (ClusterStatus -> Encoding)
-> ([ClusterStatus] -> Value)
-> ([ClusterStatus] -> Encoding)
-> ToJSON ClusterStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ClusterStatus] -> Encoding
$ctoEncodingList :: [ClusterStatus] -> Encoding
toJSONList :: [ClusterStatus] -> Value
$ctoJSONList :: [ClusterStatus] -> Value
toEncoding :: ClusterStatus -> Encoding
$ctoEncoding :: ClusterStatus -> Encoding
toJSON :: ClusterStatus -> Value
$ctoJSON :: ClusterStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ClusterStatus]
ToJSONKeyFunction ClusterStatus
ToJSONKeyFunction ClusterStatus
-> ToJSONKeyFunction [ClusterStatus] -> ToJSONKey ClusterStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ClusterStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ClusterStatus]
toJSONKey :: ToJSONKeyFunction ClusterStatus
$ctoJSONKey :: ToJSONKeyFunction ClusterStatus
Core.ToJSONKey,
[Node] -> Either String ClusterStatus
([Node] -> Either String ClusterStatus) -> FromXML ClusterStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ClusterStatus
$cparseXML :: [Node] -> Either String ClusterStatus
Core.FromXML,
ClusterStatus -> XML
(ClusterStatus -> XML) -> ToXML ClusterStatus
forall a. (a -> XML) -> ToXML a
toXML :: ClusterStatus -> XML
$ctoXML :: ClusterStatus -> XML
Core.ToXML
)
pattern ClusterStatus_ACTIVE :: ClusterStatus
pattern $bClusterStatus_ACTIVE :: ClusterStatus
$mClusterStatus_ACTIVE :: forall r. ClusterStatus -> (Void# -> r) -> (Void# -> r) -> r
ClusterStatus_ACTIVE = ClusterStatus' "ACTIVE"
pattern ClusterStatus_CREATING :: ClusterStatus
pattern $bClusterStatus_CREATING :: ClusterStatus
$mClusterStatus_CREATING :: forall r. ClusterStatus -> (Void# -> r) -> (Void# -> r) -> r
ClusterStatus_CREATING = ClusterStatus' "CREATING"
pattern ClusterStatus_DELETING :: ClusterStatus
pattern $bClusterStatus_DELETING :: ClusterStatus
$mClusterStatus_DELETING :: forall r. ClusterStatus -> (Void# -> r) -> (Void# -> r) -> r
ClusterStatus_DELETING = ClusterStatus' "DELETING"
pattern ClusterStatus_FAILED :: ClusterStatus
pattern $bClusterStatus_FAILED :: ClusterStatus
$mClusterStatus_FAILED :: forall r. ClusterStatus -> (Void# -> r) -> (Void# -> r) -> r
ClusterStatus_FAILED = ClusterStatus' "FAILED"
pattern ClusterStatus_PENDING :: ClusterStatus
pattern $bClusterStatus_PENDING :: ClusterStatus
$mClusterStatus_PENDING :: forall r. ClusterStatus -> (Void# -> r) -> (Void# -> r) -> r
ClusterStatus_PENDING = ClusterStatus' "PENDING"
pattern ClusterStatus_UPDATING :: ClusterStatus
pattern $bClusterStatus_UPDATING :: ClusterStatus
$mClusterStatus_UPDATING :: forall r. ClusterStatus -> (Void# -> r) -> (Void# -> r) -> r
ClusterStatus_UPDATING = ClusterStatus' "UPDATING"
{-# COMPLETE
ClusterStatus_ACTIVE,
ClusterStatus_CREATING,
ClusterStatus_DELETING,
ClusterStatus_FAILED,
ClusterStatus_PENDING,
ClusterStatus_UPDATING,
ClusterStatus'
#-}