{-# 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.EMR.Types.IdentityType
-- 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.EMR.Types.IdentityType
  ( IdentityType
      ( ..,
        IdentityType_GROUP,
        IdentityType_USER
      ),
  )
where

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

newtype IdentityType = IdentityType'
  { IdentityType -> Text
fromIdentityType ::
      Data.Text
  }
  deriving stock
    ( Int -> IdentityType -> ShowS
[IdentityType] -> ShowS
IdentityType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq IdentityType
Int -> IdentityType -> Int
IdentityType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: IdentityType -> ()
$crnf :: IdentityType -> ()
Prelude.NFData,
      Text -> Either String IdentityType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IdentityType
$cfromText :: Text -> Either String IdentityType
Data.FromText,
      IdentityType -> Text
forall a. (a -> Text) -> ToText a
toText :: IdentityType -> Text
$ctoText :: IdentityType -> Text
Data.ToText,
      IdentityType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: IdentityType -> ByteString
$ctoBS :: IdentityType -> ByteString
Data.ToByteString,
      IdentityType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IdentityType -> ByteStringBuilder
$cbuild :: IdentityType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> IdentityType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IdentityType -> [Header]
$ctoHeader :: HeaderName -> IdentityType -> [Header]
Data.ToHeader,
      IdentityType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IdentityType -> QueryString
$ctoQuery :: IdentityType -> QueryString
Data.ToQuery,
      Value -> Parser [IdentityType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [IdentityType]
FromJSONKeyFunction IdentityType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IdentityType]
$cfromJSONKeyList :: FromJSONKeyFunction [IdentityType]
fromJSONKey :: FromJSONKeyFunction IdentityType
$cfromJSONKey :: FromJSONKeyFunction IdentityType
Data.FromJSONKey,
      [IdentityType] -> Encoding
[IdentityType] -> Value
IdentityType -> Encoding
IdentityType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [IdentityType]
ToJSONKeyFunction IdentityType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IdentityType]
$ctoJSONKeyList :: ToJSONKeyFunction [IdentityType]
toJSONKey :: ToJSONKeyFunction IdentityType
$ctoJSONKey :: ToJSONKeyFunction IdentityType
Data.ToJSONKey,
      [Node] -> Either String IdentityType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IdentityType
$cparseXML :: [Node] -> Either String IdentityType
Data.FromXML,
      IdentityType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: IdentityType -> XML
$ctoXML :: IdentityType -> XML
Data.ToXML
    )

pattern IdentityType_GROUP :: IdentityType
pattern $bIdentityType_GROUP :: IdentityType
$mIdentityType_GROUP :: forall {r}. IdentityType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentityType_GROUP = IdentityType' "GROUP"

pattern IdentityType_USER :: IdentityType
pattern $bIdentityType_USER :: IdentityType
$mIdentityType_USER :: forall {r}. IdentityType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentityType_USER = IdentityType' "USER"

{-# COMPLETE
  IdentityType_GROUP,
  IdentityType_USER,
  IdentityType'
  #-}