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