{-# 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.CodeDeploy.Types.LifecycleEventStatus
-- 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.CodeDeploy.Types.LifecycleEventStatus
  ( LifecycleEventStatus
      ( ..,
        LifecycleEventStatus_Failed,
        LifecycleEventStatus_InProgress,
        LifecycleEventStatus_Pending,
        LifecycleEventStatus_Skipped,
        LifecycleEventStatus_Succeeded,
        LifecycleEventStatus_Unknown
      ),
  )
where

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

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

pattern LifecycleEventStatus_Failed :: LifecycleEventStatus
pattern $bLifecycleEventStatus_Failed :: LifecycleEventStatus
$mLifecycleEventStatus_Failed :: forall {r}.
LifecycleEventStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleEventStatus_Failed = LifecycleEventStatus' "Failed"

pattern LifecycleEventStatus_InProgress :: LifecycleEventStatus
pattern $bLifecycleEventStatus_InProgress :: LifecycleEventStatus
$mLifecycleEventStatus_InProgress :: forall {r}.
LifecycleEventStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleEventStatus_InProgress = LifecycleEventStatus' "InProgress"

pattern LifecycleEventStatus_Pending :: LifecycleEventStatus
pattern $bLifecycleEventStatus_Pending :: LifecycleEventStatus
$mLifecycleEventStatus_Pending :: forall {r}.
LifecycleEventStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleEventStatus_Pending = LifecycleEventStatus' "Pending"

pattern LifecycleEventStatus_Skipped :: LifecycleEventStatus
pattern $bLifecycleEventStatus_Skipped :: LifecycleEventStatus
$mLifecycleEventStatus_Skipped :: forall {r}.
LifecycleEventStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleEventStatus_Skipped = LifecycleEventStatus' "Skipped"

pattern LifecycleEventStatus_Succeeded :: LifecycleEventStatus
pattern $bLifecycleEventStatus_Succeeded :: LifecycleEventStatus
$mLifecycleEventStatus_Succeeded :: forall {r}.
LifecycleEventStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleEventStatus_Succeeded = LifecycleEventStatus' "Succeeded"

pattern LifecycleEventStatus_Unknown :: LifecycleEventStatus
pattern $bLifecycleEventStatus_Unknown :: LifecycleEventStatus
$mLifecycleEventStatus_Unknown :: forall {r}.
LifecycleEventStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleEventStatus_Unknown = LifecycleEventStatus' "Unknown"

{-# COMPLETE
  LifecycleEventStatus_Failed,
  LifecycleEventStatus_InProgress,
  LifecycleEventStatus_Pending,
  LifecycleEventStatus_Skipped,
  LifecycleEventStatus_Succeeded,
  LifecycleEventStatus_Unknown,
  LifecycleEventStatus'
  #-}