{-# 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.AdvancedSecurityModeType
-- 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.AdvancedSecurityModeType
  ( AdvancedSecurityModeType
      ( ..,
        AdvancedSecurityModeType_AUDIT,
        AdvancedSecurityModeType_ENFORCED,
        AdvancedSecurityModeType_OFF
      ),
  )
where

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

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

pattern AdvancedSecurityModeType_AUDIT :: AdvancedSecurityModeType
pattern $bAdvancedSecurityModeType_AUDIT :: AdvancedSecurityModeType
$mAdvancedSecurityModeType_AUDIT :: forall r.
AdvancedSecurityModeType -> (Void# -> r) -> (Void# -> r) -> r
AdvancedSecurityModeType_AUDIT = AdvancedSecurityModeType' "AUDIT"

pattern AdvancedSecurityModeType_ENFORCED :: AdvancedSecurityModeType
pattern $bAdvancedSecurityModeType_ENFORCED :: AdvancedSecurityModeType
$mAdvancedSecurityModeType_ENFORCED :: forall r.
AdvancedSecurityModeType -> (Void# -> r) -> (Void# -> r) -> r
AdvancedSecurityModeType_ENFORCED = AdvancedSecurityModeType' "ENFORCED"

pattern AdvancedSecurityModeType_OFF :: AdvancedSecurityModeType
pattern $bAdvancedSecurityModeType_OFF :: AdvancedSecurityModeType
$mAdvancedSecurityModeType_OFF :: forall r.
AdvancedSecurityModeType -> (Void# -> r) -> (Void# -> r) -> r
AdvancedSecurityModeType_OFF = AdvancedSecurityModeType' "OFF"

{-# COMPLETE
  AdvancedSecurityModeType_AUDIT,
  AdvancedSecurityModeType_ENFORCED,
  AdvancedSecurityModeType_OFF,
  AdvancedSecurityModeType'
  #-}