{-# 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.AppConfig.Types.DeploymentState
-- 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.AppConfig.Types.DeploymentState
  ( DeploymentState
      ( ..,
        DeploymentState_BAKING,
        DeploymentState_COMPLETE,
        DeploymentState_DEPLOYING,
        DeploymentState_ROLLED_BACK,
        DeploymentState_ROLLING_BACK,
        DeploymentState_VALIDATING
      ),
  )
where

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

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

pattern DeploymentState_BAKING :: DeploymentState
pattern $bDeploymentState_BAKING :: DeploymentState
$mDeploymentState_BAKING :: forall r. DeploymentState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentState_BAKING = DeploymentState' "BAKING"

pattern DeploymentState_COMPLETE :: DeploymentState
pattern $bDeploymentState_COMPLETE :: DeploymentState
$mDeploymentState_COMPLETE :: forall r. DeploymentState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentState_COMPLETE = DeploymentState' "COMPLETE"

pattern DeploymentState_DEPLOYING :: DeploymentState
pattern $bDeploymentState_DEPLOYING :: DeploymentState
$mDeploymentState_DEPLOYING :: forall r. DeploymentState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentState_DEPLOYING = DeploymentState' "DEPLOYING"

pattern DeploymentState_ROLLED_BACK :: DeploymentState
pattern $bDeploymentState_ROLLED_BACK :: DeploymentState
$mDeploymentState_ROLLED_BACK :: forall r. DeploymentState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentState_ROLLED_BACK = DeploymentState' "ROLLED_BACK"

pattern DeploymentState_ROLLING_BACK :: DeploymentState
pattern $bDeploymentState_ROLLING_BACK :: DeploymentState
$mDeploymentState_ROLLING_BACK :: forall r. DeploymentState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentState_ROLLING_BACK = DeploymentState' "ROLLING_BACK"

pattern DeploymentState_VALIDATING :: DeploymentState
pattern $bDeploymentState_VALIDATING :: DeploymentState
$mDeploymentState_VALIDATING :: forall r. DeploymentState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentState_VALIDATING = DeploymentState' "VALIDATING"

{-# COMPLETE
  DeploymentState_BAKING,
  DeploymentState_COMPLETE,
  DeploymentState_DEPLOYING,
  DeploymentState_ROLLED_BACK,
  DeploymentState_ROLLING_BACK,
  DeploymentState_VALIDATING,
  DeploymentState'
  #-}