{-# 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.VpcEndpointType
-- 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.VpcEndpointType
  ( VpcEndpointType
      ( ..,
        VpcEndpointType_Gateway,
        VpcEndpointType_GatewayLoadBalancer,
        VpcEndpointType_Interface
      ),
  )
where

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

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

pattern VpcEndpointType_Gateway :: VpcEndpointType
pattern $bVpcEndpointType_Gateway :: VpcEndpointType
$mVpcEndpointType_Gateway :: forall {r}. VpcEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
VpcEndpointType_Gateway = VpcEndpointType' "Gateway"

pattern VpcEndpointType_GatewayLoadBalancer :: VpcEndpointType
pattern $bVpcEndpointType_GatewayLoadBalancer :: VpcEndpointType
$mVpcEndpointType_GatewayLoadBalancer :: forall {r}. VpcEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
VpcEndpointType_GatewayLoadBalancer = VpcEndpointType' "GatewayLoadBalancer"

pattern VpcEndpointType_Interface :: VpcEndpointType
pattern $bVpcEndpointType_Interface :: VpcEndpointType
$mVpcEndpointType_Interface :: forall {r}. VpcEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
VpcEndpointType_Interface = VpcEndpointType' "Interface"

{-# COMPLETE
  VpcEndpointType_Gateway,
  VpcEndpointType_GatewayLoadBalancer,
  VpcEndpointType_Interface,
  VpcEndpointType'
  #-}