{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.NotebookInstanceLifecycleConfigSortOrder
( NotebookInstanceLifecycleConfigSortOrder
( ..,
NotebookInstanceLifecycleConfigSortOrder_Ascending,
NotebookInstanceLifecycleConfigSortOrder_Descending
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype NotebookInstanceLifecycleConfigSortOrder = NotebookInstanceLifecycleConfigSortOrder'
{ NotebookInstanceLifecycleConfigSortOrder -> Text
fromNotebookInstanceLifecycleConfigSortOrder ::
Core.Text
}
deriving stock
( Int -> NotebookInstanceLifecycleConfigSortOrder -> ShowS
[NotebookInstanceLifecycleConfigSortOrder] -> ShowS
NotebookInstanceLifecycleConfigSortOrder -> String
(Int -> NotebookInstanceLifecycleConfigSortOrder -> ShowS)
-> (NotebookInstanceLifecycleConfigSortOrder -> String)
-> ([NotebookInstanceLifecycleConfigSortOrder] -> ShowS)
-> Show NotebookInstanceLifecycleConfigSortOrder
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NotebookInstanceLifecycleConfigSortOrder] -> ShowS
$cshowList :: [NotebookInstanceLifecycleConfigSortOrder] -> ShowS
show :: NotebookInstanceLifecycleConfigSortOrder -> String
$cshow :: NotebookInstanceLifecycleConfigSortOrder -> String
showsPrec :: Int -> NotebookInstanceLifecycleConfigSortOrder -> ShowS
$cshowsPrec :: Int -> NotebookInstanceLifecycleConfigSortOrder -> ShowS
Prelude.Show,
ReadPrec [NotebookInstanceLifecycleConfigSortOrder]
ReadPrec NotebookInstanceLifecycleConfigSortOrder
Int -> ReadS NotebookInstanceLifecycleConfigSortOrder
ReadS [NotebookInstanceLifecycleConfigSortOrder]
(Int -> ReadS NotebookInstanceLifecycleConfigSortOrder)
-> ReadS [NotebookInstanceLifecycleConfigSortOrder]
-> ReadPrec NotebookInstanceLifecycleConfigSortOrder
-> ReadPrec [NotebookInstanceLifecycleConfigSortOrder]
-> Read NotebookInstanceLifecycleConfigSortOrder
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NotebookInstanceLifecycleConfigSortOrder]
$creadListPrec :: ReadPrec [NotebookInstanceLifecycleConfigSortOrder]
readPrec :: ReadPrec NotebookInstanceLifecycleConfigSortOrder
$creadPrec :: ReadPrec NotebookInstanceLifecycleConfigSortOrder
readList :: ReadS [NotebookInstanceLifecycleConfigSortOrder]
$creadList :: ReadS [NotebookInstanceLifecycleConfigSortOrder]
readsPrec :: Int -> ReadS NotebookInstanceLifecycleConfigSortOrder
$creadsPrec :: Int -> ReadS NotebookInstanceLifecycleConfigSortOrder
Prelude.Read,
NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
(NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool)
-> Eq NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
$c/= :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
== :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
$c== :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
Prelude.Eq,
Eq NotebookInstanceLifecycleConfigSortOrder
Eq NotebookInstanceLifecycleConfigSortOrder
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Ordering)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder)
-> (NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder)
-> Ord NotebookInstanceLifecycleConfigSortOrder
NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Ordering
NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
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 :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
$cmin :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
max :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
$cmax :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder
>= :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
$c>= :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
> :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
$c> :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
<= :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
$c<= :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
< :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
$c< :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Bool
compare :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Ordering
$ccompare :: NotebookInstanceLifecycleConfigSortOrder
-> NotebookInstanceLifecycleConfigSortOrder -> Ordering
$cp1Ord :: Eq NotebookInstanceLifecycleConfigSortOrder
Prelude.Ord,
(forall x.
NotebookInstanceLifecycleConfigSortOrder
-> Rep NotebookInstanceLifecycleConfigSortOrder x)
-> (forall x.
Rep NotebookInstanceLifecycleConfigSortOrder x
-> NotebookInstanceLifecycleConfigSortOrder)
-> Generic NotebookInstanceLifecycleConfigSortOrder
forall x.
Rep NotebookInstanceLifecycleConfigSortOrder x
-> NotebookInstanceLifecycleConfigSortOrder
forall x.
NotebookInstanceLifecycleConfigSortOrder
-> Rep NotebookInstanceLifecycleConfigSortOrder x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NotebookInstanceLifecycleConfigSortOrder x
-> NotebookInstanceLifecycleConfigSortOrder
$cfrom :: forall x.
NotebookInstanceLifecycleConfigSortOrder
-> Rep NotebookInstanceLifecycleConfigSortOrder x
Prelude.Generic
)
deriving newtype
( Int -> NotebookInstanceLifecycleConfigSortOrder -> Int
NotebookInstanceLifecycleConfigSortOrder -> Int
(Int -> NotebookInstanceLifecycleConfigSortOrder -> Int)
-> (NotebookInstanceLifecycleConfigSortOrder -> Int)
-> Hashable NotebookInstanceLifecycleConfigSortOrder
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: NotebookInstanceLifecycleConfigSortOrder -> Int
$chash :: NotebookInstanceLifecycleConfigSortOrder -> Int
hashWithSalt :: Int -> NotebookInstanceLifecycleConfigSortOrder -> Int
$chashWithSalt :: Int -> NotebookInstanceLifecycleConfigSortOrder -> Int
Prelude.Hashable,
NotebookInstanceLifecycleConfigSortOrder -> ()
(NotebookInstanceLifecycleConfigSortOrder -> ())
-> NFData NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> ()) -> NFData a
rnf :: NotebookInstanceLifecycleConfigSortOrder -> ()
$crnf :: NotebookInstanceLifecycleConfigSortOrder -> ()
Prelude.NFData,
Text -> Either String NotebookInstanceLifecycleConfigSortOrder
(Text -> Either String NotebookInstanceLifecycleConfigSortOrder)
-> FromText NotebookInstanceLifecycleConfigSortOrder
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NotebookInstanceLifecycleConfigSortOrder
$cfromText :: Text -> Either String NotebookInstanceLifecycleConfigSortOrder
Core.FromText,
NotebookInstanceLifecycleConfigSortOrder -> Text
(NotebookInstanceLifecycleConfigSortOrder -> Text)
-> ToText NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> Text) -> ToText a
toText :: NotebookInstanceLifecycleConfigSortOrder -> Text
$ctoText :: NotebookInstanceLifecycleConfigSortOrder -> Text
Core.ToText,
NotebookInstanceLifecycleConfigSortOrder -> ByteString
(NotebookInstanceLifecycleConfigSortOrder -> ByteString)
-> ToByteString NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> ByteString) -> ToByteString a
toBS :: NotebookInstanceLifecycleConfigSortOrder -> ByteString
$ctoBS :: NotebookInstanceLifecycleConfigSortOrder -> ByteString
Core.ToByteString,
NotebookInstanceLifecycleConfigSortOrder -> ByteStringBuilder
(NotebookInstanceLifecycleConfigSortOrder -> ByteStringBuilder)
-> ToLog NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NotebookInstanceLifecycleConfigSortOrder -> ByteStringBuilder
$cbuild :: NotebookInstanceLifecycleConfigSortOrder -> ByteStringBuilder
Core.ToLog,
HeaderName -> NotebookInstanceLifecycleConfigSortOrder -> [Header]
(HeaderName
-> NotebookInstanceLifecycleConfigSortOrder -> [Header])
-> ToHeader NotebookInstanceLifecycleConfigSortOrder
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NotebookInstanceLifecycleConfigSortOrder -> [Header]
$ctoHeader :: HeaderName -> NotebookInstanceLifecycleConfigSortOrder -> [Header]
Core.ToHeader,
NotebookInstanceLifecycleConfigSortOrder -> QueryString
(NotebookInstanceLifecycleConfigSortOrder -> QueryString)
-> ToQuery NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NotebookInstanceLifecycleConfigSortOrder -> QueryString
$ctoQuery :: NotebookInstanceLifecycleConfigSortOrder -> QueryString
Core.ToQuery,
Value -> Parser [NotebookInstanceLifecycleConfigSortOrder]
Value -> Parser NotebookInstanceLifecycleConfigSortOrder
(Value -> Parser NotebookInstanceLifecycleConfigSortOrder)
-> (Value -> Parser [NotebookInstanceLifecycleConfigSortOrder])
-> FromJSON NotebookInstanceLifecycleConfigSortOrder
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [NotebookInstanceLifecycleConfigSortOrder]
$cparseJSONList :: Value -> Parser [NotebookInstanceLifecycleConfigSortOrder]
parseJSON :: Value -> Parser NotebookInstanceLifecycleConfigSortOrder
$cparseJSON :: Value -> Parser NotebookInstanceLifecycleConfigSortOrder
Core.FromJSON,
FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
FromJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
FromJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
-> FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
-> FromJSONKey NotebookInstanceLifecycleConfigSortOrder
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
$cfromJSONKeyList :: FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
fromJSONKey :: FromJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
$cfromJSONKey :: FromJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
Core.FromJSONKey,
[NotebookInstanceLifecycleConfigSortOrder] -> Encoding
[NotebookInstanceLifecycleConfigSortOrder] -> Value
NotebookInstanceLifecycleConfigSortOrder -> Encoding
NotebookInstanceLifecycleConfigSortOrder -> Value
(NotebookInstanceLifecycleConfigSortOrder -> Value)
-> (NotebookInstanceLifecycleConfigSortOrder -> Encoding)
-> ([NotebookInstanceLifecycleConfigSortOrder] -> Value)
-> ([NotebookInstanceLifecycleConfigSortOrder] -> Encoding)
-> ToJSON NotebookInstanceLifecycleConfigSortOrder
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [NotebookInstanceLifecycleConfigSortOrder] -> Encoding
$ctoEncodingList :: [NotebookInstanceLifecycleConfigSortOrder] -> Encoding
toJSONList :: [NotebookInstanceLifecycleConfigSortOrder] -> Value
$ctoJSONList :: [NotebookInstanceLifecycleConfigSortOrder] -> Value
toEncoding :: NotebookInstanceLifecycleConfigSortOrder -> Encoding
$ctoEncoding :: NotebookInstanceLifecycleConfigSortOrder -> Encoding
toJSON :: NotebookInstanceLifecycleConfigSortOrder -> Value
$ctoJSON :: NotebookInstanceLifecycleConfigSortOrder -> Value
Core.ToJSON,
ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
ToJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
ToJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
-> ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
-> ToJSONKey NotebookInstanceLifecycleConfigSortOrder
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
$ctoJSONKeyList :: ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortOrder]
toJSONKey :: ToJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
$ctoJSONKey :: ToJSONKeyFunction NotebookInstanceLifecycleConfigSortOrder
Core.ToJSONKey,
[Node] -> Either String NotebookInstanceLifecycleConfigSortOrder
([Node] -> Either String NotebookInstanceLifecycleConfigSortOrder)
-> FromXML NotebookInstanceLifecycleConfigSortOrder
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NotebookInstanceLifecycleConfigSortOrder
$cparseXML :: [Node] -> Either String NotebookInstanceLifecycleConfigSortOrder
Core.FromXML,
NotebookInstanceLifecycleConfigSortOrder -> XML
(NotebookInstanceLifecycleConfigSortOrder -> XML)
-> ToXML NotebookInstanceLifecycleConfigSortOrder
forall a. (a -> XML) -> ToXML a
toXML :: NotebookInstanceLifecycleConfigSortOrder -> XML
$ctoXML :: NotebookInstanceLifecycleConfigSortOrder -> XML
Core.ToXML
)
pattern NotebookInstanceLifecycleConfigSortOrder_Ascending :: NotebookInstanceLifecycleConfigSortOrder
pattern $bNotebookInstanceLifecycleConfigSortOrder_Ascending :: NotebookInstanceLifecycleConfigSortOrder
$mNotebookInstanceLifecycleConfigSortOrder_Ascending :: forall r.
NotebookInstanceLifecycleConfigSortOrder
-> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceLifecycleConfigSortOrder_Ascending = NotebookInstanceLifecycleConfigSortOrder' "Ascending"
pattern NotebookInstanceLifecycleConfigSortOrder_Descending :: NotebookInstanceLifecycleConfigSortOrder
pattern $bNotebookInstanceLifecycleConfigSortOrder_Descending :: NotebookInstanceLifecycleConfigSortOrder
$mNotebookInstanceLifecycleConfigSortOrder_Descending :: forall r.
NotebookInstanceLifecycleConfigSortOrder
-> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceLifecycleConfigSortOrder_Descending = NotebookInstanceLifecycleConfigSortOrder' "Descending"
{-# COMPLETE
NotebookInstanceLifecycleConfigSortOrder_Ascending,
NotebookInstanceLifecycleConfigSortOrder_Descending,
NotebookInstanceLifecycleConfigSortOrder'
#-}