{-# 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.CloudFront.Types.FunctionRuntime
-- 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.CloudFront.Types.FunctionRuntime
  ( FunctionRuntime
      ( ..,
        FunctionRuntime_Cloudfront_js_1_0
      ),
  )
where

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

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

pattern FunctionRuntime_Cloudfront_js_1_0 :: FunctionRuntime
pattern $bFunctionRuntime_Cloudfront_js_1_0 :: FunctionRuntime
$mFunctionRuntime_Cloudfront_js_1_0 :: forall r. FunctionRuntime -> (Void# -> r) -> (Void# -> r) -> r
FunctionRuntime_Cloudfront_js_1_0 = FunctionRuntime' "cloudfront-js-1.0"

{-# COMPLETE
  FunctionRuntime_Cloudfront_js_1_0,
  FunctionRuntime'
  #-}