{-# 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.IoT.Types.AuthorizerStatus
-- 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.IoT.Types.AuthorizerStatus
  ( AuthorizerStatus
      ( ..,
        AuthorizerStatus_ACTIVE,
        AuthorizerStatus_INACTIVE
      ),
  )
where

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

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

pattern AuthorizerStatus_ACTIVE :: AuthorizerStatus
pattern $bAuthorizerStatus_ACTIVE :: AuthorizerStatus
$mAuthorizerStatus_ACTIVE :: forall {r}. AuthorizerStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AuthorizerStatus_ACTIVE = AuthorizerStatus' "ACTIVE"

pattern AuthorizerStatus_INACTIVE :: AuthorizerStatus
pattern $bAuthorizerStatus_INACTIVE :: AuthorizerStatus
$mAuthorizerStatus_INACTIVE :: forall {r}. AuthorizerStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AuthorizerStatus_INACTIVE = AuthorizerStatus' "INACTIVE"

{-# COMPLETE
  AuthorizerStatus_ACTIVE,
  AuthorizerStatus_INACTIVE,
  AuthorizerStatus'
  #-}