{-# 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.SyncExecutionStatus
-- 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.StepFunctions.Types.SyncExecutionStatus
  ( SyncExecutionStatus
      ( ..,
        SyncExecutionStatus_FAILED,
        SyncExecutionStatus_SUCCEEDED,
        SyncExecutionStatus_TIMED_OUT
      ),
  )
where

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

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

pattern SyncExecutionStatus_FAILED :: SyncExecutionStatus
pattern $bSyncExecutionStatus_FAILED :: SyncExecutionStatus
$mSyncExecutionStatus_FAILED :: forall r. SyncExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
SyncExecutionStatus_FAILED = SyncExecutionStatus' "FAILED"

pattern SyncExecutionStatus_SUCCEEDED :: SyncExecutionStatus
pattern $bSyncExecutionStatus_SUCCEEDED :: SyncExecutionStatus
$mSyncExecutionStatus_SUCCEEDED :: forall r. SyncExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
SyncExecutionStatus_SUCCEEDED = SyncExecutionStatus' "SUCCEEDED"

pattern SyncExecutionStatus_TIMED_OUT :: SyncExecutionStatus
pattern $bSyncExecutionStatus_TIMED_OUT :: SyncExecutionStatus
$mSyncExecutionStatus_TIMED_OUT :: forall r. SyncExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
SyncExecutionStatus_TIMED_OUT = SyncExecutionStatus' "TIMED_OUT"

{-# COMPLETE
  SyncExecutionStatus_FAILED,
  SyncExecutionStatus_SUCCEEDED,
  SyncExecutionStatus_TIMED_OUT,
  SyncExecutionStatus'
  #-}