{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CognitoIdentityProvider.Types.EventResponseType
  ( EventResponseType
      ( ..,
        EventResponseType_Failure,
        EventResponseType_Success
      ),
  )
where

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

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

pattern EventResponseType_Failure :: EventResponseType
pattern $bEventResponseType_Failure :: EventResponseType
$mEventResponseType_Failure :: forall r. EventResponseType -> (Void# -> r) -> (Void# -> r) -> r
EventResponseType_Failure = EventResponseType' "Failure"

pattern EventResponseType_Success :: EventResponseType
pattern $bEventResponseType_Success :: EventResponseType
$mEventResponseType_Success :: forall r. EventResponseType -> (Void# -> r) -> (Void# -> r) -> r
EventResponseType_Success = EventResponseType' "Success"

{-# COMPLETE
  EventResponseType_Failure,
  EventResponseType_Success,
  EventResponseType'
  #-}