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