{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SSM.Types.CommandStatus
( CommandStatus
( ..,
CommandStatus_Cancelled,
CommandStatus_Cancelling,
CommandStatus_Failed,
CommandStatus_InProgress,
CommandStatus_Pending,
CommandStatus_Success,
CommandStatus_TimedOut
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype CommandStatus = CommandStatus'
{ CommandStatus -> Text
fromCommandStatus ::
Core.Text
}
deriving stock
( Int -> CommandStatus -> ShowS
[CommandStatus] -> ShowS
CommandStatus -> String
(Int -> CommandStatus -> ShowS)
-> (CommandStatus -> String)
-> ([CommandStatus] -> ShowS)
-> Show CommandStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CommandStatus] -> ShowS
$cshowList :: [CommandStatus] -> ShowS
show :: CommandStatus -> String
$cshow :: CommandStatus -> String
showsPrec :: Int -> CommandStatus -> ShowS
$cshowsPrec :: Int -> CommandStatus -> ShowS
Prelude.Show,
ReadPrec [CommandStatus]
ReadPrec CommandStatus
Int -> ReadS CommandStatus
ReadS [CommandStatus]
(Int -> ReadS CommandStatus)
-> ReadS [CommandStatus]
-> ReadPrec CommandStatus
-> ReadPrec [CommandStatus]
-> Read CommandStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CommandStatus]
$creadListPrec :: ReadPrec [CommandStatus]
readPrec :: ReadPrec CommandStatus
$creadPrec :: ReadPrec CommandStatus
readList :: ReadS [CommandStatus]
$creadList :: ReadS [CommandStatus]
readsPrec :: Int -> ReadS CommandStatus
$creadsPrec :: Int -> ReadS CommandStatus
Prelude.Read,
CommandStatus -> CommandStatus -> Bool
(CommandStatus -> CommandStatus -> Bool)
-> (CommandStatus -> CommandStatus -> Bool) -> Eq CommandStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CommandStatus -> CommandStatus -> Bool
$c/= :: CommandStatus -> CommandStatus -> Bool
== :: CommandStatus -> CommandStatus -> Bool
$c== :: CommandStatus -> CommandStatus -> Bool
Prelude.Eq,
Eq CommandStatus
Eq CommandStatus
-> (CommandStatus -> CommandStatus -> Ordering)
-> (CommandStatus -> CommandStatus -> Bool)
-> (CommandStatus -> CommandStatus -> Bool)
-> (CommandStatus -> CommandStatus -> Bool)
-> (CommandStatus -> CommandStatus -> Bool)
-> (CommandStatus -> CommandStatus -> CommandStatus)
-> (CommandStatus -> CommandStatus -> CommandStatus)
-> Ord CommandStatus
CommandStatus -> CommandStatus -> Bool
CommandStatus -> CommandStatus -> Ordering
CommandStatus -> CommandStatus -> CommandStatus
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 :: CommandStatus -> CommandStatus -> CommandStatus
$cmin :: CommandStatus -> CommandStatus -> CommandStatus
max :: CommandStatus -> CommandStatus -> CommandStatus
$cmax :: CommandStatus -> CommandStatus -> CommandStatus
>= :: CommandStatus -> CommandStatus -> Bool
$c>= :: CommandStatus -> CommandStatus -> Bool
> :: CommandStatus -> CommandStatus -> Bool
$c> :: CommandStatus -> CommandStatus -> Bool
<= :: CommandStatus -> CommandStatus -> Bool
$c<= :: CommandStatus -> CommandStatus -> Bool
< :: CommandStatus -> CommandStatus -> Bool
$c< :: CommandStatus -> CommandStatus -> Bool
compare :: CommandStatus -> CommandStatus -> Ordering
$ccompare :: CommandStatus -> CommandStatus -> Ordering
$cp1Ord :: Eq CommandStatus
Prelude.Ord,
(forall x. CommandStatus -> Rep CommandStatus x)
-> (forall x. Rep CommandStatus x -> CommandStatus)
-> Generic CommandStatus
forall x. Rep CommandStatus x -> CommandStatus
forall x. CommandStatus -> Rep CommandStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CommandStatus x -> CommandStatus
$cfrom :: forall x. CommandStatus -> Rep CommandStatus x
Prelude.Generic
)
deriving newtype
( Int -> CommandStatus -> Int
CommandStatus -> Int
(Int -> CommandStatus -> Int)
-> (CommandStatus -> Int) -> Hashable CommandStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CommandStatus -> Int
$chash :: CommandStatus -> Int
hashWithSalt :: Int -> CommandStatus -> Int
$chashWithSalt :: Int -> CommandStatus -> Int
Prelude.Hashable,
CommandStatus -> ()
(CommandStatus -> ()) -> NFData CommandStatus
forall a. (a -> ()) -> NFData a
rnf :: CommandStatus -> ()
$crnf :: CommandStatus -> ()
Prelude.NFData,
Text -> Either String CommandStatus
(Text -> Either String CommandStatus) -> FromText CommandStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CommandStatus
$cfromText :: Text -> Either String CommandStatus
Core.FromText,
CommandStatus -> Text
(CommandStatus -> Text) -> ToText CommandStatus
forall a. (a -> Text) -> ToText a
toText :: CommandStatus -> Text
$ctoText :: CommandStatus -> Text
Core.ToText,
CommandStatus -> ByteString
(CommandStatus -> ByteString) -> ToByteString CommandStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: CommandStatus -> ByteString
$ctoBS :: CommandStatus -> ByteString
Core.ToByteString,
CommandStatus -> ByteStringBuilder
(CommandStatus -> ByteStringBuilder) -> ToLog CommandStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CommandStatus -> ByteStringBuilder
$cbuild :: CommandStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> CommandStatus -> [Header]
(HeaderName -> CommandStatus -> [Header]) -> ToHeader CommandStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CommandStatus -> [Header]
$ctoHeader :: HeaderName -> CommandStatus -> [Header]
Core.ToHeader,
CommandStatus -> QueryString
(CommandStatus -> QueryString) -> ToQuery CommandStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CommandStatus -> QueryString
$ctoQuery :: CommandStatus -> QueryString
Core.ToQuery,
Value -> Parser [CommandStatus]
Value -> Parser CommandStatus
(Value -> Parser CommandStatus)
-> (Value -> Parser [CommandStatus]) -> FromJSON CommandStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CommandStatus]
$cparseJSONList :: Value -> Parser [CommandStatus]
parseJSON :: Value -> Parser CommandStatus
$cparseJSON :: Value -> Parser CommandStatus
Core.FromJSON,
FromJSONKeyFunction [CommandStatus]
FromJSONKeyFunction CommandStatus
FromJSONKeyFunction CommandStatus
-> FromJSONKeyFunction [CommandStatus] -> FromJSONKey CommandStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CommandStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CommandStatus]
fromJSONKey :: FromJSONKeyFunction CommandStatus
$cfromJSONKey :: FromJSONKeyFunction CommandStatus
Core.FromJSONKey,
[CommandStatus] -> Encoding
[CommandStatus] -> Value
CommandStatus -> Encoding
CommandStatus -> Value
(CommandStatus -> Value)
-> (CommandStatus -> Encoding)
-> ([CommandStatus] -> Value)
-> ([CommandStatus] -> Encoding)
-> ToJSON CommandStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CommandStatus] -> Encoding
$ctoEncodingList :: [CommandStatus] -> Encoding
toJSONList :: [CommandStatus] -> Value
$ctoJSONList :: [CommandStatus] -> Value
toEncoding :: CommandStatus -> Encoding
$ctoEncoding :: CommandStatus -> Encoding
toJSON :: CommandStatus -> Value
$ctoJSON :: CommandStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [CommandStatus]
ToJSONKeyFunction CommandStatus
ToJSONKeyFunction CommandStatus
-> ToJSONKeyFunction [CommandStatus] -> ToJSONKey CommandStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CommandStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CommandStatus]
toJSONKey :: ToJSONKeyFunction CommandStatus
$ctoJSONKey :: ToJSONKeyFunction CommandStatus
Core.ToJSONKey,
[Node] -> Either String CommandStatus
([Node] -> Either String CommandStatus) -> FromXML CommandStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CommandStatus
$cparseXML :: [Node] -> Either String CommandStatus
Core.FromXML,
CommandStatus -> XML
(CommandStatus -> XML) -> ToXML CommandStatus
forall a. (a -> XML) -> ToXML a
toXML :: CommandStatus -> XML
$ctoXML :: CommandStatus -> XML
Core.ToXML
)
pattern CommandStatus_Cancelled :: CommandStatus
pattern $bCommandStatus_Cancelled :: CommandStatus
$mCommandStatus_Cancelled :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_Cancelled = CommandStatus' "Cancelled"
pattern CommandStatus_Cancelling :: CommandStatus
pattern $bCommandStatus_Cancelling :: CommandStatus
$mCommandStatus_Cancelling :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_Cancelling = CommandStatus' "Cancelling"
pattern CommandStatus_Failed :: CommandStatus
pattern $bCommandStatus_Failed :: CommandStatus
$mCommandStatus_Failed :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_Failed = CommandStatus' "Failed"
pattern CommandStatus_InProgress :: CommandStatus
pattern $bCommandStatus_InProgress :: CommandStatus
$mCommandStatus_InProgress :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_InProgress = CommandStatus' "InProgress"
pattern CommandStatus_Pending :: CommandStatus
pattern $bCommandStatus_Pending :: CommandStatus
$mCommandStatus_Pending :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_Pending = CommandStatus' "Pending"
pattern CommandStatus_Success :: CommandStatus
pattern $bCommandStatus_Success :: CommandStatus
$mCommandStatus_Success :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_Success = CommandStatus' "Success"
pattern CommandStatus_TimedOut :: CommandStatus
pattern $bCommandStatus_TimedOut :: CommandStatus
$mCommandStatus_TimedOut :: forall r. CommandStatus -> (Void# -> r) -> (Void# -> r) -> r
CommandStatus_TimedOut = CommandStatus' "TimedOut"
{-# COMPLETE
CommandStatus_Cancelled,
CommandStatus_Cancelling,
CommandStatus_Failed,
CommandStatus_InProgress,
CommandStatus_Pending,
CommandStatus_Success,
CommandStatus_TimedOut,
CommandStatus'
#-}