{-# 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-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.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.Prelude as Prelude

newtype LifecycleEventStatus = LifecycleEventStatus'
  { LifecycleEventStatus -> Text
fromLifecycleEventStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> LifecycleEventStatus -> ShowS
[LifecycleEventStatus] -> ShowS
LifecycleEventStatus -> String
(Int -> LifecycleEventStatus -> ShowS)
-> (LifecycleEventStatus -> String)
-> ([LifecycleEventStatus] -> ShowS)
-> Show LifecycleEventStatus
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]
(Int -> ReadS LifecycleEventStatus)
-> ReadS [LifecycleEventStatus]
-> ReadPrec LifecycleEventStatus
-> ReadPrec [LifecycleEventStatus]
-> Read 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
(LifecycleEventStatus -> LifecycleEventStatus -> Bool)
-> (LifecycleEventStatus -> LifecycleEventStatus -> Bool)
-> Eq LifecycleEventStatus
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
Eq LifecycleEventStatus
-> (LifecycleEventStatus -> LifecycleEventStatus -> Ordering)
-> (LifecycleEventStatus -> LifecycleEventStatus -> Bool)
-> (LifecycleEventStatus -> LifecycleEventStatus -> Bool)
-> (LifecycleEventStatus -> LifecycleEventStatus -> Bool)
-> (LifecycleEventStatus -> LifecycleEventStatus -> Bool)
-> (LifecycleEventStatus
    -> LifecycleEventStatus -> LifecycleEventStatus)
-> (LifecycleEventStatus
    -> LifecycleEventStatus -> LifecycleEventStatus)
-> Ord 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
$cp1Ord :: Eq LifecycleEventStatus
Prelude.Ord,
      (forall x. LifecycleEventStatus -> Rep LifecycleEventStatus x)
-> (forall x. Rep LifecycleEventStatus x -> LifecycleEventStatus)
-> Generic LifecycleEventStatus
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
    ( Int -> LifecycleEventStatus -> Int
LifecycleEventStatus -> Int
(Int -> LifecycleEventStatus -> Int)
-> (LifecycleEventStatus -> Int) -> Hashable LifecycleEventStatus
forall 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 -> ()
(LifecycleEventStatus -> ()) -> NFData LifecycleEventStatus
forall a. (a -> ()) -> NFData a
rnf :: LifecycleEventStatus -> ()
$crnf :: LifecycleEventStatus -> ()
Prelude.NFData,
      Text -> Either String LifecycleEventStatus
(Text -> Either String LifecycleEventStatus)
-> FromText LifecycleEventStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LifecycleEventStatus
$cfromText :: Text -> Either String LifecycleEventStatus
Core.FromText,
      LifecycleEventStatus -> Text
(LifecycleEventStatus -> Text) -> ToText LifecycleEventStatus
forall a. (a -> Text) -> ToText a
toText :: LifecycleEventStatus -> Text
$ctoText :: LifecycleEventStatus -> Text
Core.ToText,
      LifecycleEventStatus -> ByteString
(LifecycleEventStatus -> ByteString)
-> ToByteString LifecycleEventStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: LifecycleEventStatus -> ByteString
$ctoBS :: LifecycleEventStatus -> ByteString
Core.ToByteString,
      LifecycleEventStatus -> ByteStringBuilder
(LifecycleEventStatus -> ByteStringBuilder)
-> ToLog LifecycleEventStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LifecycleEventStatus -> ByteStringBuilder
$cbuild :: LifecycleEventStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> LifecycleEventStatus -> [Header]
(HeaderName -> LifecycleEventStatus -> [Header])
-> ToHeader LifecycleEventStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LifecycleEventStatus -> [Header]
$ctoHeader :: HeaderName -> LifecycleEventStatus -> [Header]
Core.ToHeader,
      LifecycleEventStatus -> QueryString
(LifecycleEventStatus -> QueryString)
-> ToQuery LifecycleEventStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LifecycleEventStatus -> QueryString
$ctoQuery :: LifecycleEventStatus -> QueryString
Core.ToQuery,
      Value -> Parser [LifecycleEventStatus]
Value -> Parser LifecycleEventStatus
(Value -> Parser LifecycleEventStatus)
-> (Value -> Parser [LifecycleEventStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [LifecycleEventStatus]
FromJSONKeyFunction LifecycleEventStatus
FromJSONKeyFunction LifecycleEventStatus
-> FromJSONKeyFunction [LifecycleEventStatus]
-> FromJSONKey LifecycleEventStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LifecycleEventStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [LifecycleEventStatus]
fromJSONKey :: FromJSONKeyFunction LifecycleEventStatus
$cfromJSONKey :: FromJSONKeyFunction LifecycleEventStatus
Core.FromJSONKey,
      [LifecycleEventStatus] -> Encoding
[LifecycleEventStatus] -> Value
LifecycleEventStatus -> Encoding
LifecycleEventStatus -> Value
(LifecycleEventStatus -> Value)
-> (LifecycleEventStatus -> Encoding)
-> ([LifecycleEventStatus] -> Value)
-> ([LifecycleEventStatus] -> Encoding)
-> ToJSON LifecycleEventStatus
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
Core.ToJSON,
      ToJSONKeyFunction [LifecycleEventStatus]
ToJSONKeyFunction LifecycleEventStatus
ToJSONKeyFunction LifecycleEventStatus
-> ToJSONKeyFunction [LifecycleEventStatus]
-> ToJSONKey LifecycleEventStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LifecycleEventStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [LifecycleEventStatus]
toJSONKey :: ToJSONKeyFunction LifecycleEventStatus
$ctoJSONKey :: ToJSONKeyFunction LifecycleEventStatus
Core.ToJSONKey,
      [Node] -> Either String LifecycleEventStatus
([Node] -> Either String LifecycleEventStatus)
-> FromXML LifecycleEventStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LifecycleEventStatus
$cparseXML :: [Node] -> Either String LifecycleEventStatus
Core.FromXML,
      LifecycleEventStatus -> XML
(LifecycleEventStatus -> XML) -> ToXML LifecycleEventStatus
forall a. (a -> XML) -> ToXML a
toXML :: LifecycleEventStatus -> XML
$ctoXML :: LifecycleEventStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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

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