{-# 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.FunctionVersion
-- 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.FunctionVersion
  ( FunctionVersion
      ( ..,
        FunctionVersion_ALL
      ),
  )
where

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

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

pattern FunctionVersion_ALL :: FunctionVersion
pattern $bFunctionVersion_ALL :: FunctionVersion
$mFunctionVersion_ALL :: forall {r}. FunctionVersion -> ((# #) -> r) -> ((# #) -> r) -> r
FunctionVersion_ALL = FunctionVersion' "ALL"

{-# COMPLETE
  FunctionVersion_ALL,
  FunctionVersion'
  #-}