{-# 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.TrustProviderType
-- 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.TrustProviderType
  ( TrustProviderType
      ( ..,
        TrustProviderType_Device,
        TrustProviderType_User
      ),
  )
where

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

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

pattern TrustProviderType_Device :: TrustProviderType
pattern $bTrustProviderType_Device :: TrustProviderType
$mTrustProviderType_Device :: forall {r}. TrustProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
TrustProviderType_Device = TrustProviderType' "device"

pattern TrustProviderType_User :: TrustProviderType
pattern $bTrustProviderType_User :: TrustProviderType
$mTrustProviderType_User :: forall {r}. TrustProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
TrustProviderType_User = TrustProviderType' "user"

{-# COMPLETE
  TrustProviderType_Device,
  TrustProviderType_User,
  TrustProviderType'
  #-}