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