{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SSM.Types.CommandInvocationStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSM.Types.CommandInvocationStatus
  ( CommandInvocationStatus
      ( ..,
        CommandInvocationStatus_Cancelled,
        CommandInvocationStatus_Cancelling,
        CommandInvocationStatus_Delayed,
        CommandInvocationStatus_Failed,
        CommandInvocationStatus_InProgress,
        CommandInvocationStatus_Pending,
        CommandInvocationStatus_Success,
        CommandInvocationStatus_TimedOut
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CommandInvocationStatus = CommandInvocationStatus'
  { CommandInvocationStatus -> Text
fromCommandInvocationStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> CommandInvocationStatus -> ShowS
[CommandInvocationStatus] -> ShowS
CommandInvocationStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CommandInvocationStatus] -> ShowS
$cshowList :: [CommandInvocationStatus] -> ShowS
show :: CommandInvocationStatus -> String
$cshow :: CommandInvocationStatus -> String
showsPrec :: Int -> CommandInvocationStatus -> ShowS
$cshowsPrec :: Int -> CommandInvocationStatus -> ShowS
Prelude.Show,
      ReadPrec [CommandInvocationStatus]
ReadPrec CommandInvocationStatus
Int -> ReadS CommandInvocationStatus
ReadS [CommandInvocationStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CommandInvocationStatus]
$creadListPrec :: ReadPrec [CommandInvocationStatus]
readPrec :: ReadPrec CommandInvocationStatus
$creadPrec :: ReadPrec CommandInvocationStatus
readList :: ReadS [CommandInvocationStatus]
$creadList :: ReadS [CommandInvocationStatus]
readsPrec :: Int -> ReadS CommandInvocationStatus
$creadsPrec :: Int -> ReadS CommandInvocationStatus
Prelude.Read,
      CommandInvocationStatus -> CommandInvocationStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
$c/= :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
== :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
$c== :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
Prelude.Eq,
      Eq CommandInvocationStatus
CommandInvocationStatus -> CommandInvocationStatus -> Bool
CommandInvocationStatus -> CommandInvocationStatus -> Ordering
CommandInvocationStatus
-> CommandInvocationStatus -> CommandInvocationStatus
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 :: CommandInvocationStatus
-> CommandInvocationStatus -> CommandInvocationStatus
$cmin :: CommandInvocationStatus
-> CommandInvocationStatus -> CommandInvocationStatus
max :: CommandInvocationStatus
-> CommandInvocationStatus -> CommandInvocationStatus
$cmax :: CommandInvocationStatus
-> CommandInvocationStatus -> CommandInvocationStatus
>= :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
$c>= :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
> :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
$c> :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
<= :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
$c<= :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
< :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
$c< :: CommandInvocationStatus -> CommandInvocationStatus -> Bool
compare :: CommandInvocationStatus -> CommandInvocationStatus -> Ordering
$ccompare :: CommandInvocationStatus -> CommandInvocationStatus -> Ordering
Prelude.Ord,
      forall x. Rep CommandInvocationStatus x -> CommandInvocationStatus
forall x. CommandInvocationStatus -> Rep CommandInvocationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CommandInvocationStatus x -> CommandInvocationStatus
$cfrom :: forall x. CommandInvocationStatus -> Rep CommandInvocationStatus x
Prelude.Generic
    )
  deriving newtype
    ( Eq CommandInvocationStatus
Int -> CommandInvocationStatus -> Int
CommandInvocationStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CommandInvocationStatus -> Int
$chash :: CommandInvocationStatus -> Int
hashWithSalt :: Int -> CommandInvocationStatus -> Int
$chashWithSalt :: Int -> CommandInvocationStatus -> Int
Prelude.Hashable,
      CommandInvocationStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: CommandInvocationStatus -> ()
$crnf :: CommandInvocationStatus -> ()
Prelude.NFData,
      Text -> Either String CommandInvocationStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CommandInvocationStatus
$cfromText :: Text -> Either String CommandInvocationStatus
Data.FromText,
      CommandInvocationStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: CommandInvocationStatus -> Text
$ctoText :: CommandInvocationStatus -> Text
Data.ToText,
      CommandInvocationStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CommandInvocationStatus -> ByteString
$ctoBS :: CommandInvocationStatus -> ByteString
Data.ToByteString,
      CommandInvocationStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CommandInvocationStatus -> ByteStringBuilder
$cbuild :: CommandInvocationStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CommandInvocationStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CommandInvocationStatus -> [Header]
$ctoHeader :: HeaderName -> CommandInvocationStatus -> [Header]
Data.ToHeader,
      CommandInvocationStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CommandInvocationStatus -> QueryString
$ctoQuery :: CommandInvocationStatus -> QueryString
Data.ToQuery,
      Value -> Parser [CommandInvocationStatus]
Value -> Parser CommandInvocationStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CommandInvocationStatus]
$cparseJSONList :: Value -> Parser [CommandInvocationStatus]
parseJSON :: Value -> Parser CommandInvocationStatus
$cparseJSON :: Value -> Parser CommandInvocationStatus
Data.FromJSON,
      FromJSONKeyFunction [CommandInvocationStatus]
FromJSONKeyFunction CommandInvocationStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CommandInvocationStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CommandInvocationStatus]
fromJSONKey :: FromJSONKeyFunction CommandInvocationStatus
$cfromJSONKey :: FromJSONKeyFunction CommandInvocationStatus
Data.FromJSONKey,
      [CommandInvocationStatus] -> Encoding
[CommandInvocationStatus] -> Value
CommandInvocationStatus -> Encoding
CommandInvocationStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CommandInvocationStatus] -> Encoding
$ctoEncodingList :: [CommandInvocationStatus] -> Encoding
toJSONList :: [CommandInvocationStatus] -> Value
$ctoJSONList :: [CommandInvocationStatus] -> Value
toEncoding :: CommandInvocationStatus -> Encoding
$ctoEncoding :: CommandInvocationStatus -> Encoding
toJSON :: CommandInvocationStatus -> Value
$ctoJSON :: CommandInvocationStatus -> Value
Data.ToJSON,
      ToJSONKeyFunction [CommandInvocationStatus]
ToJSONKeyFunction CommandInvocationStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CommandInvocationStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CommandInvocationStatus]
toJSONKey :: ToJSONKeyFunction CommandInvocationStatus
$ctoJSONKey :: ToJSONKeyFunction CommandInvocationStatus
Data.ToJSONKey,
      [Node] -> Either String CommandInvocationStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CommandInvocationStatus
$cparseXML :: [Node] -> Either String CommandInvocationStatus
Data.FromXML,
      CommandInvocationStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CommandInvocationStatus -> XML
$ctoXML :: CommandInvocationStatus -> XML
Data.ToXML
    )

pattern CommandInvocationStatus_Cancelled :: CommandInvocationStatus
pattern $bCommandInvocationStatus_Cancelled :: CommandInvocationStatus
$mCommandInvocationStatus_Cancelled :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_Cancelled = CommandInvocationStatus' "Cancelled"

pattern CommandInvocationStatus_Cancelling :: CommandInvocationStatus
pattern $bCommandInvocationStatus_Cancelling :: CommandInvocationStatus
$mCommandInvocationStatus_Cancelling :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_Cancelling = CommandInvocationStatus' "Cancelling"

pattern CommandInvocationStatus_Delayed :: CommandInvocationStatus
pattern $bCommandInvocationStatus_Delayed :: CommandInvocationStatus
$mCommandInvocationStatus_Delayed :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_Delayed = CommandInvocationStatus' "Delayed"

pattern CommandInvocationStatus_Failed :: CommandInvocationStatus
pattern $bCommandInvocationStatus_Failed :: CommandInvocationStatus
$mCommandInvocationStatus_Failed :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_Failed = CommandInvocationStatus' "Failed"

pattern CommandInvocationStatus_InProgress :: CommandInvocationStatus
pattern $bCommandInvocationStatus_InProgress :: CommandInvocationStatus
$mCommandInvocationStatus_InProgress :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_InProgress = CommandInvocationStatus' "InProgress"

pattern CommandInvocationStatus_Pending :: CommandInvocationStatus
pattern $bCommandInvocationStatus_Pending :: CommandInvocationStatus
$mCommandInvocationStatus_Pending :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_Pending = CommandInvocationStatus' "Pending"

pattern CommandInvocationStatus_Success :: CommandInvocationStatus
pattern $bCommandInvocationStatus_Success :: CommandInvocationStatus
$mCommandInvocationStatus_Success :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_Success = CommandInvocationStatus' "Success"

pattern CommandInvocationStatus_TimedOut :: CommandInvocationStatus
pattern $bCommandInvocationStatus_TimedOut :: CommandInvocationStatus
$mCommandInvocationStatus_TimedOut :: forall {r}.
CommandInvocationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CommandInvocationStatus_TimedOut = CommandInvocationStatus' "TimedOut"

{-# COMPLETE
  CommandInvocationStatus_Cancelled,
  CommandInvocationStatus_Cancelling,
  CommandInvocationStatus_Delayed,
  CommandInvocationStatus_Failed,
  CommandInvocationStatus_InProgress,
  CommandInvocationStatus_Pending,
  CommandInvocationStatus_Success,
  CommandInvocationStatus_TimedOut,
  CommandInvocationStatus'
  #-}