{-# 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.MapRunStatus
-- 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.MapRunStatus
  ( MapRunStatus
      ( ..,
        MapRunStatus_ABORTED,
        MapRunStatus_FAILED,
        MapRunStatus_RUNNING,
        MapRunStatus_SUCCEEDED
      ),
  )
where

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

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

pattern MapRunStatus_ABORTED :: MapRunStatus
pattern $bMapRunStatus_ABORTED :: MapRunStatus
$mMapRunStatus_ABORTED :: forall {r}. MapRunStatus -> ((# #) -> r) -> ((# #) -> r) -> r
MapRunStatus_ABORTED = MapRunStatus' "ABORTED"

pattern MapRunStatus_FAILED :: MapRunStatus
pattern $bMapRunStatus_FAILED :: MapRunStatus
$mMapRunStatus_FAILED :: forall {r}. MapRunStatus -> ((# #) -> r) -> ((# #) -> r) -> r
MapRunStatus_FAILED = MapRunStatus' "FAILED"

pattern MapRunStatus_RUNNING :: MapRunStatus
pattern $bMapRunStatus_RUNNING :: MapRunStatus
$mMapRunStatus_RUNNING :: forall {r}. MapRunStatus -> ((# #) -> r) -> ((# #) -> r) -> r
MapRunStatus_RUNNING = MapRunStatus' "RUNNING"

pattern MapRunStatus_SUCCEEDED :: MapRunStatus
pattern $bMapRunStatus_SUCCEEDED :: MapRunStatus
$mMapRunStatus_SUCCEEDED :: forall {r}. MapRunStatus -> ((# #) -> r) -> ((# #) -> r) -> r
MapRunStatus_SUCCEEDED = MapRunStatus' "SUCCEEDED"

{-# COMPLETE
  MapRunStatus_ABORTED,
  MapRunStatus_FAILED,
  MapRunStatus_RUNNING,
  MapRunStatus_SUCCEEDED,
  MapRunStatus'
  #-}