{-# 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.ConnectivityType
-- 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.ConnectivityType
  ( ConnectivityType
      ( ..,
        ConnectivityType_Private,
        ConnectivityType_Public
      ),
  )
where

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

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

pattern ConnectivityType_Private :: ConnectivityType
pattern $bConnectivityType_Private :: ConnectivityType
$mConnectivityType_Private :: forall {r}. ConnectivityType -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectivityType_Private = ConnectivityType' "private"

pattern ConnectivityType_Public :: ConnectivityType
pattern $bConnectivityType_Public :: ConnectivityType
$mConnectivityType_Public :: forall {r}. ConnectivityType -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectivityType_Public = ConnectivityType' "public"

{-# COMPLETE
  ConnectivityType_Private,
  ConnectivityType_Public,
  ConnectivityType'
  #-}