{-# 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.Inspector2.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.Inspector2.Types.Runtime
  ( Runtime
      ( ..,
        Runtime_GO_1_X,
        Runtime_JAVA_11,
        Runtime_JAVA_8,
        Runtime_JAVA_8_AL2,
        Runtime_NODEJS,
        Runtime_NODEJS_12_X,
        Runtime_NODEJS_14_X,
        Runtime_NODEJS_16_X,
        Runtime_NODEJS_18_X,
        Runtime_PYTHON_3_7,
        Runtime_PYTHON_3_8,
        Runtime_PYTHON_3_9,
        Runtime_UNSUPPORTED
      ),
  )
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_GO_1_X :: Runtime
pattern $bRuntime_GO_1_X :: Runtime
$mRuntime_GO_1_X :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_GO_1_X = Runtime' "GO_1_X"

pattern Runtime_JAVA_11 :: Runtime
pattern $bRuntime_JAVA_11 :: Runtime
$mRuntime_JAVA_11 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_JAVA_11 = Runtime' "JAVA_11"

pattern Runtime_JAVA_8 :: Runtime
pattern $bRuntime_JAVA_8 :: Runtime
$mRuntime_JAVA_8 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_JAVA_8 = Runtime' "JAVA_8"

pattern Runtime_JAVA_8_AL2 :: Runtime
pattern $bRuntime_JAVA_8_AL2 :: Runtime
$mRuntime_JAVA_8_AL2 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_JAVA_8_AL2 = Runtime' "JAVA_8_AL2"

pattern Runtime_NODEJS :: Runtime
pattern $bRuntime_NODEJS :: Runtime
$mRuntime_NODEJS :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_NODEJS = Runtime' "NODEJS"

pattern Runtime_NODEJS_12_X :: Runtime
pattern $bRuntime_NODEJS_12_X :: Runtime
$mRuntime_NODEJS_12_X :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_NODEJS_12_X = Runtime' "NODEJS_12_X"

pattern Runtime_NODEJS_14_X :: Runtime
pattern $bRuntime_NODEJS_14_X :: Runtime
$mRuntime_NODEJS_14_X :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_NODEJS_14_X = Runtime' "NODEJS_14_X"

pattern Runtime_NODEJS_16_X :: Runtime
pattern $bRuntime_NODEJS_16_X :: Runtime
$mRuntime_NODEJS_16_X :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_NODEJS_16_X = Runtime' "NODEJS_16_X"

pattern Runtime_NODEJS_18_X :: Runtime
pattern $bRuntime_NODEJS_18_X :: Runtime
$mRuntime_NODEJS_18_X :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_NODEJS_18_X = Runtime' "NODEJS_18_X"

pattern Runtime_PYTHON_3_7 :: Runtime
pattern $bRuntime_PYTHON_3_7 :: Runtime
$mRuntime_PYTHON_3_7 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_PYTHON_3_7 = Runtime' "PYTHON_3_7"

pattern Runtime_PYTHON_3_8 :: Runtime
pattern $bRuntime_PYTHON_3_8 :: Runtime
$mRuntime_PYTHON_3_8 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_PYTHON_3_8 = Runtime' "PYTHON_3_8"

pattern Runtime_PYTHON_3_9 :: Runtime
pattern $bRuntime_PYTHON_3_9 :: Runtime
$mRuntime_PYTHON_3_9 :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_PYTHON_3_9 = Runtime' "PYTHON_3_9"

pattern Runtime_UNSUPPORTED :: Runtime
pattern $bRuntime_UNSUPPORTED :: Runtime
$mRuntime_UNSUPPORTED :: forall {r}. Runtime -> ((# #) -> r) -> ((# #) -> r) -> r
Runtime_UNSUPPORTED = Runtime' "UNSUPPORTED"

{-# COMPLETE
  Runtime_GO_1_X,
  Runtime_JAVA_11,
  Runtime_JAVA_8,
  Runtime_JAVA_8_AL2,
  Runtime_NODEJS,
  Runtime_NODEJS_12_X,
  Runtime_NODEJS_14_X,
  Runtime_NODEJS_16_X,
  Runtime_NODEJS_18_X,
  Runtime_PYTHON_3_7,
  Runtime_PYTHON_3_8,
  Runtime_PYTHON_3_9,
  Runtime_UNSUPPORTED,
  Runtime'
  #-}