{-# 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.MigrationHubStrategy.Types.AuthType
-- 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.MigrationHubStrategy.Types.AuthType
  ( AuthType
      ( ..,
        AuthType_CERT,
        AuthType_NTLM,
        AuthType_SSH
      ),
  )
where

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

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

pattern AuthType_CERT :: AuthType
pattern $bAuthType_CERT :: AuthType
$mAuthType_CERT :: forall {r}. AuthType -> ((# #) -> r) -> ((# #) -> r) -> r
AuthType_CERT = AuthType' "CERT"

pattern AuthType_NTLM :: AuthType
pattern $bAuthType_NTLM :: AuthType
$mAuthType_NTLM :: forall {r}. AuthType -> ((# #) -> r) -> ((# #) -> r) -> r
AuthType_NTLM = AuthType' "NTLM"

pattern AuthType_SSH :: AuthType
pattern $bAuthType_SSH :: AuthType
$mAuthType_SSH :: forall {r}. AuthType -> ((# #) -> r) -> ((# #) -> r) -> r
AuthType_SSH = AuthType' "SSH"

{-# COMPLETE
  AuthType_CERT,
  AuthType_NTLM,
  AuthType_SSH,
  AuthType'
  #-}