{-# 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.AppRunner.Types.Runtime
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AppRunner.Types.Runtime
  ( Runtime
      ( ..,
        Runtime_NODEJS_12,
        Runtime_PYTHON_3
      ),
  )
where

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

newtype Runtime = Runtime' {Runtime -> Text
fromRuntime :: Core.Text}
  deriving stock
    ( Int -> Runtime -> ShowS
[Runtime] -> ShowS
Runtime -> String
(Int -> Runtime -> ShowS)
-> (Runtime -> String) -> ([Runtime] -> ShowS) -> Show Runtime
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]
(Int -> ReadS Runtime)
-> ReadS [Runtime]
-> ReadPrec Runtime
-> ReadPrec [Runtime]
-> Read 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
(Runtime -> Runtime -> Bool)
-> (Runtime -> Runtime -> Bool) -> Eq Runtime
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
Eq Runtime
-> (Runtime -> Runtime -> Ordering)
-> (Runtime -> Runtime -> Bool)
-> (Runtime -> Runtime -> Bool)
-> (Runtime -> Runtime -> Bool)
-> (Runtime -> Runtime -> Bool)
-> (Runtime -> Runtime -> Runtime)
-> (Runtime -> Runtime -> Runtime)
-> Ord 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
$cp1Ord :: Eq Runtime
Prelude.Ord,
      (forall x. Runtime -> Rep Runtime x)
-> (forall x. Rep Runtime x -> Runtime) -> Generic Runtime
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
    ( Int -> Runtime -> Int
Runtime -> Int
(Int -> Runtime -> Int) -> (Runtime -> Int) -> Hashable Runtime
forall 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 -> ()
(Runtime -> ()) -> NFData Runtime
forall a. (a -> ()) -> NFData a
rnf :: Runtime -> ()
$crnf :: Runtime -> ()
Prelude.NFData,
      Text -> Either String Runtime
(Text -> Either String Runtime) -> FromText Runtime
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Runtime
$cfromText :: Text -> Either String Runtime
Core.FromText,
      Runtime -> Text
(Runtime -> Text) -> ToText Runtime
forall a. (a -> Text) -> ToText a
toText :: Runtime -> Text
$ctoText :: Runtime -> Text
Core.ToText,
      Runtime -> ByteString
(Runtime -> ByteString) -> ToByteString Runtime
forall a. (a -> ByteString) -> ToByteString a
toBS :: Runtime -> ByteString
$ctoBS :: Runtime -> ByteString
Core.ToByteString,
      Runtime -> ByteStringBuilder
(Runtime -> ByteStringBuilder) -> ToLog Runtime
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Runtime -> ByteStringBuilder
$cbuild :: Runtime -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Runtime -> [Header]
(HeaderName -> Runtime -> [Header]) -> ToHeader Runtime
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Runtime -> [Header]
$ctoHeader :: HeaderName -> Runtime -> [Header]
Core.ToHeader,
      Runtime -> QueryString
(Runtime -> QueryString) -> ToQuery Runtime
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Runtime -> QueryString
$ctoQuery :: Runtime -> QueryString
Core.ToQuery,
      Value -> Parser [Runtime]
Value -> Parser Runtime
(Value -> Parser Runtime)
-> (Value -> Parser [Runtime]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Runtime]
FromJSONKeyFunction Runtime
FromJSONKeyFunction Runtime
-> FromJSONKeyFunction [Runtime] -> FromJSONKey Runtime
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Runtime]
$cfromJSONKeyList :: FromJSONKeyFunction [Runtime]
fromJSONKey :: FromJSONKeyFunction Runtime
$cfromJSONKey :: FromJSONKeyFunction Runtime
Core.FromJSONKey,
      [Runtime] -> Encoding
[Runtime] -> Value
Runtime -> Encoding
Runtime -> Value
(Runtime -> Value)
-> (Runtime -> Encoding)
-> ([Runtime] -> Value)
-> ([Runtime] -> Encoding)
-> ToJSON Runtime
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
Core.ToJSON,
      ToJSONKeyFunction [Runtime]
ToJSONKeyFunction Runtime
ToJSONKeyFunction Runtime
-> ToJSONKeyFunction [Runtime] -> ToJSONKey Runtime
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Runtime]
$ctoJSONKeyList :: ToJSONKeyFunction [Runtime]
toJSONKey :: ToJSONKeyFunction Runtime
$ctoJSONKey :: ToJSONKeyFunction Runtime
Core.ToJSONKey,
      [Node] -> Either String Runtime
([Node] -> Either String Runtime) -> FromXML Runtime
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Runtime
$cparseXML :: [Node] -> Either String Runtime
Core.FromXML,
      Runtime -> XML
(Runtime -> XML) -> ToXML Runtime
forall a. (a -> XML) -> ToXML a
toXML :: Runtime -> XML
$ctoXML :: Runtime -> XML
Core.ToXML
    )

pattern Runtime_NODEJS_12 :: Runtime
pattern $bRuntime_NODEJS_12 :: Runtime
$mRuntime_NODEJS_12 :: forall r. Runtime -> (Void# -> r) -> (Void# -> r) -> r
Runtime_NODEJS_12 = Runtime' "NODEJS_12"

pattern Runtime_PYTHON_3 :: Runtime
pattern $bRuntime_PYTHON_3 :: Runtime
$mRuntime_PYTHON_3 :: forall r. Runtime -> (Void# -> r) -> (Void# -> r) -> r
Runtime_PYTHON_3 = Runtime' "PYTHON_3"

{-# COMPLETE
  Runtime_NODEJS_12,
  Runtime_PYTHON_3,
  Runtime'
  #-}