{-# 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.ClusterIssueCode
-- 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.ClusterIssueCode
  ( ClusterIssueCode
      ( ..,
        ClusterIssueCode_AccessDenied,
        ClusterIssueCode_ClusterUnreachable,
        ClusterIssueCode_ConfigurationConflict,
        ClusterIssueCode_InternalFailure,
        ClusterIssueCode_ResourceLimitExceeded,
        ClusterIssueCode_ResourceNotFound
      ),
  )
where

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

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

pattern ClusterIssueCode_AccessDenied :: ClusterIssueCode
pattern $bClusterIssueCode_AccessDenied :: ClusterIssueCode
$mClusterIssueCode_AccessDenied :: forall {r}. ClusterIssueCode -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterIssueCode_AccessDenied = ClusterIssueCode' "AccessDenied"

pattern ClusterIssueCode_ClusterUnreachable :: ClusterIssueCode
pattern $bClusterIssueCode_ClusterUnreachable :: ClusterIssueCode
$mClusterIssueCode_ClusterUnreachable :: forall {r}. ClusterIssueCode -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterIssueCode_ClusterUnreachable = ClusterIssueCode' "ClusterUnreachable"

pattern ClusterIssueCode_ConfigurationConflict :: ClusterIssueCode
pattern $bClusterIssueCode_ConfigurationConflict :: ClusterIssueCode
$mClusterIssueCode_ConfigurationConflict :: forall {r}. ClusterIssueCode -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterIssueCode_ConfigurationConflict = ClusterIssueCode' "ConfigurationConflict"

pattern ClusterIssueCode_InternalFailure :: ClusterIssueCode
pattern $bClusterIssueCode_InternalFailure :: ClusterIssueCode
$mClusterIssueCode_InternalFailure :: forall {r}. ClusterIssueCode -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterIssueCode_InternalFailure = ClusterIssueCode' "InternalFailure"

pattern ClusterIssueCode_ResourceLimitExceeded :: ClusterIssueCode
pattern $bClusterIssueCode_ResourceLimitExceeded :: ClusterIssueCode
$mClusterIssueCode_ResourceLimitExceeded :: forall {r}. ClusterIssueCode -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterIssueCode_ResourceLimitExceeded = ClusterIssueCode' "ResourceLimitExceeded"

pattern ClusterIssueCode_ResourceNotFound :: ClusterIssueCode
pattern $bClusterIssueCode_ResourceNotFound :: ClusterIssueCode
$mClusterIssueCode_ResourceNotFound :: forall {r}. ClusterIssueCode -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterIssueCode_ResourceNotFound = ClusterIssueCode' "ResourceNotFound"

{-# COMPLETE
  ClusterIssueCode_AccessDenied,
  ClusterIssueCode_ClusterUnreachable,
  ClusterIssueCode_ConfigurationConflict,
  ClusterIssueCode_InternalFailure,
  ClusterIssueCode_ResourceLimitExceeded,
  ClusterIssueCode_ResourceNotFound,
  ClusterIssueCode'
  #-}