{-# 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.EnvironmentType
-- 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.EnvironmentType
  ( EnvironmentType
      ( ..,
        EnvironmentType_Ec2,
        EnvironmentType_Ssh
      ),
  )
where

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

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

pattern EnvironmentType_Ec2 :: EnvironmentType
pattern $bEnvironmentType_Ec2 :: EnvironmentType
$mEnvironmentType_Ec2 :: forall {r}. EnvironmentType -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentType_Ec2 = EnvironmentType' "ec2"

pattern EnvironmentType_Ssh :: EnvironmentType
pattern $bEnvironmentType_Ssh :: EnvironmentType
$mEnvironmentType_Ssh :: forall {r}. EnvironmentType -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentType_Ssh = EnvironmentType' "ssh"

{-# COMPLETE
  EnvironmentType_Ec2,
  EnvironmentType_Ssh,
  EnvironmentType'
  #-}