{-# 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.DeploymentStatus
-- 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.DeploymentStatus
  ( DeploymentStatus
      ( ..,
        DeploymentStatus_CANCELLED,
        DeploymentStatus_CANCELLING,
        DeploymentStatus_DELETE_COMPLETE,
        DeploymentStatus_DELETE_FAILED,
        DeploymentStatus_DELETE_IN_PROGRESS,
        DeploymentStatus_FAILED,
        DeploymentStatus_IN_PROGRESS,
        DeploymentStatus_SUCCEEDED
      ),
  )
where

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

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

pattern DeploymentStatus_CANCELLED :: DeploymentStatus
pattern $bDeploymentStatus_CANCELLED :: DeploymentStatus
$mDeploymentStatus_CANCELLED :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_CANCELLED = DeploymentStatus' "CANCELLED"

pattern DeploymentStatus_CANCELLING :: DeploymentStatus
pattern $bDeploymentStatus_CANCELLING :: DeploymentStatus
$mDeploymentStatus_CANCELLING :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_CANCELLING = DeploymentStatus' "CANCELLING"

pattern DeploymentStatus_DELETE_COMPLETE :: DeploymentStatus
pattern $bDeploymentStatus_DELETE_COMPLETE :: DeploymentStatus
$mDeploymentStatus_DELETE_COMPLETE :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_DELETE_COMPLETE = DeploymentStatus' "DELETE_COMPLETE"

pattern DeploymentStatus_DELETE_FAILED :: DeploymentStatus
pattern $bDeploymentStatus_DELETE_FAILED :: DeploymentStatus
$mDeploymentStatus_DELETE_FAILED :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_DELETE_FAILED = DeploymentStatus' "DELETE_FAILED"

pattern DeploymentStatus_DELETE_IN_PROGRESS :: DeploymentStatus
pattern $bDeploymentStatus_DELETE_IN_PROGRESS :: DeploymentStatus
$mDeploymentStatus_DELETE_IN_PROGRESS :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_DELETE_IN_PROGRESS = DeploymentStatus' "DELETE_IN_PROGRESS"

pattern DeploymentStatus_FAILED :: DeploymentStatus
pattern $bDeploymentStatus_FAILED :: DeploymentStatus
$mDeploymentStatus_FAILED :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_FAILED = DeploymentStatus' "FAILED"

pattern DeploymentStatus_IN_PROGRESS :: DeploymentStatus
pattern $bDeploymentStatus_IN_PROGRESS :: DeploymentStatus
$mDeploymentStatus_IN_PROGRESS :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_IN_PROGRESS = DeploymentStatus' "IN_PROGRESS"

pattern DeploymentStatus_SUCCEEDED :: DeploymentStatus
pattern $bDeploymentStatus_SUCCEEDED :: DeploymentStatus
$mDeploymentStatus_SUCCEEDED :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_SUCCEEDED = DeploymentStatus' "SUCCEEDED"

{-# COMPLETE
  DeploymentStatus_CANCELLED,
  DeploymentStatus_CANCELLING,
  DeploymentStatus_DELETE_COMPLETE,
  DeploymentStatus_DELETE_FAILED,
  DeploymentStatus_DELETE_IN_PROGRESS,
  DeploymentStatus_FAILED,
  DeploymentStatus_IN_PROGRESS,
  DeploymentStatus_SUCCEEDED,
  DeploymentStatus'
  #-}