{-# 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.StepFunctions.Types.StateMachineStatus
-- 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.StepFunctions.Types.StateMachineStatus
  ( StateMachineStatus
      ( ..,
        StateMachineStatus_ACTIVE,
        StateMachineStatus_DELETING
      ),
  )
where

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

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

pattern StateMachineStatus_ACTIVE :: StateMachineStatus
pattern $bStateMachineStatus_ACTIVE :: StateMachineStatus
$mStateMachineStatus_ACTIVE :: forall {r}. StateMachineStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StateMachineStatus_ACTIVE = StateMachineStatus' "ACTIVE"

pattern StateMachineStatus_DELETING :: StateMachineStatus
pattern $bStateMachineStatus_DELETING :: StateMachineStatus
$mStateMachineStatus_DELETING :: forall {r}. StateMachineStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StateMachineStatus_DELETING = StateMachineStatus' "DELETING"

{-# COMPLETE
  StateMachineStatus_ACTIVE,
  StateMachineStatus_DELETING,
  StateMachineStatus'
  #-}