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