{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Glue.Types.AggFunction
( AggFunction
( ..,
AggFunction_Avg,
AggFunction_Count,
AggFunction_CountDistinct,
AggFunction_First,
AggFunction_Kurtosis,
AggFunction_Last,
AggFunction_Max,
AggFunction_Min,
AggFunction_Skewness,
AggFunction_Stddev_pop,
AggFunction_Stddev_samp,
AggFunction_Sum,
AggFunction_SumDistinct,
AggFunction_Var_pop,
AggFunction_Var_samp
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype AggFunction = AggFunction'
{ AggFunction -> Text
fromAggFunction ::
Data.Text
}
deriving stock
( Int -> AggFunction -> ShowS
[AggFunction] -> ShowS
AggFunction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AggFunction] -> ShowS
$cshowList :: [AggFunction] -> ShowS
show :: AggFunction -> String
$cshow :: AggFunction -> String
showsPrec :: Int -> AggFunction -> ShowS
$cshowsPrec :: Int -> AggFunction -> ShowS
Prelude.Show,
ReadPrec [AggFunction]
ReadPrec AggFunction
Int -> ReadS AggFunction
ReadS [AggFunction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AggFunction]
$creadListPrec :: ReadPrec [AggFunction]
readPrec :: ReadPrec AggFunction
$creadPrec :: ReadPrec AggFunction
readList :: ReadS [AggFunction]
$creadList :: ReadS [AggFunction]
readsPrec :: Int -> ReadS AggFunction
$creadsPrec :: Int -> ReadS AggFunction
Prelude.Read,
AggFunction -> AggFunction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AggFunction -> AggFunction -> Bool
$c/= :: AggFunction -> AggFunction -> Bool
== :: AggFunction -> AggFunction -> Bool
$c== :: AggFunction -> AggFunction -> Bool
Prelude.Eq,
Eq AggFunction
AggFunction -> AggFunction -> Bool
AggFunction -> AggFunction -> Ordering
AggFunction -> AggFunction -> AggFunction
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 :: AggFunction -> AggFunction -> AggFunction
$cmin :: AggFunction -> AggFunction -> AggFunction
max :: AggFunction -> AggFunction -> AggFunction
$cmax :: AggFunction -> AggFunction -> AggFunction
>= :: AggFunction -> AggFunction -> Bool
$c>= :: AggFunction -> AggFunction -> Bool
> :: AggFunction -> AggFunction -> Bool
$c> :: AggFunction -> AggFunction -> Bool
<= :: AggFunction -> AggFunction -> Bool
$c<= :: AggFunction -> AggFunction -> Bool
< :: AggFunction -> AggFunction -> Bool
$c< :: AggFunction -> AggFunction -> Bool
compare :: AggFunction -> AggFunction -> Ordering
$ccompare :: AggFunction -> AggFunction -> Ordering
Prelude.Ord,
forall x. Rep AggFunction x -> AggFunction
forall x. AggFunction -> Rep AggFunction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AggFunction x -> AggFunction
$cfrom :: forall x. AggFunction -> Rep AggFunction x
Prelude.Generic
)
deriving newtype
( Eq AggFunction
Int -> AggFunction -> Int
AggFunction -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AggFunction -> Int
$chash :: AggFunction -> Int
hashWithSalt :: Int -> AggFunction -> Int
$chashWithSalt :: Int -> AggFunction -> Int
Prelude.Hashable,
AggFunction -> ()
forall a. (a -> ()) -> NFData a
rnf :: AggFunction -> ()
$crnf :: AggFunction -> ()
Prelude.NFData,
Text -> Either String AggFunction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AggFunction
$cfromText :: Text -> Either String AggFunction
Data.FromText,
AggFunction -> Text
forall a. (a -> Text) -> ToText a
toText :: AggFunction -> Text
$ctoText :: AggFunction -> Text
Data.ToText,
AggFunction -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AggFunction -> ByteString
$ctoBS :: AggFunction -> ByteString
Data.ToByteString,
AggFunction -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AggFunction -> ByteStringBuilder
$cbuild :: AggFunction -> ByteStringBuilder
Data.ToLog,
HeaderName -> AggFunction -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AggFunction -> [Header]
$ctoHeader :: HeaderName -> AggFunction -> [Header]
Data.ToHeader,
AggFunction -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AggFunction -> QueryString
$ctoQuery :: AggFunction -> QueryString
Data.ToQuery,
Value -> Parser [AggFunction]
Value -> Parser AggFunction
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AggFunction]
$cparseJSONList :: Value -> Parser [AggFunction]
parseJSON :: Value -> Parser AggFunction
$cparseJSON :: Value -> Parser AggFunction
Data.FromJSON,
FromJSONKeyFunction [AggFunction]
FromJSONKeyFunction AggFunction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AggFunction]
$cfromJSONKeyList :: FromJSONKeyFunction [AggFunction]
fromJSONKey :: FromJSONKeyFunction AggFunction
$cfromJSONKey :: FromJSONKeyFunction AggFunction
Data.FromJSONKey,
[AggFunction] -> Encoding
[AggFunction] -> Value
AggFunction -> Encoding
AggFunction -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AggFunction] -> Encoding
$ctoEncodingList :: [AggFunction] -> Encoding
toJSONList :: [AggFunction] -> Value
$ctoJSONList :: [AggFunction] -> Value
toEncoding :: AggFunction -> Encoding
$ctoEncoding :: AggFunction -> Encoding
toJSON :: AggFunction -> Value
$ctoJSON :: AggFunction -> Value
Data.ToJSON,
ToJSONKeyFunction [AggFunction]
ToJSONKeyFunction AggFunction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AggFunction]
$ctoJSONKeyList :: ToJSONKeyFunction [AggFunction]
toJSONKey :: ToJSONKeyFunction AggFunction
$ctoJSONKey :: ToJSONKeyFunction AggFunction
Data.ToJSONKey,
[Node] -> Either String AggFunction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AggFunction
$cparseXML :: [Node] -> Either String AggFunction
Data.FromXML,
AggFunction -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AggFunction -> XML
$ctoXML :: AggFunction -> XML
Data.ToXML
)
pattern AggFunction_Avg :: AggFunction
pattern $bAggFunction_Avg :: AggFunction
$mAggFunction_Avg :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Avg = AggFunction' "avg"
pattern AggFunction_Count :: AggFunction
pattern $bAggFunction_Count :: AggFunction
$mAggFunction_Count :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Count = AggFunction' "count"
pattern AggFunction_CountDistinct :: AggFunction
pattern $bAggFunction_CountDistinct :: AggFunction
$mAggFunction_CountDistinct :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_CountDistinct = AggFunction' "countDistinct"
pattern AggFunction_First :: AggFunction
pattern $bAggFunction_First :: AggFunction
$mAggFunction_First :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_First = AggFunction' "first"
pattern AggFunction_Kurtosis :: AggFunction
pattern $bAggFunction_Kurtosis :: AggFunction
$mAggFunction_Kurtosis :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Kurtosis = AggFunction' "kurtosis"
pattern AggFunction_Last :: AggFunction
pattern $bAggFunction_Last :: AggFunction
$mAggFunction_Last :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Last = AggFunction' "last"
pattern AggFunction_Max :: AggFunction
pattern $bAggFunction_Max :: AggFunction
$mAggFunction_Max :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Max = AggFunction' "max"
pattern AggFunction_Min :: AggFunction
pattern $bAggFunction_Min :: AggFunction
$mAggFunction_Min :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Min = AggFunction' "min"
pattern AggFunction_Skewness :: AggFunction
pattern $bAggFunction_Skewness :: AggFunction
$mAggFunction_Skewness :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Skewness = AggFunction' "skewness"
pattern AggFunction_Stddev_pop :: AggFunction
pattern $bAggFunction_Stddev_pop :: AggFunction
$mAggFunction_Stddev_pop :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Stddev_pop = AggFunction' "stddev_pop"
pattern AggFunction_Stddev_samp :: AggFunction
pattern $bAggFunction_Stddev_samp :: AggFunction
$mAggFunction_Stddev_samp :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Stddev_samp = AggFunction' "stddev_samp"
pattern AggFunction_Sum :: AggFunction
pattern $bAggFunction_Sum :: AggFunction
$mAggFunction_Sum :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Sum = AggFunction' "sum"
pattern AggFunction_SumDistinct :: AggFunction
pattern $bAggFunction_SumDistinct :: AggFunction
$mAggFunction_SumDistinct :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_SumDistinct = AggFunction' "sumDistinct"
pattern AggFunction_Var_pop :: AggFunction
pattern $bAggFunction_Var_pop :: AggFunction
$mAggFunction_Var_pop :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Var_pop = AggFunction' "var_pop"
pattern AggFunction_Var_samp :: AggFunction
pattern $bAggFunction_Var_samp :: AggFunction
$mAggFunction_Var_samp :: forall {r}. AggFunction -> ((# #) -> r) -> ((# #) -> r) -> r
AggFunction_Var_samp = AggFunction' "var_samp"
{-# COMPLETE
AggFunction_Avg,
AggFunction_Count,
AggFunction_CountDistinct,
AggFunction_First,
AggFunction_Kurtosis,
AggFunction_Last,
AggFunction_Max,
AggFunction_Min,
AggFunction_Skewness,
AggFunction_Stddev_pop,
AggFunction_Stddev_samp,
AggFunction_Sum,
AggFunction_SumDistinct,
AggFunction_Var_pop,
AggFunction_Var_samp,
AggFunction'
#-}