{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.IoTSiteWise.Types.AuthMode
( AuthMode
( ..,
AuthMode_IAM,
AuthMode_SSO
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AuthMode = AuthMode'
{ AuthMode -> Text
fromAuthMode ::
Core.Text
}
deriving stock
( Int -> AuthMode -> ShowS
[AuthMode] -> ShowS
AuthMode -> String
(Int -> AuthMode -> ShowS)
-> (AuthMode -> String) -> ([AuthMode] -> ShowS) -> Show AuthMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthMode] -> ShowS
$cshowList :: [AuthMode] -> ShowS
show :: AuthMode -> String
$cshow :: AuthMode -> String
showsPrec :: Int -> AuthMode -> ShowS
$cshowsPrec :: Int -> AuthMode -> ShowS
Prelude.Show,
ReadPrec [AuthMode]
ReadPrec AuthMode
Int -> ReadS AuthMode
ReadS [AuthMode]
(Int -> ReadS AuthMode)
-> ReadS [AuthMode]
-> ReadPrec AuthMode
-> ReadPrec [AuthMode]
-> Read AuthMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthMode]
$creadListPrec :: ReadPrec [AuthMode]
readPrec :: ReadPrec AuthMode
$creadPrec :: ReadPrec AuthMode
readList :: ReadS [AuthMode]
$creadList :: ReadS [AuthMode]
readsPrec :: Int -> ReadS AuthMode
$creadsPrec :: Int -> ReadS AuthMode
Prelude.Read,
AuthMode -> AuthMode -> Bool
(AuthMode -> AuthMode -> Bool)
-> (AuthMode -> AuthMode -> Bool) -> Eq AuthMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthMode -> AuthMode -> Bool
$c/= :: AuthMode -> AuthMode -> Bool
== :: AuthMode -> AuthMode -> Bool
$c== :: AuthMode -> AuthMode -> Bool
Prelude.Eq,
Eq AuthMode
Eq AuthMode
-> (AuthMode -> AuthMode -> Ordering)
-> (AuthMode -> AuthMode -> Bool)
-> (AuthMode -> AuthMode -> Bool)
-> (AuthMode -> AuthMode -> Bool)
-> (AuthMode -> AuthMode -> Bool)
-> (AuthMode -> AuthMode -> AuthMode)
-> (AuthMode -> AuthMode -> AuthMode)
-> Ord AuthMode
AuthMode -> AuthMode -> Bool
AuthMode -> AuthMode -> Ordering
AuthMode -> AuthMode -> AuthMode
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 :: AuthMode -> AuthMode -> AuthMode
$cmin :: AuthMode -> AuthMode -> AuthMode
max :: AuthMode -> AuthMode -> AuthMode
$cmax :: AuthMode -> AuthMode -> AuthMode
>= :: AuthMode -> AuthMode -> Bool
$c>= :: AuthMode -> AuthMode -> Bool
> :: AuthMode -> AuthMode -> Bool
$c> :: AuthMode -> AuthMode -> Bool
<= :: AuthMode -> AuthMode -> Bool
$c<= :: AuthMode -> AuthMode -> Bool
< :: AuthMode -> AuthMode -> Bool
$c< :: AuthMode -> AuthMode -> Bool
compare :: AuthMode -> AuthMode -> Ordering
$ccompare :: AuthMode -> AuthMode -> Ordering
$cp1Ord :: Eq AuthMode
Prelude.Ord,
(forall x. AuthMode -> Rep AuthMode x)
-> (forall x. Rep AuthMode x -> AuthMode) -> Generic AuthMode
forall x. Rep AuthMode x -> AuthMode
forall x. AuthMode -> Rep AuthMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AuthMode x -> AuthMode
$cfrom :: forall x. AuthMode -> Rep AuthMode x
Prelude.Generic
)
deriving newtype
( Int -> AuthMode -> Int
AuthMode -> Int
(Int -> AuthMode -> Int) -> (AuthMode -> Int) -> Hashable AuthMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AuthMode -> Int
$chash :: AuthMode -> Int
hashWithSalt :: Int -> AuthMode -> Int
$chashWithSalt :: Int -> AuthMode -> Int
Prelude.Hashable,
AuthMode -> ()
(AuthMode -> ()) -> NFData AuthMode
forall a. (a -> ()) -> NFData a
rnf :: AuthMode -> ()
$crnf :: AuthMode -> ()
Prelude.NFData,
Text -> Either String AuthMode
(Text -> Either String AuthMode) -> FromText AuthMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AuthMode
$cfromText :: Text -> Either String AuthMode
Core.FromText,
AuthMode -> Text
(AuthMode -> Text) -> ToText AuthMode
forall a. (a -> Text) -> ToText a
toText :: AuthMode -> Text
$ctoText :: AuthMode -> Text
Core.ToText,
AuthMode -> ByteString
(AuthMode -> ByteString) -> ToByteString AuthMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: AuthMode -> ByteString
$ctoBS :: AuthMode -> ByteString
Core.ToByteString,
AuthMode -> ByteStringBuilder
(AuthMode -> ByteStringBuilder) -> ToLog AuthMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AuthMode -> ByteStringBuilder
$cbuild :: AuthMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> AuthMode -> [Header]
(HeaderName -> AuthMode -> [Header]) -> ToHeader AuthMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AuthMode -> [Header]
$ctoHeader :: HeaderName -> AuthMode -> [Header]
Core.ToHeader,
AuthMode -> QueryString
(AuthMode -> QueryString) -> ToQuery AuthMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AuthMode -> QueryString
$ctoQuery :: AuthMode -> QueryString
Core.ToQuery,
Value -> Parser [AuthMode]
Value -> Parser AuthMode
(Value -> Parser AuthMode)
-> (Value -> Parser [AuthMode]) -> FromJSON AuthMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AuthMode]
$cparseJSONList :: Value -> Parser [AuthMode]
parseJSON :: Value -> Parser AuthMode
$cparseJSON :: Value -> Parser AuthMode
Core.FromJSON,
FromJSONKeyFunction [AuthMode]
FromJSONKeyFunction AuthMode
FromJSONKeyFunction AuthMode
-> FromJSONKeyFunction [AuthMode] -> FromJSONKey AuthMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AuthMode]
$cfromJSONKeyList :: FromJSONKeyFunction [AuthMode]
fromJSONKey :: FromJSONKeyFunction AuthMode
$cfromJSONKey :: FromJSONKeyFunction AuthMode
Core.FromJSONKey,
[AuthMode] -> Encoding
[AuthMode] -> Value
AuthMode -> Encoding
AuthMode -> Value
(AuthMode -> Value)
-> (AuthMode -> Encoding)
-> ([AuthMode] -> Value)
-> ([AuthMode] -> Encoding)
-> ToJSON AuthMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AuthMode] -> Encoding
$ctoEncodingList :: [AuthMode] -> Encoding
toJSONList :: [AuthMode] -> Value
$ctoJSONList :: [AuthMode] -> Value
toEncoding :: AuthMode -> Encoding
$ctoEncoding :: AuthMode -> Encoding
toJSON :: AuthMode -> Value
$ctoJSON :: AuthMode -> Value
Core.ToJSON,
ToJSONKeyFunction [AuthMode]
ToJSONKeyFunction AuthMode
ToJSONKeyFunction AuthMode
-> ToJSONKeyFunction [AuthMode] -> ToJSONKey AuthMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AuthMode]
$ctoJSONKeyList :: ToJSONKeyFunction [AuthMode]
toJSONKey :: ToJSONKeyFunction AuthMode
$ctoJSONKey :: ToJSONKeyFunction AuthMode
Core.ToJSONKey,
[Node] -> Either String AuthMode
([Node] -> Either String AuthMode) -> FromXML AuthMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AuthMode
$cparseXML :: [Node] -> Either String AuthMode
Core.FromXML,
AuthMode -> XML
(AuthMode -> XML) -> ToXML AuthMode
forall a. (a -> XML) -> ToXML a
toXML :: AuthMode -> XML
$ctoXML :: AuthMode -> XML
Core.ToXML
)
pattern AuthMode_IAM :: AuthMode
pattern $bAuthMode_IAM :: AuthMode
$mAuthMode_IAM :: forall r. AuthMode -> (Void# -> r) -> (Void# -> r) -> r
AuthMode_IAM = AuthMode' "IAM"
pattern AuthMode_SSO :: AuthMode
pattern $bAuthMode_SSO :: AuthMode
$mAuthMode_SSO :: forall r. AuthMode -> (Void# -> r) -> (Void# -> r) -> r
AuthMode_SSO = AuthMode' "SSO"
{-# COMPLETE
AuthMode_IAM,
AuthMode_SSO,
AuthMode'
#-}