{-# 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.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.CodeDeploy.Types.DeploymentStatus
  ( DeploymentStatus
      ( ..,
        DeploymentStatus_Baking,
        DeploymentStatus_Created,
        DeploymentStatus_Failed,
        DeploymentStatus_InProgress,
        DeploymentStatus_Queued,
        DeploymentStatus_Ready,
        DeploymentStatus_Stopped,
        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_Baking :: DeploymentStatus
pattern $bDeploymentStatus_Baking :: DeploymentStatus
$mDeploymentStatus_Baking :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Baking = DeploymentStatus' "Baking"

pattern DeploymentStatus_Created :: DeploymentStatus
pattern $bDeploymentStatus_Created :: DeploymentStatus
$mDeploymentStatus_Created :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Created = DeploymentStatus' "Created"

pattern DeploymentStatus_Failed :: DeploymentStatus
pattern $bDeploymentStatus_Failed :: DeploymentStatus
$mDeploymentStatus_Failed :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Failed = DeploymentStatus' "Failed"

pattern DeploymentStatus_InProgress :: DeploymentStatus
pattern $bDeploymentStatus_InProgress :: DeploymentStatus
$mDeploymentStatus_InProgress :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_InProgress = DeploymentStatus' "InProgress"

pattern DeploymentStatus_Queued :: DeploymentStatus
pattern $bDeploymentStatus_Queued :: DeploymentStatus
$mDeploymentStatus_Queued :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Queued = DeploymentStatus' "Queued"

pattern DeploymentStatus_Ready :: DeploymentStatus
pattern $bDeploymentStatus_Ready :: DeploymentStatus
$mDeploymentStatus_Ready :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Ready = DeploymentStatus' "Ready"

pattern DeploymentStatus_Stopped :: DeploymentStatus
pattern $bDeploymentStatus_Stopped :: DeploymentStatus
$mDeploymentStatus_Stopped :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Stopped = DeploymentStatus' "Stopped"

pattern DeploymentStatus_Succeeded :: DeploymentStatus
pattern $bDeploymentStatus_Succeeded :: DeploymentStatus
$mDeploymentStatus_Succeeded :: forall r. DeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
DeploymentStatus_Succeeded = DeploymentStatus' "Succeeded"

{-# COMPLETE
  DeploymentStatus_Baking,
  DeploymentStatus_Created,
  DeploymentStatus_Failed,
  DeploymentStatus_InProgress,
  DeploymentStatus_Queued,
  DeploymentStatus_Ready,
  DeploymentStatus_Stopped,
  DeploymentStatus_Succeeded,
  DeploymentStatus'
  #-}