{-# 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.AppRunner.Types.OperationStatus
-- 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.AppRunner.Types.OperationStatus
  ( OperationStatus
      ( ..,
        OperationStatus_FAILED,
        OperationStatus_IN_PROGRESS,
        OperationStatus_PENDING,
        OperationStatus_ROLLBACK_FAILED,
        OperationStatus_ROLLBACK_IN_PROGRESS,
        OperationStatus_ROLLBACK_SUCCEEDED,
        OperationStatus_SUCCEEDED
      ),
  )
where

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

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

pattern OperationStatus_FAILED :: OperationStatus
pattern $bOperationStatus_FAILED :: OperationStatus
$mOperationStatus_FAILED :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_FAILED = OperationStatus' "FAILED"

pattern OperationStatus_IN_PROGRESS :: OperationStatus
pattern $bOperationStatus_IN_PROGRESS :: OperationStatus
$mOperationStatus_IN_PROGRESS :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_IN_PROGRESS = OperationStatus' "IN_PROGRESS"

pattern OperationStatus_PENDING :: OperationStatus
pattern $bOperationStatus_PENDING :: OperationStatus
$mOperationStatus_PENDING :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_PENDING = OperationStatus' "PENDING"

pattern OperationStatus_ROLLBACK_FAILED :: OperationStatus
pattern $bOperationStatus_ROLLBACK_FAILED :: OperationStatus
$mOperationStatus_ROLLBACK_FAILED :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_ROLLBACK_FAILED = OperationStatus' "ROLLBACK_FAILED"

pattern OperationStatus_ROLLBACK_IN_PROGRESS :: OperationStatus
pattern $bOperationStatus_ROLLBACK_IN_PROGRESS :: OperationStatus
$mOperationStatus_ROLLBACK_IN_PROGRESS :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_ROLLBACK_IN_PROGRESS = OperationStatus' "ROLLBACK_IN_PROGRESS"

pattern OperationStatus_ROLLBACK_SUCCEEDED :: OperationStatus
pattern $bOperationStatus_ROLLBACK_SUCCEEDED :: OperationStatus
$mOperationStatus_ROLLBACK_SUCCEEDED :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_ROLLBACK_SUCCEEDED = OperationStatus' "ROLLBACK_SUCCEEDED"

pattern OperationStatus_SUCCEEDED :: OperationStatus
pattern $bOperationStatus_SUCCEEDED :: OperationStatus
$mOperationStatus_SUCCEEDED :: forall r. OperationStatus -> (Void# -> r) -> (Void# -> r) -> r
OperationStatus_SUCCEEDED = OperationStatus' "SUCCEEDED"

{-# COMPLETE
  OperationStatus_FAILED,
  OperationStatus_IN_PROGRESS,
  OperationStatus_PENDING,
  OperationStatus_ROLLBACK_FAILED,
  OperationStatus_ROLLBACK_IN_PROGRESS,
  OperationStatus_ROLLBACK_SUCCEEDED,
  OperationStatus_SUCCEEDED,
  OperationStatus'
  #-}