{-# 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.Proton.Types.ServiceStatus
-- 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.Proton.Types.ServiceStatus
  ( ServiceStatus
      ( ..,
        ServiceStatus_ACTIVE,
        ServiceStatus_CREATE_FAILED,
        ServiceStatus_CREATE_FAILED_CLEANUP_COMPLETE,
        ServiceStatus_CREATE_FAILED_CLEANUP_FAILED,
        ServiceStatus_CREATE_FAILED_CLEANUP_IN_PROGRESS,
        ServiceStatus_CREATE_IN_PROGRESS,
        ServiceStatus_DELETE_FAILED,
        ServiceStatus_DELETE_IN_PROGRESS,
        ServiceStatus_UPDATE_COMPLETE_CLEANUP_FAILED,
        ServiceStatus_UPDATE_FAILED,
        ServiceStatus_UPDATE_FAILED_CLEANUP_COMPLETE,
        ServiceStatus_UPDATE_FAILED_CLEANUP_FAILED,
        ServiceStatus_UPDATE_FAILED_CLEANUP_IN_PROGRESS,
        ServiceStatus_UPDATE_IN_PROGRESS
      ),
  )
where

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

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

pattern ServiceStatus_ACTIVE :: ServiceStatus
pattern $bServiceStatus_ACTIVE :: ServiceStatus
$mServiceStatus_ACTIVE :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_ACTIVE = ServiceStatus' "ACTIVE"

pattern ServiceStatus_CREATE_FAILED :: ServiceStatus
pattern $bServiceStatus_CREATE_FAILED :: ServiceStatus
$mServiceStatus_CREATE_FAILED :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_CREATE_FAILED = ServiceStatus' "CREATE_FAILED"

pattern ServiceStatus_CREATE_FAILED_CLEANUP_COMPLETE :: ServiceStatus
pattern $bServiceStatus_CREATE_FAILED_CLEANUP_COMPLETE :: ServiceStatus
$mServiceStatus_CREATE_FAILED_CLEANUP_COMPLETE :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_CREATE_FAILED_CLEANUP_COMPLETE = ServiceStatus' "CREATE_FAILED_CLEANUP_COMPLETE"

pattern ServiceStatus_CREATE_FAILED_CLEANUP_FAILED :: ServiceStatus
pattern $bServiceStatus_CREATE_FAILED_CLEANUP_FAILED :: ServiceStatus
$mServiceStatus_CREATE_FAILED_CLEANUP_FAILED :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_CREATE_FAILED_CLEANUP_FAILED = ServiceStatus' "CREATE_FAILED_CLEANUP_FAILED"

pattern ServiceStatus_CREATE_FAILED_CLEANUP_IN_PROGRESS :: ServiceStatus
pattern $bServiceStatus_CREATE_FAILED_CLEANUP_IN_PROGRESS :: ServiceStatus
$mServiceStatus_CREATE_FAILED_CLEANUP_IN_PROGRESS :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_CREATE_FAILED_CLEANUP_IN_PROGRESS = ServiceStatus' "CREATE_FAILED_CLEANUP_IN_PROGRESS"

pattern ServiceStatus_CREATE_IN_PROGRESS :: ServiceStatus
pattern $bServiceStatus_CREATE_IN_PROGRESS :: ServiceStatus
$mServiceStatus_CREATE_IN_PROGRESS :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_CREATE_IN_PROGRESS = ServiceStatus' "CREATE_IN_PROGRESS"

pattern ServiceStatus_DELETE_FAILED :: ServiceStatus
pattern $bServiceStatus_DELETE_FAILED :: ServiceStatus
$mServiceStatus_DELETE_FAILED :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_DELETE_FAILED = ServiceStatus' "DELETE_FAILED"

pattern ServiceStatus_DELETE_IN_PROGRESS :: ServiceStatus
pattern $bServiceStatus_DELETE_IN_PROGRESS :: ServiceStatus
$mServiceStatus_DELETE_IN_PROGRESS :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_DELETE_IN_PROGRESS = ServiceStatus' "DELETE_IN_PROGRESS"

pattern ServiceStatus_UPDATE_COMPLETE_CLEANUP_FAILED :: ServiceStatus
pattern $bServiceStatus_UPDATE_COMPLETE_CLEANUP_FAILED :: ServiceStatus
$mServiceStatus_UPDATE_COMPLETE_CLEANUP_FAILED :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_UPDATE_COMPLETE_CLEANUP_FAILED = ServiceStatus' "UPDATE_COMPLETE_CLEANUP_FAILED"

pattern ServiceStatus_UPDATE_FAILED :: ServiceStatus
pattern $bServiceStatus_UPDATE_FAILED :: ServiceStatus
$mServiceStatus_UPDATE_FAILED :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_UPDATE_FAILED = ServiceStatus' "UPDATE_FAILED"

pattern ServiceStatus_UPDATE_FAILED_CLEANUP_COMPLETE :: ServiceStatus
pattern $bServiceStatus_UPDATE_FAILED_CLEANUP_COMPLETE :: ServiceStatus
$mServiceStatus_UPDATE_FAILED_CLEANUP_COMPLETE :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_UPDATE_FAILED_CLEANUP_COMPLETE = ServiceStatus' "UPDATE_FAILED_CLEANUP_COMPLETE"

pattern ServiceStatus_UPDATE_FAILED_CLEANUP_FAILED :: ServiceStatus
pattern $bServiceStatus_UPDATE_FAILED_CLEANUP_FAILED :: ServiceStatus
$mServiceStatus_UPDATE_FAILED_CLEANUP_FAILED :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_UPDATE_FAILED_CLEANUP_FAILED = ServiceStatus' "UPDATE_FAILED_CLEANUP_FAILED"

pattern ServiceStatus_UPDATE_FAILED_CLEANUP_IN_PROGRESS :: ServiceStatus
pattern $bServiceStatus_UPDATE_FAILED_CLEANUP_IN_PROGRESS :: ServiceStatus
$mServiceStatus_UPDATE_FAILED_CLEANUP_IN_PROGRESS :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_UPDATE_FAILED_CLEANUP_IN_PROGRESS = ServiceStatus' "UPDATE_FAILED_CLEANUP_IN_PROGRESS"

pattern ServiceStatus_UPDATE_IN_PROGRESS :: ServiceStatus
pattern $bServiceStatus_UPDATE_IN_PROGRESS :: ServiceStatus
$mServiceStatus_UPDATE_IN_PROGRESS :: forall r. ServiceStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceStatus_UPDATE_IN_PROGRESS = ServiceStatus' "UPDATE_IN_PROGRESS"

{-# COMPLETE
  ServiceStatus_ACTIVE,
  ServiceStatus_CREATE_FAILED,
  ServiceStatus_CREATE_FAILED_CLEANUP_COMPLETE,
  ServiceStatus_CREATE_FAILED_CLEANUP_FAILED,
  ServiceStatus_CREATE_FAILED_CLEANUP_IN_PROGRESS,
  ServiceStatus_CREATE_IN_PROGRESS,
  ServiceStatus_DELETE_FAILED,
  ServiceStatus_DELETE_IN_PROGRESS,
  ServiceStatus_UPDATE_COMPLETE_CLEANUP_FAILED,
  ServiceStatus_UPDATE_FAILED,
  ServiceStatus_UPDATE_FAILED_CLEANUP_COMPLETE,
  ServiceStatus_UPDATE_FAILED_CLEANUP_FAILED,
  ServiceStatus_UPDATE_FAILED_CLEANUP_IN_PROGRESS,
  ServiceStatus_UPDATE_IN_PROGRESS,
  ServiceStatus'
  #-}