{-# 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.UpdateStatus
-- 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.UpdateStatus
  ( UpdateStatus
      ( ..,
        UpdateStatus_Cancelled,
        UpdateStatus_Failed,
        UpdateStatus_InProgress,
        UpdateStatus_Successful
      ),
  )
where

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

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

pattern UpdateStatus_Cancelled :: UpdateStatus
pattern $bUpdateStatus_Cancelled :: UpdateStatus
$mUpdateStatus_Cancelled :: forall r. UpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateStatus_Cancelled = UpdateStatus' "Cancelled"

pattern UpdateStatus_Failed :: UpdateStatus
pattern $bUpdateStatus_Failed :: UpdateStatus
$mUpdateStatus_Failed :: forall r. UpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateStatus_Failed = UpdateStatus' "Failed"

pattern UpdateStatus_InProgress :: UpdateStatus
pattern $bUpdateStatus_InProgress :: UpdateStatus
$mUpdateStatus_InProgress :: forall r. UpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateStatus_InProgress = UpdateStatus' "InProgress"

pattern UpdateStatus_Successful :: UpdateStatus
pattern $bUpdateStatus_Successful :: UpdateStatus
$mUpdateStatus_Successful :: forall r. UpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateStatus_Successful = UpdateStatus' "Successful"

{-# COMPLETE
  UpdateStatus_Cancelled,
  UpdateStatus_Failed,
  UpdateStatus_InProgress,
  UpdateStatus_Successful,
  UpdateStatus'
  #-}