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