{-# 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.Lambda.Types.Runtime
-- 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.Lambda.Types.Runtime
  ( Runtime
      ( ..,
        Runtime_Dotnet6,
        Runtime_Dotnetcore1_0,
        Runtime_Dotnetcore2_0,
        Runtime_Dotnetcore2_1,
        Runtime_Dotnetcore3_1,
        Runtime_Go1_x,
        Runtime_Java11,
        Runtime_Java8,
        Runtime_Java8_al2,
        Runtime_Nodejs,
        Runtime_Nodejs10_x,
        Runtime_Nodejs12_x,
        Runtime_Nodejs14_x,
        Runtime_Nodejs16_x,
        Runtime_Nodejs18_x,
        Runtime_Nodejs4_3,
        Runtime_Nodejs4_3_edge,
        Runtime_Nodejs6_10,
        Runtime_Nodejs8_10,
        Runtime_Provided,
        Runtime_Provided_al2,
        Runtime_Python2_7,
        Runtime_Python3_6,
        Runtime_Python3_7,
        Runtime_Python3_8,
        Runtime_Python3_9,
        Runtime_Ruby2_5,
        Runtime_Ruby2_7
      ),
  )
where

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

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

pattern Runtime_Dotnet6 :: Runtime
pattern $bRuntime_Dotnet6 :: Runtime
$mRuntime_Dotnet6 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Dotnet6 = Runtime' "dotnet6"

pattern Runtime_Dotnetcore1_0 :: Runtime
pattern $bRuntime_Dotnetcore1_0 :: Runtime
$mRuntime_Dotnetcore1_0 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Dotnetcore1_0 = Runtime' "dotnetcore1.0"

pattern Runtime_Dotnetcore2_0 :: Runtime
pattern $bRuntime_Dotnetcore2_0 :: Runtime
$mRuntime_Dotnetcore2_0 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Dotnetcore2_0 = Runtime' "dotnetcore2.0"

pattern Runtime_Dotnetcore2_1 :: Runtime
pattern $bRuntime_Dotnetcore2_1 :: Runtime
$mRuntime_Dotnetcore2_1 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Dotnetcore2_1 = Runtime' "dotnetcore2.1"

pattern Runtime_Dotnetcore3_1 :: Runtime
pattern $bRuntime_Dotnetcore3_1 :: Runtime
$mRuntime_Dotnetcore3_1 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Dotnetcore3_1 = Runtime' "dotnetcore3.1"

pattern Runtime_Go1_x :: Runtime
pattern $bRuntime_Go1_x :: Runtime
$mRuntime_Go1_x :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Go1_x = Runtime' "go1.x"

pattern Runtime_Java11 :: Runtime
pattern $bRuntime_Java11 :: Runtime
$mRuntime_Java11 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Java11 = Runtime' "java11"

pattern Runtime_Java8 :: Runtime
pattern $bRuntime_Java8 :: Runtime
$mRuntime_Java8 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Java8 = Runtime' "java8"

pattern Runtime_Java8_al2 :: Runtime
pattern $bRuntime_Java8_al2 :: Runtime
$mRuntime_Java8_al2 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Java8_al2 = Runtime' "java8.al2"

pattern Runtime_Nodejs :: Runtime
pattern $bRuntime_Nodejs :: Runtime
$mRuntime_Nodejs :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs = Runtime' "nodejs"

pattern Runtime_Nodejs10_x :: Runtime
pattern $bRuntime_Nodejs10_x :: Runtime
$mRuntime_Nodejs10_x :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs10_x = Runtime' "nodejs10.x"

pattern Runtime_Nodejs12_x :: Runtime
pattern $bRuntime_Nodejs12_x :: Runtime
$mRuntime_Nodejs12_x :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs12_x = Runtime' "nodejs12.x"

pattern Runtime_Nodejs14_x :: Runtime
pattern $bRuntime_Nodejs14_x :: Runtime
$mRuntime_Nodejs14_x :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs14_x = Runtime' "nodejs14.x"

pattern Runtime_Nodejs16_x :: Runtime
pattern $bRuntime_Nodejs16_x :: Runtime
$mRuntime_Nodejs16_x :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs16_x = Runtime' "nodejs16.x"

pattern Runtime_Nodejs18_x :: Runtime
pattern $bRuntime_Nodejs18_x :: Runtime
$mRuntime_Nodejs18_x :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs18_x = Runtime' "nodejs18.x"

pattern Runtime_Nodejs4_3 :: Runtime
pattern $bRuntime_Nodejs4_3 :: Runtime
$mRuntime_Nodejs4_3 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs4_3 = Runtime' "nodejs4.3"

pattern Runtime_Nodejs4_3_edge :: Runtime
pattern $bRuntime_Nodejs4_3_edge :: Runtime
$mRuntime_Nodejs4_3_edge :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs4_3_edge = Runtime' "nodejs4.3-edge"

pattern Runtime_Nodejs6_10 :: Runtime
pattern $bRuntime_Nodejs6_10 :: Runtime
$mRuntime_Nodejs6_10 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs6_10 = Runtime' "nodejs6.10"

pattern Runtime_Nodejs8_10 :: Runtime
pattern $bRuntime_Nodejs8_10 :: Runtime
$mRuntime_Nodejs8_10 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Nodejs8_10 = Runtime' "nodejs8.10"

pattern Runtime_Provided :: Runtime
pattern $bRuntime_Provided :: Runtime
$mRuntime_Provided :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Provided = Runtime' "provided"

pattern Runtime_Provided_al2 :: Runtime
pattern $bRuntime_Provided_al2 :: Runtime
$mRuntime_Provided_al2 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Provided_al2 = Runtime' "provided.al2"

pattern Runtime_Python2_7 :: Runtime
pattern $bRuntime_Python2_7 :: Runtime
$mRuntime_Python2_7 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Python2_7 = Runtime' "python2.7"

pattern Runtime_Python3_6 :: Runtime
pattern $bRuntime_Python3_6 :: Runtime
$mRuntime_Python3_6 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Python3_6 = Runtime' "python3.6"

pattern Runtime_Python3_7 :: Runtime
pattern $bRuntime_Python3_7 :: Runtime
$mRuntime_Python3_7 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Python3_7 = Runtime' "python3.7"

pattern Runtime_Python3_8 :: Runtime
pattern $bRuntime_Python3_8 :: Runtime
$mRuntime_Python3_8 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Python3_8 = Runtime' "python3.8"

pattern Runtime_Python3_9 :: Runtime
pattern $bRuntime_Python3_9 :: Runtime
$mRuntime_Python3_9 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Python3_9 = Runtime' "python3.9"

pattern Runtime_Ruby2_5 :: Runtime
pattern $bRuntime_Ruby2_5 :: Runtime
$mRuntime_Ruby2_5 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Ruby2_5 = Runtime' "ruby2.5"

pattern Runtime_Ruby2_7 :: Runtime
pattern $bRuntime_Ruby2_7 :: Runtime
$mRuntime_Ruby2_7 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_Ruby2_7 = Runtime' "ruby2.7"

{-# COMPLETE
  Runtime_Dotnet6,
  Runtime_Dotnetcore1_0,
  Runtime_Dotnetcore2_0,
  Runtime_Dotnetcore2_1,
  Runtime_Dotnetcore3_1,
  Runtime_Go1_x,
  Runtime_Java11,
  Runtime_Java8,
  Runtime_Java8_al2,
  Runtime_Nodejs,
  Runtime_Nodejs10_x,
  Runtime_Nodejs12_x,
  Runtime_Nodejs14_x,
  Runtime_Nodejs16_x,
  Runtime_Nodejs18_x,
  Runtime_Nodejs4_3,
  Runtime_Nodejs4_3_edge,
  Runtime_Nodejs6_10,
  Runtime_Nodejs8_10,
  Runtime_Provided,
  Runtime_Provided_al2,
  Runtime_Python2_7,
  Runtime_Python3_6,
  Runtime_Python3_7,
  Runtime_Python3_8,
  Runtime_Python3_9,
  Runtime_Ruby2_5,
  Runtime_Ruby2_7,
  Runtime'
  #-}