{-# 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.ClientVpnAuthenticationType
-- 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.ClientVpnAuthenticationType
  ( ClientVpnAuthenticationType
      ( ..,
        ClientVpnAuthenticationType_Certificate_authentication,
        ClientVpnAuthenticationType_Directory_service_authentication,
        ClientVpnAuthenticationType_Federated_authentication
      ),
  )
where

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

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

pattern ClientVpnAuthenticationType_Certificate_authentication :: ClientVpnAuthenticationType
pattern $bClientVpnAuthenticationType_Certificate_authentication :: ClientVpnAuthenticationType
$mClientVpnAuthenticationType_Certificate_authentication :: forall {r}.
ClientVpnAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientVpnAuthenticationType_Certificate_authentication = ClientVpnAuthenticationType' "certificate-authentication"

pattern ClientVpnAuthenticationType_Directory_service_authentication :: ClientVpnAuthenticationType
pattern $bClientVpnAuthenticationType_Directory_service_authentication :: ClientVpnAuthenticationType
$mClientVpnAuthenticationType_Directory_service_authentication :: forall {r}.
ClientVpnAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientVpnAuthenticationType_Directory_service_authentication = ClientVpnAuthenticationType' "directory-service-authentication"

pattern ClientVpnAuthenticationType_Federated_authentication :: ClientVpnAuthenticationType
pattern $bClientVpnAuthenticationType_Federated_authentication :: ClientVpnAuthenticationType
$mClientVpnAuthenticationType_Federated_authentication :: forall {r}.
ClientVpnAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientVpnAuthenticationType_Federated_authentication = ClientVpnAuthenticationType' "federated-authentication"

{-# COMPLETE
  ClientVpnAuthenticationType_Certificate_authentication,
  ClientVpnAuthenticationType_Directory_service_authentication,
  ClientVpnAuthenticationType_Federated_authentication,
  ClientVpnAuthenticationType'
  #-}