{-# 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.ClientPasswordAuthType
-- 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.ClientPasswordAuthType
  ( ClientPasswordAuthType
      ( ..,
        ClientPasswordAuthType_MYSQL_NATIVE_PASSWORD,
        ClientPasswordAuthType_POSTGRES_MD5,
        ClientPasswordAuthType_POSTGRES_SCRAM_SHA_256,
        ClientPasswordAuthType_SQL_SERVER_AUTHENTICATION
      ),
  )
where

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

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

pattern ClientPasswordAuthType_MYSQL_NATIVE_PASSWORD :: ClientPasswordAuthType
pattern $bClientPasswordAuthType_MYSQL_NATIVE_PASSWORD :: ClientPasswordAuthType
$mClientPasswordAuthType_MYSQL_NATIVE_PASSWORD :: forall {r}.
ClientPasswordAuthType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientPasswordAuthType_MYSQL_NATIVE_PASSWORD = ClientPasswordAuthType' "MYSQL_NATIVE_PASSWORD"

pattern ClientPasswordAuthType_POSTGRES_MD5 :: ClientPasswordAuthType
pattern $bClientPasswordAuthType_POSTGRES_MD5 :: ClientPasswordAuthType
$mClientPasswordAuthType_POSTGRES_MD5 :: forall {r}.
ClientPasswordAuthType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientPasswordAuthType_POSTGRES_MD5 = ClientPasswordAuthType' "POSTGRES_MD5"

pattern ClientPasswordAuthType_POSTGRES_SCRAM_SHA_256 :: ClientPasswordAuthType
pattern $bClientPasswordAuthType_POSTGRES_SCRAM_SHA_256 :: ClientPasswordAuthType
$mClientPasswordAuthType_POSTGRES_SCRAM_SHA_256 :: forall {r}.
ClientPasswordAuthType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientPasswordAuthType_POSTGRES_SCRAM_SHA_256 = ClientPasswordAuthType' "POSTGRES_SCRAM_SHA_256"

pattern ClientPasswordAuthType_SQL_SERVER_AUTHENTICATION :: ClientPasswordAuthType
pattern $bClientPasswordAuthType_SQL_SERVER_AUTHENTICATION :: ClientPasswordAuthType
$mClientPasswordAuthType_SQL_SERVER_AUTHENTICATION :: forall {r}.
ClientPasswordAuthType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientPasswordAuthType_SQL_SERVER_AUTHENTICATION = ClientPasswordAuthType' "SQL_SERVER_AUTHENTICATION"

{-# COMPLETE
  ClientPasswordAuthType_MYSQL_NATIVE_PASSWORD,
  ClientPasswordAuthType_POSTGRES_MD5,
  ClientPasswordAuthType_POSTGRES_SCRAM_SHA_256,
  ClientPasswordAuthType_SQL_SERVER_AUTHENTICATION,
  ClientPasswordAuthType'
  #-}