{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Lambda.Types.FunctionVersion
( FunctionVersion
( ..,
FunctionVersion_ALL
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FunctionVersion = FunctionVersion'
{ FunctionVersion -> Text
fromFunctionVersion ::
Core.Text
}
deriving stock
( Int -> FunctionVersion -> ShowS
[FunctionVersion] -> ShowS
FunctionVersion -> String
(Int -> FunctionVersion -> ShowS)
-> (FunctionVersion -> String)
-> ([FunctionVersion] -> ShowS)
-> Show FunctionVersion
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]
(Int -> ReadS FunctionVersion)
-> ReadS [FunctionVersion]
-> ReadPrec FunctionVersion
-> ReadPrec [FunctionVersion]
-> Read 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
(FunctionVersion -> FunctionVersion -> Bool)
-> (FunctionVersion -> FunctionVersion -> Bool)
-> Eq FunctionVersion
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
Eq FunctionVersion
-> (FunctionVersion -> FunctionVersion -> Ordering)
-> (FunctionVersion -> FunctionVersion -> Bool)
-> (FunctionVersion -> FunctionVersion -> Bool)
-> (FunctionVersion -> FunctionVersion -> Bool)
-> (FunctionVersion -> FunctionVersion -> Bool)
-> (FunctionVersion -> FunctionVersion -> FunctionVersion)
-> (FunctionVersion -> FunctionVersion -> FunctionVersion)
-> Ord 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
$cp1Ord :: Eq FunctionVersion
Prelude.Ord,
(forall x. FunctionVersion -> Rep FunctionVersion x)
-> (forall x. Rep FunctionVersion x -> FunctionVersion)
-> Generic FunctionVersion
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
( Int -> FunctionVersion -> Int
FunctionVersion -> Int
(Int -> FunctionVersion -> Int)
-> (FunctionVersion -> Int) -> Hashable FunctionVersion
forall 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 -> ()
(FunctionVersion -> ()) -> NFData FunctionVersion
forall a. (a -> ()) -> NFData a
rnf :: FunctionVersion -> ()
$crnf :: FunctionVersion -> ()
Prelude.NFData,
Text -> Either String FunctionVersion
(Text -> Either String FunctionVersion) -> FromText FunctionVersion
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FunctionVersion
$cfromText :: Text -> Either String FunctionVersion
Core.FromText,
FunctionVersion -> Text
(FunctionVersion -> Text) -> ToText FunctionVersion
forall a. (a -> Text) -> ToText a
toText :: FunctionVersion -> Text
$ctoText :: FunctionVersion -> Text
Core.ToText,
FunctionVersion -> ByteString
(FunctionVersion -> ByteString) -> ToByteString FunctionVersion
forall a. (a -> ByteString) -> ToByteString a
toBS :: FunctionVersion -> ByteString
$ctoBS :: FunctionVersion -> ByteString
Core.ToByteString,
FunctionVersion -> ByteStringBuilder
(FunctionVersion -> ByteStringBuilder) -> ToLog FunctionVersion
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FunctionVersion -> ByteStringBuilder
$cbuild :: FunctionVersion -> ByteStringBuilder
Core.ToLog,
HeaderName -> FunctionVersion -> [Header]
(HeaderName -> FunctionVersion -> [Header])
-> ToHeader FunctionVersion
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FunctionVersion -> [Header]
$ctoHeader :: HeaderName -> FunctionVersion -> [Header]
Core.ToHeader,
FunctionVersion -> QueryString
(FunctionVersion -> QueryString) -> ToQuery FunctionVersion
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FunctionVersion -> QueryString
$ctoQuery :: FunctionVersion -> QueryString
Core.ToQuery,
Value -> Parser [FunctionVersion]
Value -> Parser FunctionVersion
(Value -> Parser FunctionVersion)
-> (Value -> Parser [FunctionVersion]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [FunctionVersion]
FromJSONKeyFunction FunctionVersion
FromJSONKeyFunction FunctionVersion
-> FromJSONKeyFunction [FunctionVersion]
-> FromJSONKey FunctionVersion
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FunctionVersion]
$cfromJSONKeyList :: FromJSONKeyFunction [FunctionVersion]
fromJSONKey :: FromJSONKeyFunction FunctionVersion
$cfromJSONKey :: FromJSONKeyFunction FunctionVersion
Core.FromJSONKey,
[FunctionVersion] -> Encoding
[FunctionVersion] -> Value
FunctionVersion -> Encoding
FunctionVersion -> Value
(FunctionVersion -> Value)
-> (FunctionVersion -> Encoding)
-> ([FunctionVersion] -> Value)
-> ([FunctionVersion] -> Encoding)
-> ToJSON FunctionVersion
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
Core.ToJSON,
ToJSONKeyFunction [FunctionVersion]
ToJSONKeyFunction FunctionVersion
ToJSONKeyFunction FunctionVersion
-> ToJSONKeyFunction [FunctionVersion] -> ToJSONKey FunctionVersion
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FunctionVersion]
$ctoJSONKeyList :: ToJSONKeyFunction [FunctionVersion]
toJSONKey :: ToJSONKeyFunction FunctionVersion
$ctoJSONKey :: ToJSONKeyFunction FunctionVersion
Core.ToJSONKey,
[Node] -> Either String FunctionVersion
([Node] -> Either String FunctionVersion)
-> FromXML FunctionVersion
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FunctionVersion
$cparseXML :: [Node] -> Either String FunctionVersion
Core.FromXML,
FunctionVersion -> XML
(FunctionVersion -> XML) -> ToXML FunctionVersion
forall a. (a -> XML) -> ToXML a
toXML :: FunctionVersion -> XML
$ctoXML :: FunctionVersion -> XML
Core.ToXML
)
pattern FunctionVersion_ALL :: FunctionVersion
pattern $bFunctionVersion_ALL :: FunctionVersion
$mFunctionVersion_ALL :: forall r. FunctionVersion -> (Void# -> r) -> (Void# -> r) -> r
FunctionVersion_ALL = FunctionVersion' "ALL"
{-# COMPLETE
FunctionVersion_ALL,
FunctionVersion'
#-}