{-# 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.CompromisedCredentialsEventActionType
-- 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.CompromisedCredentialsEventActionType
  ( CompromisedCredentialsEventActionType
      ( ..,
        CompromisedCredentialsEventActionType_BLOCK,
        CompromisedCredentialsEventActionType_NO_ACTION
      ),
  )
where

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

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

pattern CompromisedCredentialsEventActionType_BLOCK :: CompromisedCredentialsEventActionType
pattern $bCompromisedCredentialsEventActionType_BLOCK :: CompromisedCredentialsEventActionType
$mCompromisedCredentialsEventActionType_BLOCK :: forall r.
CompromisedCredentialsEventActionType
-> (Void# -> r) -> (Void# -> r) -> r
CompromisedCredentialsEventActionType_BLOCK = CompromisedCredentialsEventActionType' "BLOCK"

pattern CompromisedCredentialsEventActionType_NO_ACTION :: CompromisedCredentialsEventActionType
pattern $bCompromisedCredentialsEventActionType_NO_ACTION :: CompromisedCredentialsEventActionType
$mCompromisedCredentialsEventActionType_NO_ACTION :: forall r.
CompromisedCredentialsEventActionType
-> (Void# -> r) -> (Void# -> r) -> r
CompromisedCredentialsEventActionType_NO_ACTION = CompromisedCredentialsEventActionType' "NO_ACTION"

{-# COMPLETE
  CompromisedCredentialsEventActionType_BLOCK,
  CompromisedCredentialsEventActionType_NO_ACTION,
  CompromisedCredentialsEventActionType'
  #-}