{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MemoryDb.Types.InputAuthenticationType
( InputAuthenticationType
( ..,
InputAuthenticationType_Password
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype InputAuthenticationType = InputAuthenticationType'
{ InputAuthenticationType -> Text
fromInputAuthenticationType ::
Core.Text
}
deriving stock
( Int -> InputAuthenticationType -> ShowS
[InputAuthenticationType] -> ShowS
InputAuthenticationType -> String
(Int -> InputAuthenticationType -> ShowS)
-> (InputAuthenticationType -> String)
-> ([InputAuthenticationType] -> ShowS)
-> Show InputAuthenticationType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputAuthenticationType] -> ShowS
$cshowList :: [InputAuthenticationType] -> ShowS
show :: InputAuthenticationType -> String
$cshow :: InputAuthenticationType -> String
showsPrec :: Int -> InputAuthenticationType -> ShowS
$cshowsPrec :: Int -> InputAuthenticationType -> ShowS
Prelude.Show,
ReadPrec [InputAuthenticationType]
ReadPrec InputAuthenticationType
Int -> ReadS InputAuthenticationType
ReadS [InputAuthenticationType]
(Int -> ReadS InputAuthenticationType)
-> ReadS [InputAuthenticationType]
-> ReadPrec InputAuthenticationType
-> ReadPrec [InputAuthenticationType]
-> Read InputAuthenticationType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputAuthenticationType]
$creadListPrec :: ReadPrec [InputAuthenticationType]
readPrec :: ReadPrec InputAuthenticationType
$creadPrec :: ReadPrec InputAuthenticationType
readList :: ReadS [InputAuthenticationType]
$creadList :: ReadS [InputAuthenticationType]
readsPrec :: Int -> ReadS InputAuthenticationType
$creadsPrec :: Int -> ReadS InputAuthenticationType
Prelude.Read,
InputAuthenticationType -> InputAuthenticationType -> Bool
(InputAuthenticationType -> InputAuthenticationType -> Bool)
-> (InputAuthenticationType -> InputAuthenticationType -> Bool)
-> Eq InputAuthenticationType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputAuthenticationType -> InputAuthenticationType -> Bool
$c/= :: InputAuthenticationType -> InputAuthenticationType -> Bool
== :: InputAuthenticationType -> InputAuthenticationType -> Bool
$c== :: InputAuthenticationType -> InputAuthenticationType -> Bool
Prelude.Eq,
Eq InputAuthenticationType
Eq InputAuthenticationType
-> (InputAuthenticationType -> InputAuthenticationType -> Ordering)
-> (InputAuthenticationType -> InputAuthenticationType -> Bool)
-> (InputAuthenticationType -> InputAuthenticationType -> Bool)
-> (InputAuthenticationType -> InputAuthenticationType -> Bool)
-> (InputAuthenticationType -> InputAuthenticationType -> Bool)
-> (InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType)
-> (InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType)
-> Ord InputAuthenticationType
InputAuthenticationType -> InputAuthenticationType -> Bool
InputAuthenticationType -> InputAuthenticationType -> Ordering
InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType
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 :: InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType
$cmin :: InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType
max :: InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType
$cmax :: InputAuthenticationType
-> InputAuthenticationType -> InputAuthenticationType
>= :: InputAuthenticationType -> InputAuthenticationType -> Bool
$c>= :: InputAuthenticationType -> InputAuthenticationType -> Bool
> :: InputAuthenticationType -> InputAuthenticationType -> Bool
$c> :: InputAuthenticationType -> InputAuthenticationType -> Bool
<= :: InputAuthenticationType -> InputAuthenticationType -> Bool
$c<= :: InputAuthenticationType -> InputAuthenticationType -> Bool
< :: InputAuthenticationType -> InputAuthenticationType -> Bool
$c< :: InputAuthenticationType -> InputAuthenticationType -> Bool
compare :: InputAuthenticationType -> InputAuthenticationType -> Ordering
$ccompare :: InputAuthenticationType -> InputAuthenticationType -> Ordering
$cp1Ord :: Eq InputAuthenticationType
Prelude.Ord,
(forall x.
InputAuthenticationType -> Rep InputAuthenticationType x)
-> (forall x.
Rep InputAuthenticationType x -> InputAuthenticationType)
-> Generic InputAuthenticationType
forall x. Rep InputAuthenticationType x -> InputAuthenticationType
forall x. InputAuthenticationType -> Rep InputAuthenticationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputAuthenticationType x -> InputAuthenticationType
$cfrom :: forall x. InputAuthenticationType -> Rep InputAuthenticationType x
Prelude.Generic
)
deriving newtype
( Int -> InputAuthenticationType -> Int
InputAuthenticationType -> Int
(Int -> InputAuthenticationType -> Int)
-> (InputAuthenticationType -> Int)
-> Hashable InputAuthenticationType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputAuthenticationType -> Int
$chash :: InputAuthenticationType -> Int
hashWithSalt :: Int -> InputAuthenticationType -> Int
$chashWithSalt :: Int -> InputAuthenticationType -> Int
Prelude.Hashable,
InputAuthenticationType -> ()
(InputAuthenticationType -> ()) -> NFData InputAuthenticationType
forall a. (a -> ()) -> NFData a
rnf :: InputAuthenticationType -> ()
$crnf :: InputAuthenticationType -> ()
Prelude.NFData,
Text -> Either String InputAuthenticationType
(Text -> Either String InputAuthenticationType)
-> FromText InputAuthenticationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputAuthenticationType
$cfromText :: Text -> Either String InputAuthenticationType
Core.FromText,
InputAuthenticationType -> Text
(InputAuthenticationType -> Text) -> ToText InputAuthenticationType
forall a. (a -> Text) -> ToText a
toText :: InputAuthenticationType -> Text
$ctoText :: InputAuthenticationType -> Text
Core.ToText,
InputAuthenticationType -> ByteString
(InputAuthenticationType -> ByteString)
-> ToByteString InputAuthenticationType
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputAuthenticationType -> ByteString
$ctoBS :: InputAuthenticationType -> ByteString
Core.ToByteString,
InputAuthenticationType -> ByteStringBuilder
(InputAuthenticationType -> ByteStringBuilder)
-> ToLog InputAuthenticationType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputAuthenticationType -> ByteStringBuilder
$cbuild :: InputAuthenticationType -> ByteStringBuilder
Core.ToLog,
HeaderName -> InputAuthenticationType -> [Header]
(HeaderName -> InputAuthenticationType -> [Header])
-> ToHeader InputAuthenticationType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputAuthenticationType -> [Header]
$ctoHeader :: HeaderName -> InputAuthenticationType -> [Header]
Core.ToHeader,
InputAuthenticationType -> QueryString
(InputAuthenticationType -> QueryString)
-> ToQuery InputAuthenticationType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputAuthenticationType -> QueryString
$ctoQuery :: InputAuthenticationType -> QueryString
Core.ToQuery,
Value -> Parser [InputAuthenticationType]
Value -> Parser InputAuthenticationType
(Value -> Parser InputAuthenticationType)
-> (Value -> Parser [InputAuthenticationType])
-> FromJSON InputAuthenticationType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputAuthenticationType]
$cparseJSONList :: Value -> Parser [InputAuthenticationType]
parseJSON :: Value -> Parser InputAuthenticationType
$cparseJSON :: Value -> Parser InputAuthenticationType
Core.FromJSON,
FromJSONKeyFunction [InputAuthenticationType]
FromJSONKeyFunction InputAuthenticationType
FromJSONKeyFunction InputAuthenticationType
-> FromJSONKeyFunction [InputAuthenticationType]
-> FromJSONKey InputAuthenticationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputAuthenticationType]
$cfromJSONKeyList :: FromJSONKeyFunction [InputAuthenticationType]
fromJSONKey :: FromJSONKeyFunction InputAuthenticationType
$cfromJSONKey :: FromJSONKeyFunction InputAuthenticationType
Core.FromJSONKey,
[InputAuthenticationType] -> Encoding
[InputAuthenticationType] -> Value
InputAuthenticationType -> Encoding
InputAuthenticationType -> Value
(InputAuthenticationType -> Value)
-> (InputAuthenticationType -> Encoding)
-> ([InputAuthenticationType] -> Value)
-> ([InputAuthenticationType] -> Encoding)
-> ToJSON InputAuthenticationType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputAuthenticationType] -> Encoding
$ctoEncodingList :: [InputAuthenticationType] -> Encoding
toJSONList :: [InputAuthenticationType] -> Value
$ctoJSONList :: [InputAuthenticationType] -> Value
toEncoding :: InputAuthenticationType -> Encoding
$ctoEncoding :: InputAuthenticationType -> Encoding
toJSON :: InputAuthenticationType -> Value
$ctoJSON :: InputAuthenticationType -> Value
Core.ToJSON,
ToJSONKeyFunction [InputAuthenticationType]
ToJSONKeyFunction InputAuthenticationType
ToJSONKeyFunction InputAuthenticationType
-> ToJSONKeyFunction [InputAuthenticationType]
-> ToJSONKey InputAuthenticationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputAuthenticationType]
$ctoJSONKeyList :: ToJSONKeyFunction [InputAuthenticationType]
toJSONKey :: ToJSONKeyFunction InputAuthenticationType
$ctoJSONKey :: ToJSONKeyFunction InputAuthenticationType
Core.ToJSONKey,
[Node] -> Either String InputAuthenticationType
([Node] -> Either String InputAuthenticationType)
-> FromXML InputAuthenticationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputAuthenticationType
$cparseXML :: [Node] -> Either String InputAuthenticationType
Core.FromXML,
InputAuthenticationType -> XML
(InputAuthenticationType -> XML) -> ToXML InputAuthenticationType
forall a. (a -> XML) -> ToXML a
toXML :: InputAuthenticationType -> XML
$ctoXML :: InputAuthenticationType -> XML
Core.ToXML
)
pattern InputAuthenticationType_Password :: InputAuthenticationType
pattern $bInputAuthenticationType_Password :: InputAuthenticationType
$mInputAuthenticationType_Password :: forall r.
InputAuthenticationType -> (Void# -> r) -> (Void# -> r) -> r
InputAuthenticationType_Password = InputAuthenticationType' "password"
{-# COMPLETE
InputAuthenticationType_Password,
InputAuthenticationType'
#-}