{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.IoT.Types.AuthorizerStatus
( AuthorizerStatus
( ..,
AuthorizerStatus_ACTIVE,
AuthorizerStatus_INACTIVE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AuthorizerStatus = AuthorizerStatus'
{ AuthorizerStatus -> Text
fromAuthorizerStatus ::
Core.Text
}
deriving stock
( Int -> AuthorizerStatus -> ShowS
[AuthorizerStatus] -> ShowS
AuthorizerStatus -> String
(Int -> AuthorizerStatus -> ShowS)
-> (AuthorizerStatus -> String)
-> ([AuthorizerStatus] -> ShowS)
-> Show AuthorizerStatus
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]
(Int -> ReadS AuthorizerStatus)
-> ReadS [AuthorizerStatus]
-> ReadPrec AuthorizerStatus
-> ReadPrec [AuthorizerStatus]
-> Read 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
(AuthorizerStatus -> AuthorizerStatus -> Bool)
-> (AuthorizerStatus -> AuthorizerStatus -> Bool)
-> Eq AuthorizerStatus
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
Eq AuthorizerStatus
-> (AuthorizerStatus -> AuthorizerStatus -> Ordering)
-> (AuthorizerStatus -> AuthorizerStatus -> Bool)
-> (AuthorizerStatus -> AuthorizerStatus -> Bool)
-> (AuthorizerStatus -> AuthorizerStatus -> Bool)
-> (AuthorizerStatus -> AuthorizerStatus -> Bool)
-> (AuthorizerStatus -> AuthorizerStatus -> AuthorizerStatus)
-> (AuthorizerStatus -> AuthorizerStatus -> AuthorizerStatus)
-> Ord 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
$cp1Ord :: Eq AuthorizerStatus
Prelude.Ord,
(forall x. AuthorizerStatus -> Rep AuthorizerStatus x)
-> (forall x. Rep AuthorizerStatus x -> AuthorizerStatus)
-> Generic AuthorizerStatus
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
( Int -> AuthorizerStatus -> Int
AuthorizerStatus -> Int
(Int -> AuthorizerStatus -> Int)
-> (AuthorizerStatus -> Int) -> Hashable AuthorizerStatus
forall 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 -> ()
(AuthorizerStatus -> ()) -> NFData AuthorizerStatus
forall a. (a -> ()) -> NFData a
rnf :: AuthorizerStatus -> ()
$crnf :: AuthorizerStatus -> ()
Prelude.NFData,
Text -> Either String AuthorizerStatus
(Text -> Either String AuthorizerStatus)
-> FromText AuthorizerStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AuthorizerStatus
$cfromText :: Text -> Either String AuthorizerStatus
Core.FromText,
AuthorizerStatus -> Text
(AuthorizerStatus -> Text) -> ToText AuthorizerStatus
forall a. (a -> Text) -> ToText a
toText :: AuthorizerStatus -> Text
$ctoText :: AuthorizerStatus -> Text
Core.ToText,
AuthorizerStatus -> ByteString
(AuthorizerStatus -> ByteString) -> ToByteString AuthorizerStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: AuthorizerStatus -> ByteString
$ctoBS :: AuthorizerStatus -> ByteString
Core.ToByteString,
AuthorizerStatus -> ByteStringBuilder
(AuthorizerStatus -> ByteStringBuilder) -> ToLog AuthorizerStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AuthorizerStatus -> ByteStringBuilder
$cbuild :: AuthorizerStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> AuthorizerStatus -> [Header]
(HeaderName -> AuthorizerStatus -> [Header])
-> ToHeader AuthorizerStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AuthorizerStatus -> [Header]
$ctoHeader :: HeaderName -> AuthorizerStatus -> [Header]
Core.ToHeader,
AuthorizerStatus -> QueryString
(AuthorizerStatus -> QueryString) -> ToQuery AuthorizerStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AuthorizerStatus -> QueryString
$ctoQuery :: AuthorizerStatus -> QueryString
Core.ToQuery,
Value -> Parser [AuthorizerStatus]
Value -> Parser AuthorizerStatus
(Value -> Parser AuthorizerStatus)
-> (Value -> Parser [AuthorizerStatus])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [AuthorizerStatus]
FromJSONKeyFunction AuthorizerStatus
FromJSONKeyFunction AuthorizerStatus
-> FromJSONKeyFunction [AuthorizerStatus]
-> FromJSONKey AuthorizerStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AuthorizerStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AuthorizerStatus]
fromJSONKey :: FromJSONKeyFunction AuthorizerStatus
$cfromJSONKey :: FromJSONKeyFunction AuthorizerStatus
Core.FromJSONKey,
[AuthorizerStatus] -> Encoding
[AuthorizerStatus] -> Value
AuthorizerStatus -> Encoding
AuthorizerStatus -> Value
(AuthorizerStatus -> Value)
-> (AuthorizerStatus -> Encoding)
-> ([AuthorizerStatus] -> Value)
-> ([AuthorizerStatus] -> Encoding)
-> ToJSON AuthorizerStatus
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
Core.ToJSON,
ToJSONKeyFunction [AuthorizerStatus]
ToJSONKeyFunction AuthorizerStatus
ToJSONKeyFunction AuthorizerStatus
-> ToJSONKeyFunction [AuthorizerStatus]
-> ToJSONKey AuthorizerStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AuthorizerStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AuthorizerStatus]
toJSONKey :: ToJSONKeyFunction AuthorizerStatus
$ctoJSONKey :: ToJSONKeyFunction AuthorizerStatus
Core.ToJSONKey,
[Node] -> Either String AuthorizerStatus
([Node] -> Either String AuthorizerStatus)
-> FromXML AuthorizerStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AuthorizerStatus
$cparseXML :: [Node] -> Either String AuthorizerStatus
Core.FromXML,
AuthorizerStatus -> XML
(AuthorizerStatus -> XML) -> ToXML AuthorizerStatus
forall a. (a -> XML) -> ToXML a
toXML :: AuthorizerStatus -> XML
$ctoXML :: AuthorizerStatus -> XML
Core.ToXML
)
pattern AuthorizerStatus_ACTIVE :: AuthorizerStatus
pattern $bAuthorizerStatus_ACTIVE :: AuthorizerStatus
$mAuthorizerStatus_ACTIVE :: forall r. AuthorizerStatus -> (Void# -> r) -> (Void# -> r) -> r
AuthorizerStatus_ACTIVE = AuthorizerStatus' "ACTIVE"
pattern AuthorizerStatus_INACTIVE :: AuthorizerStatus
pattern $bAuthorizerStatus_INACTIVE :: AuthorizerStatus
$mAuthorizerStatus_INACTIVE :: forall r. AuthorizerStatus -> (Void# -> r) -> (Void# -> r) -> r
AuthorizerStatus_INACTIVE = AuthorizerStatus' "INACTIVE"
{-# COMPLETE
AuthorizerStatus_ACTIVE,
AuthorizerStatus_INACTIVE,
AuthorizerStatus'
#-}