{-# 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.RDS.Types.DBProxyStatus
-- 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.RDS.Types.DBProxyStatus
  ( DBProxyStatus
      ( ..,
        DBProxyStatus_Available,
        DBProxyStatus_Creating,
        DBProxyStatus_Deleting,
        DBProxyStatus_Incompatible_network,
        DBProxyStatus_Insufficient_resource_limits,
        DBProxyStatus_Modifying,
        DBProxyStatus_Reactivating,
        DBProxyStatus_Suspended,
        DBProxyStatus_Suspending
      ),
  )
where

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

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

pattern DBProxyStatus_Available :: DBProxyStatus
pattern $bDBProxyStatus_Available :: DBProxyStatus
$mDBProxyStatus_Available :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Available = DBProxyStatus' "available"

pattern DBProxyStatus_Creating :: DBProxyStatus
pattern $bDBProxyStatus_Creating :: DBProxyStatus
$mDBProxyStatus_Creating :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Creating = DBProxyStatus' "creating"

pattern DBProxyStatus_Deleting :: DBProxyStatus
pattern $bDBProxyStatus_Deleting :: DBProxyStatus
$mDBProxyStatus_Deleting :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Deleting = DBProxyStatus' "deleting"

pattern DBProxyStatus_Incompatible_network :: DBProxyStatus
pattern $bDBProxyStatus_Incompatible_network :: DBProxyStatus
$mDBProxyStatus_Incompatible_network :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Incompatible_network = DBProxyStatus' "incompatible-network"

pattern DBProxyStatus_Insufficient_resource_limits :: DBProxyStatus
pattern $bDBProxyStatus_Insufficient_resource_limits :: DBProxyStatus
$mDBProxyStatus_Insufficient_resource_limits :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Insufficient_resource_limits = DBProxyStatus' "insufficient-resource-limits"

pattern DBProxyStatus_Modifying :: DBProxyStatus
pattern $bDBProxyStatus_Modifying :: DBProxyStatus
$mDBProxyStatus_Modifying :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Modifying = DBProxyStatus' "modifying"

pattern DBProxyStatus_Reactivating :: DBProxyStatus
pattern $bDBProxyStatus_Reactivating :: DBProxyStatus
$mDBProxyStatus_Reactivating :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Reactivating = DBProxyStatus' "reactivating"

pattern DBProxyStatus_Suspended :: DBProxyStatus
pattern $bDBProxyStatus_Suspended :: DBProxyStatus
$mDBProxyStatus_Suspended :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Suspended = DBProxyStatus' "suspended"

pattern DBProxyStatus_Suspending :: DBProxyStatus
pattern $bDBProxyStatus_Suspending :: DBProxyStatus
$mDBProxyStatus_Suspending :: forall r. DBProxyStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyStatus_Suspending = DBProxyStatus' "suspending"

{-# COMPLETE
  DBProxyStatus_Available,
  DBProxyStatus_Creating,
  DBProxyStatus_Deleting,
  DBProxyStatus_Incompatible_network,
  DBProxyStatus_Insufficient_resource_limits,
  DBProxyStatus_Modifying,
  DBProxyStatus_Reactivating,
  DBProxyStatus_Suspended,
  DBProxyStatus_Suspending,
  DBProxyStatus'
  #-}