{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype CommandInvocationStatus = CommandInvocationStatus'
  { CommandInvocationStatus -> Text
fromCommandInvocationStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> CommandInvocationStatus -> ShowS
[CommandInvocationStatus] -> ShowS
CommandInvocationStatus -> String
(Int -> CommandInvocationStatus -> ShowS)
-> (CommandInvocationStatus -> String)
-> ([CommandInvocationStatus] -> ShowS)
-> Show CommandInvocationStatus
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]
(Int -> ReadS CommandInvocationStatus)
-> ReadS [CommandInvocationStatus]
-> ReadPrec CommandInvocationStatus
-> ReadPrec [CommandInvocationStatus]
-> Read 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
(CommandInvocationStatus -> CommandInvocationStatus -> Bool)
-> (CommandInvocationStatus -> CommandInvocationStatus -> Bool)
-> Eq CommandInvocationStatus
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
Eq CommandInvocationStatus
-> (CommandInvocationStatus -> CommandInvocationStatus -> Ordering)
-> (CommandInvocationStatus -> CommandInvocationStatus -> Bool)
-> (CommandInvocationStatus -> CommandInvocationStatus -> Bool)
-> (CommandInvocationStatus -> CommandInvocationStatus -> Bool)
-> (CommandInvocationStatus -> CommandInvocationStatus -> Bool)
-> (CommandInvocationStatus
    -> CommandInvocationStatus -> CommandInvocationStatus)
-> (CommandInvocationStatus
    -> CommandInvocationStatus -> CommandInvocationStatus)
-> Ord 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
$cp1Ord :: Eq CommandInvocationStatus
Prelude.Ord,
      (forall x.
 CommandInvocationStatus -> Rep CommandInvocationStatus x)
-> (forall x.
    Rep CommandInvocationStatus x -> CommandInvocationStatus)
-> Generic CommandInvocationStatus
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
    ( Int -> CommandInvocationStatus -> Int
CommandInvocationStatus -> Int
(Int -> CommandInvocationStatus -> Int)
-> (CommandInvocationStatus -> Int)
-> Hashable CommandInvocationStatus
forall 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 -> ()
(CommandInvocationStatus -> ()) -> NFData CommandInvocationStatus
forall a. (a -> ()) -> NFData a
rnf :: CommandInvocationStatus -> ()
$crnf :: CommandInvocationStatus -> ()
Prelude.NFData,
      Text -> Either String CommandInvocationStatus
(Text -> Either String CommandInvocationStatus)
-> FromText CommandInvocationStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CommandInvocationStatus
$cfromText :: Text -> Either String CommandInvocationStatus
Core.FromText,
      CommandInvocationStatus -> Text
(CommandInvocationStatus -> Text) -> ToText CommandInvocationStatus
forall a. (a -> Text) -> ToText a
toText :: CommandInvocationStatus -> Text
$ctoText :: CommandInvocationStatus -> Text
Core.ToText,
      CommandInvocationStatus -> ByteString
(CommandInvocationStatus -> ByteString)
-> ToByteString CommandInvocationStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: CommandInvocationStatus -> ByteString
$ctoBS :: CommandInvocationStatus -> ByteString
Core.ToByteString,
      CommandInvocationStatus -> ByteStringBuilder
(CommandInvocationStatus -> ByteStringBuilder)
-> ToLog CommandInvocationStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CommandInvocationStatus -> ByteStringBuilder
$cbuild :: CommandInvocationStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CommandInvocationStatus -> [Header]
(HeaderName -> CommandInvocationStatus -> [Header])
-> ToHeader CommandInvocationStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CommandInvocationStatus -> [Header]
$ctoHeader :: HeaderName -> CommandInvocationStatus -> [Header]
Core.ToHeader,
      CommandInvocationStatus -> QueryString
(CommandInvocationStatus -> QueryString)
-> ToQuery CommandInvocationStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CommandInvocationStatus -> QueryString
$ctoQuery :: CommandInvocationStatus -> QueryString
Core.ToQuery,
      Value -> Parser [CommandInvocationStatus]
Value -> Parser CommandInvocationStatus
(Value -> Parser CommandInvocationStatus)
-> (Value -> Parser [CommandInvocationStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [CommandInvocationStatus]
FromJSONKeyFunction CommandInvocationStatus
FromJSONKeyFunction CommandInvocationStatus
-> FromJSONKeyFunction [CommandInvocationStatus]
-> FromJSONKey CommandInvocationStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CommandInvocationStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CommandInvocationStatus]
fromJSONKey :: FromJSONKeyFunction CommandInvocationStatus
$cfromJSONKey :: FromJSONKeyFunction CommandInvocationStatus
Core.FromJSONKey,
      [CommandInvocationStatus] -> Encoding
[CommandInvocationStatus] -> Value
CommandInvocationStatus -> Encoding
CommandInvocationStatus -> Value
(CommandInvocationStatus -> Value)
-> (CommandInvocationStatus -> Encoding)
-> ([CommandInvocationStatus] -> Value)
-> ([CommandInvocationStatus] -> Encoding)
-> ToJSON CommandInvocationStatus
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
Core.ToJSON,
      ToJSONKeyFunction [CommandInvocationStatus]
ToJSONKeyFunction CommandInvocationStatus
ToJSONKeyFunction CommandInvocationStatus
-> ToJSONKeyFunction [CommandInvocationStatus]
-> ToJSONKey CommandInvocationStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CommandInvocationStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CommandInvocationStatus]
toJSONKey :: ToJSONKeyFunction CommandInvocationStatus
$ctoJSONKey :: ToJSONKeyFunction CommandInvocationStatus
Core.ToJSONKey,
      [Node] -> Either String CommandInvocationStatus
([Node] -> Either String CommandInvocationStatus)
-> FromXML CommandInvocationStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CommandInvocationStatus
$cparseXML :: [Node] -> Either String CommandInvocationStatus
Core.FromXML,
      CommandInvocationStatus -> XML
(CommandInvocationStatus -> XML) -> ToXML CommandInvocationStatus
forall a. (a -> XML) -> ToXML a
toXML :: CommandInvocationStatus -> XML
$ctoXML :: CommandInvocationStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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

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

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

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