{-# 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.ElasticBeanstalk.Types.ActionHistoryStatus
-- 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.ElasticBeanstalk.Types.ActionHistoryStatus
  ( ActionHistoryStatus
      ( ..,
        ActionHistoryStatus_Completed,
        ActionHistoryStatus_Failed,
        ActionHistoryStatus_Unknown
      ),
  )
where

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

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

pattern ActionHistoryStatus_Completed :: ActionHistoryStatus
pattern $bActionHistoryStatus_Completed :: ActionHistoryStatus
$mActionHistoryStatus_Completed :: forall r. ActionHistoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionHistoryStatus_Completed = ActionHistoryStatus' "Completed"

pattern ActionHistoryStatus_Failed :: ActionHistoryStatus
pattern $bActionHistoryStatus_Failed :: ActionHistoryStatus
$mActionHistoryStatus_Failed :: forall r. ActionHistoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionHistoryStatus_Failed = ActionHistoryStatus' "Failed"

pattern ActionHistoryStatus_Unknown :: ActionHistoryStatus
pattern $bActionHistoryStatus_Unknown :: ActionHistoryStatus
$mActionHistoryStatus_Unknown :: forall r. ActionHistoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActionHistoryStatus_Unknown = ActionHistoryStatus' "Unknown"

{-# COMPLETE
  ActionHistoryStatus_Completed,
  ActionHistoryStatus_Failed,
  ActionHistoryStatus_Unknown,
  ActionHistoryStatus'
  #-}