{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.EKS.Types.ClusterStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ClusterStatus = ClusterStatus'
  { ClusterStatus -> Text
fromClusterStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> ClusterStatus -> ShowS
[ClusterStatus] -> ShowS
ClusterStatus -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ClusterStatus
Int -> ClusterStatus -> Int
ClusterStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ClusterStatus -> ()
$crnf :: ClusterStatus -> ()
Prelude.NFData,
      Text -> Either String ClusterStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ClusterStatus
$cfromText :: Text -> Either String ClusterStatus
Data.FromText,
      ClusterStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: ClusterStatus -> Text
$ctoText :: ClusterStatus -> Text
Data.ToText,
      ClusterStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ClusterStatus -> ByteString
$ctoBS :: ClusterStatus -> ByteString
Data.ToByteString,
      ClusterStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ClusterStatus -> ByteStringBuilder
$cbuild :: ClusterStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ClusterStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ClusterStatus -> [Header]
$ctoHeader :: HeaderName -> ClusterStatus -> [Header]
Data.ToHeader,
      ClusterStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ClusterStatus -> QueryString
$ctoQuery :: ClusterStatus -> QueryString
Data.ToQuery,
      Value -> Parser [ClusterStatus]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ClusterStatus]
FromJSONKeyFunction ClusterStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ClusterStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ClusterStatus]
fromJSONKey :: FromJSONKeyFunction ClusterStatus
$cfromJSONKey :: FromJSONKeyFunction ClusterStatus
Data.FromJSONKey,
      [ClusterStatus] -> Encoding
[ClusterStatus] -> Value
ClusterStatus -> Encoding
ClusterStatus -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ClusterStatus]
ToJSONKeyFunction ClusterStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ClusterStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ClusterStatus]
toJSONKey :: ToJSONKeyFunction ClusterStatus
$ctoJSONKey :: ToJSONKeyFunction ClusterStatus
Data.ToJSONKey,
      [Node] -> Either String ClusterStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ClusterStatus
$cparseXML :: [Node] -> Either String ClusterStatus
Data.FromXML,
      ClusterStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ClusterStatus -> XML
$ctoXML :: ClusterStatus -> XML
Data.ToXML
    )

pattern ClusterStatus_ACTIVE :: ClusterStatus
pattern $bClusterStatus_ACTIVE :: ClusterStatus
$mClusterStatus_ACTIVE :: forall {r}. ClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterStatus_ACTIVE = ClusterStatus' "ACTIVE"

pattern ClusterStatus_CREATING :: ClusterStatus
pattern $bClusterStatus_CREATING :: ClusterStatus
$mClusterStatus_CREATING :: forall {r}. ClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterStatus_CREATING = ClusterStatus' "CREATING"

pattern ClusterStatus_DELETING :: ClusterStatus
pattern $bClusterStatus_DELETING :: ClusterStatus
$mClusterStatus_DELETING :: forall {r}. ClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterStatus_DELETING = ClusterStatus' "DELETING"

pattern ClusterStatus_FAILED :: ClusterStatus
pattern $bClusterStatus_FAILED :: ClusterStatus
$mClusterStatus_FAILED :: forall {r}. ClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterStatus_FAILED = ClusterStatus' "FAILED"

pattern ClusterStatus_PENDING :: ClusterStatus
pattern $bClusterStatus_PENDING :: ClusterStatus
$mClusterStatus_PENDING :: forall {r}. ClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterStatus_PENDING = ClusterStatus' "PENDING"

pattern ClusterStatus_UPDATING :: ClusterStatus
pattern $bClusterStatus_UPDATING :: ClusterStatus
$mClusterStatus_UPDATING :: forall {r}. ClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterStatus_UPDATING = ClusterStatus' "UPDATING"

{-# COMPLETE
  ClusterStatus_ACTIVE,
  ClusterStatus_CREATING,
  ClusterStatus_DELETING,
  ClusterStatus_FAILED,
  ClusterStatus_PENDING,
  ClusterStatus_UPDATING,
  ClusterStatus'
  #-}