{-# 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.NodegroupStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EKS.Types.NodegroupStatus
  ( NodegroupStatus
      ( ..,
        NodegroupStatus_ACTIVE,
        NodegroupStatus_CREATE_FAILED,
        NodegroupStatus_CREATING,
        NodegroupStatus_DEGRADED,
        NodegroupStatus_DELETE_FAILED,
        NodegroupStatus_DELETING,
        NodegroupStatus_UPDATING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern NodegroupStatus_ACTIVE :: NodegroupStatus
pattern $bNodegroupStatus_ACTIVE :: NodegroupStatus
$mNodegroupStatus_ACTIVE :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_ACTIVE = NodegroupStatus' "ACTIVE"

pattern NodegroupStatus_CREATE_FAILED :: NodegroupStatus
pattern $bNodegroupStatus_CREATE_FAILED :: NodegroupStatus
$mNodegroupStatus_CREATE_FAILED :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_CREATE_FAILED = NodegroupStatus' "CREATE_FAILED"

pattern NodegroupStatus_CREATING :: NodegroupStatus
pattern $bNodegroupStatus_CREATING :: NodegroupStatus
$mNodegroupStatus_CREATING :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_CREATING = NodegroupStatus' "CREATING"

pattern NodegroupStatus_DEGRADED :: NodegroupStatus
pattern $bNodegroupStatus_DEGRADED :: NodegroupStatus
$mNodegroupStatus_DEGRADED :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_DEGRADED = NodegroupStatus' "DEGRADED"

pattern NodegroupStatus_DELETE_FAILED :: NodegroupStatus
pattern $bNodegroupStatus_DELETE_FAILED :: NodegroupStatus
$mNodegroupStatus_DELETE_FAILED :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_DELETE_FAILED = NodegroupStatus' "DELETE_FAILED"

pattern NodegroupStatus_DELETING :: NodegroupStatus
pattern $bNodegroupStatus_DELETING :: NodegroupStatus
$mNodegroupStatus_DELETING :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_DELETING = NodegroupStatus' "DELETING"

pattern NodegroupStatus_UPDATING :: NodegroupStatus
pattern $bNodegroupStatus_UPDATING :: NodegroupStatus
$mNodegroupStatus_UPDATING :: forall r. NodegroupStatus -> (Void# -> r) -> (Void# -> r) -> r
NodegroupStatus_UPDATING = NodegroupStatus' "UPDATING"

{-# COMPLETE
  NodegroupStatus_ACTIVE,
  NodegroupStatus_CREATE_FAILED,
  NodegroupStatus_CREATING,
  NodegroupStatus_DEGRADED,
  NodegroupStatus_DELETE_FAILED,
  NodegroupStatus_DELETING,
  NodegroupStatus_UPDATING,
  NodegroupStatus'
  #-}