{-# 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.Prelude as Prelude
newtype AuthResources = AuthResources'
{ AuthResources -> Text
fromAuthResources ::
Core.Text
}
deriving stock
( Int -> AuthResources -> ShowS
[AuthResources] -> ShowS
AuthResources -> String
(Int -> AuthResources -> ShowS)
-> (AuthResources -> String)
-> ([AuthResources] -> ShowS)
-> Show AuthResources
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]
(Int -> ReadS AuthResources)
-> ReadS [AuthResources]
-> ReadPrec AuthResources
-> ReadPrec [AuthResources]
-> Read 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
(AuthResources -> AuthResources -> Bool)
-> (AuthResources -> AuthResources -> Bool) -> Eq AuthResources
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
Eq AuthResources
-> (AuthResources -> AuthResources -> Ordering)
-> (AuthResources -> AuthResources -> Bool)
-> (AuthResources -> AuthResources -> Bool)
-> (AuthResources -> AuthResources -> Bool)
-> (AuthResources -> AuthResources -> Bool)
-> (AuthResources -> AuthResources -> AuthResources)
-> (AuthResources -> AuthResources -> AuthResources)
-> Ord 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
$cp1Ord :: Eq AuthResources
Prelude.Ord,
(forall x. AuthResources -> Rep AuthResources x)
-> (forall x. Rep AuthResources x -> AuthResources)
-> Generic AuthResources
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
( Int -> AuthResources -> Int
AuthResources -> Int
(Int -> AuthResources -> Int)
-> (AuthResources -> Int) -> Hashable AuthResources
forall 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 -> ()
(AuthResources -> ()) -> NFData AuthResources
forall a. (a -> ()) -> NFData a
rnf :: AuthResources -> ()
$crnf :: AuthResources -> ()
Prelude.NFData,
Text -> Either String AuthResources
(Text -> Either String AuthResources) -> FromText AuthResources
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AuthResources
$cfromText :: Text -> Either String AuthResources
Core.FromText,
AuthResources -> Text
(AuthResources -> Text) -> ToText AuthResources
forall a. (a -> Text) -> ToText a
toText :: AuthResources -> Text
$ctoText :: AuthResources -> Text
Core.ToText,
AuthResources -> ByteString
(AuthResources -> ByteString) -> ToByteString AuthResources
forall a. (a -> ByteString) -> ToByteString a
toBS :: AuthResources -> ByteString
$ctoBS :: AuthResources -> ByteString
Core.ToByteString,
AuthResources -> ByteStringBuilder
(AuthResources -> ByteStringBuilder) -> ToLog AuthResources
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AuthResources -> ByteStringBuilder
$cbuild :: AuthResources -> ByteStringBuilder
Core.ToLog,
HeaderName -> AuthResources -> [Header]
(HeaderName -> AuthResources -> [Header]) -> ToHeader AuthResources
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AuthResources -> [Header]
$ctoHeader :: HeaderName -> AuthResources -> [Header]
Core.ToHeader,
AuthResources -> QueryString
(AuthResources -> QueryString) -> ToQuery AuthResources
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AuthResources -> QueryString
$ctoQuery :: AuthResources -> QueryString
Core.ToQuery,
Value -> Parser [AuthResources]
Value -> Parser AuthResources
(Value -> Parser AuthResources)
-> (Value -> Parser [AuthResources]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [AuthResources]
FromJSONKeyFunction AuthResources
FromJSONKeyFunction AuthResources
-> FromJSONKeyFunction [AuthResources] -> FromJSONKey AuthResources
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AuthResources]
$cfromJSONKeyList :: FromJSONKeyFunction [AuthResources]
fromJSONKey :: FromJSONKeyFunction AuthResources
$cfromJSONKey :: FromJSONKeyFunction AuthResources
Core.FromJSONKey,
[AuthResources] -> Encoding
[AuthResources] -> Value
AuthResources -> Encoding
AuthResources -> Value
(AuthResources -> Value)
-> (AuthResources -> Encoding)
-> ([AuthResources] -> Value)
-> ([AuthResources] -> Encoding)
-> ToJSON AuthResources
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
Core.ToJSON,
ToJSONKeyFunction [AuthResources]
ToJSONKeyFunction AuthResources
ToJSONKeyFunction AuthResources
-> ToJSONKeyFunction [AuthResources] -> ToJSONKey AuthResources
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AuthResources]
$ctoJSONKeyList :: ToJSONKeyFunction [AuthResources]
toJSONKey :: ToJSONKeyFunction AuthResources
$ctoJSONKey :: ToJSONKeyFunction AuthResources
Core.ToJSONKey,
[Node] -> Either String AuthResources
([Node] -> Either String AuthResources) -> FromXML AuthResources
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AuthResources
$cparseXML :: [Node] -> Either String AuthResources
Core.FromXML,
AuthResources -> XML
(AuthResources -> XML) -> ToXML AuthResources
forall a. (a -> XML) -> ToXML a
toXML :: AuthResources -> XML
$ctoXML :: AuthResources -> XML
Core.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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
AuthResources_USER_POOL_ONLY = AuthResources' "USER_POOL_ONLY"
{-# COMPLETE
AuthResources_IDENTITY_POOL_AND_USER_POOL,
AuthResources_USER_POOL_ONLY,
AuthResources'
#-}