{-# 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.VpnProtocol
-- 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.VpnProtocol
  ( VpnProtocol
      ( ..,
        VpnProtocol_Openvpn
      ),
  )
where

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

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

pattern VpnProtocol_Openvpn :: VpnProtocol
pattern $bVpnProtocol_Openvpn :: VpnProtocol
$mVpnProtocol_Openvpn :: forall {r}. VpnProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
VpnProtocol_Openvpn = VpnProtocol' "openvpn"

{-# COMPLETE
  VpnProtocol_Openvpn,
  VpnProtocol'
  #-}