{-# 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.CognitoIdentityProvider.Types.EventResponseType
-- 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.CognitoIdentityProvider.Types.EventResponseType
  ( EventResponseType
      ( ..,
        EventResponseType_Fail,
        EventResponseType_InProgress,
        EventResponseType_Pass
      ),
  )
where

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

newtype EventResponseType = EventResponseType'
  { EventResponseType -> Text
fromEventResponseType ::
      Data.Text
  }
  deriving stock
    ( Int -> EventResponseType -> ShowS
[EventResponseType] -> ShowS
EventResponseType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventResponseType] -> ShowS
$cshowList :: [EventResponseType] -> ShowS
show :: EventResponseType -> String
$cshow :: EventResponseType -> String
showsPrec :: Int -> EventResponseType -> ShowS
$cshowsPrec :: Int -> EventResponseType -> ShowS
Prelude.Show,
      ReadPrec [EventResponseType]
ReadPrec EventResponseType
Int -> ReadS EventResponseType
ReadS [EventResponseType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EventResponseType]
$creadListPrec :: ReadPrec [EventResponseType]
readPrec :: ReadPrec EventResponseType
$creadPrec :: ReadPrec EventResponseType
readList :: ReadS [EventResponseType]
$creadList :: ReadS [EventResponseType]
readsPrec :: Int -> ReadS EventResponseType
$creadsPrec :: Int -> ReadS EventResponseType
Prelude.Read,
      EventResponseType -> EventResponseType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventResponseType -> EventResponseType -> Bool
$c/= :: EventResponseType -> EventResponseType -> Bool
== :: EventResponseType -> EventResponseType -> Bool
$c== :: EventResponseType -> EventResponseType -> Bool
Prelude.Eq,
      Eq EventResponseType
EventResponseType -> EventResponseType -> Bool
EventResponseType -> EventResponseType -> Ordering
EventResponseType -> EventResponseType -> EventResponseType
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 :: EventResponseType -> EventResponseType -> EventResponseType
$cmin :: EventResponseType -> EventResponseType -> EventResponseType
max :: EventResponseType -> EventResponseType -> EventResponseType
$cmax :: EventResponseType -> EventResponseType -> EventResponseType
>= :: EventResponseType -> EventResponseType -> Bool
$c>= :: EventResponseType -> EventResponseType -> Bool
> :: EventResponseType -> EventResponseType -> Bool
$c> :: EventResponseType -> EventResponseType -> Bool
<= :: EventResponseType -> EventResponseType -> Bool
$c<= :: EventResponseType -> EventResponseType -> Bool
< :: EventResponseType -> EventResponseType -> Bool
$c< :: EventResponseType -> EventResponseType -> Bool
compare :: EventResponseType -> EventResponseType -> Ordering
$ccompare :: EventResponseType -> EventResponseType -> Ordering
Prelude.Ord,
      forall x. Rep EventResponseType x -> EventResponseType
forall x. EventResponseType -> Rep EventResponseType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EventResponseType x -> EventResponseType
$cfrom :: forall x. EventResponseType -> Rep EventResponseType x
Prelude.Generic
    )
  deriving newtype
    ( Eq EventResponseType
Int -> EventResponseType -> Int
EventResponseType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EventResponseType -> Int
$chash :: EventResponseType -> Int
hashWithSalt :: Int -> EventResponseType -> Int
$chashWithSalt :: Int -> EventResponseType -> Int
Prelude.Hashable,
      EventResponseType -> ()
forall a. (a -> ()) -> NFData a
rnf :: EventResponseType -> ()
$crnf :: EventResponseType -> ()
Prelude.NFData,
      Text -> Either String EventResponseType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EventResponseType
$cfromText :: Text -> Either String EventResponseType
Data.FromText,
      EventResponseType -> Text
forall a. (a -> Text) -> ToText a
toText :: EventResponseType -> Text
$ctoText :: EventResponseType -> Text
Data.ToText,
      EventResponseType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: EventResponseType -> ByteString
$ctoBS :: EventResponseType -> ByteString
Data.ToByteString,
      EventResponseType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EventResponseType -> ByteStringBuilder
$cbuild :: EventResponseType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> EventResponseType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EventResponseType -> [Header]
$ctoHeader :: HeaderName -> EventResponseType -> [Header]
Data.ToHeader,
      EventResponseType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EventResponseType -> QueryString
$ctoQuery :: EventResponseType -> QueryString
Data.ToQuery,
      Value -> Parser [EventResponseType]
Value -> Parser EventResponseType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EventResponseType]
$cparseJSONList :: Value -> Parser [EventResponseType]
parseJSON :: Value -> Parser EventResponseType
$cparseJSON :: Value -> Parser EventResponseType
Data.FromJSON,
      FromJSONKeyFunction [EventResponseType]
FromJSONKeyFunction EventResponseType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EventResponseType]
$cfromJSONKeyList :: FromJSONKeyFunction [EventResponseType]
fromJSONKey :: FromJSONKeyFunction EventResponseType
$cfromJSONKey :: FromJSONKeyFunction EventResponseType
Data.FromJSONKey,
      [EventResponseType] -> Encoding
[EventResponseType] -> Value
EventResponseType -> Encoding
EventResponseType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EventResponseType] -> Encoding
$ctoEncodingList :: [EventResponseType] -> Encoding
toJSONList :: [EventResponseType] -> Value
$ctoJSONList :: [EventResponseType] -> Value
toEncoding :: EventResponseType -> Encoding
$ctoEncoding :: EventResponseType -> Encoding
toJSON :: EventResponseType -> Value
$ctoJSON :: EventResponseType -> Value
Data.ToJSON,
      ToJSONKeyFunction [EventResponseType]
ToJSONKeyFunction EventResponseType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EventResponseType]
$ctoJSONKeyList :: ToJSONKeyFunction [EventResponseType]
toJSONKey :: ToJSONKeyFunction EventResponseType
$ctoJSONKey :: ToJSONKeyFunction EventResponseType
Data.ToJSONKey,
      [Node] -> Either String EventResponseType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EventResponseType
$cparseXML :: [Node] -> Either String EventResponseType
Data.FromXML,
      EventResponseType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: EventResponseType -> XML
$ctoXML :: EventResponseType -> XML
Data.ToXML
    )

pattern EventResponseType_Fail :: EventResponseType
pattern $bEventResponseType_Fail :: EventResponseType
$mEventResponseType_Fail :: forall {r}. EventResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
EventResponseType_Fail = EventResponseType' "Fail"

pattern EventResponseType_InProgress :: EventResponseType
pattern $bEventResponseType_InProgress :: EventResponseType
$mEventResponseType_InProgress :: forall {r}. EventResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
EventResponseType_InProgress = EventResponseType' "InProgress"

pattern EventResponseType_Pass :: EventResponseType
pattern $bEventResponseType_Pass :: EventResponseType
$mEventResponseType_Pass :: forall {r}. EventResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
EventResponseType_Pass = EventResponseType' "Pass"

{-# COMPLETE
  EventResponseType_Fail,
  EventResponseType_InProgress,
  EventResponseType_Pass,
  EventResponseType'
  #-}