{-# 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.AddonStatus
-- 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.AddonStatus
  ( AddonStatus
      ( ..,
        AddonStatus_ACTIVE,
        AddonStatus_CREATE_FAILED,
        AddonStatus_CREATING,
        AddonStatus_DEGRADED,
        AddonStatus_DELETE_FAILED,
        AddonStatus_DELETING,
        AddonStatus_UPDATING
      ),
  )
where

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

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

pattern AddonStatus_ACTIVE :: AddonStatus
pattern $bAddonStatus_ACTIVE :: AddonStatus
$mAddonStatus_ACTIVE :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_ACTIVE = AddonStatus' "ACTIVE"

pattern AddonStatus_CREATE_FAILED :: AddonStatus
pattern $bAddonStatus_CREATE_FAILED :: AddonStatus
$mAddonStatus_CREATE_FAILED :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_CREATE_FAILED = AddonStatus' "CREATE_FAILED"

pattern AddonStatus_CREATING :: AddonStatus
pattern $bAddonStatus_CREATING :: AddonStatus
$mAddonStatus_CREATING :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_CREATING = AddonStatus' "CREATING"

pattern AddonStatus_DEGRADED :: AddonStatus
pattern $bAddonStatus_DEGRADED :: AddonStatus
$mAddonStatus_DEGRADED :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_DEGRADED = AddonStatus' "DEGRADED"

pattern AddonStatus_DELETE_FAILED :: AddonStatus
pattern $bAddonStatus_DELETE_FAILED :: AddonStatus
$mAddonStatus_DELETE_FAILED :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_DELETE_FAILED = AddonStatus' "DELETE_FAILED"

pattern AddonStatus_DELETING :: AddonStatus
pattern $bAddonStatus_DELETING :: AddonStatus
$mAddonStatus_DELETING :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_DELETING = AddonStatus' "DELETING"

pattern AddonStatus_UPDATING :: AddonStatus
pattern $bAddonStatus_UPDATING :: AddonStatus
$mAddonStatus_UPDATING :: forall r. AddonStatus -> (Void# -> r) -> (Void# -> r) -> r
AddonStatus_UPDATING = AddonStatus' "UPDATING"

{-# COMPLETE
  AddonStatus_ACTIVE,
  AddonStatus_CREATE_FAILED,
  AddonStatus_CREATING,
  AddonStatus_DEGRADED,
  AddonStatus_DELETE_FAILED,
  AddonStatus_DELETING,
  AddonStatus_UPDATING,
  AddonStatus'
  #-}