{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CognitoIdentity.Types.AmbiguousRoleResolutionType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CognitoIdentity.Types.AmbiguousRoleResolutionType
  ( AmbiguousRoleResolutionType
      ( ..,
        AmbiguousRoleResolutionType_AuthenticatedRole,
        AmbiguousRoleResolutionType_Deny
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype AmbiguousRoleResolutionType = AmbiguousRoleResolutionType'
  { AmbiguousRoleResolutionType -> Text
fromAmbiguousRoleResolutionType ::
      Data.Text
  }
  deriving stock
    ( Int -> AmbiguousRoleResolutionType -> ShowS
[AmbiguousRoleResolutionType] -> ShowS
AmbiguousRoleResolutionType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AmbiguousRoleResolutionType
Int -> AmbiguousRoleResolutionType -> Int
AmbiguousRoleResolutionType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AmbiguousRoleResolutionType -> ()
$crnf :: AmbiguousRoleResolutionType -> ()
Prelude.NFData,
      Text -> Either String AmbiguousRoleResolutionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AmbiguousRoleResolutionType
$cfromText :: Text -> Either String AmbiguousRoleResolutionType
Data.FromText,
      AmbiguousRoleResolutionType -> Text
forall a. (a -> Text) -> ToText a
toText :: AmbiguousRoleResolutionType -> Text
$ctoText :: AmbiguousRoleResolutionType -> Text
Data.ToText,
      AmbiguousRoleResolutionType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AmbiguousRoleResolutionType -> ByteString
$ctoBS :: AmbiguousRoleResolutionType -> ByteString
Data.ToByteString,
      AmbiguousRoleResolutionType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AmbiguousRoleResolutionType -> ByteStringBuilder
$cbuild :: AmbiguousRoleResolutionType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AmbiguousRoleResolutionType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AmbiguousRoleResolutionType -> [Header]
$ctoHeader :: HeaderName -> AmbiguousRoleResolutionType -> [Header]
Data.ToHeader,
      AmbiguousRoleResolutionType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AmbiguousRoleResolutionType -> QueryString
$ctoQuery :: AmbiguousRoleResolutionType -> QueryString
Data.ToQuery,
      Value -> Parser [AmbiguousRoleResolutionType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AmbiguousRoleResolutionType]
FromJSONKeyFunction AmbiguousRoleResolutionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AmbiguousRoleResolutionType]
$cfromJSONKeyList :: FromJSONKeyFunction [AmbiguousRoleResolutionType]
fromJSONKey :: FromJSONKeyFunction AmbiguousRoleResolutionType
$cfromJSONKey :: FromJSONKeyFunction AmbiguousRoleResolutionType
Data.FromJSONKey,
      [AmbiguousRoleResolutionType] -> Encoding
[AmbiguousRoleResolutionType] -> Value
AmbiguousRoleResolutionType -> Encoding
AmbiguousRoleResolutionType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AmbiguousRoleResolutionType]
ToJSONKeyFunction AmbiguousRoleResolutionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AmbiguousRoleResolutionType]
$ctoJSONKeyList :: ToJSONKeyFunction [AmbiguousRoleResolutionType]
toJSONKey :: ToJSONKeyFunction AmbiguousRoleResolutionType
$ctoJSONKey :: ToJSONKeyFunction AmbiguousRoleResolutionType
Data.ToJSONKey,
      [Node] -> Either String AmbiguousRoleResolutionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AmbiguousRoleResolutionType
$cparseXML :: [Node] -> Either String AmbiguousRoleResolutionType
Data.FromXML,
      AmbiguousRoleResolutionType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AmbiguousRoleResolutionType -> XML
$ctoXML :: AmbiguousRoleResolutionType -> XML
Data.ToXML
    )

pattern AmbiguousRoleResolutionType_AuthenticatedRole :: AmbiguousRoleResolutionType
pattern $bAmbiguousRoleResolutionType_AuthenticatedRole :: AmbiguousRoleResolutionType
$mAmbiguousRoleResolutionType_AuthenticatedRole :: forall {r}.
AmbiguousRoleResolutionType -> ((# #) -> r) -> ((# #) -> r) -> r
AmbiguousRoleResolutionType_AuthenticatedRole = AmbiguousRoleResolutionType' "AuthenticatedRole"

pattern AmbiguousRoleResolutionType_Deny :: AmbiguousRoleResolutionType
pattern $bAmbiguousRoleResolutionType_Deny :: AmbiguousRoleResolutionType
$mAmbiguousRoleResolutionType_Deny :: forall {r}.
AmbiguousRoleResolutionType -> ((# #) -> r) -> ((# #) -> r) -> r
AmbiguousRoleResolutionType_Deny = AmbiguousRoleResolutionType' "Deny"

{-# COMPLETE
  AmbiguousRoleResolutionType_AuthenticatedRole,
  AmbiguousRoleResolutionType_Deny,
  AmbiguousRoleResolutionType'
  #-}