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