{-# 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.Grafana.Types.UserType
-- 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.Grafana.Types.UserType
  ( UserType
      ( ..,
        UserType_SSO_GROUP,
        UserType_SSO_USER
      ),
  )
where

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

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

pattern UserType_SSO_GROUP :: UserType
pattern $bUserType_SSO_GROUP :: UserType
$mUserType_SSO_GROUP :: forall {r}. UserType -> ((# #) -> r) -> ((# #) -> r) -> r
UserType_SSO_GROUP = UserType' "SSO_GROUP"

pattern UserType_SSO_USER :: UserType
pattern $bUserType_SSO_USER :: UserType
$mUserType_SSO_USER :: forall {r}. UserType -> ((# #) -> r) -> ((# #) -> r) -> r
UserType_SSO_USER = UserType' "SSO_USER"

{-# COMPLETE
  UserType_SSO_GROUP,
  UserType_SSO_USER,
  UserType'
  #-}