{-# 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.DeletionProtectionType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CognitoIdentityProvider.Types.DeletionProtectionType
  ( DeletionProtectionType
      ( ..,
        DeletionProtectionType_ACTIVE,
        DeletionProtectionType_INACTIVE
      ),
  )
where

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

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

pattern DeletionProtectionType_ACTIVE :: DeletionProtectionType
pattern $bDeletionProtectionType_ACTIVE :: DeletionProtectionType
$mDeletionProtectionType_ACTIVE :: forall {r}.
DeletionProtectionType -> ((# #) -> r) -> ((# #) -> r) -> r
DeletionProtectionType_ACTIVE = DeletionProtectionType' "ACTIVE"

pattern DeletionProtectionType_INACTIVE :: DeletionProtectionType
pattern $bDeletionProtectionType_INACTIVE :: DeletionProtectionType
$mDeletionProtectionType_INACTIVE :: forall {r}.
DeletionProtectionType -> ((# #) -> r) -> ((# #) -> r) -> r
DeletionProtectionType_INACTIVE = DeletionProtectionType' "INACTIVE"

{-# COMPLETE
  DeletionProtectionType_ACTIVE,
  DeletionProtectionType_INACTIVE,
  DeletionProtectionType'
  #-}