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