{-# 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.DBProxyEndpointTargetRole
-- 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.DBProxyEndpointTargetRole
  ( DBProxyEndpointTargetRole
      ( ..,
        DBProxyEndpointTargetRole_READ_ONLY,
        DBProxyEndpointTargetRole_READ_WRITE
      ),
  )
where

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

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

pattern DBProxyEndpointTargetRole_READ_ONLY :: DBProxyEndpointTargetRole
pattern $bDBProxyEndpointTargetRole_READ_ONLY :: DBProxyEndpointTargetRole
$mDBProxyEndpointTargetRole_READ_ONLY :: forall r.
DBProxyEndpointTargetRole -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointTargetRole_READ_ONLY = DBProxyEndpointTargetRole' "READ_ONLY"

pattern DBProxyEndpointTargetRole_READ_WRITE :: DBProxyEndpointTargetRole
pattern $bDBProxyEndpointTargetRole_READ_WRITE :: DBProxyEndpointTargetRole
$mDBProxyEndpointTargetRole_READ_WRITE :: forall r.
DBProxyEndpointTargetRole -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointTargetRole_READ_WRITE = DBProxyEndpointTargetRole' "READ_WRITE"

{-# COMPLETE
  DBProxyEndpointTargetRole_READ_ONLY,
  DBProxyEndpointTargetRole_READ_WRITE,
  DBProxyEndpointTargetRole'
  #-}