{-# 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_ENABLED,
IAMAuthMode_REQUIRED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype IAMAuthMode = IAMAuthMode'
{ IAMAuthMode -> Text
fromIAMAuthMode ::
Data.Text
}
deriving stock
( Int -> IAMAuthMode -> ShowS
[IAMAuthMode] -> ShowS
IAMAuthMode -> String
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]
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
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
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
Prelude.Ord,
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
( Eq IAMAuthMode
Int -> IAMAuthMode -> Int
IAMAuthMode -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: IAMAuthMode -> ()
$crnf :: IAMAuthMode -> ()
Prelude.NFData,
Text -> Either String IAMAuthMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IAMAuthMode
$cfromText :: Text -> Either String IAMAuthMode
Data.FromText,
IAMAuthMode -> Text
forall a. (a -> Text) -> ToText a
toText :: IAMAuthMode -> Text
$ctoText :: IAMAuthMode -> Text
Data.ToText,
IAMAuthMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: IAMAuthMode -> ByteString
$ctoBS :: IAMAuthMode -> ByteString
Data.ToByteString,
IAMAuthMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IAMAuthMode -> ByteStringBuilder
$cbuild :: IAMAuthMode -> ByteStringBuilder
Data.ToLog,
HeaderName -> IAMAuthMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IAMAuthMode -> [Header]
$ctoHeader :: HeaderName -> IAMAuthMode -> [Header]
Data.ToHeader,
IAMAuthMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IAMAuthMode -> QueryString
$ctoQuery :: IAMAuthMode -> QueryString
Data.ToQuery,
Value -> Parser [IAMAuthMode]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [IAMAuthMode]
FromJSONKeyFunction IAMAuthMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IAMAuthMode]
$cfromJSONKeyList :: FromJSONKeyFunction [IAMAuthMode]
fromJSONKey :: FromJSONKeyFunction IAMAuthMode
$cfromJSONKey :: FromJSONKeyFunction IAMAuthMode
Data.FromJSONKey,
[IAMAuthMode] -> Encoding
[IAMAuthMode] -> Value
IAMAuthMode -> Encoding
IAMAuthMode -> Value
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
Data.ToJSON,
ToJSONKeyFunction [IAMAuthMode]
ToJSONKeyFunction IAMAuthMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IAMAuthMode]
$ctoJSONKeyList :: ToJSONKeyFunction [IAMAuthMode]
toJSONKey :: ToJSONKeyFunction IAMAuthMode
$ctoJSONKey :: ToJSONKeyFunction IAMAuthMode
Data.ToJSONKey,
[Node] -> Either String IAMAuthMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IAMAuthMode
$cparseXML :: [Node] -> Either String IAMAuthMode
Data.FromXML,
IAMAuthMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: IAMAuthMode -> XML
$ctoXML :: IAMAuthMode -> XML
Data.ToXML
)
pattern IAMAuthMode_DISABLED :: IAMAuthMode
pattern $bIAMAuthMode_DISABLED :: IAMAuthMode
$mIAMAuthMode_DISABLED :: forall {r}. IAMAuthMode -> ((# #) -> r) -> ((# #) -> r) -> r
IAMAuthMode_DISABLED = IAMAuthMode' "DISABLED"
pattern IAMAuthMode_ENABLED :: IAMAuthMode
pattern $bIAMAuthMode_ENABLED :: IAMAuthMode
$mIAMAuthMode_ENABLED :: forall {r}. IAMAuthMode -> ((# #) -> r) -> ((# #) -> r) -> r
IAMAuthMode_ENABLED = IAMAuthMode' "ENABLED"
pattern IAMAuthMode_REQUIRED :: IAMAuthMode
pattern $bIAMAuthMode_REQUIRED :: IAMAuthMode
$mIAMAuthMode_REQUIRED :: forall {r}. IAMAuthMode -> ((# #) -> r) -> ((# #) -> r) -> r
IAMAuthMode_REQUIRED = IAMAuthMode' "REQUIRED"
{-# COMPLETE
IAMAuthMode_DISABLED,
IAMAuthMode_ENABLED,
IAMAuthMode_REQUIRED,
IAMAuthMode'
#-}