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