{-# 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.RiskLevelType
-- 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.RiskLevelType
  ( RiskLevelType
      ( ..,
        RiskLevelType_High,
        RiskLevelType_Low,
        RiskLevelType_Medium
      ),
  )
where

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

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

pattern RiskLevelType_High :: RiskLevelType
pattern $bRiskLevelType_High :: RiskLevelType
$mRiskLevelType_High :: forall r. RiskLevelType -> (Void# -> r) -> (Void# -> r) -> r
RiskLevelType_High = RiskLevelType' "High"

pattern RiskLevelType_Low :: RiskLevelType
pattern $bRiskLevelType_Low :: RiskLevelType
$mRiskLevelType_Low :: forall r. RiskLevelType -> (Void# -> r) -> (Void# -> r) -> r
RiskLevelType_Low = RiskLevelType' "Low"

pattern RiskLevelType_Medium :: RiskLevelType
pattern $bRiskLevelType_Medium :: RiskLevelType
$mRiskLevelType_Medium :: forall r. RiskLevelType -> (Void# -> r) -> (Void# -> r) -> r
RiskLevelType_Medium = RiskLevelType' "Medium"

{-# COMPLETE
  RiskLevelType_High,
  RiskLevelType_Low,
  RiskLevelType_Medium,
  RiskLevelType'
  #-}