{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DataBrew.Types.SessionStatus
( SessionStatus
( ..,
SessionStatus_ASSIGNED,
SessionStatus_FAILED,
SessionStatus_INITIALIZING,
SessionStatus_PROVISIONING,
SessionStatus_READY,
SessionStatus_RECYCLING,
SessionStatus_ROTATING,
SessionStatus_TERMINATED,
SessionStatus_TERMINATING,
SessionStatus_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SessionStatus = SessionStatus'
{ SessionStatus -> Text
fromSessionStatus ::
Core.Text
}
deriving stock
( Int -> SessionStatus -> ShowS
[SessionStatus] -> ShowS
SessionStatus -> String
(Int -> SessionStatus -> ShowS)
-> (SessionStatus -> String)
-> ([SessionStatus] -> ShowS)
-> Show SessionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SessionStatus] -> ShowS
$cshowList :: [SessionStatus] -> ShowS
show :: SessionStatus -> String
$cshow :: SessionStatus -> String
showsPrec :: Int -> SessionStatus -> ShowS
$cshowsPrec :: Int -> SessionStatus -> ShowS
Prelude.Show,
ReadPrec [SessionStatus]
ReadPrec SessionStatus
Int -> ReadS SessionStatus
ReadS [SessionStatus]
(Int -> ReadS SessionStatus)
-> ReadS [SessionStatus]
-> ReadPrec SessionStatus
-> ReadPrec [SessionStatus]
-> Read SessionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SessionStatus]
$creadListPrec :: ReadPrec [SessionStatus]
readPrec :: ReadPrec SessionStatus
$creadPrec :: ReadPrec SessionStatus
readList :: ReadS [SessionStatus]
$creadList :: ReadS [SessionStatus]
readsPrec :: Int -> ReadS SessionStatus
$creadsPrec :: Int -> ReadS SessionStatus
Prelude.Read,
SessionStatus -> SessionStatus -> Bool
(SessionStatus -> SessionStatus -> Bool)
-> (SessionStatus -> SessionStatus -> Bool) -> Eq SessionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SessionStatus -> SessionStatus -> Bool
$c/= :: SessionStatus -> SessionStatus -> Bool
== :: SessionStatus -> SessionStatus -> Bool
$c== :: SessionStatus -> SessionStatus -> Bool
Prelude.Eq,
Eq SessionStatus
Eq SessionStatus
-> (SessionStatus -> SessionStatus -> Ordering)
-> (SessionStatus -> SessionStatus -> Bool)
-> (SessionStatus -> SessionStatus -> Bool)
-> (SessionStatus -> SessionStatus -> Bool)
-> (SessionStatus -> SessionStatus -> Bool)
-> (SessionStatus -> SessionStatus -> SessionStatus)
-> (SessionStatus -> SessionStatus -> SessionStatus)
-> Ord SessionStatus
SessionStatus -> SessionStatus -> Bool
SessionStatus -> SessionStatus -> Ordering
SessionStatus -> SessionStatus -> SessionStatus
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 :: SessionStatus -> SessionStatus -> SessionStatus
$cmin :: SessionStatus -> SessionStatus -> SessionStatus
max :: SessionStatus -> SessionStatus -> SessionStatus
$cmax :: SessionStatus -> SessionStatus -> SessionStatus
>= :: SessionStatus -> SessionStatus -> Bool
$c>= :: SessionStatus -> SessionStatus -> Bool
> :: SessionStatus -> SessionStatus -> Bool
$c> :: SessionStatus -> SessionStatus -> Bool
<= :: SessionStatus -> SessionStatus -> Bool
$c<= :: SessionStatus -> SessionStatus -> Bool
< :: SessionStatus -> SessionStatus -> Bool
$c< :: SessionStatus -> SessionStatus -> Bool
compare :: SessionStatus -> SessionStatus -> Ordering
$ccompare :: SessionStatus -> SessionStatus -> Ordering
$cp1Ord :: Eq SessionStatus
Prelude.Ord,
(forall x. SessionStatus -> Rep SessionStatus x)
-> (forall x. Rep SessionStatus x -> SessionStatus)
-> Generic SessionStatus
forall x. Rep SessionStatus x -> SessionStatus
forall x. SessionStatus -> Rep SessionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SessionStatus x -> SessionStatus
$cfrom :: forall x. SessionStatus -> Rep SessionStatus x
Prelude.Generic
)
deriving newtype
( Int -> SessionStatus -> Int
SessionStatus -> Int
(Int -> SessionStatus -> Int)
-> (SessionStatus -> Int) -> Hashable SessionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SessionStatus -> Int
$chash :: SessionStatus -> Int
hashWithSalt :: Int -> SessionStatus -> Int
$chashWithSalt :: Int -> SessionStatus -> Int
Prelude.Hashable,
SessionStatus -> ()
(SessionStatus -> ()) -> NFData SessionStatus
forall a. (a -> ()) -> NFData a
rnf :: SessionStatus -> ()
$crnf :: SessionStatus -> ()
Prelude.NFData,
Text -> Either String SessionStatus
(Text -> Either String SessionStatus) -> FromText SessionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SessionStatus
$cfromText :: Text -> Either String SessionStatus
Core.FromText,
SessionStatus -> Text
(SessionStatus -> Text) -> ToText SessionStatus
forall a. (a -> Text) -> ToText a
toText :: SessionStatus -> Text
$ctoText :: SessionStatus -> Text
Core.ToText,
SessionStatus -> ByteString
(SessionStatus -> ByteString) -> ToByteString SessionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: SessionStatus -> ByteString
$ctoBS :: SessionStatus -> ByteString
Core.ToByteString,
SessionStatus -> ByteStringBuilder
(SessionStatus -> ByteStringBuilder) -> ToLog SessionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SessionStatus -> ByteStringBuilder
$cbuild :: SessionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> SessionStatus -> [Header]
(HeaderName -> SessionStatus -> [Header]) -> ToHeader SessionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SessionStatus -> [Header]
$ctoHeader :: HeaderName -> SessionStatus -> [Header]
Core.ToHeader,
SessionStatus -> QueryString
(SessionStatus -> QueryString) -> ToQuery SessionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SessionStatus -> QueryString
$ctoQuery :: SessionStatus -> QueryString
Core.ToQuery,
Value -> Parser [SessionStatus]
Value -> Parser SessionStatus
(Value -> Parser SessionStatus)
-> (Value -> Parser [SessionStatus]) -> FromJSON SessionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SessionStatus]
$cparseJSONList :: Value -> Parser [SessionStatus]
parseJSON :: Value -> Parser SessionStatus
$cparseJSON :: Value -> Parser SessionStatus
Core.FromJSON,
FromJSONKeyFunction [SessionStatus]
FromJSONKeyFunction SessionStatus
FromJSONKeyFunction SessionStatus
-> FromJSONKeyFunction [SessionStatus] -> FromJSONKey SessionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SessionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SessionStatus]
fromJSONKey :: FromJSONKeyFunction SessionStatus
$cfromJSONKey :: FromJSONKeyFunction SessionStatus
Core.FromJSONKey,
[SessionStatus] -> Encoding
[SessionStatus] -> Value
SessionStatus -> Encoding
SessionStatus -> Value
(SessionStatus -> Value)
-> (SessionStatus -> Encoding)
-> ([SessionStatus] -> Value)
-> ([SessionStatus] -> Encoding)
-> ToJSON SessionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SessionStatus] -> Encoding
$ctoEncodingList :: [SessionStatus] -> Encoding
toJSONList :: [SessionStatus] -> Value
$ctoJSONList :: [SessionStatus] -> Value
toEncoding :: SessionStatus -> Encoding
$ctoEncoding :: SessionStatus -> Encoding
toJSON :: SessionStatus -> Value
$ctoJSON :: SessionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [SessionStatus]
ToJSONKeyFunction SessionStatus
ToJSONKeyFunction SessionStatus
-> ToJSONKeyFunction [SessionStatus] -> ToJSONKey SessionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SessionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SessionStatus]
toJSONKey :: ToJSONKeyFunction SessionStatus
$ctoJSONKey :: ToJSONKeyFunction SessionStatus
Core.ToJSONKey,
[Node] -> Either String SessionStatus
([Node] -> Either String SessionStatus) -> FromXML SessionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SessionStatus
$cparseXML :: [Node] -> Either String SessionStatus
Core.FromXML,
SessionStatus -> XML
(SessionStatus -> XML) -> ToXML SessionStatus
forall a. (a -> XML) -> ToXML a
toXML :: SessionStatus -> XML
$ctoXML :: SessionStatus -> XML
Core.ToXML
)
pattern SessionStatus_ASSIGNED :: SessionStatus
pattern $bSessionStatus_ASSIGNED :: SessionStatus
$mSessionStatus_ASSIGNED :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_ASSIGNED = SessionStatus' "ASSIGNED"
pattern SessionStatus_FAILED :: SessionStatus
pattern $bSessionStatus_FAILED :: SessionStatus
$mSessionStatus_FAILED :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_FAILED = SessionStatus' "FAILED"
pattern SessionStatus_INITIALIZING :: SessionStatus
pattern $bSessionStatus_INITIALIZING :: SessionStatus
$mSessionStatus_INITIALIZING :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_INITIALIZING = SessionStatus' "INITIALIZING"
pattern SessionStatus_PROVISIONING :: SessionStatus
pattern $bSessionStatus_PROVISIONING :: SessionStatus
$mSessionStatus_PROVISIONING :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_PROVISIONING = SessionStatus' "PROVISIONING"
pattern SessionStatus_READY :: SessionStatus
pattern $bSessionStatus_READY :: SessionStatus
$mSessionStatus_READY :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_READY = SessionStatus' "READY"
pattern SessionStatus_RECYCLING :: SessionStatus
pattern $bSessionStatus_RECYCLING :: SessionStatus
$mSessionStatus_RECYCLING :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_RECYCLING = SessionStatus' "RECYCLING"
pattern SessionStatus_ROTATING :: SessionStatus
pattern $bSessionStatus_ROTATING :: SessionStatus
$mSessionStatus_ROTATING :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_ROTATING = SessionStatus' "ROTATING"
pattern SessionStatus_TERMINATED :: SessionStatus
pattern $bSessionStatus_TERMINATED :: SessionStatus
$mSessionStatus_TERMINATED :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_TERMINATED = SessionStatus' "TERMINATED"
pattern SessionStatus_TERMINATING :: SessionStatus
pattern $bSessionStatus_TERMINATING :: SessionStatus
$mSessionStatus_TERMINATING :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_TERMINATING = SessionStatus' "TERMINATING"
pattern SessionStatus_UPDATING :: SessionStatus
pattern $bSessionStatus_UPDATING :: SessionStatus
$mSessionStatus_UPDATING :: forall r. SessionStatus -> (Void# -> r) -> (Void# -> r) -> r
SessionStatus_UPDATING = SessionStatus' "UPDATING"
{-# COMPLETE
SessionStatus_ASSIGNED,
SessionStatus_FAILED,
SessionStatus_INITIALIZING,
SessionStatus_PROVISIONING,
SessionStatus_READY,
SessionStatus_RECYCLING,
SessionStatus_ROTATING,
SessionStatus_TERMINATED,
SessionStatus_TERMINATING,
SessionStatus_UPDATING,
SessionStatus'
#-}