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