{-# 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.AccountTakeoverEventActionType
-- 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.AccountTakeoverEventActionType
  ( AccountTakeoverEventActionType
      ( ..,
        AccountTakeoverEventActionType_BLOCK,
        AccountTakeoverEventActionType_MFA_IF_CONFIGURED,
        AccountTakeoverEventActionType_MFA_REQUIRED,
        AccountTakeoverEventActionType_NO_ACTION
      ),
  )
where

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

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

pattern AccountTakeoverEventActionType_BLOCK :: AccountTakeoverEventActionType
pattern $bAccountTakeoverEventActionType_BLOCK :: AccountTakeoverEventActionType
$mAccountTakeoverEventActionType_BLOCK :: forall r.
AccountTakeoverEventActionType -> (Void# -> r) -> (Void# -> r) -> r
AccountTakeoverEventActionType_BLOCK = AccountTakeoverEventActionType' "BLOCK"

pattern AccountTakeoverEventActionType_MFA_IF_CONFIGURED :: AccountTakeoverEventActionType
pattern $bAccountTakeoverEventActionType_MFA_IF_CONFIGURED :: AccountTakeoverEventActionType
$mAccountTakeoverEventActionType_MFA_IF_CONFIGURED :: forall r.
AccountTakeoverEventActionType -> (Void# -> r) -> (Void# -> r) -> r
AccountTakeoverEventActionType_MFA_IF_CONFIGURED = AccountTakeoverEventActionType' "MFA_IF_CONFIGURED"

pattern AccountTakeoverEventActionType_MFA_REQUIRED :: AccountTakeoverEventActionType
pattern $bAccountTakeoverEventActionType_MFA_REQUIRED :: AccountTakeoverEventActionType
$mAccountTakeoverEventActionType_MFA_REQUIRED :: forall r.
AccountTakeoverEventActionType -> (Void# -> r) -> (Void# -> r) -> r
AccountTakeoverEventActionType_MFA_REQUIRED = AccountTakeoverEventActionType' "MFA_REQUIRED"

pattern AccountTakeoverEventActionType_NO_ACTION :: AccountTakeoverEventActionType
pattern $bAccountTakeoverEventActionType_NO_ACTION :: AccountTakeoverEventActionType
$mAccountTakeoverEventActionType_NO_ACTION :: forall r.
AccountTakeoverEventActionType -> (Void# -> r) -> (Void# -> r) -> r
AccountTakeoverEventActionType_NO_ACTION = AccountTakeoverEventActionType' "NO_ACTION"

{-# COMPLETE
  AccountTakeoverEventActionType_BLOCK,
  AccountTakeoverEventActionType_MFA_IF_CONFIGURED,
  AccountTakeoverEventActionType_MFA_REQUIRED,
  AccountTakeoverEventActionType_NO_ACTION,
  AccountTakeoverEventActionType'
  #-}