{-# 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.DocDbElastic.Types.Auth
-- 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.DocDbElastic.Types.Auth
  ( Auth
      ( ..,
        Auth_PLAIN_TEXT,
        Auth_SECRET_ARN
      ),
  )
where

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

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

pattern Auth_PLAIN_TEXT :: Auth
pattern $bAuth_PLAIN_TEXT :: Auth
$mAuth_PLAIN_TEXT :: forall {r}. Auth -> ((# #) -> r) -> ((# #) -> r) -> r
Auth_PLAIN_TEXT = Auth' "PLAIN_TEXT"

pattern Auth_SECRET_ARN :: Auth
pattern $bAuth_SECRET_ARN :: Auth
$mAuth_SECRET_ARN :: forall {r}. Auth -> ((# #) -> r) -> ((# #) -> r) -> r
Auth_SECRET_ARN = Auth' "SECRET_ARN"

{-# COMPLETE
  Auth_PLAIN_TEXT,
  Auth_SECRET_ARN,
  Auth'
  #-}