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