{-# 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.Cloud9.Types.ConnectionType
-- 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.Cloud9.Types.ConnectionType
  ( ConnectionType
      ( ..,
        ConnectionType_CONNECT_SSH,
        ConnectionType_CONNECT_SSM
      ),
  )
where

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

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

pattern ConnectionType_CONNECT_SSH :: ConnectionType
pattern $bConnectionType_CONNECT_SSH :: ConnectionType
$mConnectionType_CONNECT_SSH :: forall {r}. ConnectionType -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectionType_CONNECT_SSH = ConnectionType' "CONNECT_SSH"

pattern ConnectionType_CONNECT_SSM :: ConnectionType
pattern $bConnectionType_CONNECT_SSM :: ConnectionType
$mConnectionType_CONNECT_SSM :: forall {r}. ConnectionType -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectionType_CONNECT_SSM = ConnectionType' "CONNECT_SSM"

{-# COMPLETE
  ConnectionType_CONNECT_SSH,
  ConnectionType_CONNECT_SSM,
  ConnectionType'
  #-}