{-# 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.AmplifyUiBuilder.Types.TokenProviders
-- 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.AmplifyUiBuilder.Types.TokenProviders
  ( TokenProviders
      ( ..,
        TokenProviders_Figma
      ),
  )
where

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

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

pattern TokenProviders_Figma :: TokenProviders
pattern $bTokenProviders_Figma :: TokenProviders
$mTokenProviders_Figma :: forall {r}. TokenProviders -> ((# #) -> r) -> ((# #) -> r) -> r
TokenProviders_Figma = TokenProviders' "figma"

{-# COMPLETE
  TokenProviders_Figma,
  TokenProviders'
  #-}