{-# 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.DBProxyEndpointStatus
-- 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.RDS.Types.DBProxyEndpointStatus
  ( DBProxyEndpointStatus
      ( ..,
        DBProxyEndpointStatus_Available,
        DBProxyEndpointStatus_Creating,
        DBProxyEndpointStatus_Deleting,
        DBProxyEndpointStatus_Incompatible_network,
        DBProxyEndpointStatus_Insufficient_resource_limits,
        DBProxyEndpointStatus_Modifying
      ),
  )
where

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

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

pattern DBProxyEndpointStatus_Available :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Available :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Available :: forall {r}.
DBProxyEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DBProxyEndpointStatus_Available = DBProxyEndpointStatus' "available"

pattern DBProxyEndpointStatus_Creating :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Creating :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Creating :: forall {r}.
DBProxyEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DBProxyEndpointStatus_Creating = DBProxyEndpointStatus' "creating"

pattern DBProxyEndpointStatus_Deleting :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Deleting :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Deleting :: forall {r}.
DBProxyEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DBProxyEndpointStatus_Deleting = DBProxyEndpointStatus' "deleting"

pattern DBProxyEndpointStatus_Incompatible_network :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Incompatible_network :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Incompatible_network :: forall {r}.
DBProxyEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DBProxyEndpointStatus_Incompatible_network = DBProxyEndpointStatus' "incompatible-network"

pattern DBProxyEndpointStatus_Insufficient_resource_limits :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Insufficient_resource_limits :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Insufficient_resource_limits :: forall {r}.
DBProxyEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DBProxyEndpointStatus_Insufficient_resource_limits = DBProxyEndpointStatus' "insufficient-resource-limits"

pattern DBProxyEndpointStatus_Modifying :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Modifying :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Modifying :: forall {r}.
DBProxyEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DBProxyEndpointStatus_Modifying = DBProxyEndpointStatus' "modifying"

{-# COMPLETE
  DBProxyEndpointStatus_Available,
  DBProxyEndpointStatus_Creating,
  DBProxyEndpointStatus_Deleting,
  DBProxyEndpointStatus_Incompatible_network,
  DBProxyEndpointStatus_Insufficient_resource_limits,
  DBProxyEndpointStatus_Modifying,
  DBProxyEndpointStatus'
  #-}