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