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