{-# 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.CodePipeline.Types.ActionExecutionStatus
-- 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.CodePipeline.Types.ActionExecutionStatus
  ( ActionExecutionStatus
      ( ..,
        ActionExecutionStatus_Abandoned,
        ActionExecutionStatus_Failed,
        ActionExecutionStatus_InProgress,
        ActionExecutionStatus_Succeeded
      ),
  )
where

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

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

pattern ActionExecutionStatus_Abandoned :: ActionExecutionStatus
pattern $bActionExecutionStatus_Abandoned :: ActionExecutionStatus
$mActionExecutionStatus_Abandoned :: forall r.
ActionExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionExecutionStatus_Abandoned = ActionExecutionStatus' "Abandoned"

pattern ActionExecutionStatus_Failed :: ActionExecutionStatus
pattern $bActionExecutionStatus_Failed :: ActionExecutionStatus
$mActionExecutionStatus_Failed :: forall r.
ActionExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionExecutionStatus_Failed = ActionExecutionStatus' "Failed"

pattern ActionExecutionStatus_InProgress :: ActionExecutionStatus
pattern $bActionExecutionStatus_InProgress :: ActionExecutionStatus
$mActionExecutionStatus_InProgress :: forall r.
ActionExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionExecutionStatus_InProgress = ActionExecutionStatus' "InProgress"

pattern ActionExecutionStatus_Succeeded :: ActionExecutionStatus
pattern $bActionExecutionStatus_Succeeded :: ActionExecutionStatus
$mActionExecutionStatus_Succeeded :: forall r.
ActionExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionExecutionStatus_Succeeded = ActionExecutionStatus' "Succeeded"

{-# COMPLETE
  ActionExecutionStatus_Abandoned,
  ActionExecutionStatus_Failed,
  ActionExecutionStatus_InProgress,
  ActionExecutionStatus_Succeeded,
  ActionExecutionStatus'
  #-}