{-# 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.APIGateway.Types.CacheClusterStatus
-- 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.APIGateway.Types.CacheClusterStatus
  ( CacheClusterStatus
      ( ..,
        CacheClusterStatus_AVAILABLE,
        CacheClusterStatus_CREATE_IN_PROGRESS,
        CacheClusterStatus_DELETE_IN_PROGRESS,
        CacheClusterStatus_FLUSH_IN_PROGRESS,
        CacheClusterStatus_NOT_AVAILABLE
      ),
  )
where

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

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

pattern CacheClusterStatus_AVAILABLE :: CacheClusterStatus
pattern $bCacheClusterStatus_AVAILABLE :: CacheClusterStatus
$mCacheClusterStatus_AVAILABLE :: forall {r}. CacheClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CacheClusterStatus_AVAILABLE = CacheClusterStatus' "AVAILABLE"

pattern CacheClusterStatus_CREATE_IN_PROGRESS :: CacheClusterStatus
pattern $bCacheClusterStatus_CREATE_IN_PROGRESS :: CacheClusterStatus
$mCacheClusterStatus_CREATE_IN_PROGRESS :: forall {r}. CacheClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CacheClusterStatus_CREATE_IN_PROGRESS = CacheClusterStatus' "CREATE_IN_PROGRESS"

pattern CacheClusterStatus_DELETE_IN_PROGRESS :: CacheClusterStatus
pattern $bCacheClusterStatus_DELETE_IN_PROGRESS :: CacheClusterStatus
$mCacheClusterStatus_DELETE_IN_PROGRESS :: forall {r}. CacheClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CacheClusterStatus_DELETE_IN_PROGRESS = CacheClusterStatus' "DELETE_IN_PROGRESS"

pattern CacheClusterStatus_FLUSH_IN_PROGRESS :: CacheClusterStatus
pattern $bCacheClusterStatus_FLUSH_IN_PROGRESS :: CacheClusterStatus
$mCacheClusterStatus_FLUSH_IN_PROGRESS :: forall {r}. CacheClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CacheClusterStatus_FLUSH_IN_PROGRESS = CacheClusterStatus' "FLUSH_IN_PROGRESS"

pattern CacheClusterStatus_NOT_AVAILABLE :: CacheClusterStatus
pattern $bCacheClusterStatus_NOT_AVAILABLE :: CacheClusterStatus
$mCacheClusterStatus_NOT_AVAILABLE :: forall {r}. CacheClusterStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CacheClusterStatus_NOT_AVAILABLE = CacheClusterStatus' "NOT_AVAILABLE"

{-# COMPLETE
  CacheClusterStatus_AVAILABLE,
  CacheClusterStatus_CREATE_IN_PROGRESS,
  CacheClusterStatus_DELETE_IN_PROGRESS,
  CacheClusterStatus_FLUSH_IN_PROGRESS,
  CacheClusterStatus_NOT_AVAILABLE,
  CacheClusterStatus'
  #-}