{-# 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.Transfer.Types.IdentityProviderType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Transfer.Types.IdentityProviderType
  ( IdentityProviderType
      ( ..,
        IdentityProviderType_API_GATEWAY,
        IdentityProviderType_AWS_DIRECTORY_SERVICE,
        IdentityProviderType_SERVICE_MANAGED
      ),
  )
where

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

-- | Returns information related to the type of user authentication that is
-- in use for a file transfer protocol-enabled server\'s users. For
-- @AWS_DIRECTORY_SERVICE@ or @SERVICE_MANAGED@ authentication, the Secure
-- Shell (SSH) public keys are stored with a user on the server instance.
-- For @API_GATEWAY@ authentication, your custom authentication method is
-- implemented by using an API call. The server can have only one method of
-- authentication.
newtype IdentityProviderType = IdentityProviderType'
  { IdentityProviderType -> Text
fromIdentityProviderType ::
      Core.Text
  }
  deriving stock
    ( Int -> IdentityProviderType -> ShowS
[IdentityProviderType] -> ShowS
IdentityProviderType -> String
(Int -> IdentityProviderType -> ShowS)
-> (IdentityProviderType -> String)
-> ([IdentityProviderType] -> ShowS)
-> Show IdentityProviderType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IdentityProviderType] -> ShowS
$cshowList :: [IdentityProviderType] -> ShowS
show :: IdentityProviderType -> String
$cshow :: IdentityProviderType -> String
showsPrec :: Int -> IdentityProviderType -> ShowS
$cshowsPrec :: Int -> IdentityProviderType -> ShowS
Prelude.Show,
      ReadPrec [IdentityProviderType]
ReadPrec IdentityProviderType
Int -> ReadS IdentityProviderType
ReadS [IdentityProviderType]
(Int -> ReadS IdentityProviderType)
-> ReadS [IdentityProviderType]
-> ReadPrec IdentityProviderType
-> ReadPrec [IdentityProviderType]
-> Read IdentityProviderType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IdentityProviderType]
$creadListPrec :: ReadPrec [IdentityProviderType]
readPrec :: ReadPrec IdentityProviderType
$creadPrec :: ReadPrec IdentityProviderType
readList :: ReadS [IdentityProviderType]
$creadList :: ReadS [IdentityProviderType]
readsPrec :: Int -> ReadS IdentityProviderType
$creadsPrec :: Int -> ReadS IdentityProviderType
Prelude.Read,
      IdentityProviderType -> IdentityProviderType -> Bool
(IdentityProviderType -> IdentityProviderType -> Bool)
-> (IdentityProviderType -> IdentityProviderType -> Bool)
-> Eq IdentityProviderType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IdentityProviderType -> IdentityProviderType -> Bool
$c/= :: IdentityProviderType -> IdentityProviderType -> Bool
== :: IdentityProviderType -> IdentityProviderType -> Bool
$c== :: IdentityProviderType -> IdentityProviderType -> Bool
Prelude.Eq,
      Eq IdentityProviderType
Eq IdentityProviderType
-> (IdentityProviderType -> IdentityProviderType -> Ordering)
-> (IdentityProviderType -> IdentityProviderType -> Bool)
-> (IdentityProviderType -> IdentityProviderType -> Bool)
-> (IdentityProviderType -> IdentityProviderType -> Bool)
-> (IdentityProviderType -> IdentityProviderType -> Bool)
-> (IdentityProviderType
    -> IdentityProviderType -> IdentityProviderType)
-> (IdentityProviderType
    -> IdentityProviderType -> IdentityProviderType)
-> Ord IdentityProviderType
IdentityProviderType -> IdentityProviderType -> Bool
IdentityProviderType -> IdentityProviderType -> Ordering
IdentityProviderType
-> IdentityProviderType -> IdentityProviderType
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 :: IdentityProviderType
-> IdentityProviderType -> IdentityProviderType
$cmin :: IdentityProviderType
-> IdentityProviderType -> IdentityProviderType
max :: IdentityProviderType
-> IdentityProviderType -> IdentityProviderType
$cmax :: IdentityProviderType
-> IdentityProviderType -> IdentityProviderType
>= :: IdentityProviderType -> IdentityProviderType -> Bool
$c>= :: IdentityProviderType -> IdentityProviderType -> Bool
> :: IdentityProviderType -> IdentityProviderType -> Bool
$c> :: IdentityProviderType -> IdentityProviderType -> Bool
<= :: IdentityProviderType -> IdentityProviderType -> Bool
$c<= :: IdentityProviderType -> IdentityProviderType -> Bool
< :: IdentityProviderType -> IdentityProviderType -> Bool
$c< :: IdentityProviderType -> IdentityProviderType -> Bool
compare :: IdentityProviderType -> IdentityProviderType -> Ordering
$ccompare :: IdentityProviderType -> IdentityProviderType -> Ordering
$cp1Ord :: Eq IdentityProviderType
Prelude.Ord,
      (forall x. IdentityProviderType -> Rep IdentityProviderType x)
-> (forall x. Rep IdentityProviderType x -> IdentityProviderType)
-> Generic IdentityProviderType
forall x. Rep IdentityProviderType x -> IdentityProviderType
forall x. IdentityProviderType -> Rep IdentityProviderType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IdentityProviderType x -> IdentityProviderType
$cfrom :: forall x. IdentityProviderType -> Rep IdentityProviderType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> IdentityProviderType -> Int
IdentityProviderType -> Int
(Int -> IdentityProviderType -> Int)
-> (IdentityProviderType -> Int) -> Hashable IdentityProviderType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: IdentityProviderType -> Int
$chash :: IdentityProviderType -> Int
hashWithSalt :: Int -> IdentityProviderType -> Int
$chashWithSalt :: Int -> IdentityProviderType -> Int
Prelude.Hashable,
      IdentityProviderType -> ()
(IdentityProviderType -> ()) -> NFData IdentityProviderType
forall a. (a -> ()) -> NFData a
rnf :: IdentityProviderType -> ()
$crnf :: IdentityProviderType -> ()
Prelude.NFData,
      Text -> Either String IdentityProviderType
(Text -> Either String IdentityProviderType)
-> FromText IdentityProviderType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IdentityProviderType
$cfromText :: Text -> Either String IdentityProviderType
Core.FromText,
      IdentityProviderType -> Text
(IdentityProviderType -> Text) -> ToText IdentityProviderType
forall a. (a -> Text) -> ToText a
toText :: IdentityProviderType -> Text
$ctoText :: IdentityProviderType -> Text
Core.ToText,
      IdentityProviderType -> ByteString
(IdentityProviderType -> ByteString)
-> ToByteString IdentityProviderType
forall a. (a -> ByteString) -> ToByteString a
toBS :: IdentityProviderType -> ByteString
$ctoBS :: IdentityProviderType -> ByteString
Core.ToByteString,
      IdentityProviderType -> ByteStringBuilder
(IdentityProviderType -> ByteStringBuilder)
-> ToLog IdentityProviderType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IdentityProviderType -> ByteStringBuilder
$cbuild :: IdentityProviderType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> IdentityProviderType -> [Header]
(HeaderName -> IdentityProviderType -> [Header])
-> ToHeader IdentityProviderType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IdentityProviderType -> [Header]
$ctoHeader :: HeaderName -> IdentityProviderType -> [Header]
Core.ToHeader,
      IdentityProviderType -> QueryString
(IdentityProviderType -> QueryString)
-> ToQuery IdentityProviderType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IdentityProviderType -> QueryString
$ctoQuery :: IdentityProviderType -> QueryString
Core.ToQuery,
      Value -> Parser [IdentityProviderType]
Value -> Parser IdentityProviderType
(Value -> Parser IdentityProviderType)
-> (Value -> Parser [IdentityProviderType])
-> FromJSON IdentityProviderType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [IdentityProviderType]
$cparseJSONList :: Value -> Parser [IdentityProviderType]
parseJSON :: Value -> Parser IdentityProviderType
$cparseJSON :: Value -> Parser IdentityProviderType
Core.FromJSON,
      FromJSONKeyFunction [IdentityProviderType]
FromJSONKeyFunction IdentityProviderType
FromJSONKeyFunction IdentityProviderType
-> FromJSONKeyFunction [IdentityProviderType]
-> FromJSONKey IdentityProviderType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IdentityProviderType]
$cfromJSONKeyList :: FromJSONKeyFunction [IdentityProviderType]
fromJSONKey :: FromJSONKeyFunction IdentityProviderType
$cfromJSONKey :: FromJSONKeyFunction IdentityProviderType
Core.FromJSONKey,
      [IdentityProviderType] -> Encoding
[IdentityProviderType] -> Value
IdentityProviderType -> Encoding
IdentityProviderType -> Value
(IdentityProviderType -> Value)
-> (IdentityProviderType -> Encoding)
-> ([IdentityProviderType] -> Value)
-> ([IdentityProviderType] -> Encoding)
-> ToJSON IdentityProviderType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [IdentityProviderType] -> Encoding
$ctoEncodingList :: [IdentityProviderType] -> Encoding
toJSONList :: [IdentityProviderType] -> Value
$ctoJSONList :: [IdentityProviderType] -> Value
toEncoding :: IdentityProviderType -> Encoding
$ctoEncoding :: IdentityProviderType -> Encoding
toJSON :: IdentityProviderType -> Value
$ctoJSON :: IdentityProviderType -> Value
Core.ToJSON,
      ToJSONKeyFunction [IdentityProviderType]
ToJSONKeyFunction IdentityProviderType
ToJSONKeyFunction IdentityProviderType
-> ToJSONKeyFunction [IdentityProviderType]
-> ToJSONKey IdentityProviderType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IdentityProviderType]
$ctoJSONKeyList :: ToJSONKeyFunction [IdentityProviderType]
toJSONKey :: ToJSONKeyFunction IdentityProviderType
$ctoJSONKey :: ToJSONKeyFunction IdentityProviderType
Core.ToJSONKey,
      [Node] -> Either String IdentityProviderType
([Node] -> Either String IdentityProviderType)
-> FromXML IdentityProviderType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IdentityProviderType
$cparseXML :: [Node] -> Either String IdentityProviderType
Core.FromXML,
      IdentityProviderType -> XML
(IdentityProviderType -> XML) -> ToXML IdentityProviderType
forall a. (a -> XML) -> ToXML a
toXML :: IdentityProviderType -> XML
$ctoXML :: IdentityProviderType -> XML
Core.ToXML
    )

pattern IdentityProviderType_API_GATEWAY :: IdentityProviderType
pattern $bIdentityProviderType_API_GATEWAY :: IdentityProviderType
$mIdentityProviderType_API_GATEWAY :: forall r. IdentityProviderType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderType_API_GATEWAY = IdentityProviderType' "API_GATEWAY"

pattern IdentityProviderType_AWS_DIRECTORY_SERVICE :: IdentityProviderType
pattern $bIdentityProviderType_AWS_DIRECTORY_SERVICE :: IdentityProviderType
$mIdentityProviderType_AWS_DIRECTORY_SERVICE :: forall r. IdentityProviderType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderType_AWS_DIRECTORY_SERVICE = IdentityProviderType' "AWS_DIRECTORY_SERVICE"

pattern IdentityProviderType_SERVICE_MANAGED :: IdentityProviderType
pattern $bIdentityProviderType_SERVICE_MANAGED :: IdentityProviderType
$mIdentityProviderType_SERVICE_MANAGED :: forall r. IdentityProviderType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderType_SERVICE_MANAGED = IdentityProviderType' "SERVICE_MANAGED"

{-# COMPLETE
  IdentityProviderType_API_GATEWAY,
  IdentityProviderType_AWS_DIRECTORY_SERVICE,
  IdentityProviderType_SERVICE_MANAGED,
  IdentityProviderType'
  #-}