{-# 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.AddonIssueCode
-- 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.AddonIssueCode
  ( AddonIssueCode
      ( ..,
        AddonIssueCode_AccessDenied,
        AddonIssueCode_AdmissionRequestDenied,
        AddonIssueCode_ClusterUnreachable,
        AddonIssueCode_ConfigurationConflict,
        AddonIssueCode_InsufficientNumberOfReplicas,
        AddonIssueCode_InternalFailure,
        AddonIssueCode_K8sResourceNotFound,
        AddonIssueCode_UnsupportedAddonModification
      ),
  )
where

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

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

pattern AddonIssueCode_AccessDenied :: AddonIssueCode
pattern $bAddonIssueCode_AccessDenied :: AddonIssueCode
$mAddonIssueCode_AccessDenied :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_AccessDenied = AddonIssueCode' "AccessDenied"

pattern AddonIssueCode_AdmissionRequestDenied :: AddonIssueCode
pattern $bAddonIssueCode_AdmissionRequestDenied :: AddonIssueCode
$mAddonIssueCode_AdmissionRequestDenied :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_AdmissionRequestDenied = AddonIssueCode' "AdmissionRequestDenied"

pattern AddonIssueCode_ClusterUnreachable :: AddonIssueCode
pattern $bAddonIssueCode_ClusterUnreachable :: AddonIssueCode
$mAddonIssueCode_ClusterUnreachable :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_ClusterUnreachable = AddonIssueCode' "ClusterUnreachable"

pattern AddonIssueCode_ConfigurationConflict :: AddonIssueCode
pattern $bAddonIssueCode_ConfigurationConflict :: AddonIssueCode
$mAddonIssueCode_ConfigurationConflict :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_ConfigurationConflict = AddonIssueCode' "ConfigurationConflict"

pattern AddonIssueCode_InsufficientNumberOfReplicas :: AddonIssueCode
pattern $bAddonIssueCode_InsufficientNumberOfReplicas :: AddonIssueCode
$mAddonIssueCode_InsufficientNumberOfReplicas :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_InsufficientNumberOfReplicas = AddonIssueCode' "InsufficientNumberOfReplicas"

pattern AddonIssueCode_InternalFailure :: AddonIssueCode
pattern $bAddonIssueCode_InternalFailure :: AddonIssueCode
$mAddonIssueCode_InternalFailure :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_InternalFailure = AddonIssueCode' "InternalFailure"

pattern AddonIssueCode_K8sResourceNotFound :: AddonIssueCode
pattern $bAddonIssueCode_K8sResourceNotFound :: AddonIssueCode
$mAddonIssueCode_K8sResourceNotFound :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_K8sResourceNotFound = AddonIssueCode' "K8sResourceNotFound"

pattern AddonIssueCode_UnsupportedAddonModification :: AddonIssueCode
pattern $bAddonIssueCode_UnsupportedAddonModification :: AddonIssueCode
$mAddonIssueCode_UnsupportedAddonModification :: forall r. AddonIssueCode -> (Void# -> r) -> (Void# -> r) -> r
AddonIssueCode_UnsupportedAddonModification = AddonIssueCode' "UnsupportedAddonModification"

{-# COMPLETE
  AddonIssueCode_AccessDenied,
  AddonIssueCode_AdmissionRequestDenied,
  AddonIssueCode_ClusterUnreachable,
  AddonIssueCode_ConfigurationConflict,
  AddonIssueCode_InsufficientNumberOfReplicas,
  AddonIssueCode_InternalFailure,
  AddonIssueCode_K8sResourceNotFound,
  AddonIssueCode_UnsupportedAddonModification,
  AddonIssueCode'
  #-}