{-# 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.Kendra.Types.ServiceNowAuthenticationType
-- 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.Kendra.Types.ServiceNowAuthenticationType
  ( ServiceNowAuthenticationType
      ( ..,
        ServiceNowAuthenticationType_HTTP_BASIC,
        ServiceNowAuthenticationType_OAUTH2
      ),
  )
where

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

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

pattern ServiceNowAuthenticationType_HTTP_BASIC :: ServiceNowAuthenticationType
pattern $bServiceNowAuthenticationType_HTTP_BASIC :: ServiceNowAuthenticationType
$mServiceNowAuthenticationType_HTTP_BASIC :: forall {r}.
ServiceNowAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceNowAuthenticationType_HTTP_BASIC = ServiceNowAuthenticationType' "HTTP_BASIC"

pattern ServiceNowAuthenticationType_OAUTH2 :: ServiceNowAuthenticationType
pattern $bServiceNowAuthenticationType_OAUTH2 :: ServiceNowAuthenticationType
$mServiceNowAuthenticationType_OAUTH2 :: forall {r}.
ServiceNowAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceNowAuthenticationType_OAUTH2 = ServiceNowAuthenticationType' "OAUTH2"

{-# COMPLETE
  ServiceNowAuthenticationType_HTTP_BASIC,
  ServiceNowAuthenticationType_OAUTH2,
  ServiceNowAuthenticationType'
  #-}