{-# 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.EC2.Types.UserTrustProviderType
-- 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.EC2.Types.UserTrustProviderType
  ( UserTrustProviderType
      ( ..,
        UserTrustProviderType_Iam_identity_center,
        UserTrustProviderType_Oidc
      ),
  )
where

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

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

pattern UserTrustProviderType_Iam_identity_center :: UserTrustProviderType
pattern $bUserTrustProviderType_Iam_identity_center :: UserTrustProviderType
$mUserTrustProviderType_Iam_identity_center :: forall {r}.
UserTrustProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
UserTrustProviderType_Iam_identity_center = UserTrustProviderType' "iam-identity-center"

pattern UserTrustProviderType_Oidc :: UserTrustProviderType
pattern $bUserTrustProviderType_Oidc :: UserTrustProviderType
$mUserTrustProviderType_Oidc :: forall {r}.
UserTrustProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
UserTrustProviderType_Oidc = UserTrustProviderType' "oidc"

{-# COMPLETE
  UserTrustProviderType_Iam_identity_center,
  UserTrustProviderType_Oidc,
  UserTrustProviderType'
  #-}