{-# 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.KMS.Types.XksProxyConnectivityType
-- 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.KMS.Types.XksProxyConnectivityType
  ( XksProxyConnectivityType
      ( ..,
        XksProxyConnectivityType_PUBLIC_ENDPOINT,
        XksProxyConnectivityType_VPC_ENDPOINT_SERVICE
      ),
  )
where

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

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

pattern XksProxyConnectivityType_PUBLIC_ENDPOINT :: XksProxyConnectivityType
pattern $bXksProxyConnectivityType_PUBLIC_ENDPOINT :: XksProxyConnectivityType
$mXksProxyConnectivityType_PUBLIC_ENDPOINT :: forall {r}.
XksProxyConnectivityType -> ((# #) -> r) -> ((# #) -> r) -> r
XksProxyConnectivityType_PUBLIC_ENDPOINT = XksProxyConnectivityType' "PUBLIC_ENDPOINT"

pattern XksProxyConnectivityType_VPC_ENDPOINT_SERVICE :: XksProxyConnectivityType
pattern $bXksProxyConnectivityType_VPC_ENDPOINT_SERVICE :: XksProxyConnectivityType
$mXksProxyConnectivityType_VPC_ENDPOINT_SERVICE :: forall {r}.
XksProxyConnectivityType -> ((# #) -> r) -> ((# #) -> r) -> r
XksProxyConnectivityType_VPC_ENDPOINT_SERVICE = XksProxyConnectivityType' "VPC_ENDPOINT_SERVICE"

{-# COMPLETE
  XksProxyConnectivityType_PUBLIC_ENDPOINT,
  XksProxyConnectivityType_VPC_ENDPOINT_SERVICE,
  XksProxyConnectivityType'
  #-}