{-# 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.AutomationExecutionStatus
( AutomationExecutionStatus
( ..,
AutomationExecutionStatus_Approved,
AutomationExecutionStatus_Cancelled,
AutomationExecutionStatus_Cancelling,
AutomationExecutionStatus_ChangeCalendarOverrideApproved,
AutomationExecutionStatus_ChangeCalendarOverrideRejected,
AutomationExecutionStatus_CompletedWithFailure,
AutomationExecutionStatus_CompletedWithSuccess,
AutomationExecutionStatus_Failed,
AutomationExecutionStatus_InProgress,
AutomationExecutionStatus_Pending,
AutomationExecutionStatus_PendingApproval,
AutomationExecutionStatus_PendingChangeCalendarOverride,
AutomationExecutionStatus_Rejected,
AutomationExecutionStatus_RunbookInProgress,
AutomationExecutionStatus_Scheduled,
AutomationExecutionStatus_Success,
AutomationExecutionStatus_TimedOut,
AutomationExecutionStatus_Waiting
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AutomationExecutionStatus = AutomationExecutionStatus'
{ AutomationExecutionStatus -> Text
fromAutomationExecutionStatus ::
Core.Text
}
deriving stock
( Int -> AutomationExecutionStatus -> ShowS
[AutomationExecutionStatus] -> ShowS
AutomationExecutionStatus -> String
(Int -> AutomationExecutionStatus -> ShowS)
-> (AutomationExecutionStatus -> String)
-> ([AutomationExecutionStatus] -> ShowS)
-> Show AutomationExecutionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutomationExecutionStatus] -> ShowS
$cshowList :: [AutomationExecutionStatus] -> ShowS
show :: AutomationExecutionStatus -> String
$cshow :: AutomationExecutionStatus -> String
showsPrec :: Int -> AutomationExecutionStatus -> ShowS
$cshowsPrec :: Int -> AutomationExecutionStatus -> ShowS
Prelude.Show,
ReadPrec [AutomationExecutionStatus]
ReadPrec AutomationExecutionStatus
Int -> ReadS AutomationExecutionStatus
ReadS [AutomationExecutionStatus]
(Int -> ReadS AutomationExecutionStatus)
-> ReadS [AutomationExecutionStatus]
-> ReadPrec AutomationExecutionStatus
-> ReadPrec [AutomationExecutionStatus]
-> Read AutomationExecutionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutomationExecutionStatus]
$creadListPrec :: ReadPrec [AutomationExecutionStatus]
readPrec :: ReadPrec AutomationExecutionStatus
$creadPrec :: ReadPrec AutomationExecutionStatus
readList :: ReadS [AutomationExecutionStatus]
$creadList :: ReadS [AutomationExecutionStatus]
readsPrec :: Int -> ReadS AutomationExecutionStatus
$creadsPrec :: Int -> ReadS AutomationExecutionStatus
Prelude.Read,
AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
(AutomationExecutionStatus -> AutomationExecutionStatus -> Bool)
-> (AutomationExecutionStatus -> AutomationExecutionStatus -> Bool)
-> Eq AutomationExecutionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
$c/= :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
== :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
$c== :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
Prelude.Eq,
Eq AutomationExecutionStatus
Eq AutomationExecutionStatus
-> (AutomationExecutionStatus
-> AutomationExecutionStatus -> Ordering)
-> (AutomationExecutionStatus -> AutomationExecutionStatus -> Bool)
-> (AutomationExecutionStatus -> AutomationExecutionStatus -> Bool)
-> (AutomationExecutionStatus -> AutomationExecutionStatus -> Bool)
-> (AutomationExecutionStatus -> AutomationExecutionStatus -> Bool)
-> (AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus)
-> (AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus)
-> Ord AutomationExecutionStatus
AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
AutomationExecutionStatus -> AutomationExecutionStatus -> Ordering
AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus
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 :: AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus
$cmin :: AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus
max :: AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus
$cmax :: AutomationExecutionStatus
-> AutomationExecutionStatus -> AutomationExecutionStatus
>= :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
$c>= :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
> :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
$c> :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
<= :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
$c<= :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
< :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
$c< :: AutomationExecutionStatus -> AutomationExecutionStatus -> Bool
compare :: AutomationExecutionStatus -> AutomationExecutionStatus -> Ordering
$ccompare :: AutomationExecutionStatus -> AutomationExecutionStatus -> Ordering
$cp1Ord :: Eq AutomationExecutionStatus
Prelude.Ord,
(forall x.
AutomationExecutionStatus -> Rep AutomationExecutionStatus x)
-> (forall x.
Rep AutomationExecutionStatus x -> AutomationExecutionStatus)
-> Generic AutomationExecutionStatus
forall x.
Rep AutomationExecutionStatus x -> AutomationExecutionStatus
forall x.
AutomationExecutionStatus -> Rep AutomationExecutionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AutomationExecutionStatus x -> AutomationExecutionStatus
$cfrom :: forall x.
AutomationExecutionStatus -> Rep AutomationExecutionStatus x
Prelude.Generic
)
deriving newtype
( Int -> AutomationExecutionStatus -> Int
AutomationExecutionStatus -> Int
(Int -> AutomationExecutionStatus -> Int)
-> (AutomationExecutionStatus -> Int)
-> Hashable AutomationExecutionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AutomationExecutionStatus -> Int
$chash :: AutomationExecutionStatus -> Int
hashWithSalt :: Int -> AutomationExecutionStatus -> Int
$chashWithSalt :: Int -> AutomationExecutionStatus -> Int
Prelude.Hashable,
AutomationExecutionStatus -> ()
(AutomationExecutionStatus -> ())
-> NFData AutomationExecutionStatus
forall a. (a -> ()) -> NFData a
rnf :: AutomationExecutionStatus -> ()
$crnf :: AutomationExecutionStatus -> ()
Prelude.NFData,
Text -> Either String AutomationExecutionStatus
(Text -> Either String AutomationExecutionStatus)
-> FromText AutomationExecutionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AutomationExecutionStatus
$cfromText :: Text -> Either String AutomationExecutionStatus
Core.FromText,
AutomationExecutionStatus -> Text
(AutomationExecutionStatus -> Text)
-> ToText AutomationExecutionStatus
forall a. (a -> Text) -> ToText a
toText :: AutomationExecutionStatus -> Text
$ctoText :: AutomationExecutionStatus -> Text
Core.ToText,
AutomationExecutionStatus -> ByteString
(AutomationExecutionStatus -> ByteString)
-> ToByteString AutomationExecutionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: AutomationExecutionStatus -> ByteString
$ctoBS :: AutomationExecutionStatus -> ByteString
Core.ToByteString,
AutomationExecutionStatus -> ByteStringBuilder
(AutomationExecutionStatus -> ByteStringBuilder)
-> ToLog AutomationExecutionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AutomationExecutionStatus -> ByteStringBuilder
$cbuild :: AutomationExecutionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> AutomationExecutionStatus -> [Header]
(HeaderName -> AutomationExecutionStatus -> [Header])
-> ToHeader AutomationExecutionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AutomationExecutionStatus -> [Header]
$ctoHeader :: HeaderName -> AutomationExecutionStatus -> [Header]
Core.ToHeader,
AutomationExecutionStatus -> QueryString
(AutomationExecutionStatus -> QueryString)
-> ToQuery AutomationExecutionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AutomationExecutionStatus -> QueryString
$ctoQuery :: AutomationExecutionStatus -> QueryString
Core.ToQuery,
Value -> Parser [AutomationExecutionStatus]
Value -> Parser AutomationExecutionStatus
(Value -> Parser AutomationExecutionStatus)
-> (Value -> Parser [AutomationExecutionStatus])
-> FromJSON AutomationExecutionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AutomationExecutionStatus]
$cparseJSONList :: Value -> Parser [AutomationExecutionStatus]
parseJSON :: Value -> Parser AutomationExecutionStatus
$cparseJSON :: Value -> Parser AutomationExecutionStatus
Core.FromJSON,
FromJSONKeyFunction [AutomationExecutionStatus]
FromJSONKeyFunction AutomationExecutionStatus
FromJSONKeyFunction AutomationExecutionStatus
-> FromJSONKeyFunction [AutomationExecutionStatus]
-> FromJSONKey AutomationExecutionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AutomationExecutionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AutomationExecutionStatus]
fromJSONKey :: FromJSONKeyFunction AutomationExecutionStatus
$cfromJSONKey :: FromJSONKeyFunction AutomationExecutionStatus
Core.FromJSONKey,
[AutomationExecutionStatus] -> Encoding
[AutomationExecutionStatus] -> Value
AutomationExecutionStatus -> Encoding
AutomationExecutionStatus -> Value
(AutomationExecutionStatus -> Value)
-> (AutomationExecutionStatus -> Encoding)
-> ([AutomationExecutionStatus] -> Value)
-> ([AutomationExecutionStatus] -> Encoding)
-> ToJSON AutomationExecutionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AutomationExecutionStatus] -> Encoding
$ctoEncodingList :: [AutomationExecutionStatus] -> Encoding
toJSONList :: [AutomationExecutionStatus] -> Value
$ctoJSONList :: [AutomationExecutionStatus] -> Value
toEncoding :: AutomationExecutionStatus -> Encoding
$ctoEncoding :: AutomationExecutionStatus -> Encoding
toJSON :: AutomationExecutionStatus -> Value
$ctoJSON :: AutomationExecutionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [AutomationExecutionStatus]
ToJSONKeyFunction AutomationExecutionStatus
ToJSONKeyFunction AutomationExecutionStatus
-> ToJSONKeyFunction [AutomationExecutionStatus]
-> ToJSONKey AutomationExecutionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AutomationExecutionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AutomationExecutionStatus]
toJSONKey :: ToJSONKeyFunction AutomationExecutionStatus
$ctoJSONKey :: ToJSONKeyFunction AutomationExecutionStatus
Core.ToJSONKey,
[Node] -> Either String AutomationExecutionStatus
([Node] -> Either String AutomationExecutionStatus)
-> FromXML AutomationExecutionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AutomationExecutionStatus
$cparseXML :: [Node] -> Either String AutomationExecutionStatus
Core.FromXML,
AutomationExecutionStatus -> XML
(AutomationExecutionStatus -> XML)
-> ToXML AutomationExecutionStatus
forall a. (a -> XML) -> ToXML a
toXML :: AutomationExecutionStatus -> XML
$ctoXML :: AutomationExecutionStatus -> XML
Core.ToXML
)
pattern AutomationExecutionStatus_Approved :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Approved :: AutomationExecutionStatus
$mAutomationExecutionStatus_Approved :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Approved = AutomationExecutionStatus' "Approved"
pattern AutomationExecutionStatus_Cancelled :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Cancelled :: AutomationExecutionStatus
$mAutomationExecutionStatus_Cancelled :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Cancelled = AutomationExecutionStatus' "Cancelled"
pattern AutomationExecutionStatus_Cancelling :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Cancelling :: AutomationExecutionStatus
$mAutomationExecutionStatus_Cancelling :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Cancelling = AutomationExecutionStatus' "Cancelling"
pattern AutomationExecutionStatus_ChangeCalendarOverrideApproved :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_ChangeCalendarOverrideApproved :: AutomationExecutionStatus
$mAutomationExecutionStatus_ChangeCalendarOverrideApproved :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_ChangeCalendarOverrideApproved = AutomationExecutionStatus' "ChangeCalendarOverrideApproved"
pattern AutomationExecutionStatus_ChangeCalendarOverrideRejected :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_ChangeCalendarOverrideRejected :: AutomationExecutionStatus
$mAutomationExecutionStatus_ChangeCalendarOverrideRejected :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_ChangeCalendarOverrideRejected = AutomationExecutionStatus' "ChangeCalendarOverrideRejected"
pattern AutomationExecutionStatus_CompletedWithFailure :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_CompletedWithFailure :: AutomationExecutionStatus
$mAutomationExecutionStatus_CompletedWithFailure :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_CompletedWithFailure = AutomationExecutionStatus' "CompletedWithFailure"
pattern AutomationExecutionStatus_CompletedWithSuccess :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_CompletedWithSuccess :: AutomationExecutionStatus
$mAutomationExecutionStatus_CompletedWithSuccess :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_CompletedWithSuccess = AutomationExecutionStatus' "CompletedWithSuccess"
pattern AutomationExecutionStatus_Failed :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Failed :: AutomationExecutionStatus
$mAutomationExecutionStatus_Failed :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Failed = AutomationExecutionStatus' "Failed"
pattern AutomationExecutionStatus_InProgress :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_InProgress :: AutomationExecutionStatus
$mAutomationExecutionStatus_InProgress :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_InProgress = AutomationExecutionStatus' "InProgress"
pattern AutomationExecutionStatus_Pending :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Pending :: AutomationExecutionStatus
$mAutomationExecutionStatus_Pending :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Pending = AutomationExecutionStatus' "Pending"
pattern AutomationExecutionStatus_PendingApproval :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_PendingApproval :: AutomationExecutionStatus
$mAutomationExecutionStatus_PendingApproval :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_PendingApproval = AutomationExecutionStatus' "PendingApproval"
pattern AutomationExecutionStatus_PendingChangeCalendarOverride :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_PendingChangeCalendarOverride :: AutomationExecutionStatus
$mAutomationExecutionStatus_PendingChangeCalendarOverride :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_PendingChangeCalendarOverride = AutomationExecutionStatus' "PendingChangeCalendarOverride"
pattern AutomationExecutionStatus_Rejected :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Rejected :: AutomationExecutionStatus
$mAutomationExecutionStatus_Rejected :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Rejected = AutomationExecutionStatus' "Rejected"
pattern AutomationExecutionStatus_RunbookInProgress :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_RunbookInProgress :: AutomationExecutionStatus
$mAutomationExecutionStatus_RunbookInProgress :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_RunbookInProgress = AutomationExecutionStatus' "RunbookInProgress"
pattern AutomationExecutionStatus_Scheduled :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Scheduled :: AutomationExecutionStatus
$mAutomationExecutionStatus_Scheduled :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Scheduled = AutomationExecutionStatus' "Scheduled"
pattern AutomationExecutionStatus_Success :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Success :: AutomationExecutionStatus
$mAutomationExecutionStatus_Success :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Success = AutomationExecutionStatus' "Success"
pattern AutomationExecutionStatus_TimedOut :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_TimedOut :: AutomationExecutionStatus
$mAutomationExecutionStatus_TimedOut :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_TimedOut = AutomationExecutionStatus' "TimedOut"
pattern AutomationExecutionStatus_Waiting :: AutomationExecutionStatus
pattern $bAutomationExecutionStatus_Waiting :: AutomationExecutionStatus
$mAutomationExecutionStatus_Waiting :: forall r.
AutomationExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
AutomationExecutionStatus_Waiting = AutomationExecutionStatus' "Waiting"
{-# COMPLETE
AutomationExecutionStatus_Approved,
AutomationExecutionStatus_Cancelled,
AutomationExecutionStatus_Cancelling,
AutomationExecutionStatus_ChangeCalendarOverrideApproved,
AutomationExecutionStatus_ChangeCalendarOverrideRejected,
AutomationExecutionStatus_CompletedWithFailure,
AutomationExecutionStatus_CompletedWithSuccess,
AutomationExecutionStatus_Failed,
AutomationExecutionStatus_InProgress,
AutomationExecutionStatus_Pending,
AutomationExecutionStatus_PendingApproval,
AutomationExecutionStatus_PendingChangeCalendarOverride,
AutomationExecutionStatus_Rejected,
AutomationExecutionStatus_RunbookInProgress,
AutomationExecutionStatus_Scheduled,
AutomationExecutionStatus_Success,
AutomationExecutionStatus_TimedOut,
AutomationExecutionStatus_Waiting,
AutomationExecutionStatus'
#-}